Hello everyone. This is amazing software. Thanks to everyone involved.
/
My YunoHost server
Hardware: Raspberry Pi at home / YunoHost version: 11.1.21.4 I have access to my server : Through SSH | through the webadmin | Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes If yes, please explain: I moved my home and var folders, following these instructions: Adding an external storage to your server | Yunohost Documentation If your request is related to an app, specify its name and version: nextcloud app 26.0.3~ynh1
Description of my issue
I attempted to install Nextcloud through the applications section of the administration page of my newly-set up Yunohost machine. It failed and gave me the error log linked below. I searched for further information but have found nothing.
I had got all green on the diagnosis page before I attempted this. I am using a subdomain of my secondary tld. I wonder whether this might complicate things. Also, I have a RAID array set up through a SATA hat on my Pi. Before I attempted to install any apps, I moved my āhomeā and āvarā folders to this, as mentioned above.
I have noticed this line in the error log:
Cannot create or write into the data directory /home/yunohost.app/nextcloud/data
Iām wondering whether Iāve got the permissions wrong on the folders in my RAID mount. Iām peering into that rabbit hole now, trying to work it out, but if anyone can help to clarify, Iād be really grateful.
Is this a matter of the Nextcloud Yunohost app being broken, or have I done something wrong?
@Danceswithcats
You should check the permissions of your directories. As /home is obviously mounted on another disk, it may be that only root has rights on this partition.
Firstly, I really appreciate your help. Thanks to the encouragement I drew from your replies, I have also been reading about permissions, and learning from your pointers. This is the true value of informed sharing of knowledge. I am really grateful.
Bad news!
ls -l /home/yunohost.app
gave me
Total: 0
Apparently, I did a bad job of moving the directories, and it confused the Nextcloud installer.
With a couple of posts, youāve made me see that I have to rethink.
I donāt think that installing the system on the sd card and then trying to move components to the RAID disks is a sensible process and it will not lead to a resilient server. Once I start playing with the basic Yunohost installation, things get complicated and an sd card isnāt the best medium for a system drive on an always-on machine anyway.
It occurs to me that if I installed Raspberry Pi OS onto my sd card then installed raspberry pi imager and gparted onto that system, I could install Yunohost directly onto my RAID array. This would mean that Yunohost could just do its thing, unmuddled by my blundering, and I wouldnāt be relying upon an sd card to run my server. I am not easy about having a server running from a little bit of plastic and foil. Resilience is one of the reasons for using RAID.
I remember it was possible to install the operating system on the external storage of the Raspberry Pi, the SD Card is there only for boot.
There are various documentations on how to do this.
do you know where these documentations are? I have found this, but itās not precisely what Iām looking for. What you describe would be perfect.
Since we last spoke, I have tried booting with a Raspberry Pi OS and putting a Yunohost image onto my RAID array with dd. That didnāt work, but I think I know why: Iāll look at fstab again when I have time, but Iām too tired now.