pieper / SlicerDockers

docker config files for slicer
Other
23 stars 27 forks source link

502 Bad Gateway when accessing Shell or File management #1

Closed dazzag24 closed 3 years ago

dazzag24 commented 3 years ago

In the latest image the shell term and file management links both result in 502 bad gateway errors.

docker run -d -p 8080:8080 --name slicer stevepieper/slicer:4.11.20200930

Logs from the docker container:

2021-09-23 13:57:48,721 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2021-09-23 13:57:48,721 INFO Included extra file "/etc/supervisord.d/easydav.conf" during parsing
2021-09-23 13:57:48,721 INFO Included extra file "/etc/supervisord.d/gotty.conf" during parsing
2021-09-23 13:57:48,721 INFO Included extra file "/etc/supervisord.d/nginx.conf" during parsing
2021-09-23 13:57:48,721 INFO Included extra file "/etc/supervisord.d/websockify.conf" during parsing
2021-09-23 13:57:48,721 INFO Included extra file "/etc/supervisord.d/x11vnc.conf" during parsing
2021-09-23 13:57:48,721 INFO Included extra file "/etc/supervisord.d/xdummy.conf" during parsing
2021-09-23 13:57:48,721 INFO Included extra file "/etc/supervisord.d/xinitrc.conf" during parsing
2021-09-23 13:57:48,723 INFO Creating socket unix:///var/run/easydav.sock
2021-09-23 13:57:48,723 INFO Closing socket unix:///var/run/easydav.sock
2021-09-23 13:57:48,726 INFO RPC interface 'supervisor' initialized
2021-09-23 13:57:48,726 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2021-09-23 13:57:48,726 INFO supervisord started with pid 1
2021-09-23 13:57:49,728 INFO Creating socket unix:///var/run/easydav.sock
2021-09-23 13:57:49,729 INFO spawnerr: can't find command '/opt/easydav/webdav.fcgi'
2021-09-23 13:57:49,729 INFO Closing socket unix:///var/run/easydav.sock
2021-09-23 13:57:49,729 INFO spawnerr: can't find command '/usr/local/bin/gotty'
2021-09-23 13:57:49,731 INFO spawned: 'nginx' with pid 8
2021-09-23 13:57:49,734 INFO spawned: 'websockify' with pid 9
2021-09-23 13:57:49,737 INFO spawned: 'x11vnc' with pid 10
2021-09-23 13:57:49,740 INFO spawned: 'xdummy' with pid 11
2021-09-23 13:57:49,743 INFO spawned: 'xinitrc' with pid 12
2021-09-23 13:57:49,747 INFO success: xinitrc entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2021-09-23 13:57:49,756 INFO exited: xinitrc (exit status 0; expected)
2021-09-23 13:57:49,764 INFO exited: x11vnc (exit status 1; not expected)
2021-09-23 13:57:51,016 INFO Creating socket unix:///var/run/easydav.sock
2021-09-23 13:57:51,016 INFO spawnerr: can't find command '/opt/easydav/webdav.fcgi'
2021-09-23 13:57:51,016 INFO Closing socket unix:///var/run/easydav.sock
2021-09-23 13:57:51,017 INFO spawnerr: can't find command '/usr/local/bin/gotty'
2021-09-23 13:57:51,017 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-09-23 13:57:51,017 INFO success: websockify entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-09-23 13:57:51,018 INFO spawned: 'x11vnc' with pid 78
2021-09-23 13:57:51,018 INFO success: xdummy entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-09-23 13:57:52,156 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-09-23 13:57:53,157 INFO Creating socket unix:///var/run/easydav.sock
2021-09-23 13:57:53,158 INFO spawnerr: can't find command '/opt/easydav/webdav.fcgi'
2021-09-23 13:57:53,158 INFO Closing socket unix:///var/run/easydav.sock
2021-09-23 13:57:53,159 INFO spawnerr: can't find command '/usr/local/bin/gotty'
2021-09-23 13:57:56,162 INFO Creating socket unix:///var/run/easydav.sock
2021-09-23 13:57:56,163 INFO spawnerr: can't find command '/opt/easydav/webdav.fcgi'
2021-09-23 13:57:56,163 INFO Closing socket unix:///var/run/easydav.sock
2021-09-23 13:57:56,163 INFO gave up: easydav entered FATAL state, too many start retries too quickly
2021-09-23 13:57:56,163 INFO spawnerr: can't find command '/usr/local/bin/gotty'
2021-09-23 13:57:56,164 INFO gave up: gotty entered FATAL state, too many start retries too quickly

Looks like these were deliberately removed:

https://github.com/pieper/SlicerDockers/commit/98f8a1d841354f2c4757a792562a9cc8b18499d9

???

pieper commented 3 years ago

Yes, I took them out on purpose for the reasons I noted in the commit message. I think they are cool features, especially file transfer, but they aren't a priority for me and I didn't know for sure how to port them. A PR to add them back would be considered for sure.

dazzag24 commented 3 years ago

OK makes sense as neither was crucial to the main purpose.
However it probably makes sense to also remove the /opt/easydav and gotty components from the base image and also cleanup the links from the index.html

Thanks

pieper commented 3 years ago

Agreed, it should be cleaned up. If you want to send a PR that would be great. Or I can try to do this next time I update the versions of Slicer.