Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to exec start script - Possible Syntax error #4

Closed
Guerbie opened this issue Jan 4, 2018 · 4 comments
Closed

Failed to exec start script - Possible Syntax error #4

Guerbie opened this issue Jan 4, 2018 · 4 comments

Comments

@Guerbie
Copy link

Guerbie commented Jan 4, 2018

For starters, absolutely love this work! Have been looking for something like this for months as part of a home lab project.

Unfortunately with my absolutely limited skillset I have come across a script start error that I just cant seem to get past. It may well be my own stupidity that is the error but in the event there is actually an error with the script I would appreciate your advice.

The logfile is:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]
6 info lifecycle [email protected]
start: [email protected]
7 verbose lifecycle [email protected]start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/opt/glass-isc-dhcp/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
9 verbose lifecycle [email protected]start: CWD: /opt/glass-isc-dhcp
10 silly lifecycle [email protected]
start: Args: [ '-c', 'node ./bin/www' ]
11 silly lifecycle [email protected]start: Returned: code: 1 signal: null
12 info lifecycle [email protected]
start: Failed to exec start script
13 verbose stack Error: [email protected] start: node ./bin/www
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid [email protected]
15 verbose cwd /opt/glass-isc-dhcp
16 verbose Linux 4.4.38-v7+
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
18 verbose node v8.9.4
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: node ./bin/www
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

@Akkadius
Copy link
Owner

Akkadius commented Jan 4, 2018

Hey @Guerbie what distro is this on?

@Guerbie
Copy link
Author

Guerbie commented Jan 5, 2018

Hi Akkadius,

Thanks for taking a look at this.

Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial

While it is the underlying Ubuntu it is repackaged as part of UbuntuMATE so not sure if this is causing it grief. Seemed like a better option than Ubuntu Core (which is limited to snaps).

Thanks,
Guerbie

@Akkadius
Copy link
Owner

Akkadius commented Feb 4, 2018

The stack is not very revealing - I would make sure that node is up to date and issue a npm update as well and let me know what you see as a result of that

@Guerbie
Copy link
Author

Guerbie commented May 10, 2018

Hi Akkadius,

After dozens of attempts (and a few VMs) I finally managed to get it running on Raspbian. I then went to try and break a few things and see if I could re-trigger the errors. Looks like anytime there is something wrong with an underlying services the startup script will throw this error. I can even get this error when there is a misconfiguration with the DHCP conf, or one of my IP addresses are not properly set (in this case I had to disable my fallover wifi connection).

At present Glass is loading correctly, although a lot of the outputs are not corrrectly showing on the home screen (leases are accurate and reflecting actual renewals properly). This is likely user error, so I am working through them one by one.

Absolutely awesome work, owe you a few beers at this rate.

Regards,
Guerbie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants