Nextcloud Permission issues after updating to 27.1.0

GJSchaller

Contributor
Joined
Feb 10, 2021
Messages
100
I have Nextdcloud installed using @danb35 's script, which has been wonderful and reliable so far. Sunday evening, I updated Nextcloud from 27.0.2 to 27.1.0 using the CLI command to run the update. After this was done, I can still access the UI via the web, but all my files appear to be missing, and I am unable to create any new ones using the UI. Adding files to my local folder that is synced with Nextcloud results in an error from the server as well (500, I believe).

When I check the jail, the files are all there, and the mounts are mounted properly. The files are owned by user www, which should be normal.

When I check my logs, I see a bunch of the following:

Code:
Error    core    RedisException: Permission denied


I did delete the jail and re-create it using the script, but the issue persists - it looks like something changed with 27.1.0?
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
I just did an update from 26.0.2 to 27.1.0
No issues.

Who owns the redis socket?

Can you run this chmod 777 /var/run/redis/redis.sock
The script is set to run this command, but maybe it didn't run it properly.

Also what is the redis value in /usr/local/www/nextcloud/config/config.php?
 

GJSchaller

Contributor
Joined
Feb 10, 2021
Messages
100
Here's my output:

Code:
To change this login announcement, see motd(5).
root@nextcloud:~ # cd /var/run/redis/
root@nextcloud:/var/run/redis # ls -l redis.sock
srwxrwx---  1 redis  redis  0 Sep 19 08:31 redis.sock
root@nextcloud:/var/run/redis # chmod 777 redis.sock
root@nextcloud:/var/run/redis # ls -l redis.sock
srwxrwxrwx  1 redis  redis  0 Sep 19 08:31 redis.sock


The issues seems to be persisting, although the Redis error is no longer being generated in my logs when I try to create a folder. (No errors are being generated in the log, for that matter, which is odd.)

The following error appears when I try to create a test folder, on the web UI:

Screenshot 2023-09-19 102227.png
 

GJSchaller

Contributor
Joined
Feb 10, 2021
Messages
100
Noticed some oddities between the Web UI and my phone app, which may help solve this.

I created a new folder in the Web UI called "Testing123" that gave the same error as above.

When I looked on my phone, in the Nextcloud app, I did see the folder there - it was created successfully in Nextcloud.

When I looked at the server's file system, I see the folder there as well, but with different permission from other folders:

Code:
drwxrwx---   2 www  www        4 May  1  2022 Mac Scripts and Commands
drwxrwx---   2 www  www       11 May  1  2022 Mailing Labels
drwxrwx---   2 www  www       10 May  1  2022 Photo Archives
drwxrwx---  22 www  www       60 May 17 20:26 Photos
drwxrwx---   5 www  www       18 Jul 22  2022 ReadyNAS
drwxrwx---   2 www  www        8 May  1  2022 Recipies
drwxrwx---   2 www  www        3 May  1  2022 Ringtones
drwxrwx---   6 www  www        7 May 25  2022 Routers
drwxrwx---   2 www  www        5 Aug 12 16:43 SimpleHelp
drwxrwx---   4 www  www        9 Apr 27 08:24 Temp and Transfer
drwxrwx---   2 www  www       13 May  1  2022 Templates
drwxr-xr-x   2 www  www        2 Sep 19 10:44 Testing123
drwxrwx---   2 www  www       20 Sep  9 21:00 To Print
-rwxrwx---   1 www  www     1165 Sep 22  2022 TotD.txt
drwxrwx---   5 www  www       12 Sep  4 15:12 TrueNAS
drwxrwx---   2 www  www        3 Sep 21  2022 Videos
drwxrwx---   9 www  www       10 Sep 16 15:52 Web Apps
drwxrwx---   7 www  www        7 Jun  3 10:45 Websites
drwxrwx---   3 www  www       14 May  1  2022 Wedding
drwxrwx---   2 www  www      225 May  1  2022 Wedding Photos
 

GJSchaller

Contributor
Joined
Feb 10, 2021
Messages
100
Also what is the redis value in /usr/local/www/nextcloud/config/config.php?

Sorry I missed this earlier. It is:

Code:
'redis' =>
array (
   'host' => '/var/run/redis/redis.sock',
   'port' => 0,
   'timeout' => 0.0,
),
 

GJSchaller

Contributor
Joined
Feb 10, 2021
Messages
100
I wound up just backing up my data, deleting the jail & dataset, and recreating everything. In the end, faster than trying to troubleshoot.
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
I wound up just backing up my data, deleting the jail & dataset, and recreating everything. In the end, faster than trying to troubleshoot.
Even though I have also done this many times, I can imagine the pain it would be if you were to heave terabytes of data there.

But yes, I really have no idea what really happened.
 
Top