jsegaert / iocage-plugin-mineos

Artifact file(s) for MineOS iocage plugin
6 stars 5 forks source link

MineOS iocage install is missing packages. SOLVED #10

Open phazonxl opened 1 year ago

phazonxl commented 1 year ago

Hello. I'm writing this to tell about an issue I had while trying to use the mineOS installation you provided via iocage/TrueNAS. I clicked truenas' "documentation" button for this plugin, and it brought me to this github page. So here I am.

Main problem: Backups/restore points don't work with default installation.

I installed MineOS with default settings via the "community plugins" section. After install, I go to log in, and create a minecraft server. I run the server, it runs fine... but backups don't work at all. I did some testing and found out why. Details below.

I looked up this issue and someone said to test this problem in the commandline with "rdiff-backup". When I entered the command, I get this error (screenshot link) https://cdn.discordapp.com/attachments/1068317426044915793/1068322793864839278/image.png

The error mentions "module not found error: no module named 'yaml'.

Here's the steps I had to do in order to get things working normally so backups would work again in the MineOS UI:

  1. install "pip" using info from this guide: https://pip.pypa.io/en/latest/installation/
    The command I used was "python -m ensurepip --upgrade"

  2. install "yaml" module The command I used was "python3.9 -m pip install pyyaml"

After these steps, MineOS was able to make backups like it used to in older installations.

Hope that helps. Let me know if you need more info than that. Please fix. This was super annoying to figure out because I'm not a coder or anything. Major hours of headaches for plenty of other users out there, I'm sure. I also brought this up in the MineOS form. here's the link:

https://discourse.codeemo.com/t/restore-points-fail-completely-stock-installation/6126

jsegaert commented 1 year ago

Thanks for reporting this. I'll take a look.

mruiz42 commented 1 year ago

Wanted to add that I couldn't get it working when creating a mount point for the /var/games/minecraft path, had to create mount points for each directory individually except for the import folder, otherwise the web ui would stop working. On top of that, following your fix I had no success getting the backups feature working in the jail shell as root or mcserver user. I have given the mount point permissions for mcserver(199) but kept getting "Permission Denied" when running rdiff-backup from the shell (as both mcserver AND root), which makes me think it's a ACL permission problem I might have overlooked. Removing the mount point for backup only seems to fix this caveat, but makes it a bit more tedious accessing the backups if I needed to do any manual intervention without using the jail.