1. Hi,

    Using a debian linux box, I'm having issues whenever trying to reload a plugin. Rust lives under a non-root user with ownership of home/rustuser/. Ownership is re-granted whenever new files are added for mods and such.

    This is the error: [Error] Exception while calling NextTick callback (Win32Exception: ApplicationName='LD_TRACE_LOADED_OBJECTS=1', CommandLine='/home/rustserver/serverfiles/CSharpCompiler.x86_x64', CurrentDirectory='')

    I've tried chmodding the 'CSharpCompiler.x86_x64' (755) and this hasn't fixed the problem.

    I get no warning when starting the server, and have installed all of the required dependencies. Oxide version 2.0.3103, rust version: 1172.69.

    Any ideas?

    Thanks,
    Myles
     

    Attached Files:

  2. Wulf

    Wulf Community Admin

    Make sure that the RustDedicated_Data/Managed directory and all files under it are accessible and readable by the user running the server.

    The NextTick and LD_TRACE_LOADED_OBJECTS stack there is from Oxide trying to check for missing dependencies for Linux that the compiler may not be able to find.
     
  3. Everything inside the user folder (rustserver) is owned by the user - I frequently re-run 'chown rustserver -R home/rustserver' from root.

    Is there any way to know what the missing dependencies might be?
     
  4. Wulf

    Wulf Community Admin

    Well, it's a bit odd that the compiler was randomly closing when I don't see anything being reloaded or loaded. Were you trying to?
     
  5. Was trying to reload DeathNotes after altering the config.

    Just re-ran the LGSM rust debian dependency get as root - everything seems fine. The ones which look most relevant are:

    lib32gcc1 is already the newest version.
    libstdc++6 is already the newest version.
    libstdc++6:i386 is already the newest version.

    Tried re-running and this was returned:

    (17:27:10) | Reload requested for plugin which is already loading: DeathNotes
    (17:27:39) | Timed out waiting for plugin to be compiled: DeathNotes
     
  6. All sorted, kinda. Rust:IO was the problem. I created a new user on my box and followed the LGSM steps, installed oxide, installed Rust:IO and all my usual mods. Same issue as before. I then removed Rust:IO and bam - I can reload plugins.
     
  7. Wulf

    Wulf Community Admin

    It shouldn't be interfering with plugins in any way.
     
  8. Agreed! But I've tried a variety of different steps, and this issue can only be reproduced by having the rustio dll in the managed folder. Any ideas? I'm completely stumped.
     
  9. Wulf

    Wulf Community Admin

    I don't really know what the extension does exactly, but it definitely should not cause any issues with the compiler as it never even uses it.
     
  10. Does this offer any more insight? I'm so lost with this...


    ==> log/server/rust-game-2017-02-26-22:06:48.log <==
    (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
    Exception while calling NextTick callback (Win32Exception: ApplicationName='LD_TRACE_LOADED_OBJECTS=1', CommandLine='/home/rust/serverfiles/CSharpCompiler.x86_x64', CurrentDirectory='')
    (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
    Error while compiling: compiler v0.0.0.0 disconnected
    (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
     
  11. Wulf

    Wulf Community Admin

    Not really, that's the same information as before, though you do have "disconnected" now instead of "closed" like you had before. :p

    Have you tried making your entire RustDedicated_Data/Managed folder 744 or 755?

    Another thing to try would be to run this command in SSH: LD_TRACE_LOADED_OBJECTS=1 /home/rust/serverfiles/CSharpCompiler.x86_x64
    Just to see what it gives back.
     
  12. I know :( haha

    Yeah I've tried 755, 744 and even 777.

    I've just spun up another server, this time keeping the LGSM install basically vanilla, then installed oxide, then Rust IO - all from the same user with wget. Able to oxide.reload RustIO. Then wget for a plugin, and oxide.reload works on that too. Might see if I can install everything via wget and edit all configs and such via nano, perhaps the issue is with me ssh'ing via root and sftp'ing via root then chowning everything to the rust user. Not sure.

    This is the output of the above:


    root@deb2lon01:~# LD_TRACE_LOADED_OBJECTS=1 /home/rust/serverfiles/CSharpCompiler.x86_x64
    linux-vdso.so.1 (0x00007ffe65ae0000)
    libmonoboehm-2.0.so.1 => not found
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5c4376c000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f5c43b21000)

    Not entirely sure what that means - is libmono a dependency?
     
  13. Wulf

    Wulf Community Admin

    libmonoboehm-2.0.so.1 is included under RustDedicated_Data/Managed/x64 and x86 which the location is handled and set by Oxide, so that shouldn't be an issue.
     
  14. @Wulf - thanks for adding try-catch, little more info on this now. Same issue as before, but this is the new error:

    (22:43:16) | User running server may not have access to all service files
    (22:43:16) | Error while compiling: compiler v0.0.0.0 was closed unexpectedly

    Strange thing is, the user (rustserver) owns the entire user directory (home/rustserver). Is it possible that reloading a plugin is requesting use of a resource outside of the user's directory?

    I've double checked, and chowned the dir again. and ensured that home/rustserver/serverfiles/CSharpCompiler.x86_x64 is executable.

    Any ideas?
     
  15. Wulf

    Wulf Community Admin

    That new message is just a possible reason that we've seen users face. It's hard to know what a users exact setup is on Linux hosts.
     
  16. I have a similar issue myles. I have a Rust Server running on Linux and a few plugins. Sometimes, and I want to stress it is only sometimes, when I start or the server auto restarts on schedule I get the "User running server may not have access to all service files" message and all the plugins fail to load.

    I can simply load them manual from an rcon console. It doesn't happen all the time. I may have to check removing the Rust.IO plugin as I am using that too, and see if it fixes it. Really sucks when it happens.

    My file permissions are fine on all the files. The fact that it works sometime and doesn't others is the frustrating part.

    But if getting rid of Rust.IO fixes it... I just need a replace Clans plugin.
     
  17. Any update on this?

    I'm still getting this error, even when RustIO isn't loaded now - most plugins can't be reloaded.

    User running server may not have access to all service files
    Error while compiling: compiler v0.0.0.0 was closed unexpectedly
     
  18. I'm running into the same issue when trying to load the HeliControl plugin. Double-checked my perms to make sure the correct user owned the file, then did a recursive chown on the entire user folder to make sure all were owned correctly. Still no dice, and haven't come across any clues quite yet.
     
  19. same problem

    > oxide.reload CopyPaste
    User running server may not have access to all service files
    Error while compiling: compiler v0.0.0.0 was closed unexpectedly

    triple checked ownership, permissions are 777
     
  20. Anyone made any progress diagnosing this one? I spun up a new instance from scratch after the last run-in but now after a few weeks I'm running into the same problem. The first error I saw was being caused by the LD_LIBRARY_PATH env var not being set, but afterward I'm still seeing the same errors mentioned above when reloading some plugins (BetterLoot, QuickSmelt, CraftSpamBlock for starters). A few plugins will still reload however (ie Vanish). This is making things rather difficult when trying to tweak config during a wipe cycle because it now requires a full restart, which itself is pretty slow now that the navmesh generation takes so much longer.