Nextcloud version (eg, 20.0.5): 20.0.12
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.04.6 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.29 (Ubuntu)
PHP version (eg, 7.4): 7.4.29
The issue you are facing:
I create a new user and can’t login with that, in the log this error appears:
Is this the first time you’ve seen this error? don’t know, I rarely create users
Steps to replicate it:
- create user with password via webgui
- try to login
The output of your Nextcloud log in Admin > Logging:
[no app in context] Warning: Login failed: Marc (Remote IP: 80.138.247.82)
POST /nxc/index.php/login
from 80.138.247.82 at 2022-05-31T21:52:30+00:00
I also see this error, don’t know if related:
Error PHP Error: file_exists(): open_basedir restriction in effect. File(/templates/) is not within the allowed path(s): (/var/www/vhosts/oeschey.de/:/tmp/) at /var/www/vhosts/oeschey.de/httpdocs/nxc/lib/private/Template/Base.php#68
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '????????????????',
'passwordsalt' => '??????????????????',
'secret' => '?????????????????????',
'trusted_domains' =>
array (
0 => 'www.oeschey.de',
1 => 'oeschey.de',
),
'datadirectory' => '/var/www/vhosts/oeschey.de/httpdocs/nxc/data',
'dbtype' => 'mysql',
'version' => '20.0.12.1',
'overwrite.cli.url' => 'http://www.oeschey.de/nxc',
'dbname' => 'nxc',
'dbhost' => 'localhost:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nxc',
'dbpassword' => '??????????????',
'installed' => true,
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'nxc',
'mail_domain' => 'oeschey.de',
'mail_smtphost' => 'localhost',
'mail_smtpport' => '25',
'updater.secret' => '????????',
);
The output of your Apache/nginx/system log in /var/log/____
:
only a few hacking attempts, e.g.
[Wed Jun 01 02:34:45.671876 2022] [core:error] [pid 17710] [client 193.106.191.48:36268] AH00126: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1
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.
pastebin https://pastebin.com/eWe7cBcs password nmL4H6CQ68