NextCloud: Unrecoverablely broken?
-
I am hoping that I haven't managed to really break my instance of NC. That being said - it's a chance to learn what to do, what I shouldn't have done, and more importantly - how to fix it (I hope) without killing it - yet again (Snapshots are in place)
My NC is for a few fellows I game with, we record and share videos of our game play - some more funny than others. More recently, I've added the Recipe module for my and family use.
However, last night I learned that a share wasn't visible to one of the fellows even though he is in the group. I dis\joined him to the group, which of course didn't resolve the issue.
Top of this image is the directory that is shared. I see that a few files show different permissions over the rest.
The bottom is my user/files folder where the share is located. - and again I see that a few folders are different - which here I would understand. Only two of these folders are shared, one to a single person, the other to the group.
Folders in red boxes are the only ones shared.
I've had to recover from 'errors' using the SnapShot - and after doing so, re-uploaded the files, reset the permissions and updated the database. However - some how or another - something is amiss as not everyone can see the share(s).
Scan and update database:
cd /var/www/html/ sudo -u www-data php occ files:scan --all
Correct file permissions / ownership - Done for each user
sudo chmod 755 -R /var/www/html/data/user29801/ sudo chown -R www-data:www-data user29801/
I am hoping there is a reasonable process to correct this over having to yet again kill it, it's not a huge issue for me,.. but the fellows I game with are pretty tired of issues in accessing it. - to be honest - so am I.
-
Maybe -
Is it possible that by 'fixing' the file permissions via cli I managed to 'break' the set permissions on the share? I went to the Share/settings and seems that the groupname was missing. may have resolved the issue...
-
@gjacobse said in NextCloud: Unrecoverablely broken?:
we record and share videos of our game play - some more funny than others. More recently, I've added the Recipe module for my and family use.
YouTube or Twitch for this.
-
Bottom line, in NextCloud you shouldn't be looking at the files from the command line, ever. Not NextCloud files anyway. Permissions are meant to be handled by the app and it's database, not by the filesystem.
-
@scottalanmiller said in NextCloud: Unrecoverablely broken?:
Bottom line, in NextCloud you shouldn't be looking at the files from the command line, ever. Not NextCloud files anyway. Permissions are meant to be handled by the app and it's database, not by the filesystem.
I’ll keep that in mind.
-
@gjacobse said in NextCloud: Unrecoverablely broken?:
Maybe -
Is it possible that by 'fixing' the file permissions via cli I managed to 'break' the set permissions on the share? I went to the Share/settings and seems that the groupname was missing. may have resolved the issue...
Yes, that would be expected. Any change of any type to those perms would be expected to be breaking.
-
@gjacobse said in NextCloud: Unrecoverablely broken?:
I went to the Share/settings and seems that the groupname was missing. may have resolved the issue...
Yeah, that's where it has to be handled. That's the only place that those perms exist. They are part of NC, and NC only.
-
@scottalanmiller said in NextCloud: Unrecoverablely broken?:
Bottom line, in NextCloud you shouldn't be looking at the files from the command line, ever. Not NextCloud files anyway. Permissions are meant to be handled by the app and it's database, not by the filesystem.
Well mostly. Nextcloud needs the files to have the right system permissions.
But user permissions have nothing to do with system permissions.
Also, for a few specific instances, I do quite a bit with Nextcloud files on the command line. But that is a very specific use case, and also has nothing to do with group or share permissions.