Hi
I'm having trouble starting the web server after a from-source install,
can anybody help?
make -j printed a message to say a web server should be running on port
6080. I only got three processes and mongodb on 6081, and didn't find any
logs that looked interesting:
$ ps auxfwww | grep --color=always sandstor[m]
root 9152 0.0 0.0 2056 276 ? Ss 22:46 0:00 \_ service sandstorm start
root 9153 0.0 0.0 2056 292 ? S 22:46 0:00 \_ service sandstorm start
root 9215 0.0 0.0 2056 84 ? S 22:46 0:00 \_ service sandstorm start
$ sudo netstat -tlpn | grep 608
tcp 0 0
127.0.0.1:6081 0.0.0.0:* LISTEN 8541/mongod
After those exited, sudo /opt/sandstorm/sandstorm start starts those 3
processes again, but sudo /opt/sandstorm/sandstorm start-fe prints
"Requested front-end start." and exits successfully but seems to have no
effect. I see mongo.pid and sandstorm.pid in /opt/sandstorm/var/pid .
So, I tried run-dev.sh to start meteor -- see output at the end. Seems
it's running into trouble trying to install the node capnp bindings using
a bundled copy of npm, then wiping its temporary install directory before
I get a chance to see why the install command it prints is failing. I
tried debugging by inserting a "debugger;" breakpoint where the "capnp:
updating npm dependencies" message is logged, but though the debugger
starts up it doesn't break there, presumably because it starts a
subprocess -- not sure where in the big pile of bundled meteor / npm code
that happens...
Can I stop meteor doing its auto-install thing and just install the capnp
bindings myself maybe?
I followed these intstructions:
https://github.com/sandstorm-io/sandstorm#installing-from-source
I did run into minor compilation problems but I don't think they are
relevant: I guess because I didn't install capnproto under /usr/local -- I
did not install it but just left the build output in the source tree, and
supplied my own pkg-config files and PATH / PKG_CONFIG_PATH env vars when
building sandstorm. As a result I had to edit the sandstorm Makefile to
pass the -I flag to capnp compile so it found the .capnp files. Also
found I had to pass the libsodium package to pkg-config for run-bundle.
After that sandstorm compiled, and I installed that as root with a plain
make install (no GNU stow).
Here's the problematic run-dev.sh output:
$ (cd /home/john/dev/sandstorm/shell/ && ./run-dev.sh)
make: Nothing to be done for `shell-env'.
[[[[[ ~/dev/sandstorm/shell ]]]]]
=> Started proxy.
capnp: updating npm dependencies -- es6-promise, capnp...
npm WARN package.json packages-for-meteor-...@0.0.0 No description
npm WARN package.json packages-for-meteor-...@0.0.0 No repository field.
npm WARN package.json packages-for-meteor-...@0.0.0 No README data
../src/node-capnp/capnp.cc:31:27: fatal error: capnp/dynamic.h: No such file or directory
#include <capnp/dynamic.h>
^
compilation terminated.
make: *** [Release/obj.target/capnp/src/node-capnp/capnp.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/john/.meteor/packages/meteor-tool/.1.0.32.fbybqs++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 3.13.0-39-generic
gyp ERR! command "node" "/home/john/.meteor/packages/meteor-tool/.1.0.32.fbybqs++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/john/dev/sandstorm/shell/packages/capnp/.npm/package-new-ld92c9/node_modules/capnp
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
Build failed
npm ERR! ca...@0.1.6 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ca...@0.1.6 install script.
npm ERR! This is most likely a problem with the capnp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls capnp
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-39-generic
npm ERR! command "/home/john/.meteor/packages/meteor-tool/.1.0.32.fbybqs++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/node" "/home/john/.meteor/packages/meteor-tool/.1.0.32.fbybqs++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/npm" "install"
npm ERR! cwd /home/john/dev/sandstorm/shell/packages/capnp/.npm/package-new-ld92c9
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/john/dev/sandstorm/shell/packages/capnp/.npm/package-new-ld92c9/npm-debug.log
npm ERR! not ok code 0
John