deploymeteor
deploymeteor copied to clipboard
Problem in prepserver
I haven't quite gotten deploymeteor to do it's thing yet. In trying to make sure everything is up to date, I ran deploymeteor prepserver, and got the following--The server is missing some shared object, but is this my config error, or a bug? This is the instance type: amzn-ami-0.9.7-beta.x86_64-ebs (ami-0af30663) I'm locally running OS X 10.9.1.
Preparing server...
Pseudo-terminal will not be allocated because stdin is not a terminal.
Installing prerequisites...
Installing Node...
Installing or updating Forever...
Installing or updating Meteor...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4223 0 4223 0 0 21735 0 --:--:-- --:--:-- --:--:-- 60328
module.js:356
Module._extensions[extension](this, filename);
Installing or updating Meteorite...
Installing or updating http-proxy...
Installing PhantomJS...
^
Error: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/ec2-user/.meteor/tools/09b63f1ed5/lib/node_modules/fibers/bin/linux-x64-v8-3.14/fibers.node)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/ec2-user/.meteor/tools/09b63f1ed5/lib/node_modules/fibers/fibers.js:17:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
Copying nodeproxy.js to the server...
Done!
I'll have to take a look when I get a chance. I haven't run prepserver in awhile since I have a working server. There might be some issues with incorrect versions being used.
Although if it got that far, the server is probably "prepped" enough to deploy. You might just not be able to deploy apps that use phantomjs.
I don't think it's deploying--I ssh'd into the machine and ran ps aux | grep node
which didn't show me the meteor server running. Not to mention when I navigate to the public name or IP for the server in a browser I get nothing (I set up the security group to accept inbound HTTP). deployserver restart all
and git push prod master
don't seem to make a difference. The app did deploy fine with meteor deploy mydomain
I'd be happy to poke around some if you want to give me a place to start looking. deploymeteor is clearly a much better designed version of the thing I was planning on hacking up, so I'd be glad to contribute however I can.
Not sure about "much better designed". Writing bash scripts is not my forte so it's kind of hard to wade through the script and figure it out unless you have a few hours to spare. The error seems to be something between installing phantomjs and copying the proxy, which means it's most likely failing to install phantomjs.
You could try editing your local script in ~/.deploymeteor/deploymeteor.sh. Put a #
before this line and then see if prepserver
works:
sudo -H npm install -g phantomjs &> /dev/null
If you need phantomjs, you can always ssh to the server and install it yourself.