App Store Frequent 302 / Invalid Response

Support intro

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 33.0.1.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Rocky 10
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.63
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx 1.28.2
  • PHP version (e.g, 8.3):
    • 8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Unsure; I first saw it after upgrading to 33.0.0
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare Meta,updater.phar
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

In a nutshell, the app store is not loading for me.

  • Logs show:
    Warning appstoreFetcher Response from appstore is invalid, apps could not be retrieved. Try again later.

    and

    ConnectExceptioncURL error 28: Operation timed out after 120000 milliseconds with 6176450 out of 11078073 bytes received

  • Apps page in the WebUI, when it loads, shows, “Nothing to show Could not load section content from app store.”

  • curl at the command line intermittently gets me a 302 or a seemingly valid response; e.g.,

[root@testnc tmp]# curl https://apps.nextcloud.com/api/v1/apps.json

302 Found

302 Found


nginx

OR

[root@testnc tmp]# curl ``https://apps.nextcloud.com/api/v1/apps.json
[{“id”:“gefex_provisioning”,“categories”:[“security”],“userDocs”:“”,“adminDocs”:
8< – Snip! – >8

Incoming connections are behind nginx proxy; outbound connections (e.g., curl) are not proxied.

Steps to replicate it (hint: details matter!):

  1. Log into NextCloud

  2. Go to the Apps page.

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

Warning appstoreFetcher Response from appstore is invalid, apps could not be retrieved. Try again later.

ConnectExceptioncURL error 28: Operation timed out after 120000 milliseconds with 6176450 out of 11078073 bytes received

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

N/A

Web server / Reverse Proxy

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

N/A

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "testnc.thatonedomain.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "33.0.1.2",
        "overwrite.cli.url": "https:\/\/testnc.thatonedomain.com",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true
    },
    "apps": {
        "activity": {
            "enabled": "yes",
            "installed_version": "6.0.0-dev.0",
            "types": "filesystem"
        },
        "app_api": {
            "enabled": "yes",
            "installed_version": "33.0.0",
            "types": ""
        },
        "backgroundjob": {
            "lastjob": "67060339714113537"
        },
        "bruteforcesettings": {
            "enabled": "yes",
            "installed_version": "6.0.0-dev.0",
            "types": ""
        },
        "circles": {
            "enabled": "yes",
            "installed_version": "33.0.0",
            "loopback_tmp_scheme": "https",
            "maintenance_run": "0",
            "maintenance_update": "{\"3\":1774891441,\"2\":1774891441,\"1\":1774891441}",
            "types": "filesystem,dav"
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "1.17.0",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.23.0",
            "types": "logging"
        },
        "contactsinteraction": {
            "enabled": "yes",
            "installed_version": "1.14.1",
            "types": "dav"
        },
        "core": {
            "installedat": "1774890501.4183",
            "lastcron": 1774892726,
            "lastupdatedat": 1774890501,
            "public_files": "files_sharing\/public.php",
            "vendor": "nextcloud",
            "files_metadata": {
                "photos-original_date_time": {
                    "value": null,
                    "type": "int",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                },
                "photos-exif": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-ifd0": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-size": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                }
            },
            "oc.integritycheck.checker": []
        },
        "dashboard": {
            "enabled": "yes",
            "installed_version": "7.13.0",
            "types": ""
        },
        "dav": {
            "enabled": "yes",
            "hasCustomDefaultContact": false,
            "installed_version": "1.36.0",
            "types": "filesystem"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.23.0",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.23.0",
            "types": "authentication"
        },
        "files": {
            "enabled": "yes",
            "installed_version": "2.5.0",
            "types": "filesystem"
        },
        "files_downloadlimit": {
            "enabled": "yes",
            "installed_version": "5.1.0-dev.0",
            "types": ""
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "6.0.0-dev.0",
            "types": ""
        },
        "files_reminders": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "installed_version": "1.25.2",
            "types": "filesystem"
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.23.0",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.26.0",
            "types": "filesystem,dav"
        },
        "firstrunwizard": {
            "enabled": "yes",
            "installed_version": "6.0.0-dev.0",
            "types": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "6.0.0",
            "types": "logging"
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": "authentication"
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": "logging"
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "6.0.0",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": "authentication"
        },
        "password_policy": {
            "enabled": "yes",
            "installed_version": "5.0.0-dev.0",
            "types": "authentication"
        },
        "photos": {
            "enabled": "yes",
            "installed_version": "6.0.0-dev.0",
            "types": "dav,authentication"
        },
        "privacy": {
            "enabled": "yes",
            "installed_version": "5.0.0-dev.0",
            "types": ""
        },
        "profile": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.23.0",
            "types": "prevent_group_restriction"
        },
        "recommendations": {
            "enabled": "yes",
            "installed_version": "6.0.0-dev.0",
            "types": ""
        },
        "related_resources": {
            "enabled": "yes",
            "installed_version": "4.0.0-dev.0",
            "types": ""
        },
        "serverinfo": {
            "enabled": "yes",
            "installed_version": "5.0.0-dev.0",
            "types": ""
        },
        "settings": {
            "appstore-fetcher-lastFailure": "1774892810",
            "enabled": "yes",
            "installed_version": "1.16.0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "yes",
            "installed_version": "1.23.0",
            "types": "filesystem"
        },
        "support": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": "session"
        },
        "survey_client": {
            "enabled": "yes",
            "installed_version": "5.0.0-dev.0",
            "types": ""
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.23.0",
            "types": "logging"
        },
        "text": {
            "enabled": "yes",
            "installed_version": "7.0.0-dev.3",
            "types": "dav"
        },
        "theming": {
            "enabled": "yes",
            "installed_version": "2.8.0",
            "types": "logging"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": ""
        },
        "twofactor_totp": {
            "enabled": "yes",
            "installed_version": "15.0.0-dev.0",
            "types": ""
        },
        "updatenotification": {
            "enabled": "yes",
            "installed_version": "1.23.0",
            "types": ""
        },
        "user_status": {
            "enabled": "yes",
            "installed_version": "1.13.0",
            "types": ""
        },
        "viewer": {
            "enabled": "yes",
            "installed_version": "6.0.0-dev.0",
            "types": ""
        },
        "weather_status": {
            "enabled": "yes",
            "installed_version": "1.13.0",
            "types": ""
        },
        "webhook_listeners": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "filesystem"
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "2.15.0",
            "types": "filesystem"
        }
    }
}


Apps

The output of occ app:list (if possible).

Enabled:

activity: 6.0.0-dev.0

app_api: 33.0.0

bruteforcesettings: 6.0.0-dev.0

circles: 33.0.0

cloud_federation_api: 1.17.0

comments: 1.23.0

contactsinteraction: 1.14.1

dashboard: 7.13.0

dav: 1.36.0

federatedfilesharing: 1.23.0

federation: 1.23.0

files: 2.5.0

files_downloadlimit: 5.1.0-dev.0

files_pdfviewer: 6.0.0-dev.0

files_reminders: 1.6.0

files_sharing: 1.25.2

files_trashbin: 1.23.0

files_versions: 1.26.0

firstrunwizard: 6.0.0-dev.0

logreader: 6.0.0

lookup_server_connector: 1.21.0

nextcloud_announcements: 5.0.0

notifications: 6.0.0

oauth2: 1.21.0

password_policy: 5.0.0-dev.0

photos: 6.0.0-dev.0

privacy: 5.0.0-dev.0

profile: 1.2.0

provisioning_api: 1.23.0

recommendations: 6.0.0-dev.0

related_resources: 4.0.0-dev.0

serverinfo: 5.0.0-dev.0

settings: 1.16.0

sharebymail: 1.23.0

support: 5.0.0

survey_client: 5.0.0-dev.0

systemtags: 1.23.0

text: 7.0.0-dev.3

theming: 2.8.0

twofactor_backupcodes: 1.22.0

twofactor_totp: 15.0.0-dev.0

updatenotification: 1.23.0

user_status: 1.13.0

viewer: 6.0.0-dev.0

weather_status: 1.13.0

webhook_listeners: 1.5.0

workflowengine: 2.15.0

Disabled:

admin_audit: 1.23.0

encryption: 2.21.0

files_external: 1.25.1

suspicious_login: 11.0.0-dev.0

testing: 1.23.0

twofactor_nextcloud_notification: 7.0.0

user_ldap: 1.24.0

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

302 is perfectly valid, but by default curl does not follow the redirect.

Hello! I think we have the same issue. After upgrading from Nextcloud 32.0.6 to 33.0.0, the “Discover” tab in the Apps section of the Admin UI shows “Nothing to show” and I cant update many apps like “Deck” etc. even tho they are approved for NC33. Testing the endpoint that NC 33 tries to fetch internally reveals: “PHP Warning: file_get_contents(https://nextcloud.com/wp-json/nextcloud/v1/apps/discover): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found”.

Any help would be appreciated.

Best Regards,

This morning I’m getting a straight 404:

[root@testnc tmp]# curl https://apps.nextcloud.com/api/v1

<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="The Nextcloud App Store - Upload your apps and install new apps onto your Nextcloud">
    <meta name="author" content="The Nextcloud Community">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <link rel="shortcut icon" href="/static/assets/img/favicon.png"/>
    <link rel="apple-touch-icon" href="/static/assets/img/favicon-180.png">
    <title>Not Found - App Store - Nextcloud</title>
8<  --  Snip!  --  >8

Correctly, as the url is wrong.

https://garm3.nextcloud.com/api/v1/apps.json works at the command line; is it expected that from within the UI I would get a 401?

[root@testnc tmp]# curl ``https://garm3.nextcloud.com/api/v1/apps.json
[{“id”:“gefex_provisioning”,“categories”:[“security”],“userDocs”:“”,“adminDocs”:“”,“developerDocs”:"
8< – Snip! – >8

From the admin logs in this UI:

{“reqId”:“ac0r3myb3DbyN-dJWU2FbgAAAAI”,“level”:2,“time”:“2026-04-01T14:29:51+00:00”,“remoteAddr”:“172.22.21.16”,“user”:“jeffro”,“app”:“appstoreExAppFetcher”,“method”:“GET”,“url”:“/index.php/apps/app_api/apps/list”,“scriptName”:“/index.php”,“message”:“Client error: GET https://garm5.nextcloud.com/api/v1/appapi_apps.json resulted in a 401 Unauthorized response:\n{"error":"Authentication failed","details":""}\n\n”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0”,“version”:“33.0.1.2”,“exception”:{“Exception”:“GuzzleHttp\Exception\ClientException”,“Message”:“Client error: GET https://garm5.nextcloud.com/api/v1/appapi_apps.json resulted in a 401 Unauthorized response:\n{"error":"Authentication failed","details":""}\n\n”,“Code”:401,“Trace”:
8< – Snip! – >8

Does this point to an internal auth issue?

Nope. Something else must be off here. I’ll reach out to you for the complete log.

This past Sunday, things Just Started Working™.

I made no changes to the server nor anywhere else in my infrastructure. /sigh