Ubuntu 18.4 External HDD exFat setup not working

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

I have used Ubuntu 18.4 and External HDD with exFat
I got login page, I have mounted hdd to a directory created, given it permission

nano /etc/fstab/
added line
/dev/sda1 /datastore exFat defaults 0 0

mkdir /datastore
chown www-data:www-data /datastore
chmod 0770 /datastore

after this created database and granted all privileges to admin user, then tried to access localhost/nextcloud
I got the login page,
when i have added all the credentials, after few moments system has returned error…

Or for longer, use three backticks above and below the code snippet:

Some or all of the below information will be requested if it isn't supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2):13.0.5
Operating system and version (eg, Ubuntu 17.04): 18,4
Apache or nginx version (eg, Apache 2.4.25): 2.4.34
PHP version (eg, 7.1):7.1.19

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):Y

Steps to replicate it:

  1. nano /etc/fstab/ /dev/sda1 /datastore exFat defaults 0 0
  2. chown www-data:www-data /datastore
  3. chmod 0770 /datastore
  4. mysql -u root
  5. created database nextcloud
  6. created admin user
  7. granted privileges

The output of your Nextcloud log in Admin > Logging:

Error

Your data directory is readable by other users

Please change the permissions to 0770 so that the directory cannot be listed by other users.```

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

Error
Your data directory is readable by other users
Please change the permissions to 0770 so that the directory cannot be listed by other users.


The output of your Apache/nginx/system log in `/var/log/____`:

PASTE HERE

ExFAT does not know about file attribute that means chmod 0770 does not work.

That’s why ext4 file system is recommended for Nextcloud.