Restore to new box failing


#1

I am trying to move from ubuntu 14.04 with miab .30 to ubuntu 18.04.1 with miab .40. I have the server setup the same as the old one same ip name and all. I install miab and it installs without a problem. I don’t go to the admin console because I want to restore it first. I run I copy the backup and secret key to a folder inside of tmp I then run the commands to do the restore all goes well except for the certificate file says one is there already. I then run sudo mailinabox and go through the commands and I get the error below.

Updating system packages…
Installing system packages…
Initializing system random number generator…
Firewall is active and enabled on system startup
Installing nsd (DNS server)…
Installing Postfix (SMTP server)…
Installing Dovecot (IMAP server)…
Installing OpenDKIM/OpenDMARC…
Installing SpamAssassin…
expired old bayes database entries in 4 seconds
154652 entries kept, 0 deleted
token frequency: 1-occurrence tokens: 82.36%
token frequency: less than 8 occurrences: 12.60%
Installing Nginx (web server)…

FAILED: service nginx restart

Job for nginx.service failed because the control process exited with error code.
See “systemctl status nginx.service” and “journalctl -xe” for details.

and I can’t get to the admin console what am I doing wrong.

Thank you


#2

Nginx is not starting …

from the command line enter the following and paste the results here:

sudo systemctl status nginx.service

and

sudo nginx -t


#3

From another thread …

Also, I needed to retain the new user-data/ssl, rather than that from the backup otherwise nginx failed to restart.

What error did you encounter with the SSL certificate and what if anything did you do to solve that?

@urbifex can you offer any insight please?


#4

sorry I ended up just going the route of backing up the email in a pst then importing it into the imap connection. So I have it fixed now and working