Unable to access Nexcloud AIO Interface

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: 24.0.7
Operating system and version: Debian11 (bullseye) x86_64 (docker host)
Apache or nginx version : Apache 2.4.54
PHP version : 8.0.25

The issue you are facing:

I am unable to access the nextcloud-aio interface through settings>overview>open nextcloud aio interface. It directs to mydomain:8443/api/auth/getlogin?token=***, where I consistently get a connection time-out.

My nextcloud instance seems to still work fine otherwise. The docker nextcloud-aio-mastercontainer is running and port 8443 should be open. I haven’t changed anything since I was able to access it normally when I updated the containers a few weeks ago.

I am still new to using docker and I am not sure where to look for the issue here or even what info to share…I may be missing something obvious. Thanks!

Is this the first time you’ve seen this error? : Yes.

Steps to replicate it:

  1. login to my nextcloud
  2. navigate to ‘settings>overview’
  3. click ‘open nextcloud aio interface’

The output of your Nextcloud log in Admin > Logging:

Error	internet_connection_check	GuzzleHttp\Exception\ConnectException: cURL error 28: Failed to connect to www.nextcloud.com port 443 after 15203 ms: Operation timed out (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.nextcloud.com/	
2023-01-04T10:46:45+0000
Error	no app in context	OCP\AppFramework\QueryException: Could not resolve listener! Class "listener" does not exist	
2023-01-03T00:10:42+0000
Error	no app in context	OCP\AppFramework\QueryException: Could not resolve externalMountProvider! Class "externalMountProvider" does not exist	
2023-01-03T00:10:42+0000
Error	no app in context	OCP\AppFramework\QueryException: Could not resolve OCA\Files_Versions\Versions\IVersionManager! Class can not be instantiated	
2023-01-03T00:10:42+0000
Error	no app in context	OCP\AppFramework\QueryException: Could not resolve trashManager! Class "trashManager" does not exist	
2023-01-03T00:10:42+0000
Error	index	Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "nextcloud-aio-database" failed: FATAL: remaining connection slots are reserved for non-replication superuser connections	
2023-01-03T00:10:41+0000

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

$ sudo docker exec -u 33 -it nextcloud-aio-nextcloud php occ config:list

{
    "system": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwritehost": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "24.0.7.1",
        "overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "loglevel": "2",
        "log_type": "file",
        "logfile": "\/var\/www\/html\/data\/nextcloud.log",
        "log_rotate_size": "10485760",
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_quality": "60",
        "enabledPreviewProviders": {
            "1": "OC\\Preview\\Image",
            "2": "OC\\Preview\\MarkDown",
            "3": "OC\\Preview\\MP3",
            "4": "OC\\Preview\\TXT",
            "5": "OC\\Preview\\OpenDocument",
            "6": "OC\\Preview\\Movie"
        },
        "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",
        "tempdirectory": "\/mnt\/ncdata\/tmp\/",
        "one-click-instance": true,
        "one-click-instance.user-limit": 100,
        "htaccess.RewriteBase": "\/",
        "files_external_allow_create_new_local": false,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "allow_local_remote_servers": true,
        "default_phone_region": "NL",
        "mail_smtpsecure": "tls",
        "mail_sendmailmode": "smtp",
        "mail_smtpport": "587",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/"
    },
    "apps": {
        "accessibility": {
            "installed_version": "1.10.0",
            "types": "",
            "enabled": "yes"
        },
        "activity": {
            "installed_version": "2.16.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "admin_audit": {
            "installed_version": "1.14.0",
            "types": "logging",
            "enabled": "yes",
            "logfile": "\/var\/www\/html\/data\/audit.log"
        },
        "apporder": {
            "installed_version": "0.15.0",
            "types": "",
            "enabled": "yes"
        },
        "backgroundjob": {
            "lastjob": "35"
        },
        "backup": {
            "enabled": "no",
            "external_appdata": "{\"storageId\":7,\"storage\":\"webdav::teun@cloud.nikanika.nl\\\/\\\/remote.php\\\/webdav\\\/\",\"root\":\"app_data\"}",
            "cron_enabled": "1",
            "time_slots": "23-5",
            "delay_full_rp": "24",
            "delay_partial_rp": "3",
            "allow_weekday": "0",
            "pack_backup": "1",
            "pack_compress": "1",
            "pack_encrypt": "1",
            "store_items": "3",
            "store_items_external": "5",
            "mockup_date": "1665189163",
            "installed_version": "1.1.3",
            "types": ""
        },
        "calendar": {
            "types": "",
            "enabled": "yes",
            "installed_version": "3.5.2"
        },
        "circles": {
            "installed_version": "24.0.1",
            "types": "filesystem,dav",
            "enabled": "yes",
            "loopback_tmp_scheme": "https",
            "loopback_tmp_path": "\/",
            "migration_22": "1",
            "migration_run": "0",
            "maintenance_run": "0",
            "maintenance_update": "{\"3\":1672832787,\"2\":1672836387,\"1\":1672836387}"
        },
        "cloud_federation_api": {
            "installed_version": "1.7.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "comments": {
            "installed_version": "1.14.0",
            "types": "logging",
            "enabled": "yes"
        },
        "contacts": {
            "types": "dav",
            "enabled": "yes",
            "installed_version": "4.2.2"
        },
        "contactsinteraction": {
            "installed_version": "1.5.0",
            "types": "dav",
            "enabled": "yes"
        },
        "core": {
            "installedat": "1663013321.5344",
            "vendor": "nextcloud",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "public_files": "files_sharing\/public.php",
            "lastupdatedat": "0",
            "backgroundjobs_mode": "cron",
            "lastcron": "1672836387",
            "moveavatarsdone": "yes",
            "previewsCleanedUp": "1",
            "theming.variables": "b92d206521717ac032f8aa58d3c7ff2f",
            "oc.integritycheck.checker": "[]",
            "emailTestSuccessful": "1"
        },
        "dashboard": {
            "installed_version": "7.4.0",
            "types": "",
            "enabled": "yes"
        },
        "dav": {
            "installed_version": "1.22.0",
            "types": "filesystem",
            "enabled": "yes",
            "regeneratedBirthdayCalendarsForYearFix": "yes",
            "buildCalendarSearchIndex": "yes",
            "buildCalendarReminderIndex": "yes"
        },
        "deck": {
            "types": "dav",
            "enabled": "yes",
            "installed_version": "1.7.3"
        },
        "drawio": {
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "1.0.5"
        },
        "federatedfilesharing": {
            "installed_version": "1.14.0",
            "types": "",
            "enabled": "yes"
        },
        "federation": {
            "installed_version": "1.14.0",
            "types": "authentication",
            "enabled": "yes"
        },
        "files": {
            "installed_version": "1.19.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "files_external": {
            "installed_version": "1.16.1",
            "types": "filesystem",
            "enabled": "no"
        },
        "files_pdfviewer": {
            "installed_version": "2.5.0",
            "types": "",
            "enabled": "yes"
        },
        "files_rightclick": {
            "installed_version": "1.3.0",
            "types": "",
            "enabled": "yes"
        },
        "files_sharing": {
            "installed_version": "1.16.2",
            "types": "filesystem",
            "enabled": "yes"
        },
        "files_trashbin": {
            "installed_version": "1.14.0",
            "types": "filesystem,dav",
            "enabled": "yes"
        },
        "files_versions": {
            "installed_version": "1.17.0",
            "types": "filesystem,dav",
            "enabled": "yes"
        },
        "files_videoplayer": {
            "installed_version": "1.13.0",
            "types": "",
            "enabled": "yes"
        },
        "firstrunwizard": {
            "installed_version": "2.13.0",
            "types": "logging",
            "enabled": "yes"
        },
        "logreader": {
            "installed_version": "2.9.0",
            "types": "",
            "enabled": "yes"
        },
        "lookup_server_connector": {
            "installed_version": "1.12.0",
            "types": "authentication",
            "enabled": "yes"
        },
        "nextcloud-aio": {
            "installed_version": "0.2.0",
            "types": "",
            "enabled": "yes"
        },
        "nextcloud_announcements": {
            "installed_version": "1.13.0",
            "types": "logging",
            "enabled": "yes",
            "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200"
        },
        "notifications": {
            "types": "logging",
            "enabled": "yes",
            "installed_version": "2.12.1"
        },
        "notify_push": {
            "types": "filesystem",
            "enabled": "yes",
            "base_endpoint": "https:\/\/***REMOVED SENSITIVE VALUE***\/push",
            "installed_version": "0.5.0"
        },
        "oauth2": {
            "installed_version": "1.12.0",
            "types": "authentication",
            "enabled": "yes"
        },
        "password_policy": {
            "installed_version": "1.14.0",
            "types": "authentication",
            "enabled": "yes"
        },
        "photos": {
            "installed_version": "1.6.0",
            "types": "",
            "enabled": "yes"
        },
        "preview": {
            "jpeg_quality": "60"
        },
        "privacy": {
            "installed_version": "1.8.0",
            "types": "",
            "enabled": "yes"
        },
        "provisioning_api": {
            "installed_version": "1.14.0",
            "types": "prevent_group_restriction",
            "enabled": "yes"
        },
        "recommendations": {
            "installed_version": "1.3.0",
            "types": "",
            "enabled": "yes"
        },
        "richdocuments": {
            "types": "prevent_group_restriction",
            "enabled": "yes",
            "wopi_url": "https:\/\/***REMOVED SENSITIVE VALUE***\/",
            "public_wopi_url": "https:\/\/***REMOVED SENSITIVE VALUE***",
            "installed_version": "6.3.2"
        },
        "serverinfo": {
            "installed_version": "1.14.0",
            "types": "",
            "enabled": "yes",
            "cached_count_filecache": "1126",
            "cached_count_storages": "6"
        },
        "settings": {
            "installed_version": "1.6.0",
            "types": "",
            "enabled": "yes"
        },
        "sharebymail": {
            "installed_version": "1.14.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "spreed": {
            "types": "dav,prevent_group_restriction",
            "project_access_invalidated": "1",
            "enabled": "yes",
            "stun_servers": "***REMOVED SENSITIVE VALUE***",
            "turn_servers": "***REMOVED SENSITIVE VALUE***",
            "signaling_servers": "***REMOVED SENSITIVE VALUE***",
            "installed_version": "14.0.7",
            "has_reference_id": "yes"
        },
        "support": {
            "installed_version": "1.7.0",
            "types": "session",
            "enabled": "yes",
            "SwitchUpdaterServerHasRun": "yes"
        },
        "survey_client": {
            "installed_version": "1.12.0",
            "types": "",
            "enabled": "yes"
        },
        "systemtags": {
            "installed_version": "1.14.0",
            "types": "logging",
            "enabled": "yes"
        },
        "tasks": {
            "types": "",
            "enabled": "yes",
            "installed_version": "0.14.5"
        },
        "text": {
            "installed_version": "3.5.1",
            "types": "dav",
            "enabled": "yes"
        },
        "theming": {
            "installed_version": "1.15.0",
            "types": "logging",
            "enabled": "yes"
        },
        "twofactor_backupcodes": {
            "installed_version": "1.13.0",
            "types": "",
            "enabled": "yes"
        },
        "twofactor_totp": {
            "types": "",
            "enabled": "yes",
            "installed_version": "6.4.1"
        },
        "user_status": {
            "installed_version": "1.4.0",
            "types": "",
            "enabled": "yes"
        },
        "viewer": {
            "installed_version": "1.8.0",
            "types": "",
            "enabled": "yes"
        },
        "weather_status": {
            "installed_version": "1.4.0",
            "types": "",
            "enabled": "yes"
        },
        "workflowengine": {
            "installed_version": "2.6.0",
            "types": "filesystem",
            "enabled": "yes"
        }
    }
}

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

