Nextcloud : No space left on device in /usr/share/nginx/nextcloud/lib/private/Log/File.php on line 89

J’ai eu l’erreur : « No space left on device in /usr/share/nginx/nextcloud/lib/private/Log/File.php on line 89 »

J’ai essayé

# sudo -u www-data php /usr/share/nginx/nextcloud/occ files:cleanup  
0 orphaned file cache entries deleted
0 orphaned mount entries deleted

J’ai bien de l’espace libre :

# du -sh /usr/share/nginx/nextcloud/
195G	/usr/share/nginx/nextcloud/
# df -h /usr/share/nginx/nextcloud/
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       908G  712G  151G  83% 
# find /usr/share/nginx/nextcloud/ -type f | wc -l
621801

Les droits sur le répertoire sont bons …

Je vais essayé un scan complet :

# sudo -u www-data php /usr/share/nginx/nextcloud/occ files:scan --all
+---------+--------+--------------+
| Folders | Files  | Elapsed time |
+---------+--------+--------------+
| 22476   | 326448 | 00:47:17     |
+---------+--------+--------------+

J’ai du mal à comprendre …

Au final j’ai fixé en ajoutant dans NGINX :

    large_client_header_buffers 4 16k;
    client_max_body_size 300m;
    client_body_buffer_size 128k;
    proxy_connect_timeout 600;
    proxy_read_timeout 600;
    proxy_send_timeout 600;
    proxy_buffer_size 64k;
    proxy_buffers   4 32k;
    proxy_busy_buffers_size 64k;
    proxy_temp_file_write_size 64k;

Et en suprimant certains plugins :

MetaData
Joplin
Google Sync

Nextcloud : Migration to 25.0.3

En passant

J’ai fait la migration sur 25.0.3 sur Ubuntu.

  • Système d’exploitation: Linux 5.15.0-58-generic x86_64
  • CPU : Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz (8 cores)
  • Mémoire : 62.50 GB
  • Version : 8.1.2
  • Limite de mémoire PHP : 512 MB
  • Max Execution Time PHP : 3600
  • Taille de téléversement maximale PHP : 512 MB
  • Type : mysql
  • Version : 10.6.11
  • Taille : 955 MB

j’ai eu aucun problème ….

NEXTCLOUD 24.0.1 : Migration de php 7.3 vers 7.4

J’ai utilisé l’outil de migration de NextCloud sauf pour PHP.

Migration de php 7.3 vers php 7.4, le fichier /etc/php/7.4/fpm/pool.d/www.conf  :

# cat /etc/php/7.4/fpm/pool.d/www.conf | grep -v ";" | grep -v "^$"
[www]
user = www-data
group = www-data
listen = /run/php/php7.4-fpm.sock
listen.owner = www-data
listen.group = www-data
pm = dynamic
pm.max_children = 10
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
php_admin_value[error_log] = /var/log/fpm-php.www.log
php_admin_flag[log_errors] = on
php_admin_value[memory_limit] = 1024M

 

Les modules que j’ai du installer :

sudo apt-get install php7.4-fpm
sudo apt install php-imagick
sudo apt install php7.4-bcmath

Et la creation d’index :

# cd /usr/share/nginx/nextcloud/
# sudo -u www-data php7.4 --define apc.enable_cli=1 occ db:add-missing-indices
PHP Warning:  Module 'apcu' already loaded in Unknown on line 0
Check indices of the share table.
Check indices of the filecache table.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Check indices of the schedulingobjects table.
Check indices of the oc_properties table.
Check indices of the oc_jobs table.
Check indices of the oc_direct_edit table.
Adding direct_edit_timestamp index to the oc_direct_edit table, this can take some time...
oc_direct_edit table updated successfully.

NEXTCLOUD : Problème d’index

J’avais l’erreur suivante :

La base de données a quelques index manquants. L’ajout d’index dans de grandes tables peut prendre un certain temps. Elles ne sont donc pas ajoutées automatiquement. En exécutant « occ db:add-missing-indices », ces index manquants pourront être ajoutés manuellement pendant que l’instance continue de tourner. Une fois les index ajoutés, les requêtes sur ces tables sont généralement beaucoup plus rapides.

-Index « fs_id_storage_size » manquant dans la table « oc_filecache ».
-Index « fs_storage_path_prefix » manquant dans la table « oc_filecache ».
-Index « properties_pathonly_index » manquant dans la table « oc_properties ».
-Index « job_lastcheck_reserved » manquant dans la table « oc_jobs ».

J’ai du mal à comprendre pourquoi les index ne sont pas fait automatiquement :

$ sudo -u www-data php8.0 /usr/share/nginx/nextcloud/occ db:add-missing-indice
Check indices of the share table.
Check indices of the filecache table.
Adding additional size index to the filecache table, this can take some time...
Filecache table updated successfully.
Adding additional path index to the filecache table, this can take some time...
Filecache table updated successfully.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Check indices of the schedulingobjects table.
Check indices of the oc_properties table.
Adding properties_pathonly_index index to the oc_properties table, this can take some time...
oc_properties table updated successfully.
Check indices of the oc_jobs table.
Adding job_lastcheck_reserved index to the oc_jobs table, this can take some time...
oc_properties table updated successfully.

Le problème est maintenant fixé.