Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

VM startup script not working #88

Closed
Splaktar opened this issue Feb 25, 2016 · 1 comment
Closed

VM startup script not working #88

Splaktar opened this issue Feb 25, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@Splaktar
Copy link
Contributor

This script should run the web server on VM start so that login and manual execution is not required. This isn't currently working due to the following errors:

Feb 14 16:12:04 hub-backup startupscript: Running startup script /var/run/google.startup.script
Feb 14 16:12:06 hub-backup startupscript: 
Feb 14 16:12:06 hub-backup startupscript: > gdgx-hub@0.1.0 configProd /opt/hub
Feb 14 16:12:06 hub-backup startupscript: > sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000;export PORT=3000;
Feb 14 16:12:06 hub-backup startupscript: 
Feb 14 16:12:06 hub-backup kernel: [   16.219301] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
Feb 14 16:12:07 hub-backup startupscript: 
Feb 14 16:12:07 hub-backup startupscript: > gdgx-hub@0.1.0 startProd /opt/hub
Feb 14 16:12:07 hub-backup startupscript: > grunt serve:dist
Feb 14 16:12:07 hub-backup startupscript: 
Feb 14 16:12:09 hub-backup ntpdate[709]: adjust time server x.x.x.x offset 0.399524 sec
Feb 14 16:12:09 hub-backup systemd[1]: Starting LSB: Start NTP daemon...
Feb 14 16:12:09 hub-backup ntp[1051]: * Starting NTP server ntpd
Feb 14 16:12:09 hub-backup ntpd[1059]: ntpd 4.2.6p5@1.2349-o Wed Nov 11 18:20:12 UTC 2015 (1)
Feb 14 16:12:09 hub-backup ntp[1051]: ...done.
Feb 14 16:12:09 hub-backup systemd[1]: Started LSB: Start NTP daemon.
Feb 14 16:12:09 hub-backup ntpd[1060]: proto: precision = 0.109 usec
Feb 14 16:12:09 hub-backup ntpd[1060]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
Feb 14 16:12:09 hub-backup ntpd[1060]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Feb 14 16:12:09 hub-backup ntpd[1060]: Listen and drop on 1 v6wildcard :: UDP 123
Feb 14 16:12:09 hub-backup ntpd[1060]: Listen normally on 2 lo 127.0.0.1 UDP 123
Feb 14 16:12:09 hub-backup ntpd[1060]: Listen normally on 3 eth0 10.0.0.2 UDP 123
Feb 14 16:12:09 hub-backup ntpd[1060]: peers refreshed
Feb 14 16:12:09 hub-backup ntpd[1060]: Listening on routing socket on fd #20 for interface updates

Ubuntu 15.04 hub-backup ttyS0

hub-backup login: Feb 14 16:12:11 hub-backup startupscript: Loading "cdnify.js" tasks...#033[31mERROR#033[39m
Feb 14 16:12:11 hub-backup startupscript: #033[31m>> #033[39mError: Unable to parse global .bowerrc file: Arguments to path.join must be strings
Feb 14 16:12:12 hub-backup startupscript: 
Feb 14 16:12:12 hub-backup startupscript: #033[4mRunning "serve:dist" (serve) task#033[24m
Feb 14 16:12:12 hub-backup startupscript: #033[33mWarning: Task "cdnify" not found.#007 Use --force to continue.#033[39m
Feb 14 16:12:12 hub-backup startupscript: 
Feb 14 16:12:12 hub-backup startupscript: #033[31mAborted due to warnings.#033[39m
Feb 14 16:12:12 hub-backup startupscript: 
Feb 14 16:12:12 hub-backup startupscript: 
Feb 14 16:12:12 hub-backup startupscript: Execution Time (2016-02-14 16:12:12 UTC)
Feb 14 16:12:12 hub-backup startupscript: loading tasks  42ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 88%
Feb 14 16:12:12 hub-backup startupscript: serve:dist      2ms  ▇▇ 4%
Feb 14 16:12:12 hub-backup startupscript: build           2ms  ▇▇ 4%
Feb 14 16:12:12 hub-backup startupscript: Total 48ms
Feb 14 16:12:12 hub-backup startupscript: 
Feb 14 16:12:12 hub-backup startupscript: npm ERR! Linux 3.19.0-49-generic
Feb 14 16:12:12 hub-backup startupscript: npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "runScript" "startProd"
Feb 14 16:12:12 hub-backup startupscript: npm ERR! node v0.12.10
Feb 14 16:12:12 hub-backup startupscript: npm ERR! npm  v2.14.9
Feb 14 16:12:12 hub-backup startupscript: npm ERR! code ELIFECYCLE
Feb 14 16:12:12 hub-backup startupscript: npm ERR! gdgx-hub@0.1.0 startProd: `grunt serve:dist`
Feb 14 16:12:12 hub-backup startupscript: npm ERR! Exit status 3
Feb 14 16:12:12 hub-backup startupscript: npm ERR!
Feb 14 16:12:12 hub-backup startupscript: npm ERR! Failed at the gdgx-hub@0.1.0 startProd script 'grunt serve:dist'.
Feb 14 16:12:12 hub-backup startupscript: npm ERR! This is most likely a problem with the gdgx-hub package,
Feb 14 16:12:12 hub-backup startupscript: npm ERR! not with npm itself.
Feb 14 16:12:12 hub-backup startupscript: npm ERR! Tell the author that this fails on your system:
Feb 14 16:12:12 hub-backup startupscript: npm ERR!     grunt serve:dist
Feb 14 16:12:12 hub-backup startupscript: npm ERR! You can get their info via:
Feb 14 16:12:12 hub-backup startupscript: npm ERR!     npm owner ls gdgx-hub
Feb 14 16:12:12 hub-backup startupscript: npm ERR! There is likely additional logging output above.
Feb 14 16:12:12 hub-backup startupscript: 
Feb 14 16:12:12 hub-backup startupscript: npm ERR! Please include the following file with any support request:
Feb 14 16:12:12 hub-backup startupscript: npm ERR!     /opt/hub/npm-debug.log
Feb 14 16:12:12 hub-backup startupscript: /tmp/tmp.uBOvwuQDBp: line 5: EOF: command not found
Feb 14 16:12:12 hub-backup startupscript: Finished running startup script /var/run/google.startup.script
Feb 14 16:12:12 hub-backup systemd[1]: Started Google Compute Engine user scripts.
@Splaktar Splaktar added the bug label Feb 25, 2016
@Splaktar Splaktar self-assigned this Feb 25, 2016
@Splaktar Splaktar added this to the v0.2.0 milestone Feb 25, 2016
@Splaktar Splaktar modified the milestones: v0.2.0, v0.2.1 Aug 29, 2016
@Splaktar
Copy link
Contributor Author

Splaktar commented Mar 9, 2017

This just suddenly started working about 5 months ago. It appears to have been a GCE bug. This is why the Hub has stayed online much more than previously.

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

No branches or pull requests

1 participant