Unable to save calendar info

I’ve just installed Nextcloud 24.0.4 on a webhotel, that I think is running som BSD variant. I think it runs apache as it processes .htaccess-files.

I configured it to run PHP version 8.0

The issue you are facing:
On the newly installed installation my first activity is to install the calendar app and try to create a meeting, a new calendar, or rename the prexisting one. All fails. No messages, or just a very genric one. There is nothing in the logs. It behaves like if everything was write-protected.

It is the first time I’ve seen this error.

Steps to replicate it: Se above.

The output of your Nextcloud log in Admin > Logging:

Nivå	App	Meddelande		
Tid
Varning	no app in context	Could not detect any host in http:///data/htaccesstest.txt		2022-08-20T22:03:52+0200
Varning	no app in context	Could not detect any host in https:///data/htaccesstest.txt		2022-08-20T22:03:52+0200

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

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

https://pastebin.com/5P9P1c0b

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.

[Sat Aug 20 22:07:16.570140 2022] [access_compat:error] [pid 882734:tid 140527898519296] [client 192.36.176.132:0] AH01797: client denied by server configuration: /home/s53880/domains/kungjulien.se/private_html/nxt/remote.php
[Sat Aug 20 22:07:16.841261 2022] [access_compat:error] [pid 882734:tid 140528057980672] [client 192.36.176.132:0] AH01797: client denied by server configuration: /home/s53880/domains/kungjulien.se/private_html/nxt/index.php
[Sat Aug 20 22:07:47.102098 2022] [access_compat:error] [pid 883073:tid 140528066373376] [client 192.36.176.132:0] AH01797: client denied by server configuration: /home/s53880/domains/kungjulien.se/private_html/nxt/remote.php
[Sat Aug 20 22:07:47.247324 2022] [access_compat:error] [pid 882734:tid 140527957268224] [client 192.36.176.132:0] AH01797: client denied by server configuration: /home/s53880/domains/kungjulien.se/private_html/nxt/index.php
[Sat Aug 20 22:08:01.803551 2022] [access_compat:error] [pid 883073:tid 140528116729600] [client 192.36.176.132:0] AH01797: client denied by server configuration: /home/s53880/domains/kungjulien.se/private_html/nxt/remote.php
[Sat Aug 20 22:08:02.020810 2022] [access_compat:error] [pid 883073:tid 140528066373376] [client 192.36.176.132:0] AH01797: client denied by server configuration: /home/s53880/domains/kungjulien.se/private_html/nxt/index.php
[Sat Aug 20 22:14:59.646192 2022] [access_compat:error] [pid 883073:tid 140527772628736] [client 192.36.176.132:0] AH01797: client denied by server configuration: /home/s53880/domains/kungjulien.se/private_html/nxt/data/.ocdata

The error seems to be clear, there is no host given in the provided URL so your server configuration might require some corrections. Due to the fact that you haven’t provided your Nextcloud configuration, no further recommendations are possible.

Sorry, missed that. Here is my config.php. Obviously I removed some of the sensitive stuff.

<?php
$CONFIG = array (
  'instanceid' => '--DELETED--',
  'passwordsalt' => '--DELETED--',
  'secret' => '--DELETED--',
  'trusted_domains' => 
  array (
    0 => 'nxt.kungjulien.se',
  ),
  'datadirectory' => '/home/--DELETED--/data',
  'dbtype' => 'mysql',
  'version' => '24.0.4.1',
  'overwrite.cli.url' => 'https://nxt.kungjulien.se',
  'dbname' => '--DELETED--',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'nc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 's53880_nc1',
  'dbpassword' => '--DELETED--',
  'installed' => true,
  'default_phone_region' => 'SE',
);

I tried find where this could be configured, but I didn’t find anything. I accept advice.

This link, however, indicates this log message has no impact on the installation: Problem with htaccesstest.txt and setup.js after a docker installation · Issue #1231 · nextcloud/docker · GitHub

I don’t know why there is no host name set on your server but you should check if setting the 'overwritehost' parameter will solve your problem.

Applied that config, but no change.

I was kind of hoping someone would explain “the Calendar saves it’s data in folder this-and-that. Please check that or has permissions to 0770 in that location.”

Does anyone know of some troubleshooting tips?

Does everything run under the same ID or is things compartmentalized as it should be? Is there somewhere I can see what ID the nextcloud processes runs under?