TheRemote / MinecraftBedrockServer

Sets up a Minecraft Bedrock dedicated server on Ubuntu with options for automatic updates and running at startup
https://jamesachambers.com/minecraft-bedrock-edition-ubuntu-dedicated-server-guide/
MIT License
811 stars 173 forks source link

Autostart not working when using separate data disk #102

Closed tobimax closed 3 years ago

tobimax commented 3 years ago

Hi,

Running on Ubuntu 20.4 in Azure, the Auto Start is just not working. I installed into a separate disk (/datadrive) I can start the server manually but it just when using the service start it fails.

sudo systemctl start thedatacrew

A dependency job for thedatacrew.service failed. See 'journalctl -xe' for details.

And the dependency is the datadrive.mount

although the /datadrive is automounted via fstab

any ideas how to get this working on a separate drive?

thanks

toby.

TheRemote commented 3 years ago

Hey tobimax,

What does journalctl -xe say?

The script doesn't actually have any dependencies. The only thing it "depends" on would be: WantedBy=multi-user.target

This system does not appear to be functioning normally. That is actually just a normal system run state and not a "dependency" like something installed.

Is this disk actually mounted at startup? It may not be getting mounted soon enough if a script mounts it or something like that instead of /etc/fstab.

Can you post your journalctl -xe? Is this system in single user mode for some reason? Something is not right here. The script should not be capable of knowing or caring if something is mounted from a different disk. This seems more fundamental here but we can take a look at the output!

TheRemote commented 3 years ago

Guessing that this was solved here as something with the automount or something that was likely very clear when checking journalctl -xe. Definitely feel free to reopen if this isn't the case!