NC 27 > 28: No files showing (common solving steps tried)

Hello,

I have just updated to NC 28.0.5.1 from NC 27.

I get a “No file” message on the file tab. But, if I use the favorites button, I can see them (at least all the folders in which the favorite folder is).

I did some operations:

  • files:scan -all
  • maintenance:repair
  • files:cleanup
    In /var/local/nextcloud-data:
  • find my_user/ -type d -exec chmod 750 {} ;
  • find my_user/ -type f -exec chmod 640 {} ;

with no success.
This is specific to my user. I have another user, which can access its files normally.

I tried something: I have created a folder and file on the filesystem, then did files:scan --unscanned --all. I get 0 folder and 0 file in the summary…

I would be grateful for any idea! Thanks.

Hey, please check your nextcloud.log - any errors/exceptions there?

I have many exceptions like:
ConnectException cURL error 52: Empty reply from server (see libcurl - Error Codes) for https://wyqu84.a4.swdrive.fr/ocm-provider/
error while discovering ocm provider

And errors like:
ConnectException cURL error 52: Empty reply from server (see libcurl - Error Codes) for https://wyqu84.a4.swdrive.fr/public.php/webdav/Readme.md

These sound like you had federation set up at some point, but the server is not reachable anymore. It should not cause non of your files to show up (and I guess the server wasn’t reachable even when you were still on 27).
Can you check if there’s anything else unrelated to timeouts? If yes, please post the complete message.

Edit: Although the first link above seem to be working fine for me

The file nextcloud.log in not very readable, so I took the above messages from the nextcloud web interface. But it seems they are not the same. I cannot see timeouts. Here the end:

………{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1662,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1647,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":373,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":210,"message":"error while discovering ocm provider","exception":{},"remote":"https://wyqu84.a4.swdrive.fr","CustomMessage":"error while discovering ocm provider"}}

EDIT: I think it is still related to federation or another share.

I just left the federation from the “Recent” tab, and the same for another share from another user (on the same server this time).
I have also disabled the federation app, just to be sure.

I still get, in my logs, when I go on my Files tab:
|Avertissement|no app in context|ConnectException cURL error 52: Empty reply from server (see libcurl - Error Codes) for https://wyqu84.a4.swdrive.fr/ocm-provider/
error while discovering ocm provider|
| — | — |
5 mai 2024, 01:13:37

Erreur webdav ConnectException cURL error 52: Empty reply from server (see libcurl - Error Codes) for https://wyqu84.a4.swdrive.fr/public.php/webdav/Readme.md
5 mai 2024, 01:13:34

|Avertissement|no app in context|ConnectException cURL error 52: Empty reply from server (see libcurl - Error Codes) for https://wyqu84.a4.swdrive.fr/ocm-provider/
error while discovering ocm provider|
| — | — |
5 mai 2024, 01:13:33

EDIT: it seems to be unrelated to my issue, but still to federations shares…

It is strange: I have just deleted à folder with files (directly on the file system), then:

sudo -u www-data php /var/www/nextcloud/occ files:scan --unscanned --all
Starting scan for user 1 out of 4 (-)
Starting scan for user 2 out of 4 (-)
Starting scan for user 3 out of 4 (-)
Starting scan for user 4 out of 4 (-)
±--------±------±----±--------±--------±-------±-------------+
| Folders | Files | New | Updated | Removed | Errors | Elapsed time |
±--------±------±----±--------±--------±-------±-------------+
| 0 | 0 | 0 | 0 | 0 | 0 | 00:00:00 |
±--------±------±----±--------±--------±-------±-------------+

It looks like a scan is not able to notice the that the file system has changed…

I think you’re chasing the wrong symptom; I believe you’re only seeing this behavior from the scan because you’re using --unscanned which AFAIK only operates on files already known to the filecache that simply haven’t been fully processed yet by the background job.

When you place your cursor over the + New button spot in the upper left, does a pop-up message appear saying something like “Permission denied” or similar (I don’t recall the exact language)?

Thank you for the --unscanned explanation.

When I place the cursor over the “+ New” button, the button is greyed out/unusable and I get the pop-up “You don’t have permission to upload or create files here”. This happens on the “All files” tab.
If I go to Favorites/My_folder, I can successfully create a new folder or text file.

EDIT:

  • I have tried a files:scan --all after adding a Test folder on the filesystem. There is still nothing on the “All files” tab, but the Test folder appears in the “Recent” tab.

  • since I performed a find user/ -type d -exec chmod 750 {} \; and find user/ -type f -exec chmod 640 {} \; on my user directory, I was not worried about permissions. All directories are drwxr-s— and I don’t know where the SGID comes from (but I guess it is okay?).

Shouldn´t you updated from the lastest point release V27.1.9 to major release v28.0.0?

I used the internal upgrade system to upgrade from 27.1.9 to 28.0.5.

It looks like a bug: if I go to Settings/share, then “select a file or folder to transfer”, I can see all my files. If I go to the Files tab, I see nothing.

Or, maybe, NC is not able to display my federation share in the Files tab, and decides to show nothing at all (?).

Here is the solution: no files were showing on the Files tab, because NC was trying - unsuccesfully - to connect to a federation share.

Leaving the federation share with the NC menu did nothing, and deactivate the federation app did not help. So I had to use PHPMyAdmin to suppress it manually (My_DB/ oc_share_external → suppress the faulty share).

Next time I clicked on the Files tab, I saw all my files.

Thank you!!

2 Likes

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