Open Loschcode opened 8 years ago
Maybe this helps. http://stackoverflow.com/questions/18359326/how-do-i-fix-error-mongo-url-must-be-set-in-environment-on-ubuntu-using-forev or https://groups.google.com/forum/#!topic/meteor-talk/dUFTMoIdS_0
Is this Meteor 1.2.1? mup or mupx? or right always try mupx if mup doesn't work properly.
It's mup, but i also tried mupx (took me the whole day, i really tried everything) and i had some big errors linked to docker so i was like "yeah whatever" and came back to mup ...
Also the answers on the topic aren't relevant to me :(
Oh okay well I'm more familiar with mupx. So hopefully someone else has an idea, sorry. It seems the mongo_url is the problem. Sometimes a ctrl character or something like that can get in there. You'll need to double check it. Even try retyping it manually if verified correct. Update all versions of everything would also be a pertinent step.
I'm still checking it, and I think the problems comes from the fact it doesn't take my settings.json into consideration (i'm using Iron and there's a config in config/production/settings.json
containing some things and a config/env.sh
containing things like MONGO_URL
which aren't loaded when I build and launch the main.js
, same when I deploy with mup/mupx
Very weird stuff ...
After those days of research I opened an issue on iron-cli
; I don't know which one of mup
or iron-cli
is responsible for that ...
https://github.com/iron-meteor/iron-cli/issues/224
Any guess of what i'm missing here ?
After 12 hours trying to resolve this issue, I guess it might be a bug. My configuration includes this
Meteor Up is deploying correctly, all the files are going into
/opt/
but forever uptime is less than 1sec and then restart systematically. I did a auserdown app/main.js
into the correct folder to replicate what forever does and a big error shows upYeah ... Pretty weird since everything has been set. It's been a while i'm on it and the issue changes, i clear the droplet and try again all the time with different versions of everything, etc. nothing works
Any guess ?