503 Error Only on Webapp

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 (eg, 20.0.5): 25.0.2.3
Operating system and version (eg, Ubuntu 20.04): Fedora 36
Apache or nginx version (eg, Apache 2.4.25): 2.5.54
PHP version (eg, 7.4): 8.1.13

The issue you are facing: My server functions properly via the mobile apps and desktop app. However trying to access the server from a web browser returns a 503 service unavailable error. There doesn’t appear to be any logs related to this either which makes hunting for the issue frustrating.
This also likely isn’t an apache issue as other things on the same webserver function properly. Nextcloud is the only service not functioning correctly.

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

The output of your Nextcloud log in Admin > Logging:

Cannot access Admin > Logging as the webapp is entirely nonfunctional

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

<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'glenmerlin.me',
  ),
  'datadirectory' => '/mnt/nextcloud/data',
  'dbtype' => 'mysql',
  'default_phone_region' => 'US',
  'version' => '25.0.2.3',
  'overwrite.cli.url' => 'https://glenmerlin.me/nextcloud',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxx',
  'dbpassword' => 'xxx',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'log_type' => 'file',
  'app_install_overwrite' => 
  array (
    0 => 'files_external_gdrive',
    1 => 'twofactor_yubikey',
  ),
  'mail_from_address' => 'noreply',
  'mail_smtpmode' => 'sendmail',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => ' ',
  'mail_smtpsecure' => ' ',
  'mail_smtphost' => ' ',
  'mail_smtpport' => ' ',
  'updater.release.channel' => 'stable',
  'data-fingerprint' => 'xxx,
);

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 errors in nextcloud log