Files not display on nextcloud webapp

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12
What app is this about: nextcloud

Describe your issue

Hi,

I have a little problem.
I installed nextcloud a while ago on an old i386 computer.
At first it was for testing but the use has become central and quite intensive in the family.
Since the migration of Debian Bookworm and YunoHost 12, nextcloud no longer displays files in browsers (the other apps work).

The files are there when I synchronize them on my computer.
More bizarre (well I think so): deleted files are visible in the webapp.

Here’s some info about the config:
image

I tested several things that I had tested and read here and there:

sudo -u www-data php8.2 --define apc.enable_cli=1  /var/www/nextcloud/occ  maintenance:repair

sudo -u #XXX php8.1 /var/www/nextcloud/occ files:scan --all

But well it didn’t work, let’s say that among the things that it returned to me, I have the impression that the most interesting is this:

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?)

Would all this give you some clues to help me?

Thanks in advance

Share relevant logs or error messages

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?)

The error message is because you don’t use apc.enable_cli=1 option, it’s not the reason why you don’t see your files.

Do you understand what do this commands? YOu use php8.2 in the first and php8.1 in the second, don’t you think that there is an error?

First, what is the php version use by Nextcloud? You can use this command to find it :

lsof  | grep /var/run/php | grep nextcloud|echo "Nextcloud use $(awk '{print  $9}' | awk -F'-' '{print $1}'| cut -d'/' -f5)"

What the rights of your files, user, group? You can find them with :

