mbround18 / valheim-docker

Valheim Docker powered by Odin. The Valheim dedicated gameserver manager which is designed with resiliency in mind by providing automatic updates, world backup support, and a user friendly cli interface.
https://hub.docker.com/r/mbround18/valheim
BSD 3-Clause "New" or "Revised" License
754 stars 80 forks source link

Failed to install mods #874

Open Opulis1 opened 3 weeks ago

Opulis1 commented 3 weeks ago

Whenever I try to run the container with BepinEx and a list of mods I get an error for not being able to install the mods. Happens with any mod I try to pass the URL to, not just this one. I even saw it happen with BepinEx itself before. Am I just doing something dumb?

i/o error: Operation not permitted (os error 1)

Sat Jun 15 10:14:39 AM EDT 2024 - Valheim Server - Sat Jun 15 10:14:39 AM EDT 2024
Sat Jun 15 10:14:39 AM EDT 2024 - Initializing your container...
steam
111
1000
America/Toronto

(standard_in) 1: syntax error
2024-06-15 10:14:39 - [Valheim][INFO]: Total memory: 125i GB
2024-06-15 10:14:39 - [Valheim][INFO]: Setting up file systems
usermod: no changes
2024-06-15 10:14:39 - [Valheim][INFO]: Configuring Preset Env
export ODIN_CONFIG_FILE="/home/steam/valheim/config.json"

export ODIN_DISCORD_FILE="/home/steam/valheim/discord.json"

export SAVE_LOCATION="/home/steam/.config/unity3d/IronGate/Valheim"

export MODS_LOCATION="/home/steam/staging/mods"

export GAME_LOCATION="/home/steam/valheim"

export BACKUP_LOCATION="/home/steam/backups"

export NAME="We at it again boyz again"

export PORT="2456"

export PUBLIC="1"

export ENABLE_CROSSPLAY="0"

export UPDATE_ON_STARTUP="0"

export PRESET="Normal"

export WEBHOOK_STATUS_SUCCESSFUL="1"

export WEBHOOK_STATUS_FAILED="1"

export AUTO_UPDATE="0"

export AUTO_BACKUP="0"

export AUTO_BACKUP_REMOVE_OLD="1"

export AUTO_BACKUP_DAYS_TO_LIVE="3"

export AUTO_BACKUP_ON_UPDATE="0"

export AUTO_BACKUP_ON_SHUTDOWN="0"

export AUTO_BACKUP_PAUSE_WITH_NO_PLAYERS="0"

export AUTO_BACKUP_SCHEDULE="*/15 * * * *"

export BEPINEX_RELEASES_URL="https://thunderstore.io/api/experimental/package/denikson/BepInExPack_Valheim/"

export SCHEDULED_RESTART_SCHEDULE="0 2 * * *"

export WORLD="Boyzz"

export TYPE="BepInEx"

export MODS="https://gcdn.thunderstore.io/live/repository/packages/KGvalheim-MagicHeim-1.3.4.zip,https://cf-files.nexusmods.com/cdn/3667/1356/Extended%20Player%20Inventory-1356-0-9-1-1699895544.zip?md5=CRgWhF2gwoCL8foY2BVvzA&expires=1717649591&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/1356/Extended%20Player%20Inventory-1356-0-9-1-1699895544.zip?md5=CRgWhF2gwoCL8foY2BVvzA&expires=1717649591&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/577/Movable%20Inventory%20Windows-577-0-3-0-1692820039.zip?md5=bNpkqRayUNINUinv8npXxQ&expires=1717649559&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/556/Veinmine%201.3.0-556-1-3-0-1716178232.zip?md5=oRze8aPIRS9Q5i-IBCzvBw&expires=1717650269&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/2239/XPortal-2239-1-2-21-1716149259.zip?md5=ZypLi3p6EA0fwvUeokVFXw&expires=1717650256&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/1455/Valheim_Armory%20-%201.9.3-1455-1-9-3-1717380230.zip?md5=KTMe7IQFKdrEO6GoLuoe8Q&expires=1717650236&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/1042/Plant%20Everything-1042-1-18-0-1716635956.zip?md5=zbvABsCwdSj2J3iJP1sA9w&expires=1717650178&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/40/Craft%20From%20Containers-40-3-5-1-1699974180.zip?md5=wR0S05NKW-7sl3ybCW4RNw&expires=1717650167&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/2039/AutomaticFuel-2039-1-4-1-1715813228.zip?md5=taW8RYqTdiZdPkDcbjpmLA&expires=1717650148&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/1138/Jotunn-1138-2-20-1-1716743552.zip?md5=LBopbeaLFfnP1SiB7S1NXQ&expires=1717649915&user_id=46652328"