The output from:
sudo docker logs --timestamps nextcloud-aio-mastercontainer

2023-01-05T16:33:41.079568922Z {"level":"info","ts":1672936421.0790322,"logger":"tls.obtain","msg":"obtaining certificate","identifier":"172.17.0.8"}
2023-01-05T16:33:41.079809378Z {"level":"error","ts":1672936421.0795863,"logger":"tls.obtain","msg":"will retry","error":"[172.17.0.8] Obtain: subject does not qualify for a public certificate: 172.17.0.8","attempt":2,"retrying_in":120,"elapsed":60.004080387,"max_duration":2592000}
2023-01-05T16:35:41.074789347Z {"level":"info","ts":1672936541.074286,"logger":"tls.obtain","msg":"releasing lock","identifier":"172.17.0.8"}
2023-01-05T17:26:43.639586665Z {"level":"info","ts":1672939603.6389809,"logger":"tls.on_demand","msg":"obtaining new certificate","remote_ip":"***myIP***","remote_port":"50662","server_name":"***mydomain***"}
2023-01-05T17:26:43.640137214Z {"level":"info","ts":1672939603.6395392,"logger":"tls.obtain","msg":"acquiring lock","identifier":"***mydomain***"}
2023-01-05T17:26:43.645011955Z {"level":"info","ts":1672939603.6435544,"logger":"tls.obtain","msg":"lock acquired","identifier":"***mydomain***"}
2023-01-05T17:26:43.645045060Z {"level":"info","ts":1672939603.6438222,"logger":"tls.obtain","msg":"obtaining certificate","identifier":"***mydomain***"}
2023-01-05T17:26:43.645411014Z {"level":"info","ts":1672939603.645018,"logger":"http","msg":"waiting on internal rate limiter","identifiers":["***mydomain***"],"ca":"https://acme-v02.api.letsencrypt.org/directory","account":"caddy@zerossl.com"}
2023-01-05T17:26:43.645450029Z {"level":"info","ts":1672939603.6450877,"logger":"http","msg":"done waiting on internal rate limiter","identifiers":["***mydomain***"],"ca":"https://acme-v02.api.letsencrypt.org/directory","account":"caddy@zerossl.com"}
2023-01-05T17:26:44.642625249Z {"level":"info","ts":1672939604.6421232,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"***mydomain***","challenge_type":"http-01","ca":"https://acme-v02.api.letsencrypt.org/directory"}
2023-01-05T17:26:55.716696082Z {"level":"error","ts":1672939615.7162724,"logger":"http.acme_client","msg":"challenge failed","identifier":"***mydomain***","challenge_type":"http-01","problem":{"type":"urn:ietf:params:acme:error:connection","title":"","detail":"***myIP***: Fetching http://***mydomain***/.well-known/acme-challenge/Ujcl0NUNVkqqFGUwCAtKjD9-hzREW23yMh6o8Wj9xn0: Timeout during connect (likely firewall problem)","instance":"","subproblems":[]}}
2023-01-05T17:26:55.716726551Z {"level":"error","ts":1672939615.7163532,"logger":"http.acme_client","msg":"validating authorization","identifier":"***mydomain***","problem":{"type":"urn:ietf:params:acme:error:connection","title":"","detail":"***myIP***: Fetching http://***mydomain***/.well-known/acme-challenge/Ujcl0NUNVkqqFGUwCAtKjD9-hzREW23yMh6o8Wj9xn0: Timeout during connect (likely firewall problem)","instance":"","subproblems":[]},"order":"https://acme-v02.api.letsencrypt.org/acme/order/734720381/157068516627","attempt":1,"max_attempts":3}
2023-01-05T17:26:57.073586748Z {"level":"info","ts":1672939617.073253,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"***mydomain***","challenge_type":"tls-alpn-01","ca":"https://acme-v02.api.letsencrypt.org/directory"}
2023-01-05T17:26:58.437882058Z {"level":"error","ts":1672939618.4375896,"logger":"http.acme_client","msg":"challenge failed","identifier":"***mydomain***","challenge_type":"tls-alpn-01","problem":{"type":"urn:ietf:params:acme:error:tls","title":"","detail":"***myIP***: remote error: tls: internal error","instance":"","subproblems":[]}}
2023-01-05T17:26:58.437912463Z {"level":"error","ts":1672939618.4376519,"logger":"http.acme_client","msg":"validating authorization","identifier":"***mydomain***","problem":{"type":"urn:ietf:params:acme:error:tls","title":"","detail":"***myIP***: remote error: tls: internal error","instance":"","subproblems":[]},"order":"https://acme-v02.api.letsencrypt.org/acme/order/734720381/157068537857","attempt":2,"max_attempts":3}
2023-01-05T17:26:58.437925442Z {"level":"error","ts":1672939618.4376798,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"***mydomain***","issuer":"acme-v02.api.letsencrypt.org-directory","error":"HTTP 400 urn:ietf:params:acme:error:tls - ***myIP***: remote error: tls: internal error"}
2023-01-05T17:26:58.438185725Z {"level":"info","ts":1672939618.4379451,"logger":"http","msg":"waiting on internal rate limiter","identifiers":["***mydomain***"],"ca":"https://acme.zerossl.com/v2/DV90","account":"caddy@zerossl.com"}
2023-01-05T17:26:58.438251538Z {"level":"info","ts":1672939618.4379761,"logger":"http","msg":"done waiting on internal rate limiter","identifiers":["***mydomain***"],"ca":"https://acme.zerossl.com/v2/DV90","account":"caddy@zerossl.com"}
2023-01-05T17:27:23.037250624Z {"level":"info","ts":1672939643.0368254,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"***mydomain***","challenge_type":"http-01","ca":"https://acme.zerossl.com/v2/DV90"}

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.

Have not found /var/www/nextcloud.log

Hi, can you post the logs of the nextcloud-aio-mastercontainer here?

Hi! I’m a bit lost trying to access logfiles for the mastercontainer.

the mastercontainer’s /var/log/ contains the following:

-rw-r--r-- 1 root     root     4.7K Nov 21 18:16 alternatives.log
drwxrwxrwx 2 www-data www-data 4.0K Nov 15 04:17 apache2
drwxr-xr-x 1 root     root     4.0K Nov 21 18:16 apt
-rw-rw---- 1 root     utmp        0 Nov 14 00:00 btmp
-rw-r--r-- 1 root     root     117K Nov 21 18:16 dpkg.log
-rw-r--r-- 1 root     root     3.2K Nov 14 00:00 faillog
-rw-rw-r-- 1 root     utmp      29K Nov 14 00:00 lastlog
drwxr-xr-x 2 root     root     4.0K Mar 21  2021 supervisor
drwxr-xr-x 1 root     root     4.0K Jan  4 10:56 supervisord
-rw-rw-r-- 1 root     utmp        0 Nov 14 00:00 wtmp

And /var/log/apache2:

lrwxrwxrwx 1 www-data www-data   11 Nov 15 04:17 access.log -> /dev/stdout
lrwxrwxrwx 1 www-data www-data   11 Nov 15 04:17 error.log -> /dev/stderr
lrwxrwxrwx 1 www-data www-data   11 Nov 15 04:17 other_vhosts_access.log -> /dev/stdout

The apache logs are links that eventually lead to /dev/pts/0 . I am vaguely assuming i should access the mastercontainer logfiles directly on the docker host somehow?

yes, I need the output of sudo docker logs nextcloud-aio-mastercontainer

Thanks!! I edited my post and the logs output is at the bottom. At 17.26 I logged in and attempted to open the nextcloud aio interface. Certificate issue?

Yeah looks like it. Is it possible that port 80 is not forwarded in your router?

Port 80 was indeed not forwarded, and this solved it!
Thanks a lot for your help!