i have tried everything i can think of to get rid of this error. i have even reinstalled nextcloud. i can get rid of the message by changing my config but i know this is not correct way to do this. so i would like some help with doing this the correct way.
I’m running this on my server dell pweredge R720xd with over 100Tb of storage
the OS
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
my fstab for the raid drive is
/dev/disk/by-uuid/2018BA0A2C80DD9C /mnt/2018BA0A2C80DD9C auto quiet,defaults,permissions,locale=en_US.utf8 0 0
For me the issue sounds more or less clear - for Nextcloud directories/files the owner should be your webserver user (www-data is common) and have 750/640 permissions
kindly list what you tried and why this failed
re-installation of Nextcloud doesn’t change your storage…
Permissions are a classic point of confusion because we either master them or keep really clear reference notes. There is no way around it when attaching your storage and then giving your applications access.
Thankfully, it is not too difficult to understand.
Practice for a bit and it will make sense, like riding a bicycle.
These should help you understand the differences between ownership and access to the location so you can adjust as needed.
Know what your current permissions and ownership are.
Understand what permissions options are possible.
Adjust to taste.
off-topic, but Permissions remind me a bit of this fantastic SNL Sketch about science:
Dr. Charles Claproth: Molecules are very small. There are as many molecules in a teaspoon of water, as there are teaspoons of water in the Atlantic Ocean. Peter Graves: So molecules are very, very small, then. Dr. Charles Claproth: Yes. Peter Graves: But Doctor… you said they were very small. Dr. Charles Claproth: Yes. Peter Graves: So, you were wrong. Dr. Charles Claproth: [ grimacing ] Yes.
ok thank you for the help. I’m not sure if this is related or off topic. but i am also getting this after I updated nextcloud.
sudo -u www-data php /var/www/nextcloud/occ db:add-missing-indices
An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver in /var/www/nextcloud/lib/private/DB/Connection.php:139
I’ve already looked at that and the things i found I have Tried 1) sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on
i got
An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver in /var/www/nextcloud/lib/private/DB/Connection.php:139
so i went in to the config.php and put true for maintenace 2) chown -R www-data:www-data /mnt/2018BA0A2C80DD9C/DATA/data 3) chmod -R 750 /mnt/2018BA0A2C80DD9C/DATA/data
this seems to have fixed the error on login 4) sudo -u www-data php /var/www/nextcloud/occ maintenance:repair
i still get this error
An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver in /var/www/nextcloud/lib/private/DB/Connection.php:139
and i can’t move passed this
please help
if someone can help. i decided to wipe my nextcloud and start over due to many bugs. i believe i caused by messing with the configs. now that i installed a fresh copy of ubuntu 2204 and nextcloud 25.0.4 i am getting a error when i try to run htaccess.
sudo -u www-data php8.1 /var/www/nextcloud/occ maintenance:update:htaccess
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
when i check to see if i have all the modules installed and enabled this is what i get.
i have tried to add apc.enable_cli=1 to the cli config and all that does is give me a different error
sudo -u www-data php8.1 /var/www/nextcloud/occ maintenance:update:htaccess
Your data directory is readable by other users.
Please change the permissions to 0770 so that the directory cannot be listed by other users.
An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /var/www/nextcloud/lib/private/Console/Application.php:166
Stack trace: #0 /var/www/nextcloud/console.php(99): OC\Console\Application->loadCommands() #1 /var/www/nextcloud/occ(11): require_once(‘…’)