norimicry / stardew-multiplayer-docker

Run a Stardew Valley Multiplayer Server with docker-compose
94 stars 23 forks source link

[BUG]: Error loading shared library libdevmapper.so.1.02 #33

Closed Microfi closed 5 months ago

Microfi commented 5 months ago

Describe the bug I'm unable to build the container, following the instructions provided in the readme. Can anybody please point me in the right direction to have this solved?

To Reproduce Steps to reproduce the behavior:

Logs

=> => transferring context: 2.87kB                                                                     0.0s
 => ERROR [valley  2/18] RUN apt-get update && apt-get install -y wget unzip tar strace mono-complete   0.1s
------                                                                                                       
 > [valley  2/18] RUN apt-get update && apt-get install -y wget unzip tar strace mono-complete xterm gettext-base jq netcat procps lib32gcc-s1 && apt-get clean:                                                          
0.115 runc run failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 127, stdout: , stderr: Error loading shared library libdevmapper.so.1.02: No such file or directory (needed by libnetwork-setkey)                                                        
0.115 Error relocating libnetwork-setkey: dm_task_set_add_node: symbol not found
...

Desktop (please complete the following information):

norimicry commented 5 months ago

Can you provide more of the logs or is that it? That's an issue with the Debian container itself installing dependencies. Also what architecture of CPU are you using? This won't run on ARM.

Microfi commented 5 months ago

Thanks for the quick response! I'm running this on X64. Here are the full logs after the docker up:

alpine-docker:~/stardew-multiplayer-docker# docker compose -f docker-compose-steam.yml up
WARN[0000] The "STEAM_GUARD" variable is not set. Defaulting to a blank string. 
[+] Building 1.0s (6/22)                                                                      docker:default
 => [valley internal] load .dockerignore                                                                0.0s
 => => transferring context: 2B                                                                         0.0s
 => [valley internal] load build definition from Dockerfile-steam                                       0.0s
 => => transferring dockerfile: 2.76kB                                                                  0.0s
 => [valley internal] load metadata for docker.io/jlesage/baseimage-gui:debian-11                       0.8s
 => CACHED [valley  1/18] FROM docker.io/jlesage/baseimage-gui:debian-11@sha256:dbf3ef5bab5680c5b51f23  0.0s
 => [valley internal] load build context                                                                0.0s
 => => transferring context: 2.87kB                                                                     0.0s
 => ERROR [valley  2/18] RUN apt-get update && apt-get install -y wget unzip tar strace mono-complete   0.1s
------                                                                                                       
 > [valley  2/18] RUN apt-get update && apt-get install -y wget unzip tar strace mono-complete xterm gettext-base jq netcat procps lib32gcc-s1 && apt-get clean:                                                          
0.115 runc run failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 127, stdout: , stderr: Error loading shared library libdevmapper.so.1.02: No such file or directory (needed by libnetwork-setkey)                                                        
0.115 Error relocating libnetwork-setkey: dm_task_set_add_node: symbol not found
0.115 Error relocating libnetwork-setkey: dm_udev_get_sync_support: symbol not found
0.115 Error relocating libnetwork-setkey: dm_task_add_target: symbol not found
0.115 Error relocating libnetwork-setkey: dm_task_create: symbol not found
0.115 Error relocating libnetwork-setkey: dm_task_set_cookie: symbol not found
0.115 Error relocating libnetwork-setkey: dm_task_deferred_remove: symbol not found
0.115 Error relocating libnetwork-setkey: dm_cookie_supported: symbol not found
0.115 Error relocating libnetwork-setkey: dm_udev_set_sync_support: symbol not found
0.115 Error relocating libnetwork-setkey: dm_get_library_version: symbol not found
0.115 Error relocating libnetwork-setkey: dm_log_with_errno_init: symbol not found
0.115 Error relocating libnetwork-setkey: dm_task_get_info: symbol not found
0.115 Error relocating libnetwork-setkey: dm_get_next_target: symbol not found
0.115 Error relocating libnetwork-setkey: dm_udev_wait: symbol not found
0.115 Error relocating libnetwork-setkey: dm_set_dev_dir: symbol not found
0.115 Error relocating libnetwork-setkey: dm_task_set_sector: symbol not found
0.115 Error relocating libnetwork-setkey: dm_task_set_name: symbol not found
0.115 Error relocating libnetwork-setkey: dm_task_destroy: symbol not found
0.115 Error relocating libnetwork-setkey: dm_task_run: symbol not found
0.115 Error relocating libnetwork-setkey: dm_task_set_message: symbol not found
0.115 Error relocating libnetwork-setkey: dm_task_get_deps: symbol not found
0.115 Error relocating libnetwork-setkey: dm_task_get_driver_version: symbol not found
0.115 
------
failed to solve: process "/bin/sh -c apt-get update && apt-get install -y wget unzip tar strace mono-complete xterm gettext-base jq netcat procps lib32gcc-s1 && apt-get clean" did not complete successfully: exit code: 1
dlach524 commented 5 months ago

Try a fresh build before trying to bring up the container?

docker-compose -f docker-compose-steam.yml build --no-cache
Microfi commented 5 months ago

That actually did it. Thanks a lot for your help! I'm not able to connect to the server through WAN yet, even after forwarding port 24642, but I'll probably be able to figure that out still ...

norimicry commented 5 months ago

And you're forwarding port 24642 to the host of the container? If so, likely a networking issue and something out of scope of this project. Said you're running on Alpine to make sure to check your firewall if you're running one. I've only tested this on Windows and Debian and my Debian doesn't have ufw or anything.