Cannot use some post-install apps (404-error on app files)

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 30.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Fedora 41
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.62
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Apache/2.4.37
  • PHP version (e.g, 8.3):
    • PHP 8.3.13
  • Is this the first time you’ve seen this error? (Yes / No):
    • Y
  • When did this problem seem to first start?
    • Always been
  • Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
    • Bare Metal
  • Are you using Cloudflare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Whenever I am trying install and use an app the install works fine and the app shows up in the top menu on the dashboard but the icon/image of the app is missing and when I click it the app doesn’t work. In some apps some small stuff is loading and in other apps only the lovely blue-ish background is showing.

Tested 2 apps so far: solitaire and deck. More info about the deck install can be found in a rejected issue on their github.

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

  1. Login as admin to NC
  2. Install an app
  3. Click on the app (notice the missing icon) in the top menu

Log entries

Nextcloud

This log a snippet of when I click the icon in the top menu until the log stops rolling with loglevel “debug”. Any other loglevel prints nothing when doing this.
debug.log.pdf (63.3 KB)

Web Browser

Web server / Reverse Proxy

apache.log
172.29.29.252 - - [02/Dec/2024:09:15:27 +0100] "GET /apps/deck/ HTTP/1.1" 200 9770 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /apps-appstore/deck/css/deck.css?v=92a47233-0 HTTP/1.1" 404 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /apps-appstore/deck/js/deck-reference.js?v=f38d6b7b-0 HTTP/1.1" 404 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /apps-appstore/deck/js/deck-main.js?v=f38d6b7b-0 HTTP/1.1" 404 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /apps-appstore/deck/js/deck-collections.js?v=f38d6b7b-0 HTTP/1.1" 404 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /dist/files-sidebar.js.map?v=5a6008c479f1c7430640 HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /dist/comments-comments-app.js.map?v=d6923c2842ef75b19ace HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /dist/files_sharing-files_sharing_tab.js.map?v=7bab7004cf9d957efdf5 HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /ocs/v2.php/search/providers?from=%2Fapps%2Fdeck%2F HTTP/1.1" 200 489 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /dist/core-main.js.map?v=4b2101727c5cca363657 HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "POST /contactsmenu/contacts HTTP/1.1" 200 827 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /ocs/v2.php/apps/user_status/api/v1/user_status HTTP/1.1" 200 149 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 200 149 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /apps-appstore/solitaire/img/app.svg HTTP/1.1" 404 5775 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 1124 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /apps-appstore/deck/img/deck.svg HTTP/1.1" 404 5775 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:28 +0100] "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1" 200 14637 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
172.29.29.252 - - [02/Dec/2024:09:15:29 +0100] "GET /apps-appstore/onlyoffice/img/app-dark.svg HTTP/1.1" 404 5775 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"

Configuration

Nextcloud

occ config:list system
{
    "system": {
        "log_type": "file",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "updatechecker": false,
        "check_for_working_htaccess": false,
        "asset-pipeline.enabled": false,
        "assetdirectory": "\/var\/lib\/nextcloud",
        "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
        "apps_paths": [
            {
                "path": "\/usr\/share\/nextcloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/usr\/share\/nextcloud\/extra-apps",
                "url": "\/apps-appstore",
                "writable": true
            }
        ],
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "<redacted fqdn>",
            "<redacted ip>",
            "127.0.0.1"
        ],
        "overwrite.cli.url": "https:\/\/<redacted fqdn>",
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "dbtype": "mysql",
        "version": "30.0.2.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "<redaced cc>",
        "defaultapp": "files",
        "maintenance_window_start": "3",
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "maintenance": false,
        "skeletondirectory": "",
        "templatedirectory": "",
        "enable_previews": true,
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "preview_max_scale_factor": 2,
        "preview_max_filesize_image": 200,
        "preview_max_memory": 1024,
        "enabledPreviewProviders": [
            "OC\\Preview\\BMP",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\PNG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\MP4"
        ],
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "theme": "",
        "loglevel": 2,
        "jpeg_quality": "60",
        "app_install_overwrite": [
            "epubviewer"
        ]
    }
}

Apps

occ apps:list
Enabled:
  - activity: 3.0.0
  - app_api: 4.0.0
  - bruteforcesettings: 3.0.0
  - circles: 30.0.0
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contactsinteraction: 1.11.0
  - dashboard: 7.10.0
  - dav: 1.31.1
  - deck: 1.14.2
  - drawio: 3.0.3
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0
  - lookup_server_connector: 1.18.0
  - nextcloud_announcements: 2.0.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - onlyoffice: 9.5.0
  - password_policy: 2.0.0
  - photos: 3.0.2
  - previewgenerator: 5.7.0
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - solitaire: 1.0.0
  - support: 2.0.0
  - survey_client: 2.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - updatenotification: 1.20.0
  - user_ldap: 1.21.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - weather_status: 1.10.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - admin_audit: 1.20.0
  - documentserver_community: 0.1.20 (installed 0.1.20)
  - encryption: 2.18.0
  - epubviewer: 1.6.7 (installed 1.6.2)
  - files_external: 1.22.0
  - fileslibreofficeedit: 2.0.1 (installed 2.0.1)
  - logreader: 3.0.0 (installed 2.13.0)
  - photos.bak: 2.4.0
  - suspicious_login: 8.0.0
  - twofactor_nextcloud_notification: 4.0.0
  - twofactor_totp: 12.0.0-dev

VirtualHost

domain.conf
<VirtualHost *:443>
	SSLEngine on
	ServerName <redacted>
	DocumentRoot /usr/share/nextcloud/
	<Directory "/usr/share/nextcloud/">
		Require all granted
		AllowOverride All
		Options Indexes FollowSymLinks
		Satisfy Any
		SetEnv HOME /usr/share/nextcloud
		SetEnv HTTP_HOME /usr/share/nextcloud
	</Directory>
	Include /etc/letsencrypt/options-ssl-apache.conf
	SSLCertificateFile /etc/letsencrypt/live/<redacted>/fullchain.pem
	SSLCertificateKeyFile /etc/letsencrypt/live/<redacted>/privkey.pem
	
	ErrorLog logs/error-nextcloud.log
	CustomLog logs/access-nextcloud.log combined
	#<IfModule mod_rewrite.c>
	#	RewriteEngine on
	#	RewriteRule "^/$" "/nextcloud" [R]
	#</IfModule>
	<IfModule mod_headers.c>
		Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
	</IfModule>	

</VirtualHost>

Other info

Things I’ve tested:

  • Reinstalling apps
  • Relocating extra-apps
  • Disable SELinux
  • Change permissions
  • Updating OS
  • Rebooting
  • Restarting httpd and php-fpm
  • files:scan-app-data

Any help on this is appreciated.
Br.

It does seem like an issue with every app installed in the additional extra-apps-folder. Am I missing something, like an option or some httpd stuff?

For quick reference, here’s my apps_paths:

occ config:list system (snippet)
        "apps_paths": [
            {
                "path": "\/usr\/share\/nextcloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/usr\/share\/nextcloud\/extra-apps",
                "url": "\/apps-appstore",
                "writable": true
            }
        ],

Please see the Tip in Using custom app directories in the Admin Manual. It may be relevant in your case.

(Though it appears you’ve moved things around a few times between the linked Issue and this support thread).

Also, check your Apache error log for clues about the 404.

Not sure how I managed to miss that big, green tip box right there, but adding a symlink from <serverroot>/extra-apps to <serverroot>/apps-appstore did the trick. Thanks a bunch for all the help!

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.