[Help] Linux Server error

When trying to start my server on my Debian 7 vps im getting this error:
Does anyone know how to fix this? Thanks in advance

System.AggregateException: One or more errors occurred. —> System.DllNotFoundE xception: libuv
at (wrapper managed-to-native) Microsoft.AspNetCore.Server.Kestrel.Internal.Ne tworking.Libuv+NativeMethods:uv_loop_size ()
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.loop_size () [0x00000] in <43555eec0dc34d2abb4f01227fa5a2e9>:0
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvLoopHandle.Init ( Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv uv) [0x0000c] in < 43555eec0dc34d2abb4f01227fa5a2e9>:0
at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelThread.ThreadStart (Sys tem.Object parameter) [0x00029] in <43555eec0dc34d2abb4f01227fa5a2e9>:0
— End of inner exception stack trace —
at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskC anceledExceptions) [0x00014] in :0
at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System. Threading.CancellationToken cancellationToken) [0x00052] in :0
at System.Threading.Tasks.Task.Wait () [0x00000] in <f712f98eb8e445c8918edaf59 5bbe465>:0
at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelEngine.Start (System.In t32 count) [0x00037] in <43555eec0dc34d2abb4f01227fa5a2e9>:0
at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.Start[TContext] (Microsof t.AspNetCore.Hosting.Server.IHttpApplication`1[TContext] application) [0x00131] in <43555eec0dc34d2abb4f01227fa5a2e9>:0
—> (Inner Exception #0) System.DllNotFoundException: libuv
at (wrapper managed-to-native) Microsoft.AspNetCore.Server.Kestrel.Internal.Ne tworking.Libuv+NativeMethods:uv_loop_size ()
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.loop_size () [0x00000] in <43555eec0dc34d2abb4f01227fa5a2e9>:0
at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvLoopHandle.Init ( Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv uv) [0x0000c] in < 43555eec0dc34d2abb4f01227fa5a2e9>:0
at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelThread.ThreadStart (Sys tem.Object parameter) [0x00029] in <43555eec0dc34d2abb4f01227fa5a2e9>:0 <—

root@vps377766:/home/Debian/FiveRebornFull/bin# at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelEngine.Start (System.In t32 count) [0x00037] in <43555eec0dc34d2abb4f01227fa5a2e9>:0
-bash: syntax error near unexpected token (' root@vps377766:/home/Debian/FiveRebornFull/bin# at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.Start[TContext] (Microsof t.AspNetCore.Hosting.Server.IHttpApplication1[TContext] application) [0x00131] in <43555eec0dc34d2abb4f01227fa5a2e9>:0
-bash: syntax error near unexpected token (' root@vps377766:/home/Debian/FiveRebornFull/bin# ---> (Inner Exception #0) System.DllNotFoundException: libuv -bash: syntax error near unexpected token (’
root@vps377766:/home/Debian/FiveRebornFull/bin# at (wrapper managed-to-native) Microsoft.AspNetCore.Server.Kestrel.Internal.Ne tworking.Libuv+NativeMethods:uv_loop_size ()
-bash: syntax error near unexpected token wrapper' root@vps377766:/home/Debian/FiveRebornFull/bin# at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.loop_size () [0x00000] in <43555eec0dc34d2abb4f01227fa5a2e9>:0 -bash: syntax error near unexpected token (’
root@vps377766:/home/Debian/FiveRebornFull/bin# at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvLoopHandle.Init ( Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv uv) [0x0000c] in < 43555eec0dc34d2abb4f01227fa5a2e9>:0
-bash: syntax error near unexpected token (' root@vps377766:/home/Debian/FiveRebornFull/bin# at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelThread.ThreadStart (Sys tem.Object parameter) [0x00029] in <43555eec0dc34d2abb4f01227fa5a2e9>:0 <--- -bash: syntax error near unexpected token (’

maybe not all files installed correctly?

I installed a clean server, and followed a tutorial step by step.

that does not mean you did not made a mistake.
something is wrong else it would run

1 Like

Thanks for ur reply, I redownloaded the server files again, (maybe i accidently moved the wrong server to the vps) and now I’m getting a new error:

2017-02-24 17:16:40.1401|INFO|CitizenMP.Server|Starting game server on port 3012 0
2017-02-24 17:16:40.2049|INFO|CitizenMP.Server|Starting HTTP server on port 3012 0
System.TypeInitializationException: The type initializer for ‘Microsoft.AspNetCo re.Server.Kestrel.Internal.Infrastructure.Constants’ threw an exception. —> Sy stem.DllNotFoundException: System.Native
at (wrapper managed-to-native) Interop+Sys:GetUnixNamePrivate ()
at Interop+Sys.GetUnixName () [0x00000] in <2c0705c248b844f597694acdb70b3a23>: 0
at System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform (System.Runt ime.InteropServices.OSPlatform osPlatform) [0x00009] in <2c0705c248b844f597694ac db70b3a23>:0
at Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure.Constants.GetEC ONNRESET () [0x00005] in <43555eec0dc34d2abb4f01227fa5a2e9>:0
at Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure.Constants…ccto r () [0x00000] in <43555eec0dc34d2abb4f01227fa5a2e9>:0
— End of inner exception stack trace —
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Start () [0x00053] in <24af31 b64ae843689736582353a19b3a>:0
at CitizenMP.Server.HTTP.HttpServer.Start () [0x00075] in <ca865e1161724352966 6d0879b917373>:0
at CitizenMP.Server.Program+d__4.MoveNext () [0x00320] in <ca865e116172 43529666d0879b917373>:0

Im pretty sure I have done everything correctly, and no idea how to solve this

Do you even have mono-complete installed?

Yes I have that installed, I had some problems with that earlier but got it installed correctly, I think

root@vps377766:/home/Debian/CleanServer/bin# mono --version
Mono JIT compiler version 4.8.0 (Stable 4.8.0.495/e4a3cf3 Wed Feb 22 18:30:58 UTC 2017)
Copyright © 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
root@vps377766:/home/Debian/CleanServer/bin#

as i remember debian is not officially supported. try ubuntu.

Only Windows is officially supported, mate. No linux binaries at all exist. Debian, Ubuntu, or even Arch Linux - it’s the same. It all depends on whether the system likes mono stuff. In his case it doesn’t seem to find some mandatory mono libraries.

I now have an ubuntu vps and the server starts fine now, thanks for the tip. But I closed the terminal thinking it would stop the server but it didn’t, so it’s still running. How do I stop it?

if you close the terminal, the server should stop unless started with “screen” command
type “screen -ls” to check for any running screens.
type “screen -r <ID>” to reconnect to the screen.
ctrl + c to terminate
ctrl + a / d (keep ctrl pressed) to detach the screen.

if the server is running via some unknown magic, install htop sudo apt-get install htop run, find the server process and terminate it

It was indeed screen causing that, all working now.

1 Like

Debian 8 would’ve worked fine, 7 is too old to support the version of glibc this libuv is linked with.

@kanersps (or @Kng), you’re some kind of idiot or so, the server is officially supported on Linux, why else would you think there’s run.sh and .so files included? issue here was an outdated distribution (minimum is ~Ubuntu 14.04, Debian 8 or CentOS 7 level).