# LinuxServer couldn't start on WSL

**URL:** <https://forums.unrealengine.com/t/linuxserver-couldnt-start-on-wsl/454884>\
**Category:** Platform & Builds\
**Tags:** deployment, linux-server, unreal-engine, UE4, question\
**Created:** [September 11, 2019, 8:40pm UTC](https://forums.unrealengine.com/t/linuxserver-couldnt-start-on-wsl/454884 "2019-09-11T20:40:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zetcpp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zetcpp](https://forums.unrealengine.com/u/zetcpp)\
**Post date:** [September 11, 2019, 8:40pm UTC](https://forums.unrealengine.com/t/linuxserver-couldnt-start-on-wsl/454884/1 "2019-09-11T20:40:11Z")

</div>

Hello everyone!

I have issue with starting server on Linux

```
$ ./GameServer.sh -nocore
Disabling core dumps.
Assertion failed: IsValidIndex(Index) [File:F:/Unreal/UnrealEngine/Engine/Source/Runtime/Core/Public/Containers/UnrealString.h] [Line: 201]
String index out of bounds: Index 1 from a string with a length of 1
Signal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=65554
CommonUnixCrashHandler: Signal=11
Malloc Size=65535 LargeMemoryPoolOffset=131119
Malloc Size=43168 LargeMemoryPoolOffset=174304
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
Segmentation fault (core dumped)

$ ./Game/Binaries/Linux/GameServer -nocore
Disabling core dumps.
Assertion failed: IsValidIndex(Index) [File:F:/Unreal/UnrealEngine/Engine/Source/Runtime/Core/Public/Containers/UnrealString.h] [Line: 201]
String index out of bounds: Index 1 from a string with a length of 1
Signal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=65554
CommonUnixCrashHandler: Signal=11
Malloc Size=65535 LargeMemoryPoolOffset=131119
Malloc Size=43168 LargeMemoryPoolOffset=174304
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
Segmentation fault (core dumped)

```

How to fix this issue?

I prepared env by following [this guide](https://wiki.unrealengine.com/Dedicated_Server_Guide_(Windows_%26_Linux)#section_7_Building_and_deploying_a_UE4_dedicated_server_for_Linux)

My system parameters:

```
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic

```

_/etc/security/limits.conf_

```
$ cat /etc/security/limits.conf
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - a user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
# - NOTE: group and wildcard limits are not applied to root.
# To apply a limit to the root user, <domain> must be
# the literal username root.
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open files
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit (KB)
# - maxlogins - max number of logins for this user
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - msgqueue - max memory used by POSIX message queues (bytes)
# - nice - max nice priority allowed to raise to values: [-20, 19]
# - rtprio - max realtime priority
# - chroot - change root to directory (Debian-specific)
#
#<domain> <type> <item> <value>
#

* - nofile 10000
#root hard core 100000
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#ftp - chroot /ftp
#@student - maxlogins 4

# End of file

```

_/etc/pam.d/common-session_

```
$ cat /etc/pam.d/common-session
#
# /etc/pam.d/common-session - session-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define tasks to be performed
# at the start and end of sessions of *any* kind (both interactive and
# non-interactive).
#
# As of pam 1.0.1-6, this file is managed by pam-auth-update by default.
# To take advantage of this, it is recommended that you configure any
# local modules either before or after the default block, and use
# pam-auth-update to manage selection of other modules. See
# pam-auth-update(8) for details.

# here are the per-package modules (the "Primary" block)
session [default=1] pam_permit.so
# here's the fallback if no module succeeds
session requisite pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
session required pam_permit.so
# The pam_umask module will set the umask according to the system default in
# /etc/login.defs and user settings, solving the problem of different
# umask settings with different shells, display managers, remote sessions etc.
# See "man pam_umask".
session optional pam_umask.so
# and here are more per-package modules (the "Additional" block)
session required pam_unix.so
session optional pam_systemd.so
session required pam_limits.so
# end of pam-auth-update config

```
