Files not showing on web interface nextcloud

Files not showing on web interface nextcloud

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): Nextcloud 25.0.13
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.58
PHP version (eg, 7.4): Php 8.1

The issue you are facing:

I have consistently faced an issue where files do not appear on the web interface despite using the command “sudo -u www-data php /var/www/html/nextcloud/occ files:scan --all -v.” Even after multiple attempts, the files remain invisible. Although the problem initially surfaced with Nextcloud version 25.0.12, it temporarily resolved after upgrading to 25.0.13, only to reoccur unexpectedly. Currently running version 25.0.13, I seek assistance in resolving this persistent issue. My Nextcloud server accommodates over 300 user accounts, and the storage is on a mounted NAS. Any guidance or solutions would be greatly appreciated. Thank you!

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:

PASTE HERE

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

<?php
$CONFIG = array (
  'instanceid' => ''Privacy',',
  'passwordsalt' => ''Privacy',',
  'secret' => ''Privacy',',
  'trusted_domains' =>
  array (
    0 => '192.168.x.x',
    1 => 'domain',
    2 => '8.8.8.8',
    3 => '192.168.x.x',
    4 => 'x.x.x.x',
  ),
  'datadirectory' => '/mnt/cloud',
  'dbtype' => 'mysql',
  'version' => '25.0.13.2',
  'overwrite.cli.url' => 'https://domain',
  'dbname' => ''Privacy',',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'Privacy',
  'dbpassword' => 'Privacy',
  'installed' => true,
  'theme' => '',
  'logtimezone' => 'Asia/Manila',
  'loglevel' => 2,
  'maintenance' => false,
  'default_phone_region' => 'PH',
  'enable_previews' => false,
  'mail_from_address' => 'xxx',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'xxx',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpport' => '465',
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxxx',
  'allow_locate_remote_servers' => true,
  'integrity.check.disabled' => true,
  'trashbin_retention_obligation' => 'disabled',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 0,
  ),
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
 0 => 'xxxx'
  ),
  'trusted_proxies' =>
  array (
    0 => 'xxxx',
  ),
  'forwarded_for_headers' =>
  array (
    0 => 'HTTP_X_FORWARDED_FOR',
    1 => 'HTTP_X_REAL_IP',
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
);

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

[Mon Jan 15 15:39:17.976660 2024] [php:notice] [pid 410394] [client 192.168.26.1:53050] richdocumentscode (proxy.php) error exit, PID: 410394, Message: The param should be 'status' or 'req=...', but is: 'ui_theme=light'
[Mon Jan 15 15:39:19.236875 2024] [php:notice] [pid 410389] [client 192.168.26.1:53057] richdocumentscode (proxy.php) error exit, PID: 410389, Message: The param should be 'status' or 'req=...', but is: 'ui_theme=light'
[Mon Jan 15 15:39:20.483619 2024] [php:notice] [pid 410283] [client 192.168.26.1:53055] richdocumentscode (proxy.php) error exit, PID: 410283, Message: The param should be 'status' or 'req=...', but is: 'ui_theme=light'
[Mon Jan 15 15:39:21.755396 2024] [php:notice] [pid 410389] [client 192.168.26.1:53057] richdocumentscode (proxy.php) error exit, PID: 410389, Message: The param should be 'status' or 'req=...', but is: 'ui_theme=light'
[Mon Jan 15 15:56:51.396507 2024] [php:notice] [pid 411111] [client 192.168.26.1:60568] richdocumentscode (proxy.php) error exit, PID: 411111, Message: The param should be 'status' or 'req=...', but is: 'ui_theme=light'
[Mon Jan 15 15:56:52.634899 2024] [php:notice] [pid 411141] [client 192.168.26.1:60573] richdocumentscode (proxy.php) error exit, PID: 411141, Message: The param should be 'status' or 'req=...', but is: 'ui_theme=light'
[Mon Jan 15 15:56:53.873041 2024] [php:notice] [pid 411084] [client 192.168.26.1:60575] richdocumentscode (proxy.php) error exit, PID: 411084, Message: The param should be 'status' or 'req=...', but is: 'ui_theme=light'
[Mon Jan 15 15:56:55.122409 2024] [php:notice] [pid 411141] [client 192.168.26.1:60573] richdocumentscode (proxy.php) error exit, PID: 411141, Message: The param should be 'status' or 'req=...', but is: 'ui_theme=light'
[Mon Jan 15 15:56:59.515066 2024] [php:notice] [pid 411084] [client 192.168.26.1:60575] richdocumentscode (proxy.php) error exit, PID: 411084, Message: No content in reply from coolwsd. Is SSL enabled in error ?
[Mon Jan 15 17:00:30.711615 2024] [php:notice] [pid 413108] [client 192.168.26.1:58934] richdocumentscode (proxy.php) error exit, PID: 413108, Message: The param should be 'status' or 'req=...', but is: 'ui_theme=light'

PASTE HERE


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.

{"reqId":"lhRZkyStOiHygLo0mGQe","level":3,"time":"2024-01-15T18:23:15+08:00","remoteAddr":"","user":"--","app":"activity","method":"","url":"--","message":"Failed sending activity email to user \"l.benas@psa.gov.ph\"","userAgent":"--","version":"25.0.13.2","exception":{"Exception":"Swift_TransportException","Message":"Failed to authenticate on SMTP server with username \"xxxxx\" using 1 possible authenticators. Authenticator LOGIN returned Expected response code 250 but got an empty response.","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php","line":371,"function":"afterEhlo","class":"Swift_Transport_Esmtp_AuthHandler","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php","line":148,"function":"doHeloCommand","class":"Swift_Transport_EsmtpTransport","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php","line":65,"function":"start","class":"Swift_Transport_AbstractSmtpTransport","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Mail/Mailer.php","line":191,"function":"send","class":"Swift_Mailer","type":"->"},{"file":"/var/www/html/nextcloud/apps/activity/lib/MailQueueHandler.php","line":415,"function":"send","class":"OC\\Mail\\Mailer","type":"->"},{"file":"/var/www/html/nextcloud/apps/activity/lib/MailQueueHandler.php","line":165,"function":"sendEmailToUser","class":"OCA\\Activity\\MailQueueHandler","type":"->"},{"file":"/var/www/html/nextcloud/apps/activity/lib/BackgroundJob/EmailNotification.php","line":61,"function":"sendEmails","class":"OCA\\Activity\\MailQueueHandler","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/BackgroundJob/Job.php","line":54,"function":"run","class":"OCA\\Activity\\BackgroundJob\\EmailNotification","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":60,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/html/nextcloud/cron.php","line":152,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/html/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php","Line":191,"message":"Failed sending activity email to user \"{user}\"","CustomMessage":"Failed sending activity email to user \"xxxxx\""}}
{"reqId":"lhRZkyStOiHygLo0mGQe","level":2,"time":"2024-01-15T18:23:15+08:00","remoteAddr":"","user":"--","app":"activity","method":"","url":"--","message":"Failed sending activity email to user 'xxxxx'.","userAgent":"--","version":"25.0.13.2","data":{"app":"activity"}}

Can you see the files in a Nextcloud-client (e.g. Windows, iOS or Android)? Can you send a screenshot? Are there no files at all? Check also the rights of your external storage of your files (www-data:www-data).

Do all of the missing files show up in the scan output?

Hi sorry for late reply, yes all files are showing on the scan output

I will try this using nextcloud-client app