-
-
Notifications
You must be signed in to change notification settings - Fork 233
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
cloudtunes-worker and cloudtunes-8000 exiting status 1 when using docker #16
Comments
I see. It's probably because supervisor starts all the services at the same time, but CloudTunes needs a Mongod DB and a Redis connections upon boot. I will look into this over the weekend. |
Thanks so much Jakub! On Friday, September 12, 2014 1:51 PM, Jakub Roztočil notifications@github.com wrote: I see. It's probably because supervisors starts all the services at the same time, but CloudTunes needs Mongod DB and Redis connections upon boot. I will look into this over the weekend. |
Hi! I figured this out (I ended up making a bash container and looking at the error logs http://affy.blogspot.co.uk/2014/06/how-to-detach-from-running-docker-image.html 👍) So, if you dont have a
So, I just added that file to the repo and the dockerfile worked fine. I'm no docker expert, but I assume something like this would work: ADD cloudtunes-server/cloudtunes/settings/local.example.py /home/cloudtunes-server/cloudtunes/settings/local.py |
Actually, we should probably add instructions to the README.md to create the local.py file in that directory? As you'll need to configure your own personal keys in there... |
PR here: #20 |
Thanks Petems, I have added the local.py and still have the same problem. I think Jakub is looking at the way the components start and that might fix the problem. |
@lukkamor You should patch supervisor.ini like following
It works for me. upstream problem is following: Supervisor/supervisor#122 but still open since 2012 :'( |
Hi Jakub, On Monday, September 22, 2014 12:26 PM, Thibaud Lepretre notifications@github.com wrote: @lukkamor You should patch supervisor.ini like following +priority=11.8.4.2 |
@lukkamor Yeah my bad my patch works "sometimes"... The only solution I found is to add the following directive inside
The goal is to increase the number of retries before giving up. With 10 retries on my docker env it work, mongodb and redis had enough time to start. But you can tune it. |
Tried: 20 retries and 30 seconds unsuccessfully. One thing I've noticed when building, I got all this errors: are those normal? On Tuesday, September 23, 2014 12:28 PM, Thibaud Lepretre notifications@github.com wrote: Yeah my bad my patch works "sometimes"... The only solution I found is to add the following directive inside [program:cloudtunes-8000] and [program:cloudtunes-worker] |
I got the same problem |
The text was updated successfully, but these errors were encountered: