TrueOsiris / docker-vrising

Container for V-Rising dedicated server
237 stars 63 forks source link

Xvfb sometimes run failed, can start.sh check the running state and remove the lock file? #14

Closed flamefox closed 2 years ago

flamefox commented 2 years ago

sometime run failed and the lock file should remove ?

@Downloading and installing .NET SDK 6.0.300 and core runtime...
 
*/start.sh: line 10: [: too many arguments
 
,Updating V-Rising Dedicated Server files...
 
dWARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
4Redirecting stderr to '/root/Steam/logs/stderr.txt'
)[  0%] Checking for available updates...
![----] Verifying installation...
@Steam Console Client (c) Valve Corporation - version 1653101151
-- type 'quit' to exit --
Loading Steam API...OK

,Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
+Success! App '1829350' already up to date.
steam_appid: 1604030
 
EStarting V Rising Dedicated Server with name VRising Server
SteamAppId set to 
Starting Xvfb and wine64 ...
 
(EE) 
**Fatal server error:
,(EE) Server is already active for display 0
;  If this server is no longer running, remove /tmp/.X0-lock
  and start again.**
(EE) 
o0050:err:explorer:initialize_display_settings Failed to query current display settings for L"\\\\.\\DISPLAY1".
T0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
j0024:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
q0024:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
^0024:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFFFFFFFFFA, 000000000020FA70
R2022-05-27 10:04:39 status installed xserver-xorg-input-all:amd64 1:7.7+23ubuntu2
G2022-05-27 10:04:39 trigproc fontconfig:amd64 2.13.1-4.2ubuntu5 <none>
N2022-05-27 10:04:39 status half-configured fontconfig:amd64 2.13.1-4.2ubuntu5
H2022-05-27 10:04:40 status installed fontconfig:amd64 2.13.1-4.2ubuntu5
B2022-05-27 10:04:40 trigproc hicolor-icon-theme:all 0.17-2 <none>
I2022-05-27 10:04:40 status half-configured hicolor-icon-theme:all 0.17-2
C2022-05-27 10:04:40 status installed hicolor-icon-theme:all 0.17-2
A2022-05-27 10:04:40 trigproc libc-bin:amd64 2.35-0ubuntu3 <none>
H2022-05-27 10:04:40 status half-configured libc-bin:amd64 2.35-0ubuntu3
B2022-05-27 10:04:41 status installed libc-bin:amd64 2.35-0ubuntu3
=00ec:fixme:file:CancelSynchronousIo (000000000000006C): stub
^00ec:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFFFFFFFFFA, 000000000021FD70
^0150:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFFFFFFFFFA, 000000000021FD70
E009c:err:rpc:I_RpcReceive we got fault packet with status 0x1c010003
 
TrueOsiris commented 2 years ago

good plan. will implement

TrueOsiris commented 2 years ago

I added rm /tmp/.X0-lock 2>&1 before Xvfb start. Can this be tested, please?

The log now shows for my containers:

Starting V Rising Dedicated Server with name Osiris-V
Trying to remove /tmp/.X0-lock
rm: cannot remove '/tmp/.X0-lock': No such file or directory

Starting Xvfb
Launching wine64 V Rising

so it's just fine for people without the .X0-lock. I just need someone with the previous issue to test if this fixes it.

phtppp commented 2 years ago

I had the issue, works for me


Trying to remove /tmp/.X0-lock

Starting Xvfb
Launching wine64 V Rising```