How to replace the Installation IP in NAT mode of nextcloud?

Richardszu

Dabbler
Joined
Jan 21, 2022
Messages
49
Hello to all the team,
I had a problem updating from Nextcloud V23.1 to V24 impossible to update?
I ended up reinstalling Nextcloud V24 in "DHCP" mode but the installation aborted Error at the end!
Then I tested the second "NAT" mode and there the installation was successful. I took the opportunity to modify the config.php file:
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.x.xx1', #Truenas
2 => '192.168.x.xx2', #Nextcloud
3 => 'mydomain.nl', # My domain
),
I redirected ports 80 and 443 of my Box
I restarted the plugin and I can connect to Nextcloud!
Note: In my first installation everything worked perfectly with the IP address or my domain name and the cerbot certificate installed and working.
My current problem is that I boot to the wrong IP address 192.168.x.xx1 that of Truenas?
I don't know how to modify the configuration files for the installation of NAT mode?
I'm lost :) I need your help please!
Have a nice day Richard :)
 

Attachments

  • nextcloud-001.jpg
    nextcloud-001.jpg
    182.4 KB · Views: 268

Richardszu

Dabbler
Joined
Jan 21, 2022
Messages
49
Hello,
I found the solution by watching several videos on Youtube.
1. I uninstalled this version with NAT option
2. When I installed Nextcloud with DHCP option I got this error:
Error: nextcloud02 had a failure Exception: RuntimeError Message: Last 10 lines: + + + + writing new private key to '/usr/local/etc/letsencrypt/live/truenas/server.key' ----- Signature ok subject =O=TrueNAS (Nextcloud),CN=localhost Getting CA Private Key mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) ' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! Partial plugin destroyed
3. Then I modified:
Truenas Menu: (Change Network Setting)
Go to > Network > Interface
[x] Disable hardware offload
/!\ Necessary for Jails and virtual machines /!\
4. I reinstalled Nextcloud with DHCP option and now it's OK
[Problem solved]

I have another question!
How to modify the DHCP IP address of the installation to replace it with a fixed address?
Have a nice day and thank you for your help Richard :)
 
Top