I setup a new nextcloud manually following the guide from LearnLinuxTV.
The way I set it up:
- On an Debian 12 LXC on Proxmox
- Nextcloud version: 27.0.1
- PHP version: 8.2
- MariaDB: 10.11.3-MariaDB-1
- Redis: 7.0.11
During the setup I specify my data directory as: /mnt/matahari/data
Everything seems to run OK, but I can’t create folder or file.
I check the permissions like the followings:
matahari@nextcloud:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/pve-vm--102--disk--0 7.8G 2.8G 4.6G 38% /
/dev/loop1 98G 60M 93G 1% /mnt/matahari
none 492K 4.0K 488K 1% /dev
udev 9.6G 0 9.6G 0% /dev/tty
tmpfs 9.7G 0 9.7G 0% /dev/shm
tmpfs 3.9G 108K 3.9G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
matahari@nextcloud:~$ ls -la /mnt/matahari
total 17096
drwxr-xr-x 4 www-data www-data 4096 Aug 4 03:43 .
drwxr-xr-x 3 root root 4096 Aug 4 00:57 ..
drwxr-xr-x 5 www-data www-data 4096 Aug 4 03:16 data
drwx------ 2 nobody nogroup 16384 Aug 4 00:57 lost+found
matahari@nextcloud:~$ ls -la /mnt/matahari/data
total 216
drwxr-xr-x 5 www-data www-data 4096 Aug 4 03:16 .
drwxr-xr-x 4 www-data www-data 4096 Aug 4 03:43 ..
-rwxr-xr-x 1 www-data www-data 542 Aug 4 03:16 .htaccess
-rwxr-xr-x 1 www-data www-data 0 Aug 4 03:16 .ocdata
drwxr-xr-x 10 www-data www-data 4096 Aug 4 03:34 appdata_ocb4m90609c6
drwxr-xr-x 2 www-data www-data 4096 Aug 4 03:16 files_external
-rwxr-xr-x 1 www-data www-data 0 Aug 4 03:16 index.html
-rw-r----- 1 www-data www-data 191277 Aug 4 07:21 nextcloud.log
drwxr-xr-x 5 www-data www-data 4096 Aug 4 03:20 matahari
and here is from my nextcloud logging:
Error: RedisException: No such file or directory at <<closure>>
0. /var/www/nc.mataharifiles/lib/private/RedisFactory.php line 137
Redis->pconnect()
1. /var/www/nc.mataharifiles/lib/private/RedisFactory.php line 178
OC\RedisFactory->create("*** sensitive parameters replaced ***")
2. /var/www/nc.mataharifiles/lib/private/Memcache/Redis.php line 66
OC\RedisFactory->getInstance()
3. /var/www/nc.mataharifiles/lib/private/Memcache/Redis.php line 137
OC\Memcache\Redis->getCache()
4. /var/www/nc.mataharifiles/lib/private/Lock/MemcacheLockingProvider.php line 61
OC\Memcache\Redis->inc()
5. /var/www/nc.mataharifiles/lib/private/Files/Storage/Common.php line 765
OC\Lock\MemcacheLockingProvider->acquireLock()
6. /var/www/nc.mataharifiles/lib/private/Files/Storage/Wrapper/Wrapper.php line 607
OC\Files\Storage\Common->acquireLock()
7. /var/www/nc.mataharifiles/lib/private/Files/Storage/Wrapper/Wrapper.php line 607
OC\Files\Storage\Wrapper\Wrapper->acquireLock()
8. /var/www/nc.mataharifiles/lib/private/Files/View.php line 1917
OC\Files\Storage\Wrapper\Wrapper->acquireLock()
9. /var/www/nc.mataharifiles/lib/private/Files/View.php line 2030
OC\Files\View->lockPath()
10. /var/www/nc.mataharifiles/lib/private/Files/View.php line 1123
OC\Files\View->lockFile()
11. /var/www/nc.mataharifiles/lib/private/Files/View.php line 243
OC\Files\View->basicOperation()
12. /var/www/nc.mataharifiles/apps/dav/lib/Connector/Sabre/Directory.php line 182
OC\Files\View->mkdir()
13. /var/www/nc.mataharifiles/3rdparty/sabre/dav/lib/DAV/Server.php line 1210
OCA\DAV\Connector\Sabre\Directory->createDirectory("*** sensitive parameters replaced ***")
14. /var/www/nc.mataharifiles/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 560
Sabre\DAV\Server->createCollection("*** sensitive parameters replaced ***")
15. /var/www/nc.mataharifiles/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
Sabre\DAV\CorePlugin->httpMkcol()
16. /var/www/nc.mataharifiles/3rdparty/sabre/dav/lib/DAV/Server.php line 472
Sabre\DAV\Server->emit()
17. /var/www/nc.mataharifiles/3rdparty/sabre/dav/lib/DAV/Server.php line 253
Sabre\DAV\Server->invokeMethod()
18. /var/www/nc.mataharifiles/3rdparty/sabre/dav/lib/DAV/Server.php line 321
Sabre\DAV\Server->start()
19. /var/www/nc.mataharifiles/apps/dav/lib/Server.php line 364
Sabre\DAV\Server->exec()
20. /var/www/nc.mataharifiles/apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
21. /var/www/nc.mataharifiles/remote.php line 172
require_once("/var/www/cld.sk ... p")
I don’t know what to do and I need help to fix this. I have searched in this forum and tried many suggestions (chmod 755 on data directory, etc) but to no success.
thank you