Skip to content
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

Server Doesn't Start #45

Closed
cnuland opened this issue Feb 11, 2021 · 6 comments
Closed

Server Doesn't Start #45

cnuland opened this issue Feb 11, 2021 · 6 comments

Comments

@cnuland
Copy link

cnuland commented Feb 11, 2021

The container has been running in my k8s cluster for a couple of hours now and I haven't seen the game sever is ready message, so I'm thinking it might be hung at this point. I'm also seeing an error message when creating a dedicated server at the beginning 02/10/2021 23:27:09: failed to load Dedicated. Was curious if anything stood out or any other way I could debug the container, Here is the contents of output.log,

# cat output.log
Found path: /home/steam/valheim/valheim_server.x86_64
Mono path[0] = '/home/steam/valheim/valheim_server_Data/Managed'
Mono config path = '/home/steam/valheim/valheim_server_Data/MonoBleedingEdge/etc'
Preloaded 'libsteam_api.so'
Unable to load player prefs
Initialize engine version: 2019.4.16f1 (e05b6e02d63e)
[Subsystems] Discovering subsystems at path /home/steam/valheim/valheim_server_Data/UnitySubsystems
Forcing GfxDevice: Null
GfxDevice: creating device client; threaded=0
NullGfxDevice:
    Version:  NULL 1.0 [1.0]
    Renderer: Null Device
    Vendor:   Unity Technologies
Begin MonoManager ReloadAssembly
- Completed reload, in  0.567 seconds
UnloadTime: 3.667096 ms
02/10/2021 23:26:51: Starting to load scene:start
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

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. 
(Filename:  Line: 91)

WARNING: Shader Unsupported: 'Autodesk Interactive' - All passes removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
HDR Render Texture not supported, disabling HDR on reflection probe. 
(Filename:  Line: 277)

HDR Render Texture not supported, disabling HDR on reflection probe. 
(Filename:  Line: 277)

UnloadTime: 6.509940 ms
Only custom filters can be played. Please add a custom filter or an audioclip to the audiosource (Amb_MainMenu). 
(Filename:  Line: 509)

HDR Render Texture not supported, disabling HDR on reflection probe. 
(Filename:  Line: 277)

Initializing Google Analytics 0.2. 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:09: Initializing world generator seed: ( 0 )   menu:True  worldgen version:1
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:09: Using mountain distance: 1000
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:09: Render threading mode:SingleThreaded
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:09: Get create world Dedicated
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:09:   failed to load Dedicated
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:09:  creating
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:09: Using environment steamid 892970
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:09: Using steam APPID:892970
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

CAppInfoCacheReadFromDiskThread took 1 milliseconds to initialize
CApplicationManagerPopulateThread took 0 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)
RecordSteamInterfaceCreation (PID 90): SteamGameServer012 / GameServer
RecordSteamInterfaceCreation (PID 90): SteamUtils009 / Utils
Setting breakpad minidump AppID = 892970
RecordSteamInterfaceCreation (PID 90): SteamGameServer012 / GameServer
RecordSteamInterfaceCreation (PID 90): SteamUtils009 / Utils
RecordSteamInterfaceCreation (PID 90): SteamNetworking005 / Networking
RecordSteamInterfaceCreation (PID 90): SteamGameServerStats001 / GameServerStats
RecordSteamInterfaceCreation (PID 90): STEAMHTTP_INTERFACE_VERSION002 / HTTP
RecordSteamInterfaceCreation (PID 90): STEAMINVENTORY_INTERFACE_V002 / Inventory
RecordSteamInterfaceCreation (PID 90): STEAMUGC_INTERFACE_VERSION010 / UGC
RecordSteamInterfaceCreation (PID 90): STEAMAPPS_INTERFACE_VERSION008 / Apps
02/10/2021 23:27:09: Server ID 90071992547409920
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:09: Steam game server initialized
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:09: Missing audio clip in music respawn
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:10: Builder started
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:11: Loaded localization English
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:11: Game server connected
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)


Unloading 16 unused Assets to reduce memory usage. Loaded Objects now: 85931.
Total: 111.124152 ms (FindLiveObjects: 6.994430 ms CreateObjectMapping: 18.356300 ms MarkObjects: 85.241199 ms  DeleteObjects: 0.531112 ms)

Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 17.319138 ms
HDR Render Texture not supported, disabling HDR on reflection probe. 
(Filename:  Line: 277)

HDR Render Texture not supported, disabling HDR on reflection probe. 
(Filename:  Line: 277)

