vinanrra / Docker-7DaysToDie

7 days to die server using LinuxGSM in Docker with backups, monitor, auto-installable mods and more
GNU General Public License v3.0
236 stars 47 forks source link

[BUG] BEPINEX doesn't seem to install #94

Closed JonnySiHI closed 2 years ago

JonnySiHI commented 2 years ago

Hey, just need to start off by telling you how amazing and fun this is to have 7 days to die in a docker container! thanks alot!

I'm having an issue with BEPINEX, it doesn't seem to install. :(

Expected behaviour I would expect to see the BEPINEX files under server files, but nothing is showing.

Screenshots image

image

Versions:

Docker/Docker-compose

version: '2'
services:
  7dtdserver:
    image: vinanrra/7dtd-server
    container_name: 7dtdserverAOB1
    environment:
      - START_MODE=1 #Change between START MODES
      - VERSION=stable # Change between 7 days to die versions
      - PUID=1000 # Remember to use same as your user
      - PGID=1000 # Remember to use same as your user
      - TimeZone=Europe/London # Optional - Change Timezone
      - TEST_ALERT=NO # Optional - Send a test alert
      - ALLOC_FIXES=YES # Optional - Install ALLOC FIXES
      - ALLOC_FIXES_UPDATE=YES # Optional - Update Allocs Fixes before server start
      - UNDEAD_LEGACY=NO # Optional - Install Undead Legacy mod
      - UNDEAD_LEGACY_VERSION=stable # Optional - Undead Legacy version
      - UNDEAD_LEGACY_UPDATE=NO # Optional - Update Undead Legacy mod before server start
      - ENZOMBIES=NO # Optional - Install EnZombies mod
      - ENZOMBIES_ADDON_SNUFKIN # Optional - Install EnZombies addon mod
      - ENZOMBIES_ADDON_ROBELOTO # Optional - Install EnZombies addon mod
      - ENZOMBIES_ADDON_NONUDES # Optional - Install EnZombies addon mod
      - ENZOMBIES_UPDATE=NO # Optional - Update EnZombies mod and addons before server start
      - CPM=NO # Optional - CSMM Patron's Mod (CPM)
      - CPM_UPDATE=NO # Optional - Update BepInEx before server start
      - BEPINEX=YES # Optional - BepInEx
      - BEPINEX_UPDATE=YES # Optional - Update BepInEx before server start
      - BACKUP=NO # Optional - Backup server at 5 AM
      - MONITOR=NO # Optional - Keeps server up if crash
    volumes:
      - /volume1/7D2DAOB/7DaysToDie:/home/sdtdserver/.local/share/7DaysToDie/
      - /volume1/7D2DAOB/LGSM-Config:/home/sdtdserver/lgsm/config-lgsm/sdtdserver
      - /volume1/7D2DAOB/ServerFiles:/home/sdtdserver/serverfiles/ #Optional - serverfiles folder
      - /volume1/7D2DAOB/log:/home/sdtdserver/log/ #Optional, logs folder
      - /volume1/7D2DAOB/backups:/home/sdtdserver/lgsm/backup/ # Optional, if BAKCUP=NO, backups folder
    ports:
      - 27900:26900/tcp # Default game ports
      - 27900:26900/udp # Default game ports
      - 27901:26901/udp # Default game ports
      - 27902:26902/udp # Default game ports
      - 8180:8080/tcp # OPTIONAL - WEBADMIN
      - 8181:8081/tcp # OPTIONAL - TELNET
      - 8182:8082/tcp # OPTIONAL - WEBSERVER https://7dtd.illy.bz/wiki/Server%20fixes
    restart: unless-stopped # INFO - NEVER USE WITH START_MODE=4 or START_MODE=0

Additional context Add any other context about the problem here.

vinanrra commented 2 years ago

Tha latest docker image doesn't have the BepInEx yet, I will push an update

JonnySiHI commented 2 years ago

Thanks for the fast response! will this update come with Age of Oblivion?

vinanrra commented 2 years ago

Thanks for the fast response! will this update come with Age of Oblivion?

I just released an update next will be Darkness Fall, but I'm rly busy right now, so I don't know when I will be able to do it.

JonnySiHI commented 2 years ago

No worries, thank you!

vinanrra commented 2 years ago

No worries, thank you!

Did you try the new version? Should work, because was tested, but who knows

JonnySiHI commented 2 years ago

No worries, thank you!

Did you try the new version? Should work, because was tested, but who knows

Didn't work :( , i recreated the image within Portainer and told it to pull the latest image and still nothing :(

vinanrra commented 2 years ago

No worries, thank you!

Did you try the new version? Should work, because was tested, but who knows

Didn't work :( , i recreated the image within Portainer and told it to pull the latest image and still nothing :(

I had same problem with Portainer, you need to manually remove your downloaded image so Portainer will download the latest image, I just test it and works.

You will see this in logs:

[BepInEx] Downloading release from https://github.com/BepInEx/BepInEx/releases/download/v5.4.19/BepInEx_unix_5.4.19.0.zip
[BepInEx] Downloading files
[BepInEx] Extracting files
[BepInEx] Removing older version
[BepInEx] Installing components
[BepInEx] Editing run_bepinex.sh
[BepInEx] Editing executable_name
[BepInEx] Editing command last execution
[BepInEx] Fixing executable_type
[BepInEx] Replacing start parameters for LinuxGSM
[BepInEx] Replacing executable for LinuxGSM
[BepInEx] Applying executable permssions
[BepInEx] Cleanup
[BepInEx] Finished! ヽ(´▽`)/
JonnySiHI commented 2 years ago

No worries, thank you!

Did you try the new version? Should work, because was tested, but who knows

Didn't work :( , i recreated the image within Portainer and told it to pull the latest image and still nothing :(

I had same problem with Portainer, you need to manually remove your downloaded image so Portainer will download the latest image, I just test it and works.

You will see this in logs:

[BepInEx] Downloading release from https://github.com/BepInEx/BepInEx/releases/download/v5.4.19/BepInEx_unix_5.4.19.0.zip
[BepInEx] Downloading files
[BepInEx] Extracting files
[BepInEx] Removing older version
[BepInEx] Installing components
[BepInEx] Editing run_bepinex.sh
[BepInEx] Editing executable_name
[BepInEx] Editing command last execution
[BepInEx] Fixing executable_type
[BepInEx] Replacing start parameters for LinuxGSM
[BepInEx] Replacing executable for LinuxGSM
[BepInEx] Applying executable permssions
[BepInEx] Cleanup
[BepInEx] Finished! ヽ(´▽`)/

Yeah, i don't see that at all, and i have deleted everything and still no BepInEx

vinanrra commented 2 years ago

Okay, let's try this because I have tried the latest image and it works:

Remove the container Remove the image Change the image in your docker compose to: image: vinanrra/7dtd-server:v0.3.0

JonnySiHI commented 2 years ago

Strange, when I delete the outside directories it pulls fine and shows BepInEx. But I don't want to have to deleted my folders every time I need to update

vinanrra commented 2 years ago

Strange, when I delete the outside directories it pulls fine and shows BepInEx. But I don't want to have to deleted my folders every time I need to update

I didn't say remove the volumes, remove the container and the image, seems like Portainer it's doing something extrange

JonnySiHI commented 2 years ago

Strange, when I delete the outside directories it pulls fine and shows BepInEx. But I don't want to have to deleted my folders every time I need to update

I didn't say remove the volumes, remove the container and the image, seems like Portainer it's doing something extrange

Yeah i only did that after i tried your suggestion :). Yes very strange.

JonnySiHI commented 2 years ago

got it working by removing 1 file!!!! its called DON'T_REMOVE.txt , once i did that i restarted the container everything started to download appeared!! haha strange

image

Like wtf

vinanrra commented 2 years ago

I found your problem check this:

https://github.com/vinanrra/Docker-7DaysToDie/blob/master/docs/parameters.md#global

UPDATE_MODS=YES | This will allow mods to be installed/updated before server start

You were missing one environment, that was my bad wasn't in the docs :(

JonnySiHI commented 2 years ago

I found your problem check this:

https://github.com/vinanrra/Docker-7DaysToDie/blob/master/docs/parameters.md#global

UPDATE_MODS=YES | This will allow mods to be installed/updated before server start

You were missing one environment, that was my bad wasn't in the docs :(

Ah no worries, thanks :)