Hi, I tried to solve it and I searched on the forum for a solution without success.
I can't even create a log file, I don't know why.
Console initialized.
Segmentation fault (core dumped)
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Please, someone with better knowledge would be able to help me? :D
my 007.sh
MALLOC_CHECK_=0 ./srcds_run -debug -game ./gesource/ +maxplayers 16 +map ge_temple_classic
Typically the cause for this is you're missing some packages.
Paste the output of e.g.
ldd ./gesource/bin/server_i486.so
linux-gate.so.1 => (0xf7710000)
libz.so.1 => not found
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf62d2000)
libldap_r-2.4.so.2 => not found
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf62c8000)
libutil.so.1 => /lib/i386-linux-gnu/libutil.so.1 (0xf62c4000)
libnsl.so.1 => /lib/i386-linux-gnu/libnsl.so.1 (0xf62a9000)
steam_api_i486.so => not found
tier0_i486.so => not found
vstdlib_i486.so => not found
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf6131000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf60dc000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf60bf000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf5f08000)
/lib/ld-linux.so.2 (0xf7711000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf5eeb000)
root@vps6270:~# apt-get install libldap_r-2.4.so.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libldap_r-2.4.so.2
E: Couldn't find any package by glob 'libldap_r-2.4.so.2'
E: Couldn't find any package by regex 'libldap_r-2.4.so.2'
root@vps6270:~# apt-file search libldap_r-2.4.so.2
libldap-2.4-2: /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2
libldap-2.4-2: /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
root@vps6270:~#
How do I install them?
Thank you!
The ones ending in _i486.so are distributed with the dedicated server and linked when you launch the server, so no need to worry about those.
For the others -- libz.so.1 and libldap_r-2.4.so.2 -- we can use apt-file to search for packages by the file names they provide (keeping in mind we want to install the 32-bit versions of these libraries).
$ apt-file find libldap_r-2.4.so.2
libldap-2.4-2: /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2
libldap-2.4-2: /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
$ apt-file find libz.so.1
lib32z1: /usr/lib32/libz.so.1
lib32z1: /usr/lib32/libz.so.1.2.8
libx32z1: /usr/libx32/libz.so.1
libx32z1: /usr/libx32/libz.so.1.2.8
libzadc1: /lib/x86_64-linux-gnu/genwqe/libz.so.1
zlib1g: /lib/x86_64-linux-gnu/libz.so.1
zlib1g: /lib/x86_64-linux-gnu/libz.so.1.2.8
So, try this:
sudo apt install libldap-2.4-2:i386 lib32z1
I found the solution, I had to change to:
MALLOC_CHECK_=0 ./srcds_run -debug -game ./gesource/ +ip 207.246.66.49 +port 27015 +maxplayers 12 +map ge_temple_classic
Now is open.
Is there a specific config to be able to find the server on servers search by client side?
Or only this in server.cfg?
sv_lan 0
#!/bin/sh
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
NAME="007 GoldenEye Server"
USER="steam"
GROUP="steam"
PATHTOFILE="/home/steam/GoldenEye"
EXECFILENAME="007.sh"
start() {
echo -n "Starting $NAME..."
/sbin/start-stop-daemon --start --quiet --chuid $USER:$GROUP --exec $PATHTOFILE/$EXECFILENAME start
}
stop() {
echo -n "Stopping $NAME..."
/sbin/start-stop-daemon --start --quiet --chuid $USER:$GROUP --exec $PATHTOFILE/$EXECFILENAME stop
}
restart() {
echo -n "Restarting $NAME..."
/sbin/start-stop-daemon --start --quiet --chuid $USER:$GROUP --exec $PATHTOFILE/$EXECFILENAME restart
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo "Usage: $0 (start|stop|restart)"
exit 1
;;
esac
exit 0
I got Starting 007 GoldenEye Server.../home/steam/GoldenEye/007.sh: 2: /home/steam/GoldenEye/007.sh: ./srcds_run: not found
And changing the 007.sh from
#!/bin/sh
MALLOC_CHECK_=0 ./srcds_run -game ./gesource/ +ip 207.246.66.49 +port 27015 +maxplayers 12 +map ge_temple_classic
to
#!/bin/sh
#!/bin/sh
MALLOC_CHECK_=0 ./home/steam/GoldenEye/srcds_run -game ./home/steam/GoldenEye/gesource/ +ip 207.246.66.49 +port 27015 +maxplayers 12 +map ge_temple_classic
I got:
Starting 007 GoldenEye Server...Auto detecting CPU
Using SSE2 Optimised binary.
Source Engine binary './srcds_i486' not found, exiting
Mon Jan 22 17:14:53 -02 2018: Server Failed
It seems that srcds_run is trying to access ./srcds_i486 relatively from the current working directory. Try this:
#!/bin/bash
export MALLOC_CHECK_=0
cd /home/steam/GoldenEye
exec ./srcds_run -game /home/steam/GoldenEye/gesource/ +ip 207.246.66.49 +port 27015 +maxplayers 12 +map ge_temple_classic
PS.
This is how my systemd service file looked like in the past (switched to a docker based setup now):
File: /etc/systemd/system/gesource.service
[Unit]
Description=Goldeneye Source Server
After=network.target
[Service]
User=steam
Group=steam
Type=simple
ExecStart=/home/steam/srcds_run_gesource.sh
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
Then you can enable the service via systemctl enable gesource.service and start it via systemctl start gesource.service etc.
Thanks.
I changed my 007.sh file.
Create the
/lib/systemd/system/007.service
following yours
Then:
ln -s /home/steam/GoldenEye/007.sh /etc/init.d/007
To start with boot, I'm not sure if I did it the best way heheh
Then:
systemctl daemon-reload
update-rc.d 007 defaults
It's working well and the commands too:
service 007 stop
service 007 start
service 007 status