Uploads broken, Nothing in logs

Nextcloud version (eg, 29.0.5): 29.0.6snap1
Operating system and version (eg, Ubuntu 24.04): Ubuntu 22.04.4 LTS

The issue you are facing:
All uploads result in a 500 error now. I can’t seem to see the 500 error in any of the logs so i don’t know whats causing it. This instance has been around for several years. Its snap install was moved to this particular server about 6 months ago and was working fine until the 8th. I did try snap reverting it and it didn’t help.

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

Steps to replicate it:

  1. Try and upload something.

The output of your Nextcloud log in Admin > Logging:

Log is empty

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

<?php
$CONFIG = array (
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/snap/nextcloud/current/htdocs/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
      'url' => '/extra-apps',
      'writable' => true,
    ),
  ),
  'supportedDatabases' => 
  array (
    0 => 'mysql',
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/tmp/sockets/redis.sock',
    'port' => 0,
  ),
  'log_type' => 'file',
  'logfile' => '/var/snap/nextcloud/current/logs/nextcloud.log',
  'logfilemode' => 416,
  'instanceid' => 'ocqlvvkmsixa',
  'passwordsalt' => 'nope.jpg',
  'secret' => 'nope.jpg',
  'trusted_domains' => 
  array (
    0 => 'nextcloud.mydomain.com',
  ),
  'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '29.0.6.1',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'nope.jpg',
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'encryption.legacy_format_support' => true,
  'encryption.key_storage_migrated' => false,
  'app_install_overwrite' => 
  array (
    0 => 'integration_dilingual',
  ),
  'maintenance_window_start' => 1,
);

The output of your Apache/nginx/system log in /var/log/____:
Only thing that stands out here is when things try and auto upload from the app they get a 404 error.

"HEAD /remote.php/dav/files/username/Photos/Auto%20upload/2023/08/PXL_20230820_184516300.jpg HTTP/1.0" 404 559 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.29.2

What appears here during these upload attempts?

/var/snap/nextcloud/current/logs/nextcloud.log

Nothing shows up there for any of those attempts.

Hmm. A 500 error doesn’t get generated without showing up somewhere. If it’s before Nextcloud gets the transaction, it’ll be in your web server error log.

It was very strange, I could see the access logs for apache showing the connection. Just nothing from the nextcloud logs as to why it was giving that error. I ended up dumping the database purging all the snap data doing a fresh snap install then imported the database/data directory and that fixed it.

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