Fresh NC 26 installation - Collabora new documents brings blank page -> cool.html 404

Nextcloud version (eg, 20.0.5): 26.0.1.1
Operating system and version (eg, Ubuntu 20.04): Linux 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.56
PHP version (eg, 7.4): 8.2.5

The issue you are facing:

When creating a new document with Collabora (hosted on the same machine, accessed by reverse proxy like described in official documentation) I only get a blank page. Same happens when opening that empty documents. No icons nothing, just a blank page. In browser console I see that cool.html can’t be loaded (404) and in apache logs I found this:

access_log of the NC vhost

[11/May/2023:07:42:28 +0200] “POST /browser/c360011/cool.html?WOPISrc=https%3A%2F%2Fnc.domain.com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F582_ocg9zcir75xk&title=Neue%20Tabelle.xlsx&lang=de&closebutton=1&revisionhistory=1 HTTP/1.1” 404 14404 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15”

error log:

[Thu May 11 07:42:28.915381 2023] [core:info] [pid 150779] [client x.x.x.x:53695] AH00128: File does not exist: /var/www/nextcloud/browser/c360011/cool.html

It is occurring on every filetype. Same behaviour if I switch to builtin CODE Server or use the Collabora instance without reverse proxy. So the proxy shouldn’t be the problem.

I discovered that the directory /var/www/nextcloud/browser didn’t exist and created it, but that didn’t help. For some reason the subdirectories with cool.html in them don’t get created.

After googling several hours I didn’t find a solution to this, so I decided to post it here.

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

Steps to replicate it:

  1. Click + for a new Document

The output of your Nextcloud log in Admin > Logging:

There are no logs at the times I'm trying this!

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

<details><summary>Configuration (config/config.php)</summary>

{
“trusted_domains”: [
“nc.domain.com”
],
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “26.0.1.1”,
“overwrite.cli.url”: “https://nc.domain.com”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbport”: “”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“mail_smtpmode”: “smtp”,
“mail_smtpsecure”: “ssl”,
“mail_sendmailmode”: “smtp”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “587”,
“mail_smtpauth”: 1,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE”,
“maintenance”: false,
“instanceid”: “REMOVED SENSITIVE VALUE”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“dbtableprefix”: “oc_”,
“installed”: true,
“theme”: “”,
“loglevel”: 2,
“allow_local_remote_servers”: true
}

</details>

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

[11/May/2023:07:42:28 +0200] “POST /browser/c360011/cool.html?WOPISrc=https%3A%2F%2Fnc.domain.com%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F582_ocg9zcir75xk&title=Neue%20Tabelle.xlsx&lang=de&closebutton=1&revisionhistory=1 HTTP/1.1” 404 14404 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15”

error log:

[Thu May 11 07:42:28.915381 2023] [core:info] [pid 150779] [client x.x.x.x:53695] AH00128: File does not exist: /var/www/nextcloud/browser/c360011/cool.html


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.

There's no nextcloud.log in /var/www/nextcloud

Last GUI logs are from a week ago - nothing to the actual tries.

Fehler	index	TypeError: OCA\Files\Service\TagService::__construct(): Argument #4 ($homeFolder) must be of type OCP\Files\Folder, null given, called in /var/www/nextcloud/apps/files/lib/AppInfo/Application.php on line 106		2023-05-04T05:57:37+0200
Fehler	index	TypeError: OCA\Files\Service\TagService::__construct(): Argument #4 ($homeFolder) must be of type OCP\Files\Folder, null given, called in /var/www/nextcloud/apps/files/lib/AppInfo/Application.php on line 106		2023-05-03T14:51:18+0200

I have more or less the same problem… in my case it’s the reverse proxy that doesn’t do as i want it to… If i use the cloudflare proxy it works, without it doesn’t… Maybe your problem is similar to mine…

You got it working?

I’m dead in the water…

Yes… sry :sweat_smile:
i had to forward the https layers :smiley:

RequestHeader set X-Forwarded-SSL “1”
RequestHeader set X-Forwarded-Proto “https” env=HTTPS

at least in apache2 as reverse proxy.

Cool!

Where did you put that into Apache?
<VirtualHost *:80>
or
<VirtualHost *.443>

I am using Apache on a main server with Nextcloud running inside a snap. I guess that makes Apache a reverse proxy?

uhm yes i think so… haha :smile:

look at this thread, i just saw that i’ve already posted the solution :handshake::

tell me if this is what you needed :eyes:.

1 Like

That is EXACTLY what I needed! How is this not in the NextCloud installation instructions? Without this, NC is totally broken!

I cannot thank you enough!