GameServerManagers / LinuxGSM

The command-line tool for quick, simple deployment and management of Linux dedicated game servers.
https://linuxgsm.com
MIT License
4.25k stars 813 forks source link

[Bug]: no server running on /tmp/tmux-1001/atsserver-5aa01cbc #4580

Open ghost opened 4 months ago

ghost commented 4 months ago

User story

Server can't start with tmux need fix

Game

American Truck Simulator & Euro Truck Simulator 2

Linux distro

Debian 12

Command

command: start, command: restart

Further information

i've this error and i've reinstalled my Server completly with a clean Debian 12 minimal installation. before American Truck Simulator and Euro Truck Simulator 2 has become this Update all works fine with LinuxGSM. But now i got a tmux error "no server running on /tmp/tmux-1001/atsserver-5aa01cbc" .. this is a clean Debian 12 installation and i've installed some stuff clean. i start linuxgsm (./atsserver start) everytime as user and not as root. Since this update the Server can't start with this tmux error

I've reinstalled tmux and i've reinstalled the completly server (Debian 12 minimal)

Relevant log output

./atsserver start
[ .... ] Starting atsserver: ATS-Serverno server running on /tmp/tmux-1001/atsserver-5aa01cbc
[ FAIL ] Starting atsserver: Unable to start ATS-Server

./atsserver restart
[ INFO ] Stopping atsserver: ATS-Server is already stopped
[ .... ] Starting atsserver: ATS-Serverno server running on /tmp/tmux-1001/atsserver-5aa01cbc
[ FAIL ] Starting atsserver: Unable to start ATS-Server

Steps to reproduce

  1. install atsserver with ./atsserver install
  2. start the server with ./atsserver start
h3o66 commented 4 months ago

please provide the following info:

ETS2: ldd serverfiles/bin/linux_x64/eurotrucks2_server

ATS: ldd serverfiles/bin/linux_x64/amtrucks_server

console logfile for one of the servers. example from ets2: log/console/ets2server-console.log

for me it looks like the server needs some new dependencies

h3o66 commented 4 months ago

for me 2 libs are missing, libatmoic can be fetched from the repos, but for the second i have no clue yet

$ ldd serverfiles/bin/linux_x64/eurotrucks2_server 
        linux-vdso.so.1 (0x00007ffcd99fd000)
        libatomic.so.1 => not found
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3769665000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f376965b000)
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f3769518000)
        libsteam_api.so => /home/<user>/ets2/serverfiles/bin/linux_x64/libsteam_api.so (0x00007f37694ca000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f37694c4000)
        libfmod.so.13 => not found
        libfmodstudio.so.13 => not found
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f376937e000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f37691aa000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f3769690000)
        libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f376917f000)
        libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f3769178000)
        libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f3768f72000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f3768f5b000)
        libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f3768f4e000)

first dependency missing from my side for debian: libatomic1

h3o66 commented 4 months ago

second lib seems to be a bug on ETS2 / ATS server build: https://forum.scssoft.com/viewtopic.php?t=330111

To fix this, either these need to be copied manually into serverfiles/bin/linux_x64/ or a hotfix can be probably done to download these

ghost commented 4 months ago

I'Ve add the FMOD stuff now and the libfmodstudio.so.13 is now available

` ldd /home/gamesrv/ats/serverfiles/bin/linux_x64/amtrucks_server

    linux-vdso.so.1 (0x00007ffd67d40000)
    libatomic.so.1 => not found
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f27b1e5f000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f27b1e5a000)
    libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f27b1d18000)
    libsteam_api.so => /home/gamesrv/ats/serverfiles/bin/linux_x64/libsteam_api.so (0x00007f27b1cca000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f27b1cc3000)
    libfmod.so.13 => not found
    libfmodstudio.so.13 => /home/gamesrv/ats/serverfiles/bin/linux_x64/libfmodstudio.so.13 (0x00007f27b1b45000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f27b1a66000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f27b1885000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f27b1e70000)
    libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f27b185b000)
    libfmod.so.13 => not found
    libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f27b1600000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f27b1839000)
    libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f27b1834000)
    libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f27b1200000)
    libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f27b181c000)
    libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f27b15f3000)

`

but: it isn't working .. the error is the same

./atsserver start [ .... ] Starting atsserver: ATS-Serverno server running on /tmp/tmux-1001/atsserver-5aa01cbc [ FAIL ] Starting atsserver: Unable to start ATS-Server

what should i do now?

h3o66 commented 4 months ago

one of the 2 libfmod.so files is still missing.

also the package libatomic1 was not installed yet, according to the output of ldd

rackgaming commented 4 months ago

I cannot figure this out myself, I must be stupid or something. I too have LinuxGSMno server running on /tmp/tmux-1001/atsserver-2-8fbb0591 [ FAIL ] Starting atsserver-2: Unable to start LinuxGSM

rackgaming commented 4 months ago

OK I managed to fix it by using this command sudo apt-get install gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget -y (for the libX11.6.so) part and for the FMOD side a user kindly provided on the other thread/posted said on that forum here: https://www.dropbox.com/scl/fi/xa0pexws5ho191dhzl5l5/libfmodstudio.so.zip?rlkey=kda7f5q1zrk1ongg4jrt7kn4y&dl=0 is the required libfmod files.

h3o66 commented 4 months ago

Looks like the latest update for the server fixed the wrong dependency on libfmod.so.13 and libfmodstudio.so.13 I can probably check if all the dependency are there already.

I checked only ETS2 for now