Not able to download or upload anything. "Maintinance mode on"

Good afternoon everyone.

Yes, I learned a leasson. Backups and not upgrading 6 versions in one day. But I dont have any backup and I upgrade 6 versions in one morning (my fault, I was automatically ungrading nextcloud and I didnĀ“t that if you do it in the docker doesnĀ“t mean you are doing it on the actual server)

But after a few things, IĀ“m able to access to nextcloud, navigate trought menus, and even see what files are on each folder, but not able to view them or download or upload. The app says ā€œmaintinance mode onā€ but is not on. I change it to true and back to false and nothing. Remove the line and no fix.

There is the log

Thank you in advance

Nextcloud version (eg, 20.0.5): 27.0.1
Operating system and version (eg, Ubuntu 20.04): Unraid 6.11.5 Docker version
Apache or nginx version (eg, Apache 2.4.25): nginx 2023/04/13 ?
PHP version (eg, 7.4): no idea, sorry

The issue you are facing:

Not able to download or upload anything. App version showing in maintinance mode, but changed in config.php to true and back to false with no results. Removed the line with the same result. I can ā€œseeā€ the file names, but not open them.

The problem started upgrading from 22 to 27 due I was updating automatically until it brake the original version

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

The output of your Nextcloud log in Admin > Logging:


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

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'xx',
  'passwordsalt' => 'xxx',
  'secret' => 'xx',
  'trusted_domains' => 
  array (
    0 => 'xx',
    1 => 'xx',
  ),
  'trusted_proxies' => 
  array (
    0 => 'swag',
  ),
  'default_phone_region' => 'GB',
  'dbtype' => 'mysql',
  'version' => '27.0.1.2',
  'overwrite.cli.url' => 'xxx',
  'overwritehost' => 'xxx',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => 'xx',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xx',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_sendmailmode' => 'smtp',
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => 'xx',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'xx',
  'mail_domain' => 'gmail.com',
  'mail_smtpsecure' => 'tls',
  'mail_smtpname' => 'xx',
  'mail_smtppassword' => 'xx',
  'loglevel' => 2,
  'filelocking.enabled' => 'true',
  'memcache.locking' => '\\OC\\Memcache\\APCu',
);

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

PASTE HERE

PASTE HERE

"reqId":"YgXXD5FmSBctBnDrF2zL","level":3,"time":"2023-08-10T09:49:55+00:00","remoteAddr":"ip","user":"user","app":"richdocuments","method":"GET","url":"/apps/files/?dir=/Documents/MBF/737Max/AMM&fileid=43463","message":"Failed to fetch the Collabora capabilities endpoint: Client error: `GET https://ip/apps/richdocumentscode/proxy.php?req=/hosting/capabilities` resulted in a `404 Not Found` response:\n<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx</c (truncated...)\n","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36","version":"27.0.1.2","exception":{"Exception":"GuzzleHttp\\Exception\\ClientException","Message":"Client error: `GET https://ip/apps/richdocumentscode/proxy.php?req=/hosting/capabilities` resulted in a `404 Not Found` response:\n<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx</c (truncated...)\n","Code":404,"Trace":[{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":69,"function":"create","class":"GuzzleHttp\\Exception\\RequestException","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/3rdparty/guzzlehttp/promises/src/Promise.php","line":204,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/3rdparty/guzzlehttp/promises/src/Promise.php","line":153,"function":"callHandler","class":"GuzzleHttp\\Promise\\Promise","type":"::"},{"file":"/app/www/public/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":48,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\Promise","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/3rdparty/guzzlehttp/promises/src/Promise.php","line":248,"function":"run","class":"GuzzleHttp\\Promise\\TaskQueue","type":"->"},{"file":"/app/www/public/3rdparty/guzzlehttp/promises/src/Promise.php","line":224,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/app/www/public/3rdparty/guzzlehttp/promises/src/Promise.php","line":269,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/app/www/public/3rdparty/guzzlehttp/promises/src/Promise.php","line":226,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/app/www/public/3rdparty/guzzlehttp/promises/src/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->"},{"file":"/app/www/public/lib/private/Http/Client/Client.php","line":226,"function":"request","class":"GuzzleHttp\\Client","type":"->"},{"file":"/config/www/nextcloud/apps/richdocuments/lib/Service/CapabilitiesService.php","line":135,"function":"get","class":"OC\\Http\\Client\\Client","type":"->"},{"file":"/config/www/nextcloud/apps/richdocuments/lib/Service/CapabilitiesService.php","line":73,"function":"refetch","class":"OCA\\Richdocuments\\Service\\CapabilitiesService","type":"->"},{"file":"/config/www/nextcloud/apps/richdocuments/lib/AppInfo/Application.php","line":85,"function":"getCapabilities","class":"OCA\\Richdocuments\\Service\\CapabilitiesService","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":45,"function":"OCA\\Richdocuments\\AppInfo\\{closure}","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/lib/private/AppFramework/Bootstrap/BootContext.php","line":50,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/config/www/nextcloud/apps/richdocuments/lib/AppInfo/Application.php","line":84,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Bootstrap/Coordinator.php","line":200,"function":"boot","class":"OCA\\Richdocuments\\AppInfo\\Application","type":"->"},{"file":"/app/www/public/lib/private/App/AppManager.php","line":437,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/app/www/public/lib/private/App/AppManager.php","line":216,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/app/www/public/lib/private/legacy/OC_App.php","line":126,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/app/www/public/lib/base.php","line":1051,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/app/www/public/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/app/www/public/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php","Line":113,"message":"Failed to fetch the Collabora capabilities endpoint: Client error: `GET https://ip/apps/richdocumentscode/proxy.php?req=/hosting/capabilities` resulted in a `404 Not Found` response:\n<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx</c (truncated...)\n","exception":{},"CustomMessage":"Failed to fetch the Collabora capabilities endpoint: Client error: `GET https://ip/apps/richdocumentscode/proxy.php?req=/hosting/capabilities` resulted in a `404 Not Found` response:\n<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx</c (truncated...)\n"}} {"reqId":"QgC9RfWaprL5WBvO7RFY","level":3,"time":"2023-08-10T09:50:00+00:00","remoteAddr":"ip","user":"user","app":"webdav","method":"GET","url":"/remote.php/webdav/Documents/MBF/737Max/AMM/29___016.PDF?downloadStartSecret=5c5sphqv5aq","message":"Could not open file","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36","version":"27.0.1.2","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Could not open file","Code":0,"Trace":[{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/app/www/public/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/appinfo/v1/webdav.php","line":85,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/app/www/public/remote.php","line":172,"args":["/config/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/config/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":498,"message":"Could not open file","exception":{},"CustomMessage":"Could not open file"}}

Is that all the information you want to share with us about your setup?

Is it actualy a docker?

If you do not fill out the template: clear, unmistakable language please, not so easily misunderstood stories. Then it might be easier to help.

And btw.: if you share logfiles, please put them in a ā†’ fenced code block ā† because this is markdown syntax and it ā€œinterpretesā€ the log entries instead of showing them unchanged.

Much luck!

I just modified the initial post. I missed a few things like how to reproduce or apache log. I will try to find it later due IĀ“m a bit bussy.

Sorry about everything

Sorry Iā€™m late, I only just saw your post. Check out this earlier post from 2021.

From the command line, you could try:

cd /var/www/html/nextcloud

sudo -u www-data php occ maintenance:mode --off

That link above has a couple of other example commands as well.

Good luck :slight_smile:

Another link!