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
/backupmanager.sh not found #42
Comments
Hey @kernohad could you please do a clean new fresh install with the latest image forcefully pulled and a fresh docker-compose? |
I tried it all again with a fresh copy of your image from the hub, and the backup is working. So it appears to be an issue with me building the image myself. Any pointers? |
Glad to hear that 😄
Im not sure what you mean by that, English is not my native language, could you please elaborate on* this? I dont understand. |
At first I copied the Dockerfile you have in the repo and was running It appears when I build the image locally, it fails to backup. I made sure to copy the latest Dockerfile you had with the Supercronic and chmod=777 for the backupmanager.sh ; still seemed to give me issues. It is working now using the image from docker hub, but I am more just curious now if I can get it working by building the image locally. |
I have the same issue when building myself. It seems to be some kind of permissions issue. I haven't looked into it too closely. docker-compose.ymlversion: '3.9'
services:
palworld-dedicated-server:
build: .
container_name: palworld-dedicated-server
# image: jammsen/palworld-dedicated-server:latest
restart: always
network_mode: bridge
ports:
- target: 8211 # gamerserver port inside of the container
published: 8211 # gamerserver port on your host
protocol: udp
mode: host
- target: 25575 # rcon port inside of the container
published: 25575 # rcon port on your host
protocol: tcp
mode: host
environment:
- ALWAYS_UPDATE_ON_START=true
- MAX_PLAYERS=32
- MULTITHREAD_ENABLED=true
- COMMUNITY_SERVER=true
- RCON_ENABLED=true
- RCON_PORT=25575
- PUBLIC_IP=10.0.0.5
- PUBLIC_PORT=8211
- SERVER_NAME=jammsen-docker-generated-###RANDOM###
- SERVER_DESCRIPTION=Palworld-Dedicated-Server running in Docker by jammsen
- SERVER_PASSWORD=serverPasswordHere
- ADMIN_PASSWORD=adminPasswordHere
- BACKUP_ENABLED=true
- BACKUP_CRON_EXPRESSION=0 * * * *
volumes:
- palworld:/palworld
volumes:
palworld: logs
|
I ran into this issue, running |
I have these two lines in the Dockerfile, like the one from the repo. Is this what you mean or something else?
|
A work around is to add the following after the volume creation ( Note that I haven't tested if having steam own /palworld will cause any issues. ...
USER root
# Create the directory and change permissions
RUN mkdir -p /palworld && \
chown -R steam:steam /palworld && \
chmod -R 775 /palworld
USER steam
... |
Ah gotcha. I am curious as to how @jammsen got the image to work fine with the docker file in the repo; without doing this workaround that is. |
@kernohad - Please go ahead and use my image on docker-hub that way you get always the latest stuff the easy way. Why its not working for you im not sure, because i dont know your setup. Its really bare-minimal (almost wrote bare-metal 🤣), because i want it to be similar then a fresh ubuntu/debian install with just 1 user and UID/GID 1000 for it. Thats like the 90% percentile solution for most people i know.
This is acutally what docker install does with this me switching to USER steam and den defining the volume ... Its weird, that you guys need that. What Docker-Version do you guys have?! Im running on 3-5 days old 25.0.0 (docker-node) and 24.0.7 (WSL2-Docker-Desktop) and everything is working perfectly.
ME AS WELL, can we make a Discord CALL please? |
I customized #45 a bit but added it earlier today. Im closing this issue as resolved, feel free to try it out and reopen again if needed. If you like this project, please consider giving this repo and the docker-hub-repo a Star. |
Have you read the Important information text above
Current behavior
When the backupmanager cron job kicks off, it fails to find /backupmanager.sh
Desired behavior
backupmanager script can be found and backs up as expected.
Links to screenshots
No response
To Reproduce
Steps to reproduce the behavior:
Software setup
Hardware setup
Additional context
I have attempted to build the image myself as well as use your image.
The text was updated successfully, but these errors were encountered: