[SOLVED] Can you help me with Linux Server?

After update, i run this shell script: run.sh
and got this in console output:


System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
  at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices () [0x00000] in <filename unknown>:0
  at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build () [0x00000] in <filename unknown>:0
  at CitizenMP.Server.HTTP.HttpServer.Start () [0x00000] in <filename unknown>:0
  at CitizenMP.Server.Program+<Start>d__4.MoveNext () [0x00000] in <filename unknown>:0

And server is shutting down.
System info: Ubuntu 14.04.3 x64

Do not know what to do. Everything worked good before update.
Same problem if i try to run CitizenMP.Server.exe via mono straightly.


Solution (thanks to @ScAnY):

@ScAnY said:

On older Debian/Ubuntu version, you don’t have latest version of Mono by default, you need to do few commands to upgrade to 4.6 :

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo “deb http://download.mono-project.com/repo/debian wheezy main” | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

echo “deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main” | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list

echo “deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main” | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list

sudo apt-get update

sudo apt-get install mono-complete

after this, you can see your version with this command :
mono --version
Mono JIT compiler version 4.6.2 (Stable 4.6.2.7/08fd525 Mon Nov 21 12:08:40 UTC 2016)

same here, can’t open the server in my vps after this update

Cant open anything after this update. My gamemode is stuck on loading…
UPD: solved (DB error in win 10)

nobody is anwsering :frowning:

Make sure you are on mono 4.6 or up and make sure your server path has no spaces in it.

on terminal, type:

apt-get remove mono-complete

after that:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo “deb http://download.mono-project.com/repo/debian wheezy main” | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update

then
apt-get install mono-complete

On older Debian/Ubuntu version, you don’t have latest version of Mono by default, you need to do few commands to upgrade to 4.6 :

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo “deb http://download.mono-project.com/repo/debian wheezy main” | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

echo “deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main” | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list

echo “deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main” | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list

sudo apt-get update

sudo apt-get install mono-complete

after this, you can see your version with this command :
mono --version
Mono JIT compiler version 4.6.2 (Stable 4.6.2.7/08fd525 Mon Nov 21 12:08:40 UTC 2016)

2 Likes

Thanks, it works. Now it`s time for some work!

After updated the mono the server started but now i can’t enter with my client, my friends same…

The gta and fivereborn are updated

I got the message: failed hanshake to server

winhttpreceiveresponse failed with error code error_winhttp_invalid_server_response

Before the update was everything fine

somebody, please help?

Same error here, i updated to latest server & client and get the error
“winhttpreceiveresponse failed with error code error_winhttp_invalid_server_response”

someone please, help us!

My server is a lot of days offline with this error…

@hardlevelbr i resolved the issue by upgrading mono and then execute sh run.sh
or you can use chmod +x run.sh and after that just execute: ./run.sh

hi thanks it worked, but now i got another problem…

all my cars streamed won’t appear in game

Did you add the resource to AutoStartResources (citmp-server.yml)?

Did you add a __resource.lua to the stream?

Did you delete the servers /cache/ folder?

Yes, did all the three actions as always did before and nothing…

How did you do it, create the stream?

I created a folder named assets inside resources, inside it a file named __resource.lua and another folder named stream.

Inside stream for example a folder named blista and inside it the vehicle files, before the update and running with mono CitizenMP.Server.exe commando was working fine, now with sh run.sh won’t.

And in YML file on the root I added - assets

Did you remove your servers /cache/ ?

Yes, i did, always did after a new car installation