[SERVER] Latest Mono 5.0.0 will break the server. Read for Fix


#1

If you updated your system to the latest mono on linux you have buged your server. When you see something like this

2017-05-12 21:00:12.9956|INFO|CitizenMP.Server|Creating initial server instance.
2017-05-12 21:00:13.1736|INFO|CitizenMP.Server|Pre-parsing resources: mapmanager
2017-05-12 21:00:13.1760|INFO|CitizenMP.Server|Found resource mapmanager in resources/[managers]/mapmanager.
2017-05-12 21:00:34.7191|ERROR|CitizenMP.Server|Error creating script environment for resource mapmanager: Object reference not set to an instance of an object
2017-05-12 21:00:34.7272|ERROR|CitizenMP.Server| at [U] Neo.IronLua.LuaStackTraceDebugger+LuaStackTraceChunk.InitChunk(Delegate chunk)
2017-05-12 21:00:34.7272|ERROR|CitizenMP.Server| at [U] Neo.IronLua.LuaStackTraceDebugger.Neo.IronLua.ILuaDebug.CreateChunk(Lua lua,LambdaExpression expr)
2017-05-12 21:00:34.7272|ERROR|CitizenMP.Server| at [U] Neo.IronLua.Lua.CompileChunk(String chunkName,LuaCompileOptions options,TextReader tr,IEnumerable`1 args)
2017-05-12 21:00:34.7272|ERROR|CitizenMP.Server| at [U] Neo.IronLua.Lua.CompileChunk(TextReader tr,String name,LuaCompileOptions options,KeyValuePair`2[] args)
2017-05-12 21:00:34.7272|ERROR|CitizenMP.Server| at [U] Neo.IronLua.LuaDeskop.CompileChunk(Lua lua,String sFileName,LuaCompileOptions options,KeyValuePair`2[] args)
2017-05-12 21:00:34.7272|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:34.7279|ERROR|CitizenMP.Server|Resource mapmanager caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:34.7295|INFO|CitizenMP.Server|Found resource race in resources/[gamemodes]/race.
2017-05-12 21:00:35.4465|ERROR|CitizenMP.Server|Error creating script environment for resource race: Object reference not set to an instance of an object
2017-05-12 21:00:35.4465|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:35.4465|ERROR|CitizenMP.Server|Resource race caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:35.4469|INFO|CitizenMP.Server|Found resource race-test in resources/[gamemodes]/race-test.
2017-05-12 21:00:36.1044|ERROR|CitizenMP.Server|Error creating script environment for resource race-test: Object reference not set to an instance of an object
2017-05-12 21:00:36.1044|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:36.1044|ERROR|CitizenMP.Server|Resource race-test caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:36.1051|INFO|CitizenMP.Server|Found resource channelfeed in resources/[gameplay]/channelfeed.
2017-05-12 21:00:36.7608|ERROR|CitizenMP.Server|Error creating script environment for resource channelfeed: Object reference not set to an instance of an object
2017-05-12 21:00:36.7610|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:36.7610|ERROR|CitizenMP.Server|Resource channelfeed caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:36.7610|INFO|CitizenMP.Server|Found resource irc in resources/[gameplay]/irc.
2017-05-12 21:00:37.4251|ERROR|CitizenMP.Server|Error creating script environment for resource irc: Object reference not set to an instance of an object
2017-05-12 21:00:37.4251|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:37.4251|ERROR|CitizenMP.Server|Resource irc caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:37.4251|INFO|CitizenMP.Server|Found resource obituary in resources/[gameplay]/obituary.
2017-05-12 21:00:38.0844|ERROR|CitizenMP.Server|Error creating script environment for resource obituary: Object reference not set to an instance of an object
2017-05-12 21:00:38.0844|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:38.0844|ERROR|CitizenMP.Server|Resource obituary caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:38.0844|INFO|CitizenMP.Server|Found resource obituary-deaths in resources/[gameplay]/obituary-deaths.
2017-05-12 21:00:38.7563|ERROR|CitizenMP.Server|Error creating script environment for resource obituary-deaths: Object reference not set to an instance of an object
2017-05-12 21:00:38.7563|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:38.7563|ERROR|CitizenMP.Server|Resource obituary-deaths caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:38.7569|INFO|CitizenMP.Server|Found resource mapmanager in resources/[managers]/mapmanager.
2017-05-12 21:00:39.4343|ERROR|CitizenMP.Server|Error creating script environment for resource mapmanager: Object reference not set to an instance of an object
2017-05-12 21:00:39.4343|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:39.4343|ERROR|CitizenMP.Server|Resource mapmanager caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:39.4349|INFO|CitizenMP.Server|Found resource baseevents in resources/[system]/baseevents.
2017-05-12 21:00:40.1217|ERROR|CitizenMP.Server|Error creating script environment for resource baseevents: Object reference not set to an instance of an object
2017-05-12 21:00:40.1219|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:40.1219|ERROR|CitizenMP.Server|Resource baseevents caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:40.1219|INFO|CitizenMP.Server|Found resource chat in resources/[system]/chat.
2017-05-12 21:00:40.7989|ERROR|CitizenMP.Server|Error creating script environment for resource chat: Object reference not set to an instance of an object
2017-05-12 21:00:40.7990|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:40.7990|ERROR|CitizenMP.Server|Resource chat caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:40.7990|INFO|CitizenMP.Server|Found resource hardcap in resources/[system]/hardcap.
2017-05-12 21:00:41.4798|ERROR|CitizenMP.Server|Error creating script environment for resource hardcap: Object reference not set to an instance of an object
2017-05-12 21:00:41.4799|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:41.4799|ERROR|CitizenMP.Server|Resource hardcap caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:41.4799|INFO|CitizenMP.Server|Found resource rconlog in resources/[system]/rconlog.
2017-05-12 21:00:42.1492|ERROR|CitizenMP.Server|Error creating script environment for resource rconlog: Object reference not set to an instance of an object
2017-05-12 21:00:42.1492|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:42.1492|ERROR|CitizenMP.Server|Resource rconlog caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:42.1492|INFO|CitizenMP.Server|Found resource scoreboard in resources/[system]/scoreboard.
2017-05-12 21:00:42.8164|ERROR|CitizenMP.Server|Error creating script environment for resource scoreboard: Object reference not set to an instance of an object
2017-05-12 21:00:42.8164|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:42.8164|ERROR|CitizenMP.Server|Resource scoreboard caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:42.8164|INFO|CitizenMP.Server|Found resource sessionmanager in resources/[system]/sessionmanager.
2017-05-12 21:00:43.4829|ERROR|CitizenMP.Server|Error creating script environment for resource sessionmanager: Object reference not set to an instance of an object
2017-05-12 21:00:43.4829|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:43.4829|ERROR|CitizenMP.Server|Resource sessionmanager caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:43.4829|INFO|CitizenMP.Server|Found resource spawnmanager in resources/[system]/spawnmanager.
2017-05-12 21:00:44.1600|ERROR|CitizenMP.Server|Error creating script environment for resource spawnmanager: Object reference not set to an instance of an object
2017-05-12 21:00:44.1600|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:44.1600|ERROR|CitizenMP.Server|Resource spawnmanager caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:44.1600|INFO|CitizenMP.Server|Found resource betaguns in resources/[test]/betaguns.
2017-05-12 21:00:44.8347|ERROR|CitizenMP.Server|Error creating script environment for resource betaguns: Object reference not set to an instance of an object
2017-05-12 21:00:44.8350|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:44.8350|ERROR|CitizenMP.Server|Resource betaguns caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:44.8350|INFO|CitizenMP.Server|Found resource gameInit in resources/[test]/gameInit.
2017-05-12 21:00:45.5018|ERROR|CitizenMP.Server|Error creating script environment for resource gameInit: Object reference not set to an instance of an object
2017-05-12 21:00:45.5020|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:45.5020|ERROR|CitizenMP.Server|Resource gameInit caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:45.5020|INFO|CitizenMP.Server|Found resource keks in resources/[test]/keks.
2017-05-12 21:00:46.1721|ERROR|CitizenMP.Server|Error creating script environment for resource keks: Object reference not set to an instance of an object
2017-05-12 21:00:46.1721|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:46.1721|ERROR|CitizenMP.Server|Resource keks caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:46.1721|INFO|CitizenMP.Server|Found resource fivem in resources/fivem.
2017-05-12 21:00:46.8401|ERROR|CitizenMP.Server|Error creating script environment for resource fivem: Object reference not set to an instance of an object
2017-05-12 21:00:46.8401|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:46.8401|ERROR|CitizenMP.Server|Resource fivem caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:46.8401|INFO|CitizenMP.Server|Found resource fivem-awesome1501 in resources/fivem-awesome1501.
2017-05-12 21:00:47.5441|ERROR|CitizenMP.Server|Error creating script environment for resource fivem-awesome1501: Object reference not set to an instance of an object
2017-05-12 21:00:47.5441|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:47.5441|ERROR|CitizenMP.Server|Resource fivem-awesome1501 caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:47.5441|INFO|CitizenMP.Server|Found resource fivem-map-hipster in resources/fivem-map-hipster.
2017-05-12 21:00:48.1771|ERROR|CitizenMP.Server|Error creating script environment for resource fivem-map-hipster: Object reference not set to an instance of an object
2017-05-12 21:00:48.1771|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:48.1771|ERROR|CitizenMP.Server|Resource fivem-map-hipster caused an error during loading. Please see the above lines for details.
.2017-05-12 21:00:48.1771|INFO|CitizenMP.Server|Found resource fivem-map-skater in resources/fivem-map-skater.
2017-05-12 21:00:48.8262|ERROR|CitizenMP.Server|Error creating script environment for resource fivem-map-skater: Object reference not set to an instance of an object
2017-05-12 21:00:48.8262|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 21:00:48.8262|ERROR|CitizenMP.Server|Resource fivem-map-skater caused an error during loading. Please see the above lines for details.
2017-05-12 21:00:48.8273|INFO|CitizenMP.Server|Starting game server on port 32119
2017-05-12 21:00:48.9008|INFO|CitizenMP.Server|Starting HTTP server on port 32119
2017-05-12 21:00:49.0587|ERROR|CitizenMP.Server|Could not find auto-started resource chat.
2017-05-12 21:00:49.0587|ERROR|CitizenMP.Server|Could not find auto-started resource spawnmanager.
2017-05-12 21:00:49.0587|ERROR|CitizenMP.Server|Could not find auto-started resource baseevents.
2017-05-12 21:00:49.0587|ERROR|CitizenMP.Server|Could not find auto-started resource rconlog.
2017-05-12 21:00:49.0589|ERROR|CitizenMP.Server|Could not find auto-started resource hardcap.
2017-05-12 21:00:49.0589|ERROR|CitizenMP.Server|Could not find auto-started resource scoreboard.
2017-05-12 21:00:49.0589|ERROR|CitizenMP.Server|Could not find auto-started resource fivem.
2017-05-12 21:00:49.0589|ERROR|CitizenMP.Server|Could not find auto-started resource fivem-map-skater.

To fix above issue we need to rollback to Mono 4.8 Version

This is tested on Ubuntu 16.04

  sudo apt-get remove mono-complete
  sudo apt-get purge mono-runtime
  sudo ls /etc/apt/sources.list.d
  sudo rm -i /etc/apt/sources.list.d/mono-xamarin.list
  sudo apt-get autoremove
  echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.8 main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

  sudo apt-get update
  sudo apt-get install mono-complete
  mono --version

WARNING: This will lock your Mono to version 4.8. If you want to update again to latest version you need to remove repo

  sudo ls /etc/apt/sources.list.d
  sudo rm -i /etc/apt/sources.list.d/mono-xamarin.list

Then add latest repo Mono Install

I’m not responsible for any damage caused by following above. If you don’t know what you are doing ask somewone to do it for you.

Have fun


[Deprecated][Tutorial] How To Setup A Linux Server (Ubuntu 16.04) From Start To Finish!
Hello i have a problem form FiveM Server (Ubuntu)
Mono version 4 required
Mono version 4 required
Server Not Recognizing Folders (resources, system)
[HELP]Debian 8 host a server
Error starting FiveM Dedicated Server (Ubuntu 14.04)
[SERVER] Resources Problems
Linking my FiveM server to my VPS
Error in VPS when creating server
#2

And for new installation you need to do :

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


#3

I have debian 8 and when i install a mono 4.8 for debian jezzie i have again this error


#5

Did you checked your version?

mono --version

Make sure to remove all of old mono and when you install new one make sure that all packages are installed from same version 4.8


#6

You can send how i can install mono 4.8 on debian 8 jezzie ?


#7

You can use the above for new installation


#8

I still get this error after downgrading to 4.8


#9

i cant download 4.8…evrytime he makes a auto update to 5.0


#10

Same for me :confused: I’ll try with .tar version


#11

Can evryone say when it Works The Installation from 4.8


#12

I dit it :slight_smile:

(I have a server on Ubuntu 16.04)

Download on your server :

(Don’t forget to apt-get upgrade & apt-get update)

And it’s work :slight_smile:


#13

can you text the complete code to copy in the raspberry´?


#14

They will probably need to run this to update their certificates. You might experience openssl errors without this.
sudo cert-sync /etc/ssl/certs/ca-certificates.crt


#15

I have a problem when i’m installing the 4.8 version, I keep getting…

W:Conflicting distribution: http://download.mono-project.com wheezy/snapshots/4.8/. InRelease (wheezy/snapshots/4.8 Expected, but wheezy got)

I already try to add ‘/.’ in echo “deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.8 main” | sudo tee /etc/apt/sources.list.d/mono-xamarin.list, still not working :sweat:

when I install version 5.0 it works very well


#16

Try

echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots 4.8/main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
apt-get update
apt-get install mono-complete

#17

Ok so it works to apt-get update but i have a new error after installing mono complete

The following packages contain unsatisfied dependencies:
Mono-complete: Depends: mono-devel (= 4.8.1.0-0xamarin1) but will not be installed
Depends: mono-4.0-service (= 4.8.1.0-0xamarin1) but will not be installed
Depends: monodoc-manual (= 4.8.1.0-0xamarin1) but will not be installed
Depends: libmono-cil-dev (= 4.8.1.0-0xamarin1) but will not be installed
E: Unable to resolve problems, faulty packets are in “keep as is” mode

Sorry if I speak bad English I’m French


#18

Hi i have the same problem


#19
sudo apt-get install aptitude
sudo aptitude update
sudo aptitude install -f
sudo aptitude install mono-complete

This will install the dependencies with


#20

It doesnt work for me :confused: im not able to downgrade to 4.8… I have Debian 8 with jessie


#21

Same for me, on Debian 8 jessie apt-get keep installing version 5.0 of that trolling mono.