No files and folders visible in NC25 web interface

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: 25.0.2
Operating system and version: Linux 4.19.0-21-amd64 x86_64
Apache version: unknown
PHP version: 8.0.26

The issue you are facing:
I do not see any files or folders in the nextcloud web interface. The only thing that is shown is the amount of files that are in a certain folder and the respective size. Those numbers are correct - i can x-check them with any client (android, linux), where all files correctly exist and are still synced. I can also access certain folders in the web interface if i type in the folder in the URL, but i dont see anything in the UI.

There are no errors shown in the admin section or the nextcloud.log. To troubleshoot I disabled all apps, checked the behaviour (no change). I also ran php occ upgrade and php occ maintenance:repair (no change).

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

Steps to replicate it:

  1. Upgraded from 24.0.8 to 25.0.2
  2. Open files application

The output of your Nextcloud log in Admin > Logging:

No error being shown

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

<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' =>
  array (
    0 => 'nextcloud.something.de',
  ),
  'datadirectory' => '/var/www/vhosts/something/httpdocs/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '25.0.2.3',
  'overwrite.cli.url' => 'https://nextcloud.something.de',
  'dbname' => '',
  'dbhost' => '',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
  'activity_use_cached_mountpoints' => true,
  'activity_expire_days' => 180,
  'default_language' => 'de',
  'default_locale' => 'de',
  'skeletondirectory' => '',
);

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

[Thu Dec 15 10:22:58.161502 2022] [core:crit] [pid 26338] (13)Permission denied: [client 2.203.168.145:0] AH00529: /var/www/vhosts/hosting112231.a2f51.netcup.net/httpdocs/nextcloud/data/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/vhosts/hosting112231.a2f51.netcup.net/httpdocs/nextcloud/data/' is executable
[Thu Dec 15 10:23:45.668436 2022] [fcgid:warn] [pid 26198] (32)Broken pipe: [client 2.203.168.145:0] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

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.

No error being shown

Okay, some minor advances with the issue:

If i set 'debug' => true in config.php, then i start to see all folders and files again in the web interface. The log then suddenly gets spammed heavily with:

{"reqId":"7iKf2vnKPdc6XSJSiuhJ","level":3,"time":"2022-12-20T20:39:58+00:00","remoteAddr":"2a02:810a:cc0:2bf0:b450:6d17:43a9:533f","user":"XXXXXX","app":"PHP","method":"GET","url":"/index.php/core/preview?fileId=50888&c=cf6271023d8df16f13ffb2cade82273c&x=250&y=250&forceIcon=0&a=0","message":"is_dir(): open_basedir restriction in effect. File(/opt/bin) is not within the allowed path(s): (/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/:/tmp/:/var/lib/php/sessions:/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/tmp) at /var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/3rdparty/symfony/process/ExecutableFinder.php#58","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","version":"25.0.2.3","exception":{"Exception":"Error","Message":"is_dir(): open_basedir restriction in effect. File(/opt/bin) is not within the allowed path(s): (/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/:/tmp/:/var/lib/php/sessions:/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/tmp) at /var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/3rdparty/symfony/process/ExecutableFinder.php#58","Code":0,"Trace":[{"function":"onAll","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"is_dir(): open_basedir restriction in effect. File(/opt/bin) is not within the allowed path(s): (/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/:/tmp/:/var/lib/php/sessions:/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/tmp)","/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/3rdparty/symfony/process/ExecutableFinder.php",58]},{"file":"/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/3rdparty/symfony/process/ExecutableFinder.php","line":58,"function":"is_dir","args":["/opt/bin"]},{"file":"/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/lib/private/BinaryFinder.php","line":55,"function":"find","class":"Symfony\\Component\\Process\\ExecutableFinder","type":"->","args":["openoffice",null,["/usr/local/sbin","/usr/local/bin","/usr/sbin","/usr/bin","/sbin","And 2 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/lib/private/PreviewManager.php","line":397,"function":"findBinaryPath","class":"OC\\BinaryFinder","type":"->","args":["openoffice"]},{"file":"/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/lib/private/PreviewManager.php","line":239,"function":"registerCoreProviders","class":"OC\\PreviewManager","type":"->","args":[]},{"file":"/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/core/Controller/PreviewController.php","line":126,"function":"isAvailable","class":"OC\\PreviewManager","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"}]},{"file":"/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/core/Controller/PreviewController.php","line":113,"function":"fetchPreview","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[{"__class__":"OC\\Files\\Node\\File"},250,250,false,false,"fill"]},{"file":"/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"getPreviewByFileId","class":"OC\\Core\\Controller\\PreviewController","type":"->","args":[50888,250,250,false,false,"fill"]},{"file":"/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\PreviewController"},"getPreviewByFileId"]},{"file":"/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\PreviewController","getPreviewByFileId",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},["core.Preview.getPreviewByFileId"]]},{"file":"/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/core/preview"]},{"file":"/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/vhosts/hostingXXXXXX.a2f51.netcup.net/httpdocs/nextcloud/lib/private/Log/ErrorHandler.php","Line":99,"CustomMessage":"--"}}

I have not changed anything regarding open_basedir. What does nextcloud or PHP trying to access in /usr/bin?

I now disabled generating previews with 'enable_previews' => false, and it stops the log spam.

But the issue remains, that I only see files and folders in the browser when i enable debugging (which should not stay enabled all the time).

Unfortunately, enabling debugging does not generate additional information about the issue.

Is there any downside in security if I put debug => true into the config? It appears to slow down everything a bit, but this is no big downside (compared to not being able to use the application at all).

@Scumi
Is it only a problem in your browser (maybe i do misunderstand it from your first post). If yes you can maybe use browser dev tolls (F12) and then e.g. Network to find not loading elements like Javascript. Also test with another browser, another operating system and another network.

Hello.

Thanks for your response. It was tested on multiple OS, Browsers, Computers of other users, same everywhere. No files and folders can be seen unless I enable debug.

Just updated to 25.0.3 and it works again (even without enabling debug). Very weird, but whatever…