[details=“Support intro”]
Sorry to hear you’re facing problems
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:
Nextcloud version (eg, 20.0.5): 23.x
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache2
PHP version (eg, 7.4): 7.4
The issue you are facing: I can´t access my nextcloud anymore. Forbidden You don’t have permission to access this resource.
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it:
The problem started at 0 AM. I did the setup of my nextcloud yesterday. It’ s hostet at onyxhosting.de and worked fine the whole day. I think it´s about the error in the apache2 log with ssl (server certificate does NOT include an ID which matches the server name). And there is another problem about the environment variable for apache2, produced by the command /usr/sbin/apache2
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot```
I tried to find the problem, but I´m not able to fix this on my own...
The output of your Nextcloud log in **Admin > Logging**:
I can´t access the interface right now...
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => 'AAAAAAAAAA',
'secret' => 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB',
'trusted_domains' =>
array (
0 => 'localhost',
7 => 'nextcloudpi',
5 => '111.111.111.111',
8 => 'https://111.111.111.111',
3 => 'nextcloudpi.lan',
11 => '2a03:111:...',
),
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '23.0.2.1',
'overwrite.cli.url' => 'https://nextcloudpi/',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'ncadmin',
'dbpassword' => '44444444444444444',
'installed' => true,
'instanceid' => 'ocqeyqcnpc53',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
'password' => 'zuiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii',
),
'tempdirectory' => '/var/www/nextcloud/data/tmp',
'mail_smtpmode' => 'sendmail',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'admin',
'mail_domain' => 'ownyourbits.com',
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'jpeg_quality' => '60',
'overwriteprotocol' => 'https',
);
The output of your Apache/nginx/system log in /var/log/error.log
:
[Sat Mar 12 00:00:02.706378 2022] [ssl:warn] [pid 23596:tid 139964684574016] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 12 00:00:02.706539 2022] [ssl:error] [pid 23596:tid 139964684574016] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost.localdomain / issuer: CN=localhost.localdomain / serial: 6A07A08EBC5445CCBFXXXXXXXXXX78C579A14 / notbefore: Oct 6 11:38:38 2021 GMT / notafter: Oct 4 11:38:38 2031 GMT]
[Sat Mar 12 00:00:02.706554 2022] [ssl:error] [pid 23596:tid 139964684574016] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Sat Mar 12 00:00:02.708859 2022] [mpm_event:notice] [pid 23596:tid 139964684574016] AH00489: Apache/2.4.52 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Sat Mar 12 00:00:02.708877 2022] [core:notice] [pid 23596:tid 139964684574016] AH00094: Command line: '/usr/sbin/apache2'
[Sat Mar 12 00:05:10.426530 2022] [authz_host:error] [pid 63514:tid 139964318738176] [client 185.142.236.41:60016] AH01753: access check of 'localhost' to /favicon.ico failed, reason: unable to get the remote host name
[Sat Mar 12 00:05:10.426588 2022] [authz_core:error] [pid 63514:tid 139964318738176] [client 185.142.236.41:60016] AH01630: client denied by server configuration: /var/www/ncp-web/favicon.ico
[Sat Mar 12 00:23:31.419382 2022] [authz_core:error] [pid 63514:tid 139964176127744] [client 222.2222.22.22:39612] AH01630: client denied by server configuration: /var/www/ncp-web/index.php
[Sat Mar 12 00:23:31.540756 2022] [authz_core:error] [pid 63514:tid 139964483520256] [client 222.2222.22.22:53138] AH01630: client denied by server configuration: /var/www/ncp-web/ocs
[Sat Mar 12 00:23:31.777885 2022] [authz_core:error] [pid 63514:tid 139964050302720] [client 222.2222.22.22:39612] AH01630: client denied by server configuration: /var/www/ncp-web/status.php
[Sat Mar 12 00:23:31.789440 2022] [authz_core:error] [pid 63514:tid 139964483520256] [client 222.2222.22.22:37975] AH01630: client denied by server configuration: /var/www/ncp-web/index.php
[Sat Mar 12 00:23:31.927998 2022] [authz_core:error] [pid 63514:tid 139964407871232] [client 222.2222.22.22:39612] AH01630: client denied by server configuration: /var/www/ncp-web/status.php