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

Error while start the server, fail to CreateSession by invalid Region parameter #48

Open
fmolliet opened this issue Jul 8, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@fmolliet
Copy link

fmolliet commented Jul 8, 2022

Describe the bug
Error while start the server, fail to CreateSession by invalid Region parameter in EOS_InvalidParameters

[2022.07.08-14.19.42:793][ 37]LogEOS: Warning: EOS_SessionModification_AddAttribute called for string attribute 'Region', but the string value has a length of 0 - this will probably fail!
[2022.07.08-14.19.42:794][ 37]LogEOS: Error: EOS_SessionModification_AddAttribute operation failed when setting 'Region' attribute (result code: EOS_InvalidParameters)
[2022.07.08-14.19.42:794][ 37]LogEOS: Error: CreateSession: Could not apply settings to session handle (EOS_InvalidParameters)
[2022.07.08-14.19.42:794][ 37]LogOnlineBlueprint: Error: Call 'CreateSession' did not start successfully

To Reproduce
Steps to reproduce the behavior:

  1. Run install script:
## Install dependencies
apt update
apt -y --no-install-recommends install curl git sed

## Install Git LFS
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
apt -y install git-lfs

## Download and install SteamCMD
cd /tmp
curl -sSL -o steamcmd.tar.gz http://media.steampowered.com/installer/steamcmd_linux.tar.gz
mkdir -p /mnt/server/steamcmd
tar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd
cd /mnt/server/steamcmd

# SteamCMD fails otherwise for some reason, even running as root.
chown -R root:root /mnt
export HOME=/mnt/server

## Install SteamSDK using SteamCMD
./steamcmd.sh +force_install_dir /mnt/server +login anonymous +app_update 1007 validate +exit

# Set up 32 and 64 bit libraries
mkdir -p /mnt/server/.steam/sdk{32,64}
cp -v linux32/steamclient.so /mnt/server/.steam/sdk32/steamclient.so
cp -v linux64/steamclient.so /mnt/server/.steam/sdk64/steamclient.so

## Longvinter setup
# If not using auto update and gamedir exist, remove it
if [ ! "${AUTO_UPDATE}" ] && [ -d "$HOME/longvinter-linux-server" ]; then
    echo -e "\nDelete game dir\n"
    rm -r $HOME/longvinter-linux-server
fi

# Clone Longvinter Dedicated Server repo or do auto update if activated
cd $HOME
if [ ! -d "$HOME/longvinter-linux-server" ]; then
    git clone "https://github.com/Uuvana-Studios/longvinter-linux-server.git"
elif [ "${AUTO_UPDATE}" ]; then
    echo -e "\nUpdating gamefiles\n"
    cd $HOME/longvinter-linux-server
    git config pull.rebase false
    git restore .
    git stash
    git pull "https://github.com/Uuvana-Studios/longvinter-linux-server.git" main
fi
chmod -R ugo+rwx $HOME/longvinter-linux-server/

# Create base config if not exist
if [ ! -f $HOME/longvinter-linux-server/Longvinter/Saved/Config/LinuxServer/Game.ini ]; then
    echo -e "\nCreating game config\n"
    cp $HOME/longvinter-linux-server/Longvinter/Saved/Config/LinuxServer/Game.ini.default $HOME/longvinter-linux-server/Longvinter/Saved/Config/LinuxServer/Game.ini
    if ! grep -q "ServerTag=" "$HOME/longvinter-linux-server/Longvinter/Saved/Config/LinuxServer/Game.ini"; then
        sed -i '/^ServerName=.*/a ServerTag=Default' $HOME/longvinter-linux-server/Longvinter/Saved/Config/LinuxServer/Game.ini
    fi
fi

echo -e "\nLongvinter Dedicated Server successfully installed!\n"
  1. Start the server by command: /home/container/longvinter-linux-server/Longvinter/Binaries/Linux/LongvinterServer-Linux-Shipping Longvinter -Port={{SERVER_PORT}} -QueryPort={{QUERY_PORT}}
  2. Wait util try to create session.
  3. See error.

Expected behavior
CreateSession: Successfully created session

Screenshots
image

Server (please complete the following information):

  • OS: debian:bullseye-slim
  • Git version latest
  • Steam Version latest
  • Server Version:
    • LogEOS: Verbose: Loaded EOS SDK version: 1.14.2-18950192.
    • Engine Version: 4.26.0-0+++UE4+Release-4.26
    • Build: ++UE4+Release-4.26-CL-0
    • EOSSDK Platform Properties [OS=Linux/, ClientId=xyza7891rvqKJjoT8nMQjTJOBa3CsINI, ProductId=9f9b041e294542a99fbb1a194842651b, SandboxId=39c786d3db0a459d861263ad71882db8, DeploymentId=e30e16300e7d4dac9324dfde2aab655e, ProductName=Longvinter, ProductVersion=1.0.4, IsServer=true, Flags=None]

Start-up logs:
startup-0607.txt
startup-0807.txt

Install Log:
Install-log.txt

@fmolliet fmolliet added the bug Something isn't working label Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant