when I try to activate samba-share in the NextcloudPiPanel I’m getting the following error:
udo: /var/www/nextcloud/occ: command not found Error reading data directory. Is NextCloud running and configured?
Apparently the NCP is unable to get the right data-directory (I moved it to a USB stick using nc-datadir), where its working without a problem.
pi@nextcloudpi:/ $ sudo du -shc /media/* 7.0G /media/myCloudUSB 0 /media/USBdrive 7.0G total
The error message is the same if I use the following command that I found here:
pi@nextcloudpi:/ $ sudo -u www-data /var/www/nextcloud/occ config:system:get datadirectory sudo: /var/www/nextcloud/occ: command not found
The same error appears if I activate fail2ban, but here NCP still manages to activate fail2ban:
udo: /var/www/nextcloud/occ: command not found System config value loglevel set to string 2 System config value log_type set to string file fail2ban enabled
Anybody knows why I’m getting this error? Is there an easy fix for it?