printfuck/stardew-multiplayer-docker

Cannot launch Docker image

Closed this issue · 3 comments

Title says all, I'm on Windows 10 using Docker Desktop and I'm unable to start it properly.

Starting stardew ... done
Attaching to stardew
stardew   | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
stardew   | [s6-init] ensuring user provided files have correct perms...exited 0.
stardew   | [fix-attrs.d] applying ownership & permissions fixes...
stardew   | [fix-attrs.d] done.
stardew   | [cont-init.d] executing container initialization scripts...
stardew   | [cont-init.d] 00-app-niceness.sh: executing...
stardew   | [cont-init.d] 00-app-niceness.sh: exited 0.
stardew   | [cont-init.d] 00-app-script.sh: executing...
stardew   | [cont-init.d] 00-app-script.sh: exited 0.
stardew   | [cont-init.d] 00-app-user-map.sh: executing...
stardew   | [cont-init.d] 00-app-user-map.sh: exited 0.
stardew   | [cont-init.d] 00-clean-logmonitor-states.sh: executing...
stardew   | [cont-init.d] 00-clean-logmonitor-states.sh: exited 0.
stardew   | [cont-init.d] 00-clean-tmp-dir.sh: executing...
stardew   | [cont-init.d] 00-clean-tmp-dir.sh: exited 0.
stardew   | [cont-init.d] 00-set-app-deps.sh: executing...
stardew   | [cont-init.d] 00-set-app-deps.sh: exited 0.
stardew   | [cont-init.d] 00-set-home.sh: executing...
stardew   | [cont-init.d] 00-set-home.sh: exited 0.
stardew   | [cont-init.d] 00-take-config-ownership.sh: executing...
stardew   | [cont-init.d] 00-take-config-ownership.sh: exited 0.
stardew   | [cont-init.d] 00-xdg-runtime-dir.sh: executing...
stardew   | [cont-init.d] 00-xdg-runtime-dir.sh: exited 0.
stardew   | [cont-init.d] 10-certs.sh: executing...
stardew   | [cont-init.d] 10-certs.sh: exited 0.
stardew   | [cont-init.d] 10-cjk-font.sh: executing...
stardew   | [cont-init.d] 10-cjk-font.sh: exited 0.
stardew   | [cont-init.d] 10-nginx.sh: executing...
stardew   | [cont-init.d] 10-nginx.sh: exited 0.
stardew   | [cont-init.d] 10-vnc-password.sh: executing...
stardew   | stored passwd in file: /root/.vncpass
stardew   | [cont-init.d] 10-vnc-password.sh: exited 0.
stardew   | [cont-init.d] 10-web-index.sh: executing...
stardew   | [cont-init.d] 10-web-index.sh: exited 0.
stardew   | [cont-init.d] done.
stardew   | [services.d] starting services
stardew   | [services.d] starting s6-fdholderd...
stardew   | [services.d] starting nginx...
stardew   | [services.d] starting certsmonitor...
stardew   | [nginx] starting...
stardew   | [services.d] starting xvfb...
stardew   | [certsmonitor] disabling service: secure connection not enabled.
stardew   | [xvfb] starting...
stardew   | [services.d] starting openbox...
stardew   | [openbox] starting...
stardew   | [services.d] starting logmonitor...
stardew   | [services.d] starting x11vnc...
stardew   | [logmonitor] no file to monitor: disabling service...
stardew   | [services.d] starting statusmonitor...
stardew   | [services.d] starting app...
stardew   | [statusmonitor] no file to monitor: disabling service...
stardew   | [x11vnc] starting...
stardew   | 19/06/2022 14:20:05 passing arg to libvncserver: -rfbport
stardew   | 19/06/2022 14:20:05 passing arg to libvncserver: 5900
stardew   | 19/06/2022 14:20:05 passing arg to libvncserver: -rfbportv6
stardew   | 19/06/2022 14:20:05 passing arg to libvncserver: -1
stardew   | 19/06/2022 14:20:05 passing arg to libvncserver: -httpportv6
stardew   | 19/06/2022 14:20:05 passing arg to libvncserver: -1
stardew   | 19/06/2022 14:20:05 passing arg to libvncserver: -desktop
stardew   | 19/06/2022 14:20:05 passing arg to libvncserver: StardewValley
stardew   | 19/06/2022 14:20:05 passing arg to libvncserver: -rfbauth
stardew   | 19/06/2022 14:20:05 passing arg to libvncserver: /root/.vncpass
stardew   | 19/06/2022 14:20:05 x11vnc version: 0.9.14 lastmod: 2015-11-14  pid: 815
stardew   | [app] starting StardewValley...
stardew   | 19/06/2022 14:20:05 Using X display :0
stardew   | 19/06/2022 14:20:05 rootwin: 0x388 reswin: 0x400001 dpy: 0x304fde0
stardew   | s6-applyuidgid: fatal: unable to exec /startapp.sh: No such file or directory
stardew   | 19/06/2022 14:20:05
stardew   | 19/06/2022 14:20:05 ------------------ USEFUL INFORMATION ------------------
stardew   | [services.d] done.
stardew   | 19/06/2022 14:20:05 X DAMAGE available on display, using it for polling hints.
stardew   | 19/06/2022 14:20:05   To disable this behavior use: '-noxdamage'
stardew   | 19/06/2022 14:20:05
stardew   | 19/06/2022 14:20:05   Most compositing window managers like 'compiz' or 'beryl'
stardew   | 19/06/2022 14:20:05   cause X DAMAGE to fail, and so you may not see any screen
stardew   | 19/06/2022 14:20:05   updates via VNC.  Either disable 'compiz' (recommended) or
stardew   | 19/06/2022 14:20:05   supply the x11vnc '-noxdamage' command line option.
stardew   | 19/06/2022 14:20:05 X COMPOSITE available on display, using it for window polling.
stardew   | 19/06/2022 14:20:05   To disable this behavior use: '-noxcomposite'
stardew   | 19/06/2022 14:20:05
stardew   | 19/06/2022 14:20:05 Wireframing: -wireframe mode is in effect for window moves.
stardew   | 19/06/2022 14:20:05   If this yields undesired behavior (poor response, painting
stardew   | 19/06/2022 14:20:05   errors, etc) it may be disabled:
stardew   | 19/06/2022 14:20:05    - use '-nowf' to disable wireframing completely.
stardew   | 19/06/2022 14:20:05    - use '-nowcr' to disable the Copy Rectangle after the
stardew   | 19/06/2022 14:20:05      moved window is released in the new position.
stardew   | 19/06/2022 14:20:05   Also see the -help entry for tuning parameters.
stardew   | 19/06/2022 14:20:05   You can press 3 Alt_L's (Left "Alt" key) in a row to
stardew   | 19/06/2022 14:20:05   repaint the screen, also see the -fixscreen option for
stardew   | 19/06/2022 14:20:05   periodic repaints.
stardew   | 19/06/2022 14:20:05 GrabServer control via XTEST.
stardew   | 19/06/2022 14:20:05
stardew   | 19/06/2022 14:20:05 Scroll Detection: -scrollcopyrect mode is in effect to
stardew   | 19/06/2022 14:20:05   use RECORD extension to try to detect scrolling windows
stardew   | 19/06/2022 14:20:05   (induced by either user keystroke or mouse input).
stardew   | 19/06/2022 14:20:05   If this yields undesired behavior (poor response, painting
stardew   | 19/06/2022 14:20:05   errors, etc) it may be disabled via: '-noscr'
stardew   | 19/06/2022 14:20:05   Also see the -help entry for tuning parameters.
stardew   | 19/06/2022 14:20:05   You can press 3 Alt_L's (Left "Alt" key) in a row to
stardew   | 19/06/2022 14:20:05   repaint the screen, also see the -fixscreen option for
stardew   | 19/06/2022 14:20:05   periodic repaints.
stardew   | 19/06/2022 14:20:05
stardew   | 19/06/2022 14:20:05 XKEYBOARD: number of keysyms per keycode 7 is greater
stardew   | 19/06/2022 14:20:05   than 4 and 51 keysyms are mapped above 4.
stardew   | 19/06/2022 14:20:05   Automatically switching to -xkb mode.
stardew   | 19/06/2022 14:20:05   If this makes the key mapping worse you can
stardew   | 19/06/2022 14:20:05   disable it with the "-noxkb" option.
stardew   | 19/06/2022 14:20:05   Also, remember "-remap DEAD" for accenting characters.
stardew   | 19/06/2022 14:20:05
stardew   | 19/06/2022 14:20:05 X FBPM extension not supported.
stardew   | Xlib:  extension "DPMS" missing on display ":0".
stardew   | 19/06/2022 14:20:05 X display is not capable of DPMS.
stardew   | 19/06/2022 14:20:05 --------------------------------------------------------
stardew   | 19/06/2022 14:20:05
stardew   | 19/06/2022 14:20:05 Default visual ID: 0x21
stardew   | 19/06/2022 14:20:05 Read initial data from X display into framebuffer.
stardew   | 19/06/2022 14:20:05 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/3200
stardew   | 19/06/2022 14:20:05
stardew   | 19/06/2022 14:20:05 X display :0 is 32bpp depth=24 true color
stardew   | 19/06/2022 14:20:05
stardew   | 19/06/2022 14:20:05 Listening for VNC connections on TCP port 5900
stardew   | 19/06/2022 14:20:05
stardew   | 19/06/2022 14:20:05 Xinerama is present and active (e.g. multi-head).
stardew   | 19/06/2022 14:20:05 Xinerama: number of sub-screens: 1
stardew   | 19/06/2022 14:20:05 Xinerama: no blackouts needed (only one sub-screen)
stardew   | 19/06/2022 14:20:05
stardew   | 19/06/2022 14:20:05 fb read rate: 868 MB/sec
stardew   | 19/06/2022 14:20:05 fast read: reset -wait  ms to: 10
stardew   | 19/06/2022 14:20:05 fast read: reset -defer ms to: 10
stardew   | 19/06/2022 14:20:05 The X server says there are 10 mouse buttons.
stardew   | 19/06/2022 14:20:05 screen setup finished.
stardew   | 19/06/2022 14:20:05
stardew   |
stardew   | The VNC desktop is:      baf69f968e3d:0
stardew   | PORT=5900
stardew   |
stardew   | ******************************************************************************
stardew   | Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?
stardew   |
stardew   | The scheme stores pixel data offscreen on the VNC viewer side for faster
stardew   | retrieval.  It should work with any VNC viewer.  Try it by running:
stardew   |
stardew   |     x11vnc -ncache 10 ...
stardew   |
stardew   | One can also add -ncache_cr for smooth 'copyrect' window motion.
stardew   | More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching
stardew   |
stardew   | [services.d] stopping services
stardew   | [services.d] stopping app...
stardew   | [services.d] stopping statusmonitor...
stardew   | [services.d] stopping x11vnc...
stardew   | caught signal: 15
stardew   | 19/06/2022 14:20:06 deleted 25 tile_row polling images.
stardew   | [services.d] stopping logmonitor...
stardew   | [services.d] stopping openbox...
stardew   | [services.d] stopping xvfb...
stardew   | [services.d] stopping certsmonitor...
stardew   | [services.d] stopping nginx...
stardew   | [services.d] stopping s6-fdholderd...
stardew   | [cont-finish.d] executing container finish scripts...
stardew   | [cont-finish.d] done.
stardew   | [s6-finish] syncing disks.
stardew   | [s6-finish] sending all processes the TERM signal.
stardew   | [s6-finish] sending all processes the KILL signal and exiting.
stardew exited with code 111
stardew   | s6-applyuidgid: fatal: unable to exec /startapp.sh: No such file or directory

I think that there is something wrong with your image. Maybe try rebuilding without cache.

FYI, this issue was almost certainly caused by CRLF line endings in the .sh files.
You should add a .gitattributes file to compel git to preserve line endings in text files so that windows users can be happy.

Encountered this as well on Windows machine. Added .gitattributes file with just * binary inside to ensure line endings do not get changed. Then the server fired right up for me.