-
Notifications
You must be signed in to change notification settings - Fork 173
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
Girder does not restart in Docker #3516
Comments
This is fixed in v5, FWIW. #3523 |
@zachmullen That's great news ! Any idea of when that could come out ? |
We don't have an official date but I would expect sometime in the next month or two. Prerelease will likely be within the next couple of weeks. |
I just ran a test with a docker I am using. Girder version is 3.2.2. Here are some logs : girder-dev-1 | Running in mode: development
girder-dev-1 | Connecting to MongoDB: mongodb://mongodb:27017/girder
girder-dev-1 | Loaded plugin "advanced_management"
girder-dev-1 | WARNING: No description docs present for route PUT collection/:/i/d
girder-dev-1 | WARNING: No access level specified for route PUT collection/:/i/d
girder-dev-1 | Loaded plugin "aimodules_ohif"
girder-dev-1 | Loaded plugin "auth_ohif"
girder-dev-1 | Loaded plugin "resources_ohif"
girder-dev-1 | /usr/local/lib/python3.8/site-packages/pymongo/collection.py:1696: UserWarning: use an explicit session with no_cursor_timeout=True otherwise the cursor may still timeout after 30 minutes, for more info see https:
//docs.mongodb.com/v4.4/reference/method/cursor.noCursorTimeout/#session-idle-timeout-overrides-nocursortimeout
girder-dev-1 | return Cursor(self, *args, **kwargs)
girder-dev-1 | [29/Mar/2024:13:11:35] ENGINE Listening for SIGTERM.
girder-dev-1 | [29/Mar/2024:13:11:35] ENGINE Listening for SIGHUP.
girder-dev-1 | [29/Mar/2024:13:11:35] ENGINE Listening for SIGUSR1.
girder-dev-1 | [29/Mar/2024:13:11:35] ENGINE Bus STARTING
girder-dev-1 | [29/Mar/2024:13:11:35] ENGINE Started monitor thread 'Autoreloader'.
girder-dev-1 | Started asynchronous event manager thread.
girder-dev-1 | [29/Mar/2024:13:11:36] ENGINE Serving on http://0.0.0.0:8080
girder-dev-1 | [29/Mar/2024:13:11:36] ENGINE Bus STARTED
girder-dev-1 | [29/Mar/2024:13:35:24] ENGINE Restarting because /girder/plugins/auth_ohif/girder_auth_ohif/routes/authenticate.py changed.
girder-dev-1 | [29/Mar/2024:13:35:24] ENGINE Stopped thread 'Autoreloader'.
girder-dev-1 | [29/Mar/2024:13:35:24] ENGINE Bus STOPPING
girder-dev-1 | [29/Mar/2024:13:35:24] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) shut down
girder-dev-1 | [29/Mar/2024:13:35:24] ENGINE Bus STOPPED
girder-dev-1 | [29/Mar/2024:13:35:24] ENGINE Bus EXITING
girder-dev-1 | Stopped asynchronous event manager thread.
girder-dev-1 | [29/Mar/2024:13:35:24] ENGINE Bus EXITED
girder-dev-1 | [29/Mar/2024:13:35:24] ENGINE Waiting for child threads to terminate...
girder-dev-1 | [29/Mar/2024:13:35:24] ENGINE Re-spawning /usr/local/bin/python3.8 /usr/local/bin/girder serve --dev
girder-dev-1 | Running in mode: development
girder-dev-1 | Connecting to MongoDB: mongodb://mongodb:27017/girder
girder-dev-1 | Loaded plugin "advanced_management"
girder-dev-1 | WARNING: No description docs present for route PUT collection/:/i/d
girder-dev-1 | WARNING: No access level specified for route PUT collection/:/i/d
girder-dev-1 | Loaded plugin "aimodules_ohif"
girder-dev-1 | Loaded plugin "auth_ohif"
girder-dev-1 | Loaded plugin "resources_ohif"
girder-dev-1 | /usr/local/lib/python3.8/site-packages/pymongo/collection.py:1696: UserWarning: use an explicit session with no_cursor_timeout=True otherwise the cursor may still timeout after 30 minutes, for more info see https:
//docs.mongodb.com/v4.4/reference/method/cursor.noCursorTimeout/#session-idle-timeout-overrides-nocursortimeout
girder-dev-1 | return Cursor(self, *args, **kwargs)
girder-dev-1 | [29/Mar/2024:13:46:29] ENGINE Listening for SIGTERM.
girder-dev-1 | [29/Mar/2024:13:46:29] ENGINE Listening for SIGHUP.
girder-dev-1 | [29/Mar/2024:13:46:29] ENGINE Listening for SIGUSR1.
girder-dev-1 | [29/Mar/2024:13:46:29] ENGINE Bus STARTING
girder-dev-1 | Started asynchronous event manager thread.
girder-dev-1 | [29/Mar/2024:13:46:29] ENGINE Started monitor thread 'Autoreloader'.
girder-dev-1 | [29/Mar/2024:13:46:29] ENGINE Serving on http://0.0.0.0:8080
girder-dev-1 | [29/Mar/2024:13:46:29] ENGINE Bus STARTED
|
That's definitely odd! I cannot explain it. I've tested on the version 5 integration branch (which is inaptly named |
Alright, I just tried to use the code on branch v4-integration and when I modify the code of my plugin, I still have to wait quite some time... I guess the problem is not directly linked to girder then. BTW, I used an image that was very similar to yours, so the file system should be pretty much the same ! Here is the Dockerfile :
|
Hi, I don't know if this is relevant, but cpu usage by girder in my Docker is 100% during the 10ish minutes between reloads.
|
Following this discussion on the forum, I wanted to bring you a problem I have encountered.
I am working with Docker containers and one task I've had recently is to create dev Dockers that would automatically update when a change is made to the code (in this case a plugin's code).
In order to do this, I copied my plugin in the container, built the server, mounted the same plugin at the same adsress with a volume and started the server with the --dev option.
The autoreloader is correctly started. However, when I modify the server stops, tries to restart and never does. Do you have an idea of what could cause this ? I have looked at similar issues, but it doesn't look like this issue has been encountered before...
Here is my repro.
Here are the logs I get in my docker :
The text was updated successfully, but these errors were encountered: