mdarkness1988 / Rust-Server

Modified Rust Server from didstopia
MIT License
8 stars 18 forks source link

Mod/Permissions Issue #17

Closed StuDaBaiker closed 5 years ago

StuDaBaiker commented 5 years ago

Describe the issue you are having Answer: Every time the server starts after the initial install oxide will not run.

What was you doing before it happened Answer: Server is shut down nightly for appdata backup, requires manual intervention to get running again.

What are you running on (please complete the following information):

Additional information Have found a way to get it working but it requires manual work every day after the server is shut down for backups.

Server will start normally after a reboot, but nothing in the oxide folder will run, and the RustIO map plugin that is located in the RustDedicated_Data/Managed folder will not run.

I believe the permissions are changing so the server can't see the files on startup. I've tried to only set new permissions on the oxide and Managed folders with no luck.

However if I run newperms /mnt/cache/appdata/Rust-Server/ and delete all the files that aren't in folders in the Rust-Server directory it will work. I think the files need to be deleted because newperms doesn't set the correct permissions for them. If I try to set permissions and run it will say it doesn't have permission to access RustDedicated.

Hopefully this can be resolved, its super annoying and I saw someone else was having the same issue but didn't receive a response. Hopefully the troubleshooting and steps make it easy to find and fix. I feel like I'm pretty close to finding the workaround but if I have any more issues with this I'm about to give up on Rust.

mdarkness1988 commented 5 years ago

Hi. Thank you for you input. That is strange and will see what I can do but that sounds like a os unraid permission issue rather then the rust coding itself.

Any updates please let me know. I will still look into this for you.

StuDaBaiker commented 5 years ago

I was able to work on this a bit today and was able to narrow it down to a specific file. It has nothing to do with the permissions, if I delete Rust-Server\Compiler.x86_x64 everything works correctly after it downloads the file again.

mdarkness1988 commented 5 years ago

That's strange. Must of installed it incorrectly the first time. Has it been working ever since?

StuDaBaiker commented 5 years ago

No, the file has to be deleted every time it is shut down

mdarkness1988 commented 5 years ago

So no access to that file is the issue?

mdarkness1988 commented 5 years ago

I set that file as following (chmod +x) And the folder of the file as chmod -R 777

StuDaBaiker commented 5 years ago

No permissions stay the same. Before and after show read, write, and executable for root user. -rwx------ 1 root root 4149004 Jul 14 10:58 Compiler.x86_x64*

The server will run after a reboot, oxide never starts and neither does the RustIO map which is located in Rust-Server/RustDedicated_Data/Managed

StuDaBaiker commented 5 years ago

I tried a graceful shutdown as well in case being force closed by the backup was corrupting the file but it does the same thing.

mdarkness1988 commented 5 years ago

So if I tell it to delete the file and install it on every startup with everything work as normal just for a temp fix?

StuDaBaiker commented 5 years ago

That should do the trick

mdarkness1988 commented 5 years ago

Please confirm an update has been released to fix this error?

StuDaBaiker commented 5 years ago

The update is available, I will test it out when I'm home from work

StuDaBaiker commented 5 years ago

I think there might be a typo in the update. I'm getting a syntax error now and it won't run at all.

./start.sh: line 64: syntax error near unexpected token fi'

mdarkness1988 commented 5 years ago

Hoping it's fixed now lol.

StuDaBaiker commented 5 years ago

Running like a champ! Is there any way to use a map from a previous version?

EDIT: Got it working by renaming the backup to what the newly generated map and save was.

StuDaBaiker commented 5 years ago

Thanks so much for the help! Much appreciated!

mdarkness1988 commented 5 years ago

Glad to help. Sorry took so long