Git Product home page Git Product logo

valheimdocker's People

Contributors

bearlikelion avatar canadabry avatar syslab64 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

valheimdocker's Issues

Immediately stops without error message

Hi, thanks for the repo!

When using the compose file that container stops pretty quickly. I don't really see any related error message or so.

These are the logs:

valheim    | WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
valheim    | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
valheim    | [  0%] Checking for available updates...
valheim    | [----] Verifying installation...
valheim    | Steam Console Client (c) Valve Corporation
valheim    | -- type 'quit' to exit --
valheim    | Loading Steam API...OK.
valheim    |
valheim    | Connecting anonymously to Steam Public...Logged in OK
valheim    | Waiting for user info...OK
valheim    | Success! App '896660' already up to date.
valheim    | Found path: /home/steam/server_data/valheim_server.x86_64
valheim    | Mono path[0] = '/home/steam/server_data/valheim_server_Data/Managed'
valheim    | Mono config path = '/home/steam/server_data/valheim_server_Data/MonoBleedingEdge/etc'
valheim    | Preloaded 'libsteam_api.so'
valheim    | Initialize engine version: 2019.4.16f1 (e05b6e02d63e)
valheim    | [Subsystems] Discovering subsystems at path /home/steam/server_data/valheim_server_Data/UnitySubsystems
valheim    | Forcing GfxDevice: Null
valheim    | GfxDevice: creating device client; threaded=0
valheim    | NullGfxDevice:
valheim    |     Version:  NULL 1.0 [1.0]
valheim    |     Renderer: Null Device
valheim    |     Vendor:   Unity Technologies
valheim    | Begin MonoManager ReloadAssembly
valheim    | - Completed reload, in  0.136 seconds
valheim    | UnloadTime: 1.197328 ms
valheim    | 02/07/2021 09:26:10: Starting to load scene:start
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | Couldn't create a Convex Mesh from source mesh "RearBig" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh.
valheim    | (Filename:  Line: 91)
valheim    |
valheim    | WARNING: Shader Unsupported: 'Autodesk Interactive' - All passes removed
valheim    | WARNING: Shader Did you use #pragma only_renderers and omit this platform?
valheim    | HDR Render Texture not supported, disabling HDR on reflection probe.
valheim    | (Filename:  Line: 277)
valheim    |
valheim    | HDR Render Texture not supported, disabling HDR on reflection probe.
valheim    | (Filename:  Line: 277)
valheim    |
valheim    | Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
valheim    | UnloadTime: 4.256855 ms
valheim    | Only custom filters can be played. Please add a custom filter or an audioclip to the audiosource (Amb_MainMenu).
valheim    | (Filename:  Line: 509)
valheim    |
valheim    | HDR Render Texture not supported, disabling HDR on reflection probe.
valheim    | (Filename:  Line: 277)
valheim    |
valheim    | Initializing Google Analytics 0.2.
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/07/2021 09:26:19: Initializing world generator seed: ( 0 )   menu:True  worldgen version:1
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/07/2021 09:26:19: Using mountain distance: 1000
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/07/2021 09:26:19: Render threading mode:SingleThreaded
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/07/2021 09:26:19: Get create world Dedicated
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/07/2021 09:26:19: Lines 1719
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/07/2021 09:26:19: Missing translation for NOT USED tutorial_stemple3_label
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/07/2021 09:26:19: Missing translation for NOT USED tutorial_stemple3_text
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/07/2021 09:26:19: Loaded localization English
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/07/2021 09:26:19: Error bad password:The password is too short
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/07/2021 09:26:19: Missing audio clip in music respawn
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/07/2021 09:26:19: Builder started
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    |
valheim    | Unloading 16 unused Assets to reduce memory usage. Loaded Objects now: 85914.
valheim    | Total: 49.621900 ms (FindLiveObjects: 3.409252 ms CreateObjectMapping: 8.305745 ms MarkObjects: 37.609212 ms  DeleteObjects: 0.297048 ms)
valheim    |
valheim    | Setting up 4 worker threads for Enlighten.
valheim    |   Thread -> id: 7faa2e455700 -> priority: 1
valheim    |   Thread -> id: 7faa2dc54700 -> priority: 1
valheim    |   Thread -> id: 7faa2d453700 -> priority: 1
valheim    |   Thread -> id: 7faa2cc52700 -> priority: 1
valheim exited with code 0

I don't understand why it exits. The volumes can be written to, they contain files. Do you know what's wrong?

Cheers

Server quits unexpectedly

The docker container keeps quitting unexpectedly shutting down the entire server mid game play.

