Page 1 of 1

EVE-NG upgrade to 2.0.3-53

Posted: Fri Mar 31, 2017 4:10 pm
by HumorlessJester
I have a bare-metal install and when I try to upgrade to 2.0.3-53 and encountering an error:

Code: Select all

Preparing to unpack .../eve-ng_2.0.3-53_amd64.deb ...
Checking MySQL... failed
dpkg: error processing archive /var/cache/apt/archives/eve-ng_2.0.3-53_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/eve-ng_2.0.3-53_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Doing some investigation I found failed login attempts for the user root in my mysql error log:

Code: Select all

2017-03-31T14:20:56.937798Z 7 [Note] Access denied for user 'root'@'localhost' (using password: YES)
2017-03-31T14:28:43.280738Z 8 [Note] Access denied for user 'root'@'localhost' (using password: YES)
2017-03-31T14:30:59.296190Z 9 [Note] Access denied for user 'root'@'localhost' (using password: YES)
For the upgrade to be successful, does the root user need to have the default password? Just to be clear, with the current password EVE-NG works.

Re: EVE-NG upgrade to 2.0.3-53

Posted: Fri Mar 31, 2017 4:20 pm
by ecze
Bare install require to follow :
1.install Esxi with ONLY ssh service from tasksel

2.follow guide :
http://www.eve-ng.net/index.php/documen ... re-install

----

In your case :

Try apt-get remove --purge mysql-server
apt-get -f install
apt-get install eve-ng
apt-get -f install

E.

Re: EVE-NG upgrade to 2.0.3-53

Posted: Fri Mar 31, 2017 5:00 pm
by HumorlessJester
Ecze,

Thanks for the reply.

A re-install seems like the long way around if I only need to update my MySQL root user back to the default password.

I just wanted to know if that is a requirement of the upgrade process.

Re: EVE-NG upgrade to 2.0.3-53

Posted: Fri Mar 31, 2017 7:21 pm
by ecze
no this is why I gave some command to remove mysql purge all data file from mysql et install eve-ng

E.

Re: EVE-NG upgrade to 2.0.3-53

Posted: Fri Mar 31, 2017 11:52 pm
by HumorlessJester
E,

Thanks for letting me know. Looks like it might have been a problem with mysql itself. I could log into it and do things, but when I restarted the service the upgrade worked without any issues.

Re: EVE-NG upgrade to 2.0.3-53

Posted: Wed Apr 05, 2017 11:13 pm
by RobertoRiosMX
HumorlessJester wrote:
Fri Mar 31, 2017 11:52 pm
E,

Thanks for letting me know. Looks like it might have been a problem with mysql itself. I could log into it and do things, but when I restarted the service the upgrade worked without any issues.
Restarting mysqld and running the upgrade again worked fine, thanks!