New install of NC15 on a Raspbian Jesse 9 RPI3 (bash script install). Have a WD 2T drive on USB. Used NCP wizard to format that with BTRFS and use it as nc-datadir. ncp sets the nc-datadir to be /media/USBdrive/ncdata which is a symlink to /media/myCloudDrive
ncp admin user works fine, has the default files (Nextcloud manual pdf etc) but when I create a new user then attempt to login as that user the first login will fail with āInternal Server Errorā, subsequent login succeeds, but Files is blank. Not a huge issue as Iād normally delete those files anyway but something is obviously wrong.
Log file shows:
{āreqIdā:āXEZopH8AAQEAAGNn6C4AAAsRā,ālevelā:3,ātimeā:ā2019-01-22T00:49:40+00:00ā,āremoteAddrā:ā10.10.10.1ā,āuserā:ātestuserā,āappā:ācoreā,āmethodā:āPOSTā,āurlā:
ā/index.php/loginā,āmessageā:āFollowing symlinks is not allowed (ā/media/USBdrive/ncdata/testuser/cacheā -> '/media/myCloudDrive/ncdata/testuser/cache/
ā not inside ā/media/USBdrive/ncdata/testuser/ā)ā,āuserAgentā:āMozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome
/71.0.3578.98 Safari/537.36ā,āversionā:ā15.0.2.0ā}
I have done a permissions fix after getting this error on one user and before creating another - same result
Permissions are as follows:
root@nextcloudpi:/media# ls -al
total 24
drwxr-xr-x 3 root root 4096 Jan 22 10:23 .
drwxr-xr-x 21 root root 4096 Jan 19 16:34 ā¦
drwxr-xr-x 1 root root 34 Jan 22 11:19 myCloudDrive
lrwxrwxrwx 1 root root 19 Jan 22 10:23 USBdrive -> /media/myCloudDrive
root@nextcloudpi:/media/myCloudDrive# ls -al
total 20
drwxr-xr-x 1 root root 34 Jan 22 11:19 .
drwxr-xr-x 3 root root 4096 Jan 22 10:23 ā¦
drwxr-xā 1 www-data www-data 246 Jan 22 11:49 ncdata
drwxr-xr-x 1 root root 74 Jan 22 11:19 ncp-backups
I tried following the advice to not use symlinks in this post, although this is a later NC version and I only have one drive but I changed nc-datadir to point to /media/myCloudDrive/ncdata instead of via the /media/USBdrive/ncdata but that failed and then the installation was very broken (ncdata existed but was owned by root and no files, tools kept throwing errors because they couldnāt find ncdata etc) so I reinstalled. Stuck on same issue.