Hello i have a problem form FiveM Server (Ubuntu)

As mentioned in the title, I have a problem when I run FiveM on my linux server, I use the command: mono CitizenMP.Server.exe or ./run.sh after giving the 777 access to the file.
Please help me I do not understand anything, moreover the error message is not very detailed or I did not understand anything.

2017-05-12 19:11:13.3332|INFO|CitizenMP.Server|Creating initial server instance.
2017-05-12 19:11:13.4188|INFO|CitizenMP.Server|Pre-parsing resources: mapmanager
2017-05-12 19:11:13.4198|INFO|CitizenMP.Server|Found resource mapmanager in resources/[managers]/mapmanager.
2017-05-12 19:11:22.4282|ERROR|CitizenMP.Server|Error creating script environment for resource mapmanager: Object reference not set to an instance of an object
2017-05-12 19:11:22.4330|ERROR|CitizenMP.Server| at [U] Neo.IronLua.LuaStackTraceDebugger+LuaStackTraceChunk.InitChunk(Delegate chunk)
2017-05-12 19:11:22.4330|ERROR|CitizenMP.Server| at [U] Neo.IronLua.LuaStackTraceDebugger.Neo.IronLua.ILuaDebug.CreateChunk(Lua lua,LambdaExpression expr)
2017-05-12 19:11:22.4330|ERROR|CitizenMP.Server| at [U] Neo.IronLua.Lua.CompileChunk(String chunkName,LuaCompileOptions options,TextReader tr,IEnumerable1 args) 2017-05-12 19:11:22.4330|ERROR|CitizenMP.Server| at [U] Neo.IronLua.Lua.CompileChunk(TextReader tr,String name,LuaCompileOptions options,KeyValuePair2[] args)
2017-05-12 19:11:22.4330|ERROR|CitizenMP.Server| at [U] Neo.IronLua.LuaDeskop.CompileChunk(Lua lua,String sFileName,LuaCompileOptions options,KeyValuePair`2[] args)
2017-05-12 19:11:22.4330|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:22.4333|ERROR|CitizenMP.Server|Resource mapmanager caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:22.4333|INFO|CitizenMP.Server|Found resource race in resources/[gamemodes]/race.
2017-05-12 19:11:22.7646|ERROR|CitizenMP.Server|Error creating script environment for resource race: Object reference not set to an instance of an object
2017-05-12 19:11:22.7646|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:22.7646|ERROR|CitizenMP.Server|Resource race caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:22.7646|INFO|CitizenMP.Server|Found resource race-test in resources/[gamemodes]/race-test.
2017-05-12 19:11:23.0580|ERROR|CitizenMP.Server|Error creating script environment for resource race-test: Object reference not set to an instance of an object
2017-05-12 19:11:23.0580|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:23.0580|ERROR|CitizenMP.Server|Resource race-test caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:23.0580|INFO|CitizenMP.Server|Found resource channelfeed in resources/[gameplay]/channelfeed.
2017-05-12 19:11:23.3687|ERROR|CitizenMP.Server|Error creating script environment for resource channelfeed: Object reference not set to an instance of an object
2017-05-12 19:11:23.3687|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:23.3687|ERROR|CitizenMP.Server|Resource channelfeed caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:23.3687|INFO|CitizenMP.Server|Found resource irc in resources/[gameplay]/irc.
2017-05-12 19:11:23.6802|ERROR|CitizenMP.Server|Error creating script environment for resource irc: Object reference not set to an instance of an object
2017-05-12 19:11:23.6802|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:23.6802|ERROR|CitizenMP.Server|Resource irc caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:23.6802|INFO|CitizenMP.Server|Found resource obituary in resources/[gameplay]/obituary.
2017-05-12 19:11:23.9795|ERROR|CitizenMP.Server|Error creating script environment for resource obituary: Object reference not set to an instance of an object
2017-05-12 19:11:23.9795|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:23.9795|ERROR|CitizenMP.Server|Resource obituary caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:23.9795|INFO|CitizenMP.Server|Found resource obituary-deaths in resources/[gameplay]/obituary-deaths.
2017-05-12 19:11:24.3308|ERROR|CitizenMP.Server|Error creating script environment for resource obituary-deaths: Object reference not set to an instance of an object
2017-05-12 19:11:24.3308|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:24.3308|ERROR|CitizenMP.Server|Resource obituary-deaths caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:24.3308|INFO|CitizenMP.Server|Found resource mapmanager in resources/[managers]/mapmanager.
2017-05-12 19:11:24.7227|ERROR|CitizenMP.Server|Error creating script environment for resource mapmanager: Object reference not set to an instance of an object
2017-05-12 19:11:24.7227|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:24.7227|ERROR|CitizenMP.Server|Resource mapmanager caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:24.7227|INFO|CitizenMP.Server|Found resource baseevents in resources/[system]/baseevents.
2017-05-12 19:11:25.1148|ERROR|CitizenMP.Server|Error creating script environment for resource baseevents: Object reference not set to an instance of an object
2017-05-12 19:11:25.1148|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:25.1148|ERROR|CitizenMP.Server|Resource baseevents caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:25.1148|INFO|CitizenMP.Server|Found resource chat in resources/[system]/chat.
2017-05-12 19:11:25.4361|ERROR|CitizenMP.Server|Error creating script environment for resource chat: Object reference not set to an instance of an object
2017-05-12 19:11:25.4362|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:25.4362|ERROR|CitizenMP.Server|Resource chat caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:25.4362|INFO|CitizenMP.Server|Found resource hardcap in resources/[system]/hardcap.
2017-05-12 19:11:25.7201|ERROR|CitizenMP.Server|Error creating script environment for resource hardcap: Object reference not set to an instance of an object
2017-05-12 19:11:25.7202|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:25.7202|ERROR|CitizenMP.Server|Resource hardcap caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:25.7202|INFO|CitizenMP.Server|Found resource ■■■■■■■ in resources/[system]/■■■■■■■.
2017-05-12 19:11:26.0067|ERROR|CitizenMP.Server|Error creating script environment for resource ■■■■■■■: Object reference not set to an instance of an object
2017-05-12 19:11:26.0067|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:26.0067|ERROR|CitizenMP.Server|Resource ■■■■■■■ caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:26.0067|INFO|CitizenMP.Server|Found resource scoreboard in resources/[system]/scoreboard.
2017-05-12 19:11:26.2942|ERROR|CitizenMP.Server|Error creating script environment for resource scoreboard: Object reference not set to an instance of an object
2017-05-12 19:11:26.2942|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:26.2942|ERROR|CitizenMP.Server|Resource scoreboard caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:26.2942|INFO|CitizenMP.Server|Found resource sessionmanager in resources/[system]/sessionmanager.
2017-05-12 19:11:26.5956|ERROR|CitizenMP.Server|Error creating script environment for resource sessionmanager: Object reference not set to an instance of an object
2017-05-12 19:11:26.5956|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:26.5956|ERROR|CitizenMP.Server|Resource sessionmanager caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:26.5956|INFO|CitizenMP.Server|Found resource spawnmanager in resources/[system]/spawnmanager.
2017-05-12 19:11:26.8805|ERROR|CitizenMP.Server|Error creating script environment for resource spawnmanager: Object reference not set to an instance of an object
2017-05-12 19:11:26.8805|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:26.8805|ERROR|CitizenMP.Server|Resource spawnmanager caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:26.8805|INFO|CitizenMP.Server|Found resource betaguns in resources/[test]/betaguns.
2017-05-12 19:11:27.1650|ERROR|CitizenMP.Server|Error creating script environment for resource betaguns: Object reference not set to an instance of an object
2017-05-12 19:11:27.1650|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:27.1650|ERROR|CitizenMP.Server|Resource betaguns caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:27.1650|INFO|CitizenMP.Server|Found resource gameInit in resources/[test]/gameInit.
2017-05-12 19:11:27.4531|ERROR|CitizenMP.Server|Error creating script environment for resource gameInit: Object reference not set to an instance of an object
2017-05-12 19:11:27.4531|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:27.4531|ERROR|CitizenMP.Server|Resource gameInit caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:27.4531|INFO|CitizenMP.Server|Found resource keks in resources/[test]/keks.
2017-05-12 19:11:27.7400|ERROR|CitizenMP.Server|Error creating script environment for resource keks: Object reference not set to an instance of an object
2017-05-12 19:11:27.7400|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:27.7400|ERROR|CitizenMP.Server|Resource keks caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:27.7400|INFO|CitizenMP.Server|Found resource fivem in resources/fivem.
2017-05-12 19:11:28.0550|ERROR|CitizenMP.Server|Error creating script environment for resource fivem: Object reference not set to an instance of an object
2017-05-12 19:11:28.0550|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:28.0550|ERROR|CitizenMP.Server|Resource fivem caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:28.0550|INFO|CitizenMP.Server|Found resource fivem-awesome1501 in resources/fivem-awesome1501.
2017-05-12 19:11:28.3762|ERROR|CitizenMP.Server|Error creating script environment for resource fivem-awesome1501: Object reference not set to an instance of an object
2017-05-12 19:11:28.3762|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:28.3762|ERROR|CitizenMP.Server|Resource fivem-awesome1501 caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:28.3762|INFO|CitizenMP.Server|Found resource fivem-map-hipster in resources/fivem-map-hipster.
2017-05-12 19:11:28.6648|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 19:11:28.6648|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:28.6648|ERROR|CitizenMP.Server|Resource fivem-map-hipster caused an error during loading. Please see the above lines for details.
.2017-05-12 19:11:28.6648|INFO|CitizenMP.Server|Found resource fivem-map-skater in resources/fivem-map-skater.
2017-05-12 19:11:28.9728|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 19:11:28.9728|ERROR|CitizenMP.Server| at [U] CitizenMP.Server.Resources.ScriptEnvironment.Create()
2017-05-12 19:11:28.9728|ERROR|CitizenMP.Server|Resource fivem-map-skater caused an error during loading. Please see the above lines for details.
2017-05-12 19:11:28.9732|INFO|CitizenMP.Server|Starting game server on port 30120
2017-05-12 19:11:29.0136|INFO|CitizenMP.Server|Starting HTTP server on port 30120
2017-05-12 19:11:29.1290|ERROR|CitizenMP.Server|Could not find auto-started resource chat.
2017-05-12 19:11:29.1290|ERROR|CitizenMP.Server|Could not find auto-started resource spawnmanager.
2017-05-12 19:11:29.1290|ERROR|CitizenMP.Server|Could not find auto-started resource fivem-map-skater.
2017-05-12 19:11:29.1290|ERROR|CitizenMP.Server|Could not find auto-started resource baseevents.
2017-05-12 19:11:29.1290|ERROR|CitizenMP.Server|Could not find auto-started resource ■■■■■■■.
2017-05-12 19:11:29.1290|ERROR|CitizenMP.Server|Could not find auto-started resource hardcap.
2017-05-12 19:11:29.1292|ERROR|CitizenMP.Server|Could not find auto-started resource scoreboard.

Try starting it with sh run.sh
Also i recommend using screen.

Use ./run.sh or sh run.sh is the same thing.
I already run the program in a screen.
The installation of mono-complete and mono-devil is performed.

Have you changed anything or trying to run it vanilla?
Lets start with your yml

Yes I try to start the server without modifying the yml file.
The only modification to the yml file is just to change the port (being blocked by my firewall) I have no choice to put another one.

9th line from the bottom, you see the server still trying to launch on port 30120, which is default. I would revisit this and check to see what you actually did.

This is normal, seeing as I have tried both its either one or the other no luck

Im confused what you mean here? You said that you needed to change the port but the server log reads as it trying to launch on 30120. I have my test server running on a different port and it states correctly what port. I still think seeing your yml would be beneficial.

Same for me on multiple VPS I tihnk there are a problem with FiveM

If you have the most recent update of mono then that could be whats causing it. My servers are running fine while not running on the latest version of mono. Follow this guide and see how it goes.

1 Like

Sure enough, it works after you follow it’s instruction to install an older version of mono-complete. Thank you for responding, and thank you for helping me.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.