02/10/2021 23:27:11: Zonesystem Awake 287692
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:11: DungeonDB Awake 287692
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:12: ZSteamSocket  Registering global callbacks
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:12: Registering lobby
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:12: Initializing world generator seed:GqWrInEX4d ( 2098060689 )   menu:False  worldgen version:1
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:12: Using mountain distance: 1000
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:12: Found 473 mountain points
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:12: Remaining mountains:70
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:12: Calc time 22.52 ms
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:12: Found 8079 lake points
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:14: Remaining lakes:115
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:14: Calc time 2210.494 ms
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:14: Rivers:145
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:14: River buckets 15458
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:14: River render time 444.54 ms
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:14: River Calc time 460.461 ms
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: River buckets 24496
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: River render time 676.791 ms
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Placed 1890 streams
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Stream Calc time 1647.693 ms
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Load world Dedicated
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16:   missing world.dat
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Build settings:10
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Removing -1233507428
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Removing 1883198027
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Removing 868418350
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Removing -535269195
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Removing 1547815568
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Removing -359949137
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Removing 319464002
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Removing 1225882809
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Removing 404029124
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:16: Audioman already exist, destroying self
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)


Unloading 490 unused Assets to reduce memory usage. Loaded Objects now: 86244.
Total: 106.622772 ms (FindLiveObjects: 6.338006 ms CreateObjectMapping: 10.469090 ms MarkObjects: 83.495207 ms  DeleteObjects: 6.319407 ms)

02/10/2021 23:27:23: Zonesystem Start 287692
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:23: Generating locations
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:27:23: Checking for location duplicates
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Warning: failed to init SDL thread priority manager: SDL not found
02/10/2021 23:28:03: Failed to place all MountainWell1, placed 21 out of 25
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:28:08: Failed to place all Runestone_Mountains, placed 81 out of 100
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:28:08:  Done generating locations, duration:44993.317 ms
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:28:08: DungeonDB Start 287692
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

02/10/2021 23:38:10:  Connections 0 ZDOS:81  sent:0 recv:0
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Unloading 6 Unused Serialized files (Serialized files now loaded: 0)

Unloading 174 unused Assets to reduce memory usage. Loaded Objects now: 1116466.
Total: 621.059912 ms (FindLiveObjects: 144.530419 ms CreateObjectMapping: 37.211990 ms MarkObjects: 437.022989 ms  DeleteObjects: 2.293137 ms)

02/10/2021 23:48:10:  Connections 0 ZDOS:81  sent:0 recv:0
 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Unloading 0 Unused Serialized files (Serialized files now loaded: 0)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 1116466.
Total: 611.994577 ms (FindLiveObjects: 132.140418 ms CreateObjectMapping: 35.014556 ms MarkObjects: 443.295234 ms  DeleteObjects: 1.542235 ms)
@mbround18
Copy link
Owner

Did you move your world save files or change its name?

@cnuland
Copy link
Author

cnuland commented Feb 11, 2021

I didn't change any of those details, but I did mount volumes at these mount locations, mimicking what you did with your docker compose script locally.

        volumeMounts:
        - name: valheimsave-persistent-storage
          mountPath: /home/steam/.config/unity3d/IronGate/Valheim
        - name: valheimgame-persistent-storage
          mountPath: /home/steam/valheim
      volumes:
      - name: valheimsave-persistent-storage
        persistentVolumeClaim:
          claimName: valheim-saves-pv-claim
      - name: valheimgame-persistent-storage
        persistentVolumeClaim:
          claimName: valheim-game-pv-claim

and on the running pod

# ls /home/steam/.config/unity3d/IronGate/Valheim
adminlist.txt  bannedlist.txt  permittedlist.txt  prefs  worlds

# ls /home/steam/valheim 
 LinuxPlayer_s.debug   UnityPlayer_s.debug                    linux64      server_exit.drp   start_server_rusty.sh   steam_appid.txt   steamclient.so          valheim_server_Data
 UnityPlayer.so       'Valheim Dedicated Server Manual.pdf'   output.log   start_server.sh   start_server_xterm.sh   steamapps         valheim_server.x86_64
# 

@mbround18
Copy link
Owner

that looks like kubernetes configurations

@mbround18
Copy link
Owner

This is the docker guide #28

@cnuland
Copy link
Author

cnuland commented Feb 11, 2021

sounds good, if I get this working then I'll PR in some kubernetes instructions, it should just work with the container as is, but I have a hunch its a permissions issue, thanks for taking a look at least :)

@cnuland cnuland closed this as completed Feb 11, 2021
@mbround18
Copy link
Owner

there is a kuberentes guide already :) #20
it looks like you are missing subpath in your config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants