EXT4-fs error only on 1 user directories

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:

example

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

longer
example
here

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, 20.0.5): 28.0.1.1
Operating system and version (eg, Ubuntu 20.04): 22.04.1 Ubuntu
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52 (Ubuntu)
PHP version (eg, 7.4): 8.1.27

The issue you are facing:

First, sorry for my english, I’m French … :slight_smile:

It’s the second time that this happens to my nextcloud and only for one user (already the same one, Alfred)…

First time, it was in nextcloud 27.1.3.2 - I made 2 upgrades before it happens again (27.1.4.1 and 28.0.0.11 )

everything seems to work fine, he Just can’t access to the bin and versions using the web, acces through client is ok , but when I’m looking for the files I 've got that

moi@ubuntu:/var/www/data/log$ ls -l /var/www/data/albert
ls: impossible d'accéder à '/var/www/data/albert/files_trashbin': La structure a besoin d'un nettoyage
ls: impossible d'accéder à '/var/www/data/albert/files_versions': La structure a besoin d'un nettoyage
total 16
drwxrwxr--  2 www-data www-data 4096 nov.  23  2021 cache
drwxrwxr-- 10 www-data www-data 4096 déc.  20 15:36 files
drwxrwxr--  2 www-data www-data 4096 nov.  16  2019 files_external
d?????????  ? ?        ?           ?              ? files_trashbin
d?????????  ? ?        ?           ?              ? files_versions
drwxrwxr--  2 www-data www-data 4096 déc.   9 14:54 uploads
moi@ubuntu:/var/www/data/log$ ls -l /var/www/data/franck
total 32
drwxrwxr--  2 www-data www-data  4096 oct.  23  2022 cache
drwxrwxr-- 59 www-data www-data 12288 janv. 21 12:11 files
drwxrwxr--  2 www-data www-data  4096 nov.  16  2019 files_external
drwxr-xr-x  5 www-data www-data  4096 oct.   2 12:44 files_trashbin
drwxr-xr-x 11 www-data www-data  4096 févr.  2 13:00 files_versions
drwxrwxr--  2 www-data www-data  4096 janv. 19 12:50 uploads

I have to make a fsk , a lot of inode errors like
Le décompte des i-noeuds libres est erroné pour le groupe n°5936 (7944, décompté=7947).

after fsck everything turns ok …

Strang think is that is only for that user (I’ve got 9 users) and he’s far from being the most “intensive” one

He uses nexcloud client on a mac (like some others users), last version …

Do you think it can be a client side problem ? an idea of what I can do ?

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

it’s empty !!

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

<?php
$CONFIG = array (
  'trusted_proxies' => 
  array (
    0 => '127.0.1.1',
    1 => 'xx.xx.xx.xx',
  ),
  'forwarded_for_headers' => 
  array (
    0 => 'HTTP_X_FORWARDED_FOR',
  ),
  'instanceid' => 'xxxxxxxxxxx',
  'passwordsalt' => 'xxxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'xx.xxxx',
  ),
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'activity_expire_days' => 7,
  'datadirectory' => '/var/www/data',
  'forcessl' => 'true',
  'default_language' => 'fr',
  'defaultapp' => 'file',
  'htaccess.RewriteBase' => '/',
  'dbtype' => 'mysql',
  'version' => '28.0.1.1',
  'dbname' => 'dbase',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxx',
  'dbpassword' => 'xxxxxxx',
  'logtimezone' => 'UTC',
  'log_rotate_size' => 10240,
  'installed' => true,
  'mail_from_address' => 'xxxx',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'xxxxxx',
  'loglevel' => 3,
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'xxxxxxxxx',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'xxxxxxxx',
  'mail_smtppassword' => 'xxxxxxxxx',
  'mail_smtpsecure' => 'ssl',
  'trashbin_retention_obligation' => '30, 60',
  'enable_previews' => true,
  'session_lifetime' => 600,
  'session_keepalive' => false,
  'auto_logout' => true,
  'remember_login_cookie_lifetime' => 10800,
  'default_phone_region' => 'FR',
  'default_locale' => 'fr_FR',
  'maintenance' => false,
  'versions_retention_obligation' => 'auto, 180',
  'updater.release.channel' => 'stable',
  'mail_smtpauthtype' => 'LOGIN',
  1 => 'opcache.validate_timestamps = 0',
  2 => 'opcache.jit = 1255',
  3 => 'opcache.jit_buffer_size = 128M',
  'preview_max_x' => 1024,
  'preview_max_y' => 1024,
  'preview_max_scale_factor' => 1,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\SVG',
    4 => 'OC\\Preview\\HEIC',
    5 => 'OC\\Preview\\BMP',
    6 => 'OC\\Preview\\XBitmap',
    7 => 'OC\\Preview\\MP3',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
    10 => 'OC\\Preview\\OpenDocument',
    11 => 'OC\\Preview\\Krita',
    12 => 'OC\\Preview\\MOV',
    13 => 'OC\\Preview\\MP4',
    14 => 'OC\\Preview\\OpenDocument',
    15 => 'OC\\Preview\\PDF',
  ),
  'mysql.utf8mb4' => true,
  'simpleSignUpLink.shown' => false,
  'tempdirectory' => '/tmp',
  'app_install_overwrite' => 
  array (
    0 => 'tasks',
    1 => 'calendar',
  ),
  'data-fingerprint' => 'xxxxxxxxxxxx',
  'overwrite.cli.url' => 'https://xxxxxxxxxx',
  'overwriteprotocol' => 'https',
  'theme' => '',
);

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

no error

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

it's empty !

What kind of a system is this? With an external disk as storage?

For me such disk errors could result from external connections (e.g. on raspberry pi if you have a lot of activity and the power is not sufficient), so the disk can’t run all operations and this results in errors.
It could be that your disk is slowly giving up, check the health status with smartmontools
Could be something in the code, or a service running low on memory. But that should ideally create errors in the log files somewhere.

If you fix the filesystem, how long does it take until they come back?

1 Like

thank you for your message
my disk is a sata one, 7200 rpm , 4 years old
it’s an internal one , “luksed”

fixing the file system is not long at all (about 1 minute ) and after I see the files immediately (i’m sorry , i’m not sure I understand your question “If you fix the filesystem, how long does it take until they come back?” : I’m french and my english is quite bad as you can read …

smart tools say it’s ok …
the strange thing is that it happens only on one user"s directories, always the same user and always the same directories (trasbin and version) that’s why I thougt about may be a client side “problem” …

i thought about making a new username, delete this one and reuploaded the files … cause may be it’s a problem with the trash managment program and/or the version one (?) because of “something” wrong with that user (but what ??? )
do you think it’s a good idea or useless ?

That is a clear sign that the hard drive is about to give up the ghost. Exactly at the point where these errors always occur, the first sectors are broken.
You should back up your data and replace the hard drive.

or in french:

C'est un signe clair que le disque dur est sur le point de rendre l'âme. Exactement à l'endroit où ces erreurs surviennent toujours, les premiers secteurs sont endommagés. Vous devriez sauvegarder vos données et remplacer le disque dur.


Bonne chance,
ernolf

thank you for your answer
i will proceed
:slight_smile:

If something went really wrong with just one user, perhaps manually clear the trashbin:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#trashbin-label

so also old stuff from the database and the filesystem will both get cleaned up.

yes, good idea

Is there a command for version files only for 1 user ? I didn’t find it

Thanks again for the time you take for me

++ so strange : after the command to clear the trasbin, directory files_trashbin doesn’t exists anymore but neither the files_versions directory for this user … hummm … :thinking:

10 minutes later : I just apply the new version 28.0.2.5 …

I will wait a while before changing my disk which is not so old
I will check smart tool and if it happens again, then I will change my disk .

Thank you for your help
If someone has the same “problem” (just with 1 user) and find a solution please let me know
:slight_smile:

I think I fix it : no problem with my hardware I think :wink:

As this user didn’t have a lot of activity - In nextcloud I created a file, then delete it and … “lost” permisions for files_trashbin directory …

Then I just notice somthing strange, very strange
All my users have permissions
755 for directories and 644 for files
but this user had
775 for both ddirectories and files !!! :open_mouth:

Don’t know why …
I put the right permissions and try to create/delete file in nextcloud and my files_trashbin directory is created with normal permissions, not the d??? that I had

I really don’t know why I had these permissions … anyway, everything seems ok now : ouf !!!

Il est 1 h du mat, j’y ai passé des heures, je vais dormir … :grin: :zzz:

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.