Failed to fetch

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Hey !

The Basics

  • Nextcloud Server version (e.g., 29.x.x):

    • 33.0.1
  • Operating system and version (e.g., Ubuntu 24.04):

    • Shared hosting environment (o2switch)
  • Web server and version (e.g, Apache 2.4.25):

    • Apache (version not exposed by hosting provider)
  • Reverse proxy and version _(e.g. nginx 1.27.2)

    • None configured
  • PHP version (e.g, 8.3):

    • PHP 8.3
  • Is this the first time you’ve seen this error? (Yes / No):

    • Yes
  • When did this problem seem to first start?

    • Immediately after installing Nextcloud and trying to access the Files app
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)

    • Manual installation using the official Nextcloud archive.

    Are you using CloudfIare, mod_security, or similar? (Yes / No)

    • No

Summary of the issue you are facing:

After installing Nextcloud on a shared hosting server, the Files application fails to load.

The browser console shows errors related to:

  • CSS files being returned as text/html

  • WebDAV requests failing

  • HTTP/2 protocol errors

As a result, the file list cannot be displayed and WebDAV requests fail.

The Nextcloud interface loads, but when opening the Files app, the directory listing fails to load.

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

  1. Open the Nextcloud instance
  2. Log in with a user account
  3. Open the Files app
  4. The file list does not load
  5. Open the browser developer tools (Console / Network)
  6. Errors appear related to WebDAV and MIME types

Log entries

Web Browser

Console output:

Refused to apply style from 'https://subdomaine.domaine.fr/apps/files_versions/css/sidebar-tab.css?v=8fe4de75-0'
because its MIME type ('text/html') is not a supported stylesheet MIME type,
and strict MIME checking is enabled.

WebDAV errors:

REPORT https://subdomaine.domaine.fr/remote.php/dav/files/LLoric/ net::ERR_HTTP2_PROTOCOL_ERROR
PROPFIND https://subdomaine.domaine.fr/remote.php/dav/files/LLoric/ net::ERR_HTTP2_PROTOCOL_ERROR

Additional errors:

Failed to load favorite nodes via WebDAV
Error while fetching content
TypeError: Failed to fetch

Other warnings present:

viewer: Some mimes were ignored because they are not enabled in the server previews config
@nextcloud/vue: You need to fill either the text or the ariaLabel props in the button component

These warnings appear secondary and do not seem to be the main issue.

Web server / Reverse Proxy

TNo direct access to Apache logs due to shared hosting environment.

Configuration

Nextcloud

$CONFIG = array (
  'instanceid' => 'xxxx',
  'passwordsalt' => 'xxxxx',
  'secret' => 'xxx',
  'datadirectory' => 'xxxxxx',
  'dbtype' => 'mysql',
  'version' => '33.0.1.2',
  'overwrite.cli.url' => 'https://subdomaine.domaine.fr',
  'trusted_domains' =>
  array (
  0 => 'subdomaine.domaine.fr',
  ),
  'overwriteprotocol' => 'https',
  'dbname' => 'xxxx',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc\_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xx',
  'dbpassword' => 'XX’,
  'installed' => true,
);

Additional observations

Since the CSS file is returned with MIME type text/html, it seems the server returns an HTML response instead of the expected CSS file, possibly indicating:

  • an Apache rewrite issue

  • a .htaccess configuration problem

  • a hosting-level security filter (mod_security)

  • or an HTTP/2 handling issue with WebDAV requests

The WebDAV endpoint also fails:

/remote.php/dav/files/<user>/

with:

ERR_HTTP2_PROTOCOL_ERROR

Hello @Loric, welcome to the Nextcloud community! :handshake:

from your troubleshooting it looks the problem is likely caused by the webserver configuration.
I think you better get in touch with your hosting provider to address the MIME issues and HTTP protocol errors.

Also review all required PHP modules are available. docs for reference Installation on Linux — Nextcloud latest Administration Manual latest documentation

Hi
Did you check warning/error messages you have when you access at NC through web interface with an admin account → Administration Parameters ?
Also did you check the shared hosting has well all the prerequisites for NC ? System requirements — Nextcloud latest Administration Manual latest documentation
Vincèn