valheim    | 02/13/2021 01:40:37: World saved ( 186.063ms )
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/13/2021 01:50:37:  Connections 0 ZDOS:22543  sent:0 recv:0
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
valheim    |
valheim    | Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 1116466.
valheim    | Total: 591.956700 ms (FindLiveObjects: 133.571200 ms CreateObjectMapping: 32.565600 ms MarkObjects: 424.555600 ms  DeleteObjects: 1.262700 ms)
valheim    | 02/13/2021 01:55:20: Game - OnApplicationQuit
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/13/2021 01:55:20: ZNet Shutdown
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/13/2021 01:55:20: clone 84
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/13/2021 01:55:20: Saved 22543 zdos
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/13/2021 01:55:20: World saved ( 221.542ms )
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/13/2021 01:55:20: Sending disconnect msg
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/13/2021 01:55:21: Disposing socket
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/13/2021 01:55:21: Closing socket 0
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/13/2021 01:55:21: Last socket, unregistering callback
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/13/2021 01:55:21: ZSteamSocket  UnregisterGlobalCallbacks, existing sockets:0
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | Setting up 4 worker threads for Enlighten.
valheim    |   Thread -> id: 7fb980be2700 -> priority: 1
valheim    |   Thread -> id: 7fb955ffd700 -> priority: 1
valheim    |   Thread -> id: 7fb9557fc700 -> priority: 1
valheim    |   Thread -> id: 7fb954ffb700 -> priority: 1
valheim    | 02/13/2021 01:55:22: ZNet OnDestroy
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/13/2021 01:55:22: Net scene destroyed
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim    | 02/13/2021 01:55:22: Steam manager on destroy
valheim    |
valheim    | (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
valheim    |
valheim exited with code 0

Disk write failure

Hi thanks for your work.
Just tried to launch it and docker logs returns :

Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Downloading update (0 of 16403 KB)...
[  0%] Downloading update (636 of 16403 KB)...
[  3%] Downloading update (2559 of 16403 KB)...
[ 15%] Downloading update (4646 of 16403 KB)...
[ 28%] Downloading update (5868 of 16403 KB)...
[ 35%] Downloading update (7095 of 16403 KB)...
[ 43%] Downloading update (8316 of 16403 KB)...
[ 50%] Downloading update (9543 of 16403 KB)...
[ 58%] Downloading update (10900 of 16403 KB)...
[ 66%] Downloading update (12122 of 16403 KB)...
[ 73%] Downloading update (13355 of 16403 KB)...
[ 81%] Downloading update (14606 of 16403 KB)...
[ 89%] Downloading update (15845 of 16403 KB)...
[ 96%] Downloading update (16403 of 16403 KB)...
[100%] Download complete.
[----] Installing update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.

Connecting anonymously to Steam Public...Logged in OK
Waiting for user info...OK
ERROR! Failed to install app '896660' (Disk write failure)
cp: cannot create regular file '/home/steam/server_data/steamclient.so': Permission denied
/home/steam/server_scripts/server.sh: line 25: /home/steam/server_data/valheim_server.x86_64: No such file or directory
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.

Connecting anonymously to Steam Public...Logged in OK
Waiting for user info...OK
ERROR! Failed to install app '896660' (Disk write failure)
cp: cannot create regular file '/home/steam/server_data/steamclient.so': Permission denied
/home/steam/server_scripts/server.sh: line 25: /home/steam/server_data/valheim_server.x86_64: No such file or directory

May you help me ? :)

Disk Failure #2

Opening a new issue as all files changed.

image

Inside valheim directory

image

docker-compose.yml :

version: '3.3'
services:
    valheim:
        image: wilso224/valheim_dedicated_server
        container_name: valheim
        volumes:
            - '/home/holory/apps/valheim_sever/valheim:/home/steam/valheim'
        ports:
            - '2456:2456/udp'
            - '2457:2457/udp'
            - '2458:2458/udp'
        environment:
            - SERVER_NAME=Holory
            - SERVER_PORT=2456
            - SERVER_PASSWORD=morycorp
            - SERVER_WORLD=Holory
            - PUID=1000
            - PGID=1000

Dockerfile :

FROM debian:buster

# download requirements
RUN apt-get -y update && \
    apt-get -y install lib32gcc1 lib32stdc++6 curl && \
    apt-get clean && \
    rm -rf /var/lib/{apt,dpkg,cache,log}/

# setup steam user
RUN useradd -m steam
WORKDIR /home/steam

COPY server.sh .

# download steamcmd
RUN mkdir steamcmd && cd steamcmd && \
    curl "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -

# start steamcmd to force it to update itself
RUN ./steamcmd/steamcmd.sh +quit && \
    mkdir -pv /home/steam/.steam/sdk32/ && \
    ln -s /home/steam/steamcmd/linux32/steamclient.so /home/steam/.steam/sdk32/steamclient.so

# start the server main script
ENTRYPOINT ["bash", "/home/steam/server.sh"]

server.sh

#!/bin/bash

PUID=${PUID:-1000}
PGID=${PGID:-1000}

usermod -u ${PUID} steam
groupmod -g ${PGID} steam
su -s /bin/bash -c 'id' steam

# update server's data
/home/steam/steamcmd/steamcmd.sh \
	    +login anonymous \
	        +force_install_dir /home/steam/valheim/server \
		    +app_update 896660 \
		        +exit

#Copy 64bit steamclient, since it keeps using 32bit
cp /home/steam/steamcmd/linux64/steamclient.so /home/steam/valheim/server/

#Apply default values for server if not set
SERVER_NAME=${SERVER_NAME:-My\ server}
SERVER_PORT=${SERVER_PORT:-2456}
SERVER_WORLD=${SERVER_WORLD:-Dedicated}
SERVER_PASSWORD=${SERVER_PASSWORD:-secret}

#Launch server
export LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH
export SteamAppId=892970
/home/steam/valheim/server/valheim_server.x86_64 -name "$SERVER_NAME" -port $SERVER_PORT -world "$SERVER_WORLD" -password "$SERVER_PASSWORD" -savedir "/home/steam/valheim/data" -public 1 &

#Trap Container Stop for graceful exit
trap "kill -SIGINT $!;" SIGTERM

#Wait for server to exit
while wait $!; [ $? != 0 ]; do true; done

Please tell me what I am doing wrong @CanadaBry @InB4DevOps

Get logs to a file

hey, I modiifed the server.sh by just addind > log & so logs of the server would be accessible through a direct text file instead of using docker logs. But it seems that this file isn't' created at all. Have you an idea ? Thanks

Game server connected but not visible online?

Hey mate,

Pulled the image and installed without any issues. Logs show Game server connected and I don't seem to find any errors but for some reason not able to see the server online.

Ports forwarded, not even able to connect directly via server browser. Have you had this issue before?

Fatal Error: Steamcmd needs to be online to update

Hi,

I used this docker container a few weeks ago with no problems. I just pulled the latest image (and created a new /opt/valheim folder as I see things have moved around). The server now starts like this:

2021-02-19T10:18:56+00:00 docker valheim-server[372]: WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work. 2021-02-19T10:18:56+00:00 docker valheim-server[372]: Redirecting stderr to '/home/steam/Steam/logs/stderr.txt' 2021-02-19T10:18:56+00:00 docker valheim-server[372]: [ 0%] Checking for available updates... 2021-02-19T10:18:56+00:00 docker valheim-server[372]: KeyValues Error: LoadFromBuffer: missing { (current key: '<!DOCTYPE') in file manifest [offset: 14] 2021-02-19T10:18:56+00:00 docker valheim-server[372]: 2021-02-19T10:18:56+00:00 docker valheim-server[372]: src/tier1/KeyValues.cpp (3000) : Assertion Failed: Error while parsing text KeyValues for resource manifest 2021-02-19T10:18:56+00:00 docker valheim-server[372]: [----] Verifying installation... 2021-02-19T10:18:56+00:00 docker valheim-server[372]: [ 0%] Downloading update... 2021-02-19T10:18:56+00:00 docker valheim-server[372]: [ 0%] Checking for available updates... 2021-02-19T10:18:56+00:00 docker valheim-server[372]: KeyValues Error: LoadFromBuffer: missing { (current key: '<!DOCTYPE') in file manifest [offset: 14] 2021-02-19T10:18:56+00:00 docker valheim-server[372]: 2021-02-19T10:18:57+00:00 docker valheim-server[372]: src/tier1/KeyValues.cpp (3000) : Assertion Failed: Error while parsing text KeyValues for resource manifest 2021-02-19T10:18:57+00:00 docker valheim-server[372]: [----] !!! Fatal Error: Steamcmd needs to be online to update. Please confirm your network connection and try again. 2021-02-19T10:18:57+00:00 docker valheim-server[372]: src/tier0/threadtools.cpp (3659) : Assertion Failed: Illegal termination of worker thread 'Thread(0x0x56d47f10/0x0xf7bd0b' 2021-02-19T10:18:57+00:00 docker valheim-server[372]: /home/steam/server_scripts/server.sh: line 25: /home/steam/server_data/valheim_server.x86_64: Not a directory
The issue about Steamcmd needs to be online to update seems to be a redherring - if I gain shell access to the running container, I can ping external servers no problem, so the container has network access.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.