Exception: Magic number is wrong: 542Solved

Hi there,

i have installed a completly fresh Rust Dedicated Server on 20.04 LTS Ubuntu and cannot get the compiler getting loaded successful. There is no Mono installed (checked with apt list --installed | grep mono)

The vanilla server starts up but oxide does not compile any plugin. i have tried without and with a single plugin (ImageLibrary) but nothing seems to work.

The Server shows these lines while trying to run the compiler:

23:04 [Error] Exception while starting compiler version : (Exception: Magic number is wrong: 542)
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver..cctor () [0x0004d] in <eae584ce26bc40229c1b1aa476bfa589>:0
23:04 [Warning] Compiler may not be set as executable; chmod +x or 0744/0755 required
23:04 [Error] BaseException: (Exception: Magic number is wrong: 542)

I have installed the server with a own user and chmod +x the Compiler in the directory too after checking the Log-Files. Even executing the server as root does not solve the problem.

21:05 [Info] Loading Oxide Core v2.0.3991...
21:05 [Info] Loading extensions...
21:05 [Info] Loaded extension CSharp v2.0.4041 by Oxide Team and Contributors
21:05 [Info] Loaded extension MySql v2.0.3760 by Oxide Team and Contributors
21:05 [Info] Loaded extension Rust v2.0.4973 by Oxide Team and Contributors
21:05 [Info] Loaded extension SQLite v2.0.3762 by Oxide Team and Contributors
21:05 [Info] Loaded extension Unity v2.0.3772 by Oxide Team and Contributors
21:05 [Info] Latest compiler MD5: 8ce6d27e7718e3d164766bba8833537a
21:05 [Info] Local compiler MD5: 8ce6d27e7718e3d164766bba8833537a
21:05 [Info] Using Covalence provider for game 'Rust'
21:05 [Info] Loading plugins...
21:05 [Info] Loaded plugin Rust v2.0.4973 by Oxide Team and Contributors
21:05 [Info] Loaded plugin Unity v2.0.3772 by Oxide Team and Contributors
21:05 [Info] Added '// Reference: Facepunch.Sqlite' in plugin 'ImageLibrary'
21:05 [Info] Added '// Reference: UnityEngine.UnityWebRequestModule' in plugin 'ImageLibrary'
21:05 [Error] ExType: TypeInitializationException
21:05 [Error] Exception while starting compiler version : (Exception: Magic number is wrong: 542)
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver..cctor () [0x0004d] in <eae584ce26bc40229c1b1aa476bfa589>:0
21:05 [Warning] Compiler may not be set as executable; chmod +x or 0744/0755 required
21:05 [Error] BaseException: (Exception: Magic number is wrong: 542)
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver..cctor () [0x0004d] in <eae584ce26bc40229c1b1aa476bfa589>:0
21:05 [Error] Error while compiling: compiler version couldn't be started
21:05 [Warning] [DEBUG] Plugin compilation is already queued: EventManager (0.000 ago)
21:05 [Error] Error while compiling: compiler version couldn't be started
21:05 [Warning] [DEBUG] Plugin compilation is already queued: GunGame (0.000 ago)
21:05 [Error] Error while compiling: compiler version couldn't be started
21:05 [Error] Error while compiling: compiler version couldn't be started
21:05 [Error] Error while compiling: compiler version couldn't be started
21:05 [Error] Error while compiling: compiler version couldn't be started
21:05 [Error] Error while compiling: compiler version couldn't be started
21:05 [Error] Error while compiling: compiler version couldn't be started
21:05 [Error] Error while compiling: compiler version couldn't be started
21:05 [Error] Error while compiling: compiler version couldn't be started
21:06 [Info] IP address from command-line: x.x.x.x
22:56 [Info] Loading Oxide Core v2.0.3991...
22:56 [Info] Loading extensions...
22:56 [Info] Loaded extension CSharp v2.0.4041 by Oxide Team and Contributors
22:56 [Info] Loaded extension MySql v2.0.3760 by Oxide Team and Contributors
22:56 [Info] Loaded extension Rust v2.0.4973 by Oxide Team and Contributors
22:56 [Info] Loaded extension SQLite v2.0.3762 by Oxide Team and Contributors
22:56 [Info] Loaded extension Unity v2.0.3772 by Oxide Team and Contributors
22:56 [Info] Latest compiler MD5: 8ce6d27e7718e3d164766bba8833537a
22:56 [Info] Local compiler MD5: 8ce6d27e7718e3d164766bba8833537a
22:56 [Info] Using Covalence provider for game 'Rust'
22:56 [Info] Loading plugins...
22:56 [Info] Loaded plugin Rust v2.0.4973 by Oxide Team and Contributors
22:56 [Info] Loaded plugin Unity v2.0.3772 by Oxide Team and Contributors
22:56 [Info] Added '// Reference: Facepunch.Sqlite' in plugin 'ImageLibrary'
22:56 [Info] Added '// Reference: UnityEngine.UnityWebRequestModule' in plugin 'ImageLibrary'
22:56 [Error] ExType: TypeInitializationException
22:56 [Error] Exception while starting compiler version : (Exception: Magic number is wrong: 542)
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver..cctor () [0x0004d] in <eae584ce26bc40229c1b1aa476bfa589>:0
22:56 [Warning] Compiler may not be set as executable; chmod +x or 0744/0755 required
22:56 [Error] BaseException: (Exception: Magic number is wrong: 542)
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver..cctor () [0x0004d] in <eae584ce26bc40229c1b1aa476bfa589>:0
22:56 [Error] Error while compiling: compiler version couldn't be started
22:56 [Warning] [DEBUG] Plugin compilation is already queued: EventManager (0.000 ago)
22:56 [Error] Error while compiling: compiler version couldn't be started
22:56 [Warning] [DEBUG] Plugin compilation is already queued: GunGame (0.000 ago)
22:56 [Error] Error while compiling: compiler version couldn't be started
22:56 [Error] Error while compiling: compiler version couldn't be started
22:56 [Error] Error while compiling: compiler version couldn't be started
22:56 [Error] Error while compiling: compiler version couldn't be started
22:56 [Error] Error while compiling: compiler version couldn't be started
22:56 [Error] Error while compiling: compiler version couldn't be started
22:56 [Error] Error while compiling: compiler version couldn't be started
22:56 [Error] Error while compiling: compiler version couldn't be started
22:58 [Info] Loading Oxide Core v2.0.3991...
22:58 [Info] Loading extensions...
22:58 [Info] Loaded extension CSharp v2.0.4041 by Oxide Team and Contributors
22:58 [Info] Loaded extension MySql v2.0.3760 by Oxide Team and Contributors
22:58 [Info] Loaded extension Rust v2.0.4973 by Oxide Team and Contributors
22:58 [Info] Loaded extension SQLite v2.0.3762 by Oxide Team and Contributors
22:58 [Info] Loaded extension Unity v2.0.3772 by Oxide Team and Contributors
22:58 [Info] Latest compiler MD5: 8ce6d27e7718e3d164766bba8833537a
22:58 [Info] Local compiler MD5: 8ce6d27e7718e3d164766bba8833537a
22:58 [Info] Using Covalence provider for game 'Rust'
22:58 [Info] Loading plugins...
22:58 [Info] Loaded plugin Rust v2.0.4973 by Oxide Team and Contributors
22:58 [Info] Loaded plugin Unity v2.0.3772 by Oxide Team and Contributors
22:58 [Info] Added '// Reference: Facepunch.Sqlite' in plugin 'ImageLibrary'
22:58 [Info] Added '// Reference: UnityEngine.UnityWebRequestModule' in plugin 'ImageLibrary'
22:58 [Error] ExType: TypeInitializationException
22:58 [Error] Exception while starting compiler version : (Exception: Magic number is wrong: 542)
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver..cctor () [0x0004d] in <eae584ce26bc40229c1b1aa476bfa589>:0
22:58 [Warning] Compiler may not be set as executable; chmod +x or 0744/0755 required
22:58 [Error] BaseException: (Exception: Magic number is wrong: 542)
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver..cctor () [0x0004d] in <eae584ce26bc40229c1b1aa476bfa589>:0
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Warning] [DEBUG] Plugin compilation is already queued: EventManager (0.000 ago)
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Warning] [DEBUG] Plugin compilation is already queued: GunGame (0.000 ago)
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Info] Loading Oxide Core v2.0.3991...
22:58 [Info] Loading extensions...
22:58 [Info] Loaded extension CSharp v2.0.4041 by Oxide Team and Contributors
22:58 [Info] Loaded extension MySql v2.0.3760 by Oxide Team and Contributors
22:58 [Info] Loaded extension Rust v2.0.4973 by Oxide Team and Contributors
22:58 [Info] Loaded extension SQLite v2.0.3762 by Oxide Team and Contributors
22:58 [Info] Loaded extension Unity v2.0.3772 by Oxide Team and Contributors
22:58 [Info] Latest compiler MD5: 8ce6d27e7718e3d164766bba8833537a
22:58 [Info] Local compiler MD5: 8ce6d27e7718e3d164766bba8833537a
22:58 [Info] Using Covalence provider for game 'Rust'
22:58 [Info] Loading plugins...
22:58 [Info] Loaded plugin Rust v2.0.4973 by Oxide Team and Contributors
22:58 [Info] Loaded plugin Unity v2.0.3772 by Oxide Team and Contributors
22:58 [Info] Added '// Reference: Facepunch.Sqlite' in plugin 'ImageLibrary'
22:58 [Info] Added '// Reference: UnityEngine.UnityWebRequestModule' in plugin 'ImageLibrary'
22:58 [Error] ExType: TypeInitializationException
22:58 [Error] Exception while starting compiler version : (Exception: Magic number is wrong: 542)
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver..cctor () [0x0004d] in <eae584ce26bc40229c1b1aa476bfa589>:0
22:58 [Warning] Compiler may not be set as executable; chmod +x or 0744/0755 required
22:58 [Error] BaseException: (Exception: Magic number is wrong: 542)
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver..cctor () [0x0004d] in <eae584ce26bc40229c1b1aa476bfa589>:0
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Warning] [DEBUG] Plugin compilation is already queued: EventManager (0.000 ago)
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Warning] [DEBUG] Plugin compilation is already queued: GunGame (0.000 ago)
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:58 [Error] Error while compiling: compiler version couldn't be started
22:59 [Info] Loading Oxide Core v2.0.3991...
22:59 [Info] Loading extensions...
22:59 [Info] Loaded extension CSharp v2.0.4041 by Oxide Team and Contributors
22:59 [Info] Loaded extension MySql v2.0.3760 by Oxide Team and Contributors
22:59 [Info] Loaded extension Rust v2.0.4973 by Oxide Team and Contributors
22:59 [Info] Loaded extension SQLite v2.0.3762 by Oxide Team and Contributors
22:59 [Info] Loaded extension Unity v2.0.3772 by Oxide Team and Contributors
22:59 [Info] Latest compiler MD5: 8ce6d27e7718e3d164766bba8833537a
22:59 [Info] Local compiler MD5: 8ce6d27e7718e3d164766bba8833537a
22:59 [Info] Using Covalence provider for game 'Rust'
22:59 [Info] Loading plugins...
22:59 [Info] Loaded plugin Rust v2.0.4973 by Oxide Team and Contributors
22:59 [Info] Loaded plugin Unity v2.0.3772 by Oxide Team and Contributors
23:00 [Info] IP address from command-line: x.x.x.x
23:02 [Info] Loading Oxide Core v2.0.3991...
23:02 [Info] Loading extensions...
23:02 [Info] Loaded extension CSharp v2.0.4041 by Oxide Team and Contributors
23:02 [Info] Loaded extension MySql v2.0.3760 by Oxide Team and Contributors
23:02 [Info] Loaded extension Rust v2.0.4973 by Oxide Team and Contributors
23:02 [Info] Loaded extension SQLite v2.0.3762 by Oxide Team and Contributors
23:02 [Info] Loaded extension Unity v2.0.3772 by Oxide Team and Contributors
23:02 [Info] Latest compiler MD5: 8ce6d27e7718e3d164766bba8833537a
23:02 [Info] Local compiler MD5: 8ce6d27e7718e3d164766bba8833537a
23:02 [Info] Using Covalence provider for game 'Rust'
23:02 [Info] Loading plugins...
23:02 [Info] Loaded plugin Rust v2.0.4973 by Oxide Team and Contributors
23:02 [Info] Loaded plugin Unity v2.0.3772 by Oxide Team and Contributors
23:02 [Info] Added '// Reference: Facepunch.Sqlite' in plugin 'ImageLibrary'
23:02 [Info] Added '// Reference: UnityEngine.UnityWebRequestModule' in plugin 'ImageLibrary'
23:02 [Error] ExType: TypeInitializationException
23:02 [Error] Exception while starting compiler version : (Exception: Magic number is wrong: 542)
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver..cctor () [0x0004d] in <eae584ce26bc40229c1b1aa476bfa589>:0
23:02 [Warning] Compiler may not be set as executable; chmod +x or 0744/0755 required
23:02 [Error] BaseException: (Exception: Magic number is wrong: 542)
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver..cctor () [0x0004d] in <eae584ce26bc40229c1b1aa476bfa589>:0
23:02 [Error] Error while compiling: compiler version couldn't be started
23:03 [Info] IP address from command-line: x.x.x.x
23:04 [Info] Loading Oxide Core v2.0.3991...
23:04 [Info] Loading extensions...
23:04 [Info] Loaded extension CSharp v2.0.4041 by Oxide Team and Contributors
23:04 [Info] Loaded extension MySql v2.0.3760 by Oxide Team and Contributors
23:04 [Info] Loaded extension Rust v2.0.4973 by Oxide Team and Contributors
23:04 [Info] Loaded extension SQLite v2.0.3762 by Oxide Team and Contributors
23:04 [Info] Loaded extension Unity v2.0.3772 by Oxide Team and Contributors
23:04 [Info] Latest compiler MD5: 8ce6d27e7718e3d164766bba8833537a
23:04 [Info] Local compiler MD5: 8ce6d27e7718e3d164766bba8833537a
23:04 [Info] Using Covalence provider for game 'Rust'
23:04 [Info] Loading plugins...
23:04 [Info] Loaded plugin Rust v2.0.4973 by Oxide Team and Contributors
23:04 [Info] Loaded plugin Unity v2.0.3772 by Oxide Team and Contributors
23:04 [Info] Added '// Reference: Facepunch.Sqlite' in plugin 'ImageLibrary'
23:04 [Info] Added '// Reference: UnityEngine.UnityWebRequestModule' in plugin 'ImageLibrary'
23:04 [Error] ExType: TypeInitializationException
23:04 [Error] Exception while starting compiler version : (Exception: Magic number is wrong: 542)
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver..cctor () [0x0004d] in <eae584ce26bc40229c1b1aa476bfa589>:0
23:04 [Warning] Compiler may not be set as executable; chmod +x or 0744/0755 required
23:04 [Error] BaseException: (Exception: Magic number is wrong: 542)
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.ConsoleDriver..cctor () [0x0004d] in <eae584ce26bc40229c1b1aa476bfa589>:0
23:04 [Error] Error while compiling: compiler version couldn't be started
23:05 [Info] IP address from command-line: x.x.x.x

Thanks in advance,
Bruunooh

Locked automatically