Nextcloud version: 20.0.1.1
Operating system and version: Ubuntu 20.04.1
Apache or nginx version: Apache 2.4.41
PHP version: 7.3.24-3
New install of Nextcloud is working well and accessible on my local network using 192.168.1.8:8080
However I need to change the IP address of the server.
I changed the IP from 192.168.1.8 to 192.168.1.121
(network-manager not interfaces)
I added the new trusted domain in config.php
The Nextcloud login screen thankfully becomes available using 192.168.1.121:8080
However the problem is the passwords (admin and user) are no longer accepted.
After entering them the login screen is just returned.
If I change the IP back to 192.168.1.8 I can again login as normal.
Any ideas would be greatly appreciated!
The Nextcloud log says:
Warning (core) Login failed: 'admin' (Remote IP: '192.168.1.202')
The output of the config.php file is as follows:
<?php
$CONFIG = array (
'passwordsalt' => 'hidden',
'secret' => 'hidden',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.1.8',
2 => '192.168.1.121',
),
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '20.0.1.1',
'overwrite.cli.url' => 'http://localhost',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud_user',
'dbpassword' => 'hidden',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'instanceid' => 'oc5ab6nz9ufe',
);
Webserver logs:
192.168.1.202 - - [08/Nov/2020:16:59:52 +1100] "POST /index.php/login HTTP/1.1" 303 994
192.168.1.202 - - [08/Nov/2020:16:59:52 +1100] "GET /index.php/settings/user HTTP/1.1" 303 1000
192.168.1.202 - - [08/Nov/2020:16:59:52 +1100] "GET /index.php/login?redirect_url=/index.php/settings/user HTTP/1.1" 200 4692
192.168.1.202 - - [08/Nov/2020:16:59:52 +1100] "GET /index.php/core/js/oc.js?v=52518fd7 HTTP/1.1" 200 4819
192.168.1.202 - - [08/Nov/2020:16:59:53 +1100] "GET /cron.php HTTP/1.1" 200 1100