export TZ="America/Toronto"

export PUID="1000"

export PGID="1000"

2024-06-15 10:14:39 - [Valheim][INFO]: Preset Env Configured
2024-06-15 10:14:39 - [Valheim][INFO]: Navigating to steam home...
2024-06-15 10:14:39 - [Valheim][INFO]: Launching server...
2024-06-15 10:14:39 - [Valheim][INFO]: -------------------------------------------------------------
2024-06-15 10:14:39 - [Valheim][INFO]: Valheim Server - Sat Jun 15 10:14:39 AM EDT 2024
2024-06-15 10:14:39 - [Valheim][INFO]: STEAM_UID 1000 - STEAM_GID 1000
2024-06-15 10:14:39 - [Valheim][INFO]: Installing Valheim via odin 2.1.0...
2024-06-15 10:14:39 - [Valheim][INFO]: -------------------------------------------------------------
2024-06-15 10:14:39 - [Valheim][INFO]: Variables loaded.....
2024-06-15 10:14:39 - [Valheim][INFO]: Port: 2456
2024-06-15 10:14:39 - [Valheim][INFO]: Name: We at it again boyz again
2024-06-15 10:14:39 - [Valheim][INFO]: World: Boyzz
2024-06-15 10:14:39 - [Valheim][INFO]: Public: 1
2024-06-15 10:14:39 - [Valheim][INFO]: With Crossplay: 0
2024-06-15 10:14:39 - [Valheim][INFO]: Password: (REDACTED)
2024-06-15 10:14:39 - [Valheim][INFO]: Preset: Normal
2024-06-15 10:14:39 - [Valheim][INFO]: Modifiers: 
2024-06-15 10:14:39 - [Valheim][INFO]: Set Key: 
2024-06-15 10:14:39 - [Valheim][INFO]: Has Webhook: false
2024-06-15 10:14:39 - [Valheim][INFO]: Auto Update: 0
2024-06-15 10:14:39 - [Valheim][INFO]: Auto Backup: 0
2024-06-15 10:14:39 - [Valheim][INFO]: Auto Backup On Update: 0
2024-06-15 10:14:39 - [Valheim][INFO]: Auto Backup On Shutdown: 0
2024-06-15 10:14:39 - [Valheim][INFO]: Auto Backup Pause With No Players: 0
2024-06-15 10:14:39 - [Valheim][INFO]: Auto Backup Pause With Players: 
2024-06-15 10:14:39 - [Valheim][INFO]: Auto Backup Remove Old: 1
2024-06-15 10:14:39 - [Valheim][INFO]: Auto Backup Days To Live: 3
2024-06-15 10:14:39 - [Valheim][INFO]: Auto Backup Nice Level: 
2024-06-15 10:14:39 - [Valheim][INFO]: Update On Startup: 0
2024-06-15 10:14:39 - [Valheim][INFO]: Mods: https://gcdn.thunderstore.io/live/repository/packages/KGvalheim-MagicHeim-1.3.4.zip,https://cf-files.nexusmods.com/cdn/3667/1356/Extended%20Player%20Inventory-1356-0-9-1-1699895544.zip?md5=CRgWhF2gwoCL8foY2BVvzA&expires=1717649591&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/1356/Extended%20Player%20Inventory-1356-0-9-1-1699895544.zip?md5=CRgWhF2gwoCL8foY2BVvzA&expires=1717649591&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/577/Movable%20Inventory%20Windows-577-0-3-0-1692820039.zip?md5=bNpkqRayUNINUinv8npXxQ&expires=1717649559&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/556/Veinmine%201.3.0-556-1-3-0-1716178232.zip?md5=oRze8aPIRS9Q5i-IBCzvBw&expires=1717650269&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/2239/XPortal-2239-1-2-21-1716149259.zip?md5=ZypLi3p6EA0fwvUeokVFXw&expires=1717650256&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/1455/Valheim_Armory%20-%201.9.3-1455-1-9-3-1717380230.zip?md5=KTMe7IQFKdrEO6GoLuoe8Q&expires=1717650236&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/1042/Plant%20Everything-1042-1-18-0-1716635956.zip?md5=zbvABsCwdSj2J3iJP1sA9w&expires=1717650178&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/40/Craft%20From%20Containers-40-3-5-1-1699974180.zip?md5=wR0S05NKW-7sl3ybCW4RNw&expires=1717650167&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/2039/AutomaticFuel-2039-1-4-1-1715813228.zip?md5=taW8RYqTdiZdPkDcbjpmLA&expires=1717650148&user_id=46652328,https://cf-files.nexusmods.com/cdn/3667/1138/Jotunn-1138-2-20-1-1716743552.zip?md5=LBopbeaLFfnP1SiB7S1NXQ&expires=1717649915&user_id=46652328
2024-06-15 10:14:39 - [Valheim][INFO]: -------------------------------------------------------------
2024-06-15 10:14:39 - [Valheim][INFO]: Running Install...
2024-06-15 10:14:39 - [Valheim][INFO]: Skipping install process, looks like valheim_server is already installed :)
2024-06-15 10:14:39 - [Valheim][INFO]: Initializing Variables....
[ODIN][INFO]: Checking directory permissions: "/home/steam/valheim"
[ODIN][INFO]: Checking directory permissions: "/home/steam/scripts"
[ODIN][INFO]: Checking file permissions: "/home/steam/.bashrc"
[ODIN][INFO]: Successfully written /home/steam/valheim/config.json
2024-06-15 10:14:39 - [Valheim][INFO]: Checking for TYPE flag
2024-06-15 10:14:39 - [Valheim][INFO]: Found Type BepInEx
2024-06-15 10:14:39 - [Valheim][INFO]: Running with BepInEx Valheim <3
2024-06-15 10:14:39 - [Valheim][INFO]: Installing BepInEx
2024-06-15 10:14:39 - [Valheim][INFO]: Fetching BepInEx download URL...
2024-06-15 10:14:39 - [Valheim][INFO]: BepInEx Releases URL: https://thunderstore.io/api/experimental/package/denikson/BepInExPack_Valheim/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1105  100  1105    0     0   3884      0 --:--:-- --:--:-- --:--:--  3877
2024-06-15 10:14:40 - [Valheim][INFO]: Pulling BepInEx from https://thunderstore.io/package/download/denikson/BepInExPack_Valheim/5.4.2202/
[ODIN][INFO]: Installing https://thunderstore.io/package/download/denikson/BepInExPack_Valheim/5.4.2202/
[ODIN][INFO]: Installing Framework...
[ODIN][ERROR]: Failed to install: https://gcdn.thunderstore.io/live/repository/packages/denikson-BepInExPack_Valheim-5.4.2202.zip
Downloaded Archive: "/home/steam/staging/mods/denikson-BepInExPack_Valheim-5.4.2202.zip"
i/o error: Operation not permitted (os error 1)
Genda1ph commented 3 weeks ago

