Access to /core/img files

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 : 28.0.2
Operating system and version : Debian 5.10.0-28-amd64
Apache or nginx version: nginx 1.24.0
PHP version : 8.1.27

The issue you are facing:

Am I supposed to be able to access to /core/* files?

I.e. should I be able to access to /core/img/facebook.png file directly from the browser with a GET request?

I am asking since I cannot access the file in example (Nextcloud returns a not found error / access error web page) and I cannot access /core/templates/message.html neither (404 on the browser console).

The files are available on the file system and the user rights seems to be fine (www-data with correct chmod).

Is something related to the webserver configuration?

I am using nginx with the standard setup and the only “location” setup mentioning the /core path seems to be the following:

location ~ ^\/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|ocs-provider\/.+|.+\/richdocumentscode\/proxy)\.ph>
        fastcgi_split_path_info ^(.+?\.php)(\/.*|)$;
        set $path_info $fastcgi_path_info;
        try_files $fastcgi_script_name =404;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $path_info;
        fastcgi_param HTTPS on;
        # Avoid sending the security headers twice
        fastcgi_param modHeadersAvailable true;
        # Enable pretty urls
        fastcgi_param front_controller_active true;
        fastcgi_pass php-handler;
        fastcgi_read_timeout 600;
        fastcgi_intercept_errors on;
        fastcgi_request_buffering off;
    }

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

Steps to replicate it:

  1. Open your browser and point to any /core/ element
  2. Check your results

The output of your Nextcloud log in Admin > Logging:

  • No relevant log found

The output of your Apache/nginx/access.log log:

192.168.100.1 - - [16/Feb/2024:12:06:58 +0100] "GET /core/img/facebook.png HTTP/1.1" 404 5103 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "127.0.0.1, 127.0.0.1, 127.0.0.1"
192.168.100.1 - - [16/Feb/2024:12:06:59 +0100] "GET /core/img/manifest.json HTTP/1.1" 404 5104 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "127.0.0.1, 127.0.0.1, 127.0.0.1"
192.168.100.1 - - [16/Feb/2024:12:07:23 +0100] "GET /core/img/facebook.png HTTP/1.1" 404 5105 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "127.0.0.1, 127.0.0.1, 127.0.0.1"
192.168.100.1 - - [16/Feb/2024:12:07:24 +0100] "GET /core/img/manifest.json HTTP/1.1" 404 5103 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "127.0.0.1, 127.0.0.1, 127.0.0.1"```

Any suggestion?

Am I supposed to be able to access to www.mynextcloudinstall.com/core/* files? :pray: