FiveM Server - YamlException (can't start server)

Hello, i wanted to install FiveM server on my virtual machine (Ubuntu server 16.04.2 x64), and after following the tutorial provided on the forum, i encounter an error when i try to launch the server.

After running the command ./run.sh , here is the full error message I get.

YamlDotNet.Core.YamlException: (Line: 19, Col: 11, Idx: 320) - (Line: 19, Col: 11, Idx: 320): No node deserializer was able to deserialize the node into type System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
 at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue (YamlDotNet.Core.IParser parser, System.Type expectedType, YamlDotNet.Serialization.Utilities.SerializerState state, YamlDotNet.Serialization.IValueDeserializer nestedObjectDeserializer) [0x000c0] in <5f039c60c4c44f6595ef2e5b4ae7bfeb>:0
 at YamlDotNet.Serialization.ValueDeserializers.AliasValueDeserializer.DeserializeValue (YamlDotNet.Core.IParser parser, System.Type expectedType, YamlDotNet.Serialization.Utilities.SerializerState state, YamlDotNet.Serialization.IValueDeserializer nestedObjectDeserializer) [0x0006e] in <5f039c60c4c44f6595ef2e5b4ae7bfeb>:0
 at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer+<>c__DisplayClass3_0.<DeserializeValue>b__0 (YamlDotNet.Core.IParser r, System.Type t) [0x00000] in <5f039c60c4c44f6595ef2e5b4ae7bfeb>:0
 at YamlDotNet.Serialization.NodeDeserializers.ObjectNodeDeserializer.YamlDotNet.Serialization.INodeDeserializer.Deserialize (YamlDotNet.Core.IParser parser, System.Type expectedType, System.Func`3[T1,T2,TResult] nestedObjectDeserializer, System.Object& value) [0x0006b] in <5f039c60c4c44f6595ef2e5b4ae7bfeb>:0
 at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue (YamlDotNet.Core.IParser parser, System.Type expectedType, YamlDotNet.Serialization.Utilities.SerializerState state, YamlDotNet.Serialization.IValueDeserializer nestedObjectDeserializer) [0x00039] in <5f039c60c4c44f6595ef2e5b4ae7bfeb>:0

I thought “hey, maybe i screwed up my installation on linux, let’s try straight on my own computer”.

Exact same thing on Win10 x64 so i think the problem comes from the FiveM Files.

  • I correctly installed and tested Mono
  • I re-ran the tutorial many times to avoid misreading errors etc
  • I downloaded and checked the FiveM server archive multiple times
  • I installed again the server multiple times

Thanks for your help

Moved to the appropriate forums.

Hello, why was it in the wrong place? It’s a plain, unmodded server pack downloaded directly from your website… This is why i put it in “Technical support” in the first place. I don’t understand why it has been placed in “Development & Modding”.

I guess you have a better clue than I have.

Thanks for your answer

Did you try without modifying the .yml file? If it works for everyone else, but is only broken for you, probably you’re the one at fault.

1 Like

Ok so i tried without editing the citmp-server.yml file, and it worked. I don’t understand why it didn’t start when i edited it because I only modified the 2 lines which were asked to be modified in the tutorial on the website (aka “RconPassword” and “Hostname”) and for those fields the value is totally arbitrary (so there is no wrong value)

Anyway thanks for your help ! Have a good day =)

I’ve got this issue too. It’s because of a syntax error in your citmp-server.yml file. When u add ressource u need to put 4 space not a tabulation if u press enter this will automaticely put u a tabulation for the next line. If u use notepadd++ u can activate In View/Show Symbol/activate White space and TAB.

1 Like

Hello and thank you for your hint, it will be very useful to know that.

Have a good day!

Did you have a colon (:) inside the name?

If so, wrap it in quotes. E.g.

Hostname: "My Server: Something else"

You can also try an online parser to check the YAML file (lmgtfy: online YAML parser)