Restoring error - Cannot assign requested address) nginx: configuration file /etc/nginx/nginx.conf test failed

Operating system:
OS version: Ubuntu 20.04

Restore Virtual Servers

Starting restore of 1 domains from local file /mnt/gb20/backup/backup2/protesti.lv.tar.gz …

Extracting backup archive file …
… done

Re-creating virtual server protesti.lv …

Creating administration group protesti …
… done

Creating administration user protesti …
… done

Creating aliases for administration user …
… done

Adding administration user to groups …
… done

Creating home directory …
… done

Creating mailbox for administration user …
… done

Adding new DNS zone …
… done

Adding to email domains list …
… done

Adding default mail aliases …
… done

Creating Nginx virtual host …
… done

Starting PHP FastCGI server …
… done

Adding webserver user www-data to server’s group …
… done

Setting up log file rotation …
… done

Creating MySQL login …
… done

Creating MySQL database protesti …
… done

Creating SSL certificate and private key …
… done

Adding SSL to Nginx virtual host …
… done

Creating Webmin user …
… done

Saving server details …
… done

Re-starting DNS server …
… done

Applying Nginx configuration …
… done

Re-starting Webmin …
… done

Re-starting Usermin …
… done

Re-loading Webmin …
… done

Restoring backup for virtual server protesti.lv …

Restoring virtual server password, quota and other details …
… done

Updating administration password and quotas …
… done

Restoring Cron jobs …
… done

Extracting TAR file of home directory …
… done

Setting ownership of home directory …
… done

Re-creating records in DNS domain …
… done

Restoring Logrotate configuration …
… done

Restoring allowed MySQL hosts …
… done

Re-loading MySQL database protesti …
… done

Restoring Webmin ACL files …
… done

Restoring Nginx webserver configuration …
… done

Updating home directory in PHP configuration …
… done

Restoring Nginx webserver log files …
… done

Re-creating mail and FTP users …
… done

Re-creating mail aliases …
… done

Restoring mail and FTP user Cron jobs …
… done

Updating Webmin user …
… done

Enabling PHP modules for restored scripts …
… no PHP modules needed to be installed

Re-starting DNS server …
… done

Applying Nginx configuration …
… configuration is invalid : nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] bind() to 134.209.235.31:443 failed (99: Cannot assign requested address) nginx: configuration file /etc/nginx/nginx.conf test failed

Re-loading Webmin …
… done

… restore complete.

Maybe this will help

Tried again in full nginx server
Applying Nginx configuration …

Creating Webmin user ..
.. done

Saving server details ..
.. done

Re-starting DNS server ..
.. done

Applying Nginx configuration ..
.. configuration is invalid : nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] bind() to [fe80::d40b:c6ff:fee8:ad72]:80 failed (22: Invalid argument) nginx: configuration file /etc/nginx/nginx.conf test failed

Re-starting Webmin ..
.. done

Re-starting Usermin ..
.. done

Re-loading Webmin ..
.. done

Tried again on new nginx server
Re-starting DNS server …
… done

Applying Nginx configuration ..
.. configuration is invalid : nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] bind() to [fe80::d45f:24ff:fea6:9396]:80 failed (22: Invalid argument) nginx: configuration file /etc/nginx/nginx.conf test failed

Re-starting Webmin ..
.. done

Re-starting Usermin ..



Enabling PHP modules for restored scripts ..
.. no PHP modules needed to be installed

Re-starting DNS server ..
.. done

Applying Nginx configuration ..
.. configuration is invalid : nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] bind() to 134.209.235.31:443 failed (99: Cannot assign requested address) nginx: configuration file /etc/nginx/nginx.conf test failed

Re-loading Webmin ..
.. done

.. restore complete.

https://kirby.lv/blog/wp-admin/install.php

404 Not Found

nginx/1.18.0 (Ubuntu)

Last login: Tue Jan 5 06:59:46 2021 from 212.3.194.139
root@404:~# $ sudo /etc/init.d/nginx start
$: command not found

Is there a c&p mistake or did you try to start the command with “$”?

That tells you the issue, you should look into that.

I did in virtualmin gui Backup and restore

I dont have domain protesti.lv anymore so i wanted to put under protesti.latvijai.lv cloning after restore.

Re-starting DNS server …
… done

Applying Nginx configuration …
… configuration is invalid : nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] bind() to 134.209.235.31:443 failed (99: Cannot assign requested address) nginx: configuration file /etc/nginx/nginx.conf test failed

Re-loading Webmin …
… done

… restore complete.

You need to check the IP settings and why it doesn’t want to bind the IP for nginx.

1 Like
    Saving server details ..
.. done
Re-starting DNS server ..
.. done
Applying Nginx configuration ..
.. configuration is invalid : nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] bind() to [fe80::1447:dfff:fe23:d537]:80 failed (22: Invalid argument) nginx: configuration file /etc/nginx/nginx.conf test failed
Re-starting Webmin ..
.. done
Re-starting Usermin ..
.. done
Re-loading Webmin ..
.. done
Restoring backup for virtual server protesti.lv ..
Restoring virtual server password, quota and other details ..
.. done

Do you even read the messages you got?

I dont understand them

If you don’t understand the other and my posts, then you should read about virtualmin and linux in general. Try to use google or similar search engines to get some results, if you are not really sure or ask for help. Without at least the basic knowledge, I strongly do NOT recommend to run a server.
This forum isn’t here to spoon-feed people into getting their server running. Please don’t get me wrong, I like helping people and it’s nothing against you in general. It’s just not very good to run a server without knowing what you are doing or what might happen.

Oh i thought your messeges.
Im using since 16.04 and 18.04 i still have but maybe since 14.04.
Now i have problem moving to 20.04.
Yes, i read messeges i get and server not working. I didnt understood your messeges.
It looks like it was apache server and i did some manual change so it would be nginx server. Ill try to recreate it as apache. Sorry.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.