Yup, seeing the same thing, trying to troubleshoot. @Opulis1 might want to edit out the export PASSWORD line.

Genda1ph commented 3 weeks ago

It appears that PUID is not applying correctly:

2024-06-15 17:06:35 - [Valheim][INFO]: BepInEx Releases URL: https://thunderstore.io/api/experimental/package/denikson/BepInExPack_Valheim/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1105  100  1105    0     0   8846      0 --:--:-- --:--:-- --:--:--  8911
2024-06-15 17:06:35 - [Valheim][INFO]: Pulling BepInEx from https://thunderstore.io/package/download/denikson/BepInExPack_Valheim/5.4.2202/
[ODIN][INFO]: Installing https://thunderstore.io/package/download/denikson/BepInExPack_Valheim/5.4.2202/
[ODIN][INFO]: Installing Framework...
[ODIN][ERROR]: Failed to install: https://gcdn.thunderstore.io/live/repository/packages/denikson-BepInExPack_Valheim-5.4.2202.zip
Downloaded Archive: "/home/steam/staging/mods/denikson-BepInExPack_Valheim-5.4.2202.zip"
i/o error: Operation not permitted (os error 1)
steam@2deec1c561e1:~$ ls ~/staging/mods/
denikson-BepInExPack_Valheim-5.4.2202.zip
steam@2deec1c561e1:~$ ls ~/valheim/ -l
total 37847
-rw-r--r-- 1 steam steam      259 Jun 15 17:06  config.json
-rw-r--r-- 1 steam steam      912 Jun 15 17:06  discord.json
drwxr-xr-x 2 steam steam        4 Jun 15 17:06  docker
-rwxr-xr-x 1 steam steam      526 Jun 15 17:04  docker_start_server.sh
drwxr-xr-x 2 steam steam        3 Jun 15 17:06  linux64
drwxrwxr-x 2  1000 steam        2 Jun 15 17:03  logs
-rwxr-xr-x 1 steam steam      597 Jun 15 17:04  start_server.sh
-rwxr-xr-x 1 steam steam       46 Jun 15 17:04  start_server_xterm.sh
-rwxr-xr-x 1 steam steam        7 Jun 15 17:04  steam_appid.txt
drwxr-xr-x 4 steam steam        5 Jun 15 17:06  steamapps
-rwxr-xr-x 1 steam steam 40226316 Jun 15 17:04  steamclient.so
-rwxr-xr-x 1 steam steam 30881936 Jun 15 17:04  UnityPlayer.so
-rwxr-xr-x 1 steam steam   180385 Jun 15 17:04 'Valheim Dedicated Server Manual.pdf'
drwxr-xr-x 7 steam steam       16 Jun 15 17:06  valheim_server_Data
-rwxr-xr-x 1 steam steam    14800 Jun 15 17:04  valheim_server.x86_64
steam@2deec1c561e1:~$ id
uid=111(steam) gid=1000(steam) groups=1000(steam)
steam@2deec1c561e1:~$ echo $PUID $PGID
1000 1000

However if you set PUID=111 the server seems to work.

Opulis1 commented 3 weeks ago

Yup, seeing the same thing, trying to troubleshoot. @Opulis1 might want to edit out the export PASSWORD line.

Thanks. I removed it but its just a random temp password for while testing.

Opulis1 commented 3 weeks ago

It appears that PUID is not applying correctly:

2024-06-15 17:06:35 - [Valheim][INFO]: BepInEx Releases URL: https://thunderstore.io/api/experimental/package/denikson/BepInExPack_Valheim/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1105  100  1105    0     0   8846      0 --:--:-- --:--:-- --:--:--  8911
2024-06-15 17:06:35 - [Valheim][INFO]: Pulling BepInEx from https://thunderstore.io/package/download/denikson/BepInExPack_Valheim/5.4.2202/
[ODIN][INFO]: Installing https://thunderstore.io/package/download/denikson/BepInExPack_Valheim/5.4.2202/
[ODIN][INFO]: Installing Framework...
[ODIN][ERROR]: Failed to install: https://gcdn.thunderstore.io/live/repository/packages/denikson-BepInExPack_Valheim-5.4.2202.zip
Downloaded Archive: "/home/steam/staging/mods/denikson-BepInExPack_Valheim-5.4.2202.zip"
i/o error: Operation not permitted (os error 1)
steam@2deec1c561e1:~$ ls ~/staging/mods/
denikson-BepInExPack_Valheim-5.4.2202.zip
steam@2deec1c561e1:~$ ls ~/valheim/ -l
total 37847
-rw-r--r-- 1 steam steam      259 Jun 15 17:06  config.json
-rw-r--r-- 1 steam steam      912 Jun 15 17:06  discord.json
drwxr-xr-x 2 steam steam        4 Jun 15 17:06  docker
-rwxr-xr-x 1 steam steam      526 Jun 15 17:04  docker_start_server.sh
drwxr-xr-x 2 steam steam        3 Jun 15 17:06  linux64
drwxrwxr-x 2  1000 steam        2 Jun 15 17:03  logs
-rwxr-xr-x 1 steam steam      597 Jun 15 17:04  start_server.sh
-rwxr-xr-x 1 steam steam       46 Jun 15 17:04  start_server_xterm.sh
-rwxr-xr-x 1 steam steam        7 Jun 15 17:04  steam_appid.txt
drwxr-xr-x 4 steam steam        5 Jun 15 17:06  steamapps
-rwxr-xr-x 1 steam steam 40226316 Jun 15 17:04  steamclient.so
-rwxr-xr-x 1 steam steam 30881936 Jun 15 17:04  UnityPlayer.so
-rwxr-xr-x 1 steam steam   180385 Jun 15 17:04 'Valheim Dedicated Server Manual.pdf'
drwxr-xr-x 7 steam steam       16 Jun 15 17:06  valheim_server_Data
-rwxr-xr-x 1 steam steam    14800 Jun 15 17:04  valheim_server.x86_64
steam@2deec1c561e1:~$ id
uid=111(steam) gid=1000(steam) groups=1000(steam)
steam@2deec1c561e1:~$ echo $PUID $PGID
1000 1000

However if you set PUID=111 the server seems to work.

This worked for me. Thanks!

mbround18 commented 2 weeks ago

This is part of the breaking changes release notes in 3.0.0 https://github.com/mbround18/valheim-docker/releases/tag/v3.0.0

Genda1ph commented 2 weeks ago

maybe update README.md to note that PUID is deprecated?

mbround18 commented 2 weeks ago

maybe update README.md to note that PUID is deprecated?

I can add this yes, I will work on this later after I'm done with some home stuff.