Unable to login and broken UI

Nextcloud version (eg, 20.0.5): Nextcloud 27.1.2.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.3 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.58 (Unix)
PHP version (eg, 7.4): 8.1.24

The issue you are facing:

  1. Unable to login with Firefox browser. The login screen just refreshes
  2. Unable to login with Chromium browsers and Android App with 2-Factor Auth. I do get pass the login screen, but cannot get pass the 2-Factor Auth.
  3. Broken UI once I removed 2-Factor Auth for the admin account and was able to login with Chromium browser.

Is this the first time you鈥檝e seen this error? (Y/N): Y

Steps to replicate it:

  1. docker-compose up -d
  2. Go to /containers and start the containers

docker-compose file

version: '3.8'
volumes:
  nextcloud_aio_mastercontainer:
    name: nextcloud_aio_mastercontainer
services:
  nextcloud:
    image: 'nextcloud/all-in-one:beta'
    restart: always
    container_name: nextcloud-aio-mastercontainer
    volumes:
      - 'nextcloud_aio_mastercontainer:/mnt/docker-aio-config'
      - '/var/run/docker.sock:/var/run/docker.sock:ro'
    ports:
      - '8080:8080'
    environment:
      - APACHE_PORT=11000
      - APACHE_IP_BINDING=127.0.0.1
      - NEXTCLOUD_DATADIR=/mnt/nextcloud/nextcloud-data
      - NEXTCLOUD_MOUNT=/plex/media
      - NEXTCLOUD_UPLOAD_LIMIT=50G
      - NEXTCLOUD_MAX_TIME=3600
      - NEXTCLOUD_MEMORY_LIMIT=4096M
      - NEXTCLOUD_TRUSTED_CACERTS_DIR=/mnt/nextcloud/ssl

Caddyfile

https://nextcloud.ahuang-playground.com:443 {
    reverse_proxy localhost:11000
}

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',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'nextcloud-aio-redis',
    'password' => 'PASSWORD',
    'port' => 6379,
  ),
  'overwritehost' => 'nextcloud.ahuang-playground.com',
  'overwriteprotocol' => 'https',
  'passwordsalt' => 'VERY SALTY',
  'secret' => 'SUPER SECRET',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'nextcloud.ahuang-playground.com',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '27.1.2.1',
  'overwrite.cli.url' => 'https://nextcloud.ahuang-playground.com/',
  'dbname' => 'nextcloud_database',
  'dbhost' => 'nextcloud-aio-database',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_nextcloud',
  'dbpassword' => 'OH NO YOU DONT',
  'installed' => true,
  'instanceid' => 'oc2uwhrirwpi',
  'check_data_directory_permissions' => false,
  'maintenance' => false,
  'updater.release.channel' => 'stable',
  'updatedirectory' => '/nc-updater',
  'loglevel' => '2',
  'log_type' => 'file',
  'logfile' => '/var/www/html/data/nextcloud.log',
  'log_rotate_size' => '10485760',
  'log.condition' =>
  array (
    'apps' =>
    array (
      0 => 'admin_audit',
    ),
  ),
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'enabledPreviewProviders' =>
  array (
    1 => 'OC\\Preview\\Image',
    2 => 'OC\\Preview\\MarkDown',
    3 => 'OC\\Preview\\MP3',
    4 => 'OC\\Preview\\TXT',
    5 => 'OC\\Preview\\OpenDocument',
    6 => 'OC\\Preview\\Movie',
    7 => 'OC\\Preview\\Krita',
    0 => 'OC\\Preview\\Imaginary',
  ),
  'enable_previews' => true,
  'upgrade.disable-web' => true,
  'mail_smtpmode' => 'smtp',
  'trashbin_retention_obligation' => 'auto, 30',
  'versions_retention_obligation' => 'auto, 30',
  'activity_expire_days' => '30',
  'simpleSignUpLink.shown' => false,
  'share_folder' => '/Shared',
  'one-click-instance' => true,
  'one-click-instance.user-limit' => 100,
  'one-click-instance.link' => 'https://nextcloud.com/all-in-one/',
  'htaccess.RewriteBase' => '/',
  'files_external_allow_create_new_local' => true,
  'trusted_proxies' =>
  array (
    0 => '127.0.0.1',
    1 => '::1',
  ),
  'allow_local_remote_servers' => true,
  'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',
  'twofactor_enforced' =>
  array (
    'false' => '',
  ),
  'twofactor_enforced_groups' =>
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'upgrade.cli-upgrade-link' => 'https://github.com/nextcloud/all-in-one/discussions/2726',
  'davstorage.request_timeout' => 3600,
  'dbpersistent' => false,
  'app_install_overwrite' =>
  array (
    0 => 'richdocuments',
  ),
);

The output of your Apache/nginx/system log in /var/log/____:
I dont know where to find this but here are the Caddy logs
pwd: 0000

https://pastebin.com/YxxeFQcL

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.

pwd: 0000

https://pastebin.com/4QdgyAkt

Found Nginx Logs.

2023/05/19 21:53:23 [notice] 216189#216189: using inherited sockets from "6;7;"
2023/05/19 22:48:58 [emerg] 234150#234150: bind() to 0.0.0.0:80 failed (98: Unknown error)
2023/05/19 22:48:58 [emerg] 234150#234150: bind() to [::]:80 failed (98: Unknown error)
2023/05/19 22:48:58 [emerg] 234150#234150: bind() to 0.0.0.0:80 failed (98: Unknown error)
2023/05/19 22:48:58 [emerg] 234150#234150: bind() to [::]:80 failed (98: Unknown error)
2023/05/19 22:48:58 [emerg] 234150#234150: bind() to 0.0.0.0:80 failed (98: Unknown error)
2023/05/19 22:48:58 [emerg] 234150#234150: bind() to [::]:80 failed (98: Unknown error)
2023/05/19 22:48:58 [emerg] 234150#234150: bind() to 0.0.0.0:80 failed (98: Unknown error)
2023/05/19 22:48:58 [emerg] 234150#234150: bind() to [::]:80 failed (98: Unknown error)
2023/05/19 22:48:58 [emerg] 234150#234150: bind() to 0.0.0.0:80 failed (98: Unknown error)
2023/05/19 22:48:58 [emerg] 234150#234150: bind() to [::]:80 failed (98: Unknown error)
2023/05/19 22:48:58 [emerg] 234150#234150: still could not bind()
2023/05/19 22:50:08 [emerg] 234407#234407: bind() to 0.0.0.0:80 failed (98: Unknown error)
2023/05/19 22:50:08 [emerg] 234407#234407: bind() to [::]:80 failed (98: Unknown error)
2023/05/19 22:50:08 [emerg] 234407#234407: bind() to 0.0.0.0:80 failed (98: Unknown error)
2023/05/19 22:50:08 [emerg] 234407#234407: bind() to [::]:80 failed (98: Unknown error)
2023/05/19 22:50:08 [emerg] 234407#234407: bind() to 0.0.0.0:80 failed (98: Unknown error)
2023/05/19 22:50:08 [emerg] 234407#234407: bind() to [::]:80 failed (98: Unknown error)

Looks like an nginx issue

Thank you for helping. Although the nginx log file does show errors. But it is back in May of 2023.

Will be commented in Login Issues & Broken UI 路 nextcloud/all-in-one 路 Discussion #3595 路 GitHub