thorkseng / pi4valheim

experimental Docker file to run a Valheim server in a Raspberry Pi4
17 stars 12 forks source link

Problems on instalation raspi4 #5

Closed damasb closed 1 year ago

damasb commented 1 year ago

Hello, First of all thank you for your project I have a raspi4 8GB with "Debian GNU/Linux 11 (bullseye)"

I'm new to docker so I followed your instructions. at first hand I had a problem after steamcmd install i experienced this error "Error initializing native libSDL2-2.0.so.0 (last dlerror is libSDL2-2.0.so.0: cannot open shared object file: No such file or directory)" what I did was adding to the dockfile this "libsdl2-dev:armhf" after that I deleted the image and build again.

What happened was that at the very end it stopped here with this info "COPY failed: file not found in build context or excluded by .dockerignore: stat bootstrap: file does not exist" u can see the full logs here

then I run "docker run --rm --name valheim -p 2456-2458:2456-2458/udp -v /valheim_data:/root/valheim_data:rw --env-file env.world valheim-base" got the error "Unable to find image 'valheim-base:latest' locally"

So presume that it didn't "compiled the image until the end"

Thank you for the time

thorkseng commented 1 year ago

Hello!

Yes, the image didn't compiled until the end. You should see the images with the command "docker images". If you see untag builds, it didn't finish properly.

For the log errors you provide, the error is that you didn't have the bootstrap bash script in the same folder that you are building the image.

Step 28/29 : COPY bootstrap .
COPY failed: file not found in build context or excluded by .dockerignore: stat bootstrap: file does not exist

From the above log, it fails in the end of the dockerfile, step 28 of 29, docker tries to copy the bootstrap bash script to the image before building it, that's the reason that it fails. Try to build it correctly and try to get the server running, I hope it works :D

My recommendation is that you should clone the repository and then build the image with the next commands:

git clone https://github.com/thorkseng/pi4valheim
cd pi4valheim
docker build --no-cache --tag valheim-base -f Valheim.dockerfile .

Regards, Tranko.

damasb commented 1 year ago

so I tried again :) since beginning and the log now is different

log.txt

but I still can't connect to the server as if the port is not open (I configured the router too) shouldn't be appearing the ports LISTEN? lsof -i -P -n | grep :24 docker-pr 53901 root 4u IPv4 90661 0t0 UDP :2457 docker-pr 53909 root 4u IPv6 88924 0t0 UDP :2457 docker-pr 53922 root 4u IPv4 91464 0t0 UDP :2456 docker-pr 53928 root 4u IPv6 91466 0t0 UDP :2456

sorry for being

damasb commented 1 year ago

the problem was between the chair and computer... i thought it was only needed to configure port forwarding of udp but it's need the TCP too

sorry :)

great work

thorkseng commented 1 year ago

Don't worry. I remember the first times that I was very impatient and in the Pi4 it takes so long to have the server online. Also, I have read that there is a bug with the crossplay on linux, having problems with a library so, no all the times will be work.

Regards, Tranko.