ls -l /home/yunohost.app/nextcloud/data/*/files/

If they are all the same, you can give only one example.

oops sorry

Thanks for your help.

To be honest I don’t know these commands well but I think I understand that the first is to try to repair the PHP of nextcloud and the 2nd to force the scan of files hosted by nextcloud.

Indeed the first time I got the wrong version of php and it is this error that I stupidly shared here.
I tried the command again with php8.2 but it didn’t work either.

Here is what the first command you asked me returns:
Nextcloud use php8.2

and here is the 2nd:

/home/yunohost.app/nextcloud/data/admin/files/:
total 0

/home/yunohost.app/nextcloud/data/user1/files/:
total 19652
drwxr-xr-x 2 nextcloud nextcloud     4096  3 déc.  12:54  Documents
drwxr-xr-x 2 nextcloud nextcloud     4096  3 déc.  12:54  Modèles
-rw-r--r-- 1 nextcloud nextcloud  3963036  3 déc.  12:54 'Nextcloud intro.mp4'
-rw-r--r-- 1 nextcloud nextcloud 15070010  3 déc.  12:54 'Nextcloud Manual.pdf'
-rw-r--r-- 1 nextcloud nextcloud    50598  3 déc.  12:54  Nextcloud.png
drwxr-xr-x 2 nextcloud nextcloud     4096  3 déc.  12:54  Photos
-rw-r--r-- 1 nextcloud nextcloud      206  3 déc.  12:54  Readme.md
-rw-r--r-- 1 nextcloud nextcloud   976625  3 déc.  12:54 'Reasons to use Nextcloud.pdf'
-rw-r--r-- 1 nextcloud nextcloud     2403  3 déc.  12:54 'Templates credits.md'

/home/yunohost.app/nextcloud/data/user2/files/:
total 19652
drwxr-xr-x 2 nextcloud nextcloud     4096 22 mars   2024  Documents
drwxr-xr-x 2 nextcloud nextcloud     4096 22 mars   2024  Modèles
-rw-r--r-- 1 nextcloud nextcloud  3963036 22 mars   2024 'Nextcloud intro.mp4'
-rw-r--r-- 1 nextcloud nextcloud 15070010 22 mars   2024 'Nextcloud Manual.pdf'
-rw-r--r-- 1 nextcloud nextcloud    50598 22 mars   2024  Nextcloud.png
drwxr-xr-x 2 nextcloud nextcloud     4096 22 mars   2024  Photos
-rw-r--r-- 1 nextcloud nextcloud      206 22 mars   2024  Readme.md
-rw-r--r-- 1 nextcloud nextcloud   976625 22 mars   2024 'Reasons to use Nextcloud.pdf'
-rw-r--r-- 1 nextcloud nextcloud     2403 22 mars   2024 'Templates credits.md'

/home/yunohost.app/nextcloud/data/user3/files/:
total 4624
drwxr-x--- 2 nextcloud nextcloud    4096 13 juin   2018  Documents
-rw-r----- 1 nextcloud nextcloud 4247330 13 juin   2018 'Nextcloud Manual.pdf'
-rw-r----- 1 nextcloud nextcloud  462413 13 juin   2018  Nextcloud.mp4
drwxr-x--- 2 nextcloud nextcloud    4096 13 juin   2018  Photos

/home/yunohost.app/nextcloud/data/user4/files/:
total 4916
drwxr-x--- 2 nextcloud nextcloud    4096 15 mai    2018  Documents
drwxr-x--- 3 nextcloud nextcloud    4096  4 févr.  2024  InstantUpload
-rw-r----- 1 nextcloud nextcloud 4540395 28 déc.   2018 'Nextcloud Manual.pdf'
-rw-r----- 1 nextcloud nextcloud  462413 28 déc.   2018  Nextcloud.mp4
drwxr-x--- 2 nextcloud nextcloud    4096 15 mai    2018  Photos

/home/yunohost.app/nextcloud/data/user5/files/:
total 16292
drwxr-x--- 2 nextcloud nextcloud     4096 13 mars   2022  Documents
drwxr-x--- 2 nextcloud nextcloud     4096 13 mars   2022  Modèles
-rw-r----- 1 nextcloud nextcloud  3963036 13 mars   2022 'Nextcloud intro.mp4'
-rw-r----- 1 nextcloud nextcloud 11640931 13 mars   2022 'Nextcloud Manual.pdf'
-rw-r----- 1 nextcloud nextcloud    50598 13 mars   2022  Nextcloud.png
drwxr-x--- 2 nextcloud nextcloud     4096 13 mars   2022  Photos
-rw-r----- 1 nextcloud nextcloud   976625 13 mars   2022 'Reasons to use Nextcloud.pdf'

/home/yunohost.app/nextcloud/data/user6/files/:
total 10812
drwxr-x--- 2 nextcloud nextcloud    4096 27 sept.  2020  Documents
-rw-r----- 1 nextcloud nextcloud 3963036 27 sept.  2020 'Nextcloud intro.mp4'
-rw-r----- 1 nextcloud nextcloud 7017633 27 sept.  2020 'Nextcloud Manual.pdf'
-rw-r----- 1 nextcloud nextcloud   50598 27 sept.  2020  Nextcloud.png
drwxr-x--- 2 nextcloud nextcloud    4096 27 sept.  2020  Photos
-rw-r----- 1 nextcloud nextcloud       1 20 nov.   2021  Readme.md

/home/yunohost.app/nextcloud/data/user7/files/:
total 39660
-rw-r--r-- 1 nextcloud nextcloud   160540  8 mai    2024  Attestation.pdf
-rw-r--r-- 1 nextcloud nextcloud   160538  8 mai    2024  Attestation.pdf
drwxr-x--- 2 nextcloud nextcloud     4096 12 janv. 09:57  Backupapp
drwxr-x--- 2 nextcloud nextcloud     4096  4 févr.  2024  Calendar
-rw-r----- 1 nextcloud nextcloud 39328133 11 juin   2023  d1faa5f4957d61fe5f16201eeecdb9dc.zip
drwxr-x--- 9 nextcloud nextcloud   303104 13 janv. 17:32  joplin
drwxr-x--- 9 nextcloud nextcloud     4096 23 août   2023 'L'
drwxr-x--- 2 nextcloud nextcloud    24576 12 janv. 10:00  Maps
-rw-r--r-- 1 nextcloud nextcloud   544867 19 avril  2024 'Ordo'
drwxr-x--- 2 nextcloud nextcloud     4096 19 janv.  2024 'System information'

/home/yunohost.app/nextcloud/data/user8/files/:
total 11020
-rw-r----- 1 nextcloud nextcloud  146592 17 juil.  2021 'Service de retours.pdf'
drwxr-x--- 2 nextcloud nextcloud    4096 11 mai    2021  D
drwxr-x--- 8 nextcloud nextcloud    4096 21 avril  2024 'Docs'
drwxr-x--- 2 nextcloud nextcloud    4096  7 nov.   2020  Doc
-rw-r----- 1 nextcloud nextcloud    5562 10 juil.  2021  His.docx
drwxr-x--- 2 nextcloud nextcloud    4096 29 juin   2020  Kitc
-rw-r----- 1 nextcloud nextcloud   16828  5 oct.   2021 'luckie et le chat.odt'
drwxr-x--- 5 nextcloud nextcloud    4096 14 févr.  2021  M
-rw-r----- 1 nextcloud nextcloud 3963036  3 avril  2020 'Nextcloud intro.mp4'
-rw-r----- 1 nextcloud nextcloud 6933565  3 avril  2020 'Nextcloud Manual.pdf'
-rw-r----- 1 nextcloud nextcloud   50598  3 avril  2020  Nextcloud.png
drwxr-x--- 5 nextcloud nextcloud    4096 28 mars   2021  N
drwxr-x--- 2 nextcloud nextcloud    4096  9 oct.   2021  Photos
-rw-r----- 1 nextcloud nextcloud   74412 17 oct.   2021 'Service de retours.pdf'
-rw-r----- 1 nextcloud nextcloud   18319 14 nov.   2023  storybook.docx

Ok, try :

sudo -u nextcloud php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ files:scan --all

or more simple, yunohost can enter in the environment of the app so you can execute command with right php version even you don’t know it. You can use this instead the previous command

sudo yunohost app shell nextcloud
php occ files:scan --all

To quit the nextcloud shell, use exit command

1 Like

Hello,

the first command returns:

Starting scan for user 1 out of 9 (admin)
Starting scan for user 2 out of 9 (user1)
Starting scan for user 3 out of 9 (user2)
Starting scan for user 4 out of 9 (user3)
Starting scan for user 5 out of 9 (user4)
Starting scan for user 6 out of 9 (user5)
Starting scan for user 7 out of 9 (user6)
Starting scan for user 8 out of 9 (user7)
exit
Starting scan for user 9 out of 9 (user8)
+---------+--------+--------+--------------+
| Folders | Files  | Errors | Elapsed time |
+---------+--------+--------+--------------+
| 17402   | 172640 | 0      | 00:19:19     |
+---------+--------+--------+--------------+

Unfortunately it didn’t change anything on the webapp :pensive:

The second command didn’t work:


[Error] nextcloud has no install_dir setting (does it use packaging format >=2?)

:fearful:

Are you upgrade Nextcloud? What’s the version?

The second command do the same of the first command but if your version doesn’t support this packaging format, i guess you have an old version of Nextcloud.

If you have a recent version, could you clear your browser’s cache? And reload Nextcloud.

Could you give the result of:

ls -la /var/www/nextcloud/

and also : grep datadirectory /var/www/nextcloud/config/config.php

Yes it is an old version (27.1.2)

I can t update it because nextcould doesn’t take in charge i386 processor anymore :pensive:

here is the result of the 1st command:

drwxr-x---  13 nextcloud www-data    4096 10 oct.   2023 .
drwxr-xr-x+  7 root      root        4096 11 janv. 22:09 ..
drwxr-xr-x  45 nextcloud www-data    4096  5 oct.   2023 3rdparty
drwxr-xr-x  61 nextcloud www-data    4096  5 janv. 11:08 apps
-rw-r--r--   1 nextcloud www-data   23796  5 oct.   2023 AUTHORS
-rw-r--r--   1 nextcloud www-data    1283  5 oct.   2023 composer.json
-rw-r--r--   1 nextcloud www-data    3140  5 oct.   2023 composer.lock
drwxr-xr-x   2 nextcloud www-data    4096 10 oct.   2023 config
-rw-r--r--   1 nextcloud www-data    4095  5 oct.   2023 console.php
-rw-r--r--   1 nextcloud www-data   34520  5 oct.   2023 COPYING
drwxr-xr-x  24 nextcloud www-data    4096  5 oct.   2023 core
-rw-r--r--   1 nextcloud www-data    6317  5 oct.   2023 cron.php
drwxr-xr-x   2 nextcloud www-data   12288  5 oct.   2023 dist
-rw-r--r--   1 nextcloud www-data    3305 10 oct.   2023 .htaccess
-rw-r--r--   1 nextcloud www-data     156  5 oct.   2023 index.html
-rw-r--r--   1 nextcloud www-data    3456  5 oct.   2023 index.php
drwxr-xr-x   6 nextcloud www-data    4096  5 oct.   2023 lib
-rw-r--r--   1 nextcloud www-data     283  5 oct.   2023 occ
drwxr-xr-x   2 nextcloud www-data    4096  5 oct.   2023 ocs
drwxr-xr-x   2 nextcloud www-data    4096  5 oct.   2023 ocs-provider
-rw-r--r--   1 nextcloud www-data    6342  5 oct.   2023 package.json
-rw-r--r--   1 nextcloud www-data 1849208  5 oct.   2023 package-lock.json
-rw-r--r--   1 nextcloud www-data    3187  5 oct.   2023 public.php
-rw-r--r--   1 nextcloud www-data    5597  5 oct.   2023 remote.php
drwxr-xr-x   4 nextcloud www-data    4096  5 oct.   2023 resources
-rw-r--r--   1 nextcloud www-data      26  5 oct.   2023 robots.txt
-rw-r--r--   1 nextcloud www-data    2452  5 oct.   2023 status.php
drwxr-xr-x   3 nextcloud www-data    4096  5 oct.   2023 themes
drwxr-xr-x   2 nextcloud www-data    4096  5 oct.   2023 updater
-rw-r--r--   1 nextcloud www-data     101  5 oct.   2023 .user.ini
-rw-r--r--   1 nextcloud www-data     403  5 oct.   2023 version.php

and the 2nd

'datadirectory' => '/home/yunohost.app/nextcloud/data'

Maybe it can help: I tried to see if the files appears in private navigation and in another browser and it was the same problem

Can you precise me how can I reload nextcloud please?

To clear browser cache, Ctrl+Shift+R
And refresh the page.
You can try to restart service but i doubt it will change anything. :

yunohost service restart nginx
yunohost service restart php8.2-fpm

Sadly, all rights and owner seem OK. The only thing we don’t check is ls -l /home/yunohost.app/nextcloud/data. I don’t understand why it’s not OK.

Did you try to restart the sever?

I restarted nginx and php but same problem :pensive:

Here the result:


drwxr-x---  3 nextcloud nextcloud      4096  6 juin   2023 admin
drwxr-xr-x  4 nextcloud nextcloud      4096  3 déc.  12:54 user1
drwxr-xr-x  4 nextcloud nextcloud      4096 22 mars   2024 user2
drwxr-x---  9 nextcloud nextcloud      4096 13 mai    2018 appdata_ocbaj184njdj
drwxr-x--- 10 nextcloud nextcloud      4096 28 mars   2020 appdata_ocp7o5j8g139
drwxr-x---  8 nextcloud nextcloud      4096 13 mai    2018 appdata_ocrdxe3aoy3p
drwxr-x--- 14 nextcloud nextcloud      4096 16 oct.   2023 appdata_ocvx6mtz4oie
-rw-r-----  1 nextcloud nextcloud      3090 29 nov.   2023 audit.log
drwxr-x---  2 nextcloud nextcloud      4096 29 nov.   2023 files_external
drwxr-x---  4 nextcloud nextcloud      4096 13 juin   2018 user3
-rw-r-----  1 nextcloud nextcloud         0 29 nov.   2023 index.html
drwxr-x---  7 nextcloud nextcloud      4096 27 août   2022 user4
drwxr-x---  4 nextcloud nextcloud      4096 13 mars   2022 user5
drwxr-x---  4 nextcloud nextcloud      4096 27 sept.  2020 user6
drwxr-x---  4 nextcloud nextcloud      4096 13 mai    2018 news
-rw-r-----  1 nextcloud nextcloud  44496734 14 janv. 20:25 nextcloud.log
-rw-r-----  1 nextcloud nextcloud 104860019 15 juin   2024 nextcloud.log.1
drwxr-x---  7 nextcloud nextcloud      4096 14 nov.   2020 user7
drwxr-x---  7 nextcloud nextcloud      4096 14 juil.  2020 user8
-rw-r-----  1 nextcloud nextcloud     26052 22 févr.  2024 updater.log
drwxr-x---  4 nextcloud nextcloud      4096 22 févr.  2024 updater-ocvx6mtz4oie

yes I restarted the server but it didn’t change anything either

I’ve made a mistake

ls /var/www/nextcloud/config/config.php

I find this topic : No files shown after upgrade to NC27 - ℹ️ Support - Nextcloud community

Same symptoms, same version, reinstall php. I advise you to save the list of php package who are installed :

grep php | grep ^ii | awk '{print $2 " "}' | tr -d '\n'

You can use this as input to dpkg -i

ls /var/www/nextcloud/config/config.php

returns

/var/www/nextcloud/config/config.php

I’m sorry but I am not sure to understand all the step I have to do :sweat_smile:

grep php | grep ^ii | awk '{print $2 " "}' | tr -d '\n'

:arrow_up: Is it a commande to save the list of php package and reinstall php or make something like dpkg -i? (or to make everything?)

If it is not everything, can you precise how I can save the list of php package installed, reinstall php ?

Oh sorry,

I forgot the -l option :

ls -l /var/www/nextcloud/config/config.php

The command list the php packages installed, you can post them here to check you 're not missing anything.

Pff, It’s not dpkg but apt, sorry. you can reinstall this list with sudo apt install --reinstall $(dpkg -l | grep php | grep ^ii | awk '{print $2 " "}' | tr -d '\n')

I’m the one who should apologize, I’m wearing you out

here’s the ls return:

-rw-r----- 1 nextcloud www-data 1429 Jan 14 16:50 /var/www/nextcloud/config/config.php

Not sure what I have to do to save the list :sweat_smile:

I will make the reinstall tomorow and will keep you inform

Thank you for your help :bowing_man:

No problem :slightly_smiling_face:
Your config.php is OK.

Don’t forget to give the result of the next command to check if all php packages are installed :

grep php | grep ^ii | awk '{print $2 " "}' | tr -d '\n'

Oh, you can try the maintenance:repair, i just saw that you didn’t do it. You know which command to use now.

I don’t know if it will help to find the problem mais the check doesn’t work

i don’t know how to say it in english : "Mais quel boulet je fais! :crazy_face: " . I’m concentrating oon how to write in english and i’m making mistakes in my copy/paste :

dpkg -l | grep php | grep ^ii | awk '{print $2 " "}' | tr -d '\n'

bah parlons en français alors ce sera plus simple :rofl: :rofl:
(j’avais pas compris que tu étais francophone :sweat_smile:)

voilà ce que ça donne:

libapache2-mod-php7.0 libapache2-mod-php7.4 libapache2-mod-php8.2 php php-common php-fpdf php-gd php-pear php-xml php5.6-cli php5.6-common php5.6-json php5.6-opcache php5.6-readline php7.0 php7.0-cli php7.0-common php7.0-fpm php7.0-gd php7.0-json php7.0-opcache php7.0-readline php7.0-xml php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-readline php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline php7.3 php7.3-cli php7.3-common php7.3-fpm php7.3-gd php7.3-json php7.3-opcache php7.3-readline php7.3-xml php7.4 php7.4-cli php7.4-common php7.4-fpm php7.4-gd php7.4-json php7.4-opcache php7.4-readline php7.4-xml php8.0 php8.0-cli php8.0-common php8.0-fpm php8.0-gd php8.0-opcache php8.0-readline php8.0-xml php8.1 php8.1-cli php8.1-common php8.1-fpm php8.1-gd php8.1-opcache php8.1-readline php8.1-xml php8.2 php8.2-apcu php8.2-bcmath php8.2-bz2 php8.2-cli php8.2-common php8.2-curl php8.2-fpm php8.2-gd php8.2-gmp php8.2-igbinary php8.2-imagick php8.2-imap php8.2-intl php8.2-ldap php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-readline php8.2-redis php8.2-sqlite3 php8.2-xml php8.2-zip php8.3 php8.3-cli php8.3-common php8.3-fpm php8.3-opcache php8.3-readli

Ça a le mérite d’entretenir le peu d’anglais qu’il me reste même si un anglais doit certainement bien se marrer en me lisant :rofl:

Tu as tout ce qu’il faut si j’ai bien regardé. As-tu passé la commande occ maintenance:repair en tenant compte de mes remarques précédentes pour avoir la bonne syntaxe? Je commencerais par ça si ce n’est pas fais. Si ensuite il y a toujours le problème, réinstalle PHP8.2 avec cette commande.

apt install --reinstall $(dpkg -l | grep php8.2 | grep ^ii | awk '{print $2 " "}' | tr -d '\n')

Si malgré tout c’est toujours KO, là je sèche :cry:

pareil pour mon anglais :rofl:

pour la commande occ maintenance:repair
J’avais lancé ça:

sudo -u www-data php8.2 --define apc.enable_cli=1  /var/www/nextcloud/occ  maintenance:repair

mais ça me dit:

Sorry, user admin is not allowed to execute '/usr/bin/php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ maintenance:repair' as www-data on gbf.nohost.me.

et j’ai beau relire je ne trouve pas ou ne comprends pas ce que je dois faire de différents :pensive: (désolé, je me sens nul)