PS: cron[10194]: ERROR (Missing newline before EOF, this crontab file will be ignored)
EOF = End Of File
Füg unter dem Code eine Leerzeile ein
PS: cron[10194]: ERROR (Missing newline before EOF, this crontab file will be ignored)
EOF = End Of File
Füg unter dem Code eine Leerzeile ein
Melde dich mal bei mir kann die wahrscheinlich weitehelfen.
Moin,
ist der Server per ssh oder Daemon eingebunden?
LG
Moin,
schick mal logs oder screenshots währen du die Sachen erstellst.
Die habe ich noch nicht probiert.
Der Login funktioniert, nur die Rechte passen für die Kunden FTP-Zugänge nicht.
//EDIT
2020-04-06 17:15:09,770 v22019058374289221 proftpd[28772] 127.0.1.1 (178.27.182.237[178.27.182.237]): Transfer completed: 832 bytes in 0.02 seconds
2020-04-06 17:15:14,982 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'TYPE I' to mod_exec
2020-04-06 17:15:14,982 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'TYPE I' to mod_rewrite
2020-04-06 17:15:14,982 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'TYPE I' to mod_tls
2020-04-06 17:15:14,982 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'TYPE I' to mod_core
2020-04-06 17:15:14,982 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'TYPE I' to mod_core
2020-04-06 17:15:14,982 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching CMD command 'TYPE I' to mod_xfer
2020-04-06 17:15:14,983 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching POST_CMD command 'TYPE I' to mod_exec
2020-04-06 17:15:14,983 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching LOG_CMD command 'TYPE I' to mod_log
2020-04-06 17:15:15,003 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'PASV' to mod_exec
2020-04-06 17:15:15,003 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'PASV' to mod_rewrite
2020-04-06 17:15:15,003 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'PASV' to mod_tls
2020-04-06 17:15:15,003 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'PASV' to mod_core
2020-04-06 17:15:15,003 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'PASV' to mod_core
2020-04-06 17:15:15,003 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching CMD command 'PASV' to mod_core
2020-04-06 17:15:15,003 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): checking HideFiles pattern for current session
2020-04-06 17:15:15,003 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): file 'tek_li_1.12_1520' did not match HideFiles pattern
2020-04-06 17:15:15,003 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): Entering Passive Mode (213,109,163,184,165,177).
2020-04-06 17:15:15,003 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching POST_CMD command 'PASV' to mod_exec
2020-04-06 17:15:15,003 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching LOG_CMD command 'PASV' to mod_log
2020-04-06 17:15:15,028 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'STOR server.properties' to mod_exec
2020-04-06 17:15:15,028 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'STOR server.properties' to mod_rewrite
2020-04-06 17:15:15,028 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'STOR server.properties' to mod_tls
2020-04-06 17:15:15,028 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'STOR server.properties' to mod_core
2020-04-06 17:15:15,028 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'STOR server.properties' to mod_core
2020-04-06 17:15:15,028 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'STOR server.properties' to mod_ratio
2020-04-06 17:15:15,028 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'STOR server.properties' to mod_quotatab
2020-04-06 17:15:15,028 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching PRE_CMD command 'STOR server.properties' to mod_xfer
2020-04-06 17:15:15,029 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): checking HideFiles pattern for current session
2020-04-06 17:15:15,029 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): file 'server.properties' did not match HideFiles pattern
2020-04-06 17:15:15,029 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): STOR server.properties denied by <Limit> configuration
2020-04-06 17:15:15,029 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching POST_CMD_ERR command 'STOR server.properties' to mod_exec
2020-04-06 17:15:15,029 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching POST_CMD_ERR command 'STOR server.properties' to mod_quotatab
2020-04-06 17:15:15,029 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching LOG_CMD_ERR command 'STOR server.properties' to mod_log
2020-04-06 17:15:15,029 v22019058374289221 proftpd[28779] 127.0.1.1 (178.27.182.237[178.27.182.237]): dispatching LOG_CMD_ERR command 'STOR server.properties' to mod_xfer
Alles anzeigen
Moin,
ich weiß das Thema wurde schon mehrfach behandelt, aber das hat mir nicht weitergeholfen, was ich gefunden habe.
meine FTP-Benutzer der Kunden haben keine Rechte in ihrem eigenen Verzeichnis.
Habe schon per chown die Rechte neu zugeteilt.
#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes, reload proftpd after modifications, if
# it runs in daemon mode. It is not required in inetd/xinetd mode.
#
# Includes DSO modules
Include /etc/proftpd/modules.conf
# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 on
# If set on you can experience a longer connection delay in many cases.
ServerName "Debian"
# Set to inetd only if you would run proftpd by inetd/xinetd.
# Read README.Debian for more information on proper configuration.
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayChdir .message true
ListOptions "-l"
DenyFilter \*.*/
# Use this to jail all users in their homes
#DefaultRoot ~
# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
# RequireValidShell off
# Port 21 is the standard FTP port.
Port 21
# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
# PassivePorts 49152 65534
# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
# MasqueradeAddress 1.2.3.4
# This is useful for masquerading address with dynamic IPs:
# refresh any configured MasqueradeAddress directives every 8 hours
<IfModule mod_dynmasq.c>
# DynMasqRefresh 28800
</IfModule>
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the user and group that the server normally runs at.
User proftpd
Group nogroup
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
# Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords:
# PersistentPasswd off
# This is required to use both PAM-based authentication and local passwords
# AuthOrder mod_auth_pam.c* mod_auth_unix.c
# Be warned: use of this directive impacts CPU average load!
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
#
# UseSendFile off
TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log
# Logging onto /var/log/lastlog is enabled but set to off by default
#UseLastlog on
# In order to keep log file dates consistent after chroot, use timezone info
# from /etc/localtime. If this is not set, and proftpd is configured to
# chroot (e.g. DefaultRoot or <Anonymous>), it will use the non-daylight
# savings timezone regardless of whether DST is in effect.
#SetEnv TZ :/etc/localtime
<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>
<IfModule mod_ratio.c>
Ratios off
</IfModule>
# Delay engine reduces impact of the so-called Timing Attack described in
# http://www.securityfocus.com/bid/11430/discuss
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>
<IfModule mod_ctrls.c>
ControlsEngine off
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>
<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>
#
# Alternative authentication frameworks
#
#Include /etc/proftpd/ldap.conf
#Include /etc/proftpd/sql.conf
#
# This is used for FTPS connections
#
#Include /etc/proftpd/tls.conf
#
# Useful to keep VirtualHost/VirtualRoot directives separated
#
#Include /etc/proftpd/virtuals.conf
# A basic anonymous configuration, no upload directories.
# <Anonymous ~ftp>
# User ftp
# Group nogroup
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# # Cosmetic changes, all files belongs to ftp user
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# RequireValidShell off
#
# # Limit the maximum number of anonymous logins
# MaxClients 10
#
# # We want 'welcome.msg' displayed at login, and '.message' displayed
# # in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayChdir .message
#
# # Limit WRITE everywhere in the anonymous chroot
# <Directory *>
# <Limit WRITE>
# DenyAll
# </Limit>
# </Directory>
#
# # Uncomment this if you're brave.
# # <Directory incoming>
# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
# # Umask 022 022
# # <Limit READ WRITE>
# # DenyAll
# # </Limit>
# # <Limit STOR>
# # AllowAll
# # </Limit>
# # </Directory>
#
# </Anonymous>
# Include other custom configuration files
Include /etc/proftpd/conf.d/
<Directory ~>
HideFiles (^\..+|\.ssh|\.bash_history|\.bash_logout|\.bashrc|\.profile|srcds_run|srcds_linux|hlds_run|hlds_amd|hlds_i686|\.rc|\.sh|\.7z|.dll)$
PathDenyFilter (^\..+|\.ssh|\.bash_history|\.bash_logout|\.bashrc|\.profile|srcds_run|srcds_linux|hlds_run|hlds_amd|hlds_i686|\.rc|\.sh|\.7z|.dll)$
HideNoAccess on
<Limit RNTO RNFR STOR DELE CHMOD SITE_CHMOD MKD RMD>
DenyAll
</Limit>
</Directory>
<Directory /home/user-webi/*>
Umask 077 077
<Limit RNFR RNTO STOR DELE MKD RMD>
DenyAll
</Limit>
</Directory>
<Directory /home/skripte/*>
Umask 077 077
<Limit RNFR RNTO STOR DELE MKD RMD>
AllowAll
</Limit>
</Directory>
AllowOverwrite on
UseReverseDNS off
IdentLookups off
DefaultRoot ~
RequireValidShell off
AuthOrder mod_auth_pam.c mod_auth_unix.c mod_auth_file.c
AuthUserFile /etc/proftpd/ftpd.passwd
AuthGroupFile /etc/proftpd/ftpd.group
Alles anzeigen
Das ark3 image liegt momentan noch auf meinem Imageserver.
Moin,
ich habe es endlich nach langer Zeit geschafft, den ARK-Server so hinzubekommen, dass er mit automatischen Mod-Update startet.
Es ist ganz WICHTIG, dass ihr das ark3 Image benutzt, da dort alle benötigten Datein bereits vorhanden sind.
Updatescript: ./steamcmd.sh +login anonymous +force_install_dir ./game +app_update 376030 validate +quit
Startscript: ./start.sh -MAP gsmap -PORT gsport -PLAYER gsplayer -PW gspasswd
Falls es Probleme gibt meldet euch!
start.sh
#!/bin/bash
while test $# -gt 0; do
case "$1" in
"-MAP")
MAP="$2"
shift;;
"-PORT")
PORT="$2"
shift ;;
"-PLAYER")
PLAYER="$2"
shift ;;
"-PW")
PW="$2"
shift ;;
esac
shift
done
sleep 3
QUERYPORT=$(($PORT+1))
datum=$(date +'%H:%M - %d.%m.%Y')
echo "$datum" > "screenlog.0"
if ! [ -d ../../../Engine/Binaries/ThirdParty/SteamCMD/Linux/steamapps ]; then
steampath=$(cd ../../../../../..;pwd)
ln -s $steampath/Steam/steamapps ../../../Engine/Binaries/ThirdParty/SteamCMD/Linux
fi
mkdir ../../../../../cluster
clusterpath=$(cd ../../../../../cluster;pwd)
if [ -z $PW ]; then
startcmd="ShooterGameServer $MAP?listen?AltSaveDirectoryName=Save1?Port="$PORT"?QueryPort="$QUERYPORT"?MaxPlayers="$PLAYER" -NoTransferFromFiltering -ForceRespawnDinos -nosteamclient -server -log"
##echo "./ShooterGameServer $MAP?listen?AltSaveDirectoryName=Save1?Port="$PORT"?QueryPort="$QUERYPORT"?MaxPlayers="$PLAYER" -ClusterDirOverride=$clusterpath ${4} -NoTransferFromFiltering -ForceRespawnDinos -clusterid=owneasy -nosteamclient -server -log" >> screenlog.0
##./ShooterGameServer $MAP?listen?AltSaveDirectoryName=Save1?Port="$PORT"?QueryPort="$QUERYPORT"?MaxPlayers="$PLAYER" -ClusterDirOverride=$clusterpath ${4} -NoTransferFromFiltering -ForceRespawnDinos -clusterid=owneasy -nosteamclient -server -log
else
startcmd="ShooterGameServer $MAP?listen?AltSaveDirectoryName=Save1?Port="$PORT"?QueryPort="$QUERYPORT"?MaxPlayers="$PLAYER"?ServerPassword="$PW" -NoTransferFromFiltering -ForceRespawnDinos -nosteamclient -server -log"
##echo "./ShooterGameServer $MAP?listen?AltSaveDirectoryName=Save1?Port="$PORT"?QueryPort="$QUERYPORT"?MaxPlayers="$PLAYER"?ServerPassword="$PW" -ClusterDirOverride=$clusterpath ${4} -NoTransferFromFiltering -ForceRespawnDinos -clusterid=owneasy -nosteamclient -server -log" >> screenlog.0
##./ShooterGameServer $MAP?listen?AltSaveDirectoryName=Save1?Port="$PORT"?QueryPort="$QUERYPORT"?MaxPlayers="$PLAYER"?ServerPassword="$PW" -ClusterDirOverride=$clusterpath ${4} -NoTransferFromFiltering -ForceRespawnDinos -clusterid=owneasy -nosteamclient -server -log
fi
echo "$startcmd" >> screenlog.0
./$startcmd
Alles anzeigen
Für Leute mit Installskript:
#! /bin/bash
rm game
#steamcmd Serverfiles
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
./steamcmd.sh +login anonymous +force_install_dir ./game +app_update 376030 validate +quit
#steamcmd Modfiles
mkdir game/Engine/Binaries/ThirdParty/SteamCMD/Linux
wget -P game/Engine/Binaries/ThirdParty/SteamCMD/Linux https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar zxvf game/Engine/Binaries/ThirdParty/SteamCMD/Linux/steamcmd_linux.tar.gz -C game/Engine/Binaries/ThirdParty/SteamCMD/Linux
rm -r game/Engine/Binaries/ThirdParty/SteamCMD/Linux/steamcmd_linux.tar.gz
#Configs
wget -P game/ShooterGame http://server.owneasy.info/imageserver/serverfiles/ark/Saved.tar
tar zxvf game/ShooterGame/Saved.tar -C game/ShooterGame
rm -r game/ShooterGame/Saved.tar
#Symlinks Modfiles
steampath=$(cd ../..;pwd)
ln -s $steampath/Steam/steamapps game/Engine/Binaries/ThirdParty/SteamCMD/Linux
#Startscript
wget -P game/ShooterGame/Binaries/Linux http://server.owneasy.info/imageserver/serverfiles/ark/start.sh
chmod 755 game/ShooterGame/Binaries/Linux/start.sh
exit 0
Alles anzeigen
#Update 22.05.2020: start.sh hinzugefügt
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
/home/buildbot/buildslave/steam_rel_client_linux64/build/src/clientdll/applicationmanager.cpp (3004) : Assertion Failed: CApplicationManager::GetMountVolume: invalid index
/home/buildbot/buildslave/steam_rel_client_linux64/build/src/clientdll/applicationmanager.cpp (3004) : Assertion Failed: CApplicationManager::GetMountVolume: invalid index
/home/buildbot/buildslave/steam_rel_client_linux64/build/src/clientdll/applicationmanager.cpp (3155) : Assertion Failed: m_vecInstallBaseFolders.Count() > 0
Setting breakpad minidump AppID = 346110
Das hat keine Auswirkungen auf den Serverstart Lulz123
Kannst dich gerne melden, dann kann ich dir helfen.
ah das wusst ich nicht, aber so ist es mir lieber
Lösung:
#!/bin/bash
while test $# -gt 0; do
case "$1" in
"-PORT")
PORT="$2"
shift ;;
"-PLAYER")
PLAYER="$2"
shift ;;
"-IP")
IP="$2"
shift ;;
esac
shift
done
sleep 3
if [ ! -s rcon.password ]; then
echo "$(openssl rand -base64 32)" > rcon.password
fi
QUERYPW=`cat rcon.password | awk '{print $1}'`
QUERYPORT=$(($PORT+1))
echo "Starting server..." >> screenlog.0
echo "Rcon-Password=$QUERYPW" >> screenlog.0
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`dirname $0`/RustDedicated_Data/Plugins/x86_64
./RustDedicated -batchmode -nographics -server.log screenlog.0 -server.ip $IP -rcon.web 0 -server.port $PORT -rcon.ip $IP -rcon.port $QUERYPORT -rcon.password $QUERYPW -server.maxplayers $PLAYER -server.identity "rust-server" -server.level "Procedural Map" -server.seed 2017014 -server.worldsize 3500 -server.saveinterval 1800 -server.headerimage "" -server.url "*"
Alles anzeigen
Damit startet der Server nicht.
Er erstellt bei Datein, aber danach macht nichts mehr.
Moin,
ich habe in mein Startscript eine automatische Passworterstellung eingebungen, nur leider
schreibt das Script jedes mal ein neues Passwort in die Datei.
#!/bin/bash
while test $# -gt 0; do
case "$1" in
"-PORT")
PORT="$2"
shift ;;
"-PLAYER")
PLAYER="$2"
shift ;;
"-IP")
IP="$2"
shift ;;
esac
shift
done
sleep 3
if [[ -f "$pwd/rcon.password" && -s "$pwd/rcon.password" ]]
then
QUERYPW=$(grep rcon.password)
else
QUERYPW=$(openssl rand -base64 32)
echo "$QUERYPW" >> rcon.password
fi
QUERYPORT=$(($PORT+1))
echo "Starting server..." >> screenlog.0
echo "Rcon-Password=$QUERYPW" >> screenlog.0
./RustDedicated -batchmode -nographics -server.ip $IP -rcon.web 0 -server.port $PORT -rcon.ip $IP -rcon.port $QUERYPORT -rcon.password $QUERYPW -server.maxplayers $PLAYER -server.identity "rust-server" -server.level "Procedural Map" -server.seed 2017014 -server.worldsize 3500 -server.saveinterval 1800 -server.headerimage "*" -server.url "*"
Alles anzeigen
Hi,
sollen die nur starten, wenn die auch angewesen sind oder allgemein alle?
Hat funktioniert, danke!
Moin,
mein Webinterface sieht nach der Neuinstallation vom Controlpanel anders aus.
Debian 9
php 7.0
Grüße Owneasy