• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Problem after restoring mysql databases

A

alexisdelamare

Guest
Hi everyone,

I had a problem with my server and restored mysql from a dump of all databases. Now when I try to login on Plesk panel, I get this :

ERROR: PleskMainDBException

MySQL query failed: Unknown column 'lifetime' in 'field list'

0: common_func.php3:217
db_query(string 'replace into sessions (sess_id, type, login, ip_address, login_time, click_time, lifetime) VALUES ("c47b17086b21c979fbf4d2cd010380c4", "1", "admin", "MYIPADDRESS", NOW(), NOW(), 1800)')
1: class.Session.php:362
Session->registerSession(integer '1', string 'admin', string 'MYIPADDRESS', NULL null, NULL null)
2: cmd_loginup.php:129
createSessionCommon(integer '1', string 'admin', boolean true, string 'MYIPADDRESS', NULL null, NULL null)
3: cmd_loginup.php:312
createSessionAdmin(string 'admin', string '**********', string '***************************', boolean false)
4: cmd_loginup.php:74
createSession(string 'admin', string '**********')
5: login_up.php3:40

I have no idea as to how to solve this... Any help would be greatly appreciated ;)
 
What is version of your Plesk. I see 'lifetime' field in 'sessions' table of Plesk 10.4.4 psa database:

mysql> desc sessions;
+------------+----------------------+------+-----+-------------------+-----------------------------+
| Field | Type | Null | Key | Default | Extra |
+------------+----------------------+------+-----+-------------------+-----------------------------+
| sess_id | varchar(33) | NO | PRI | NULL | |
| type | smallint(5) unsigned | NO | | NULL | |
| login | varchar(255) | NO | | NULL | |
| ip_address | varchar(39) | NO | | NULL | |
| login_time | datetime | NO | | NULL | |
| click_time | timestamp | NO | | CURRENT_TIMESTAMP | on update CURRENT_TIMESTAMP |
| modified | int(10) unsigned | YES | | NULL | |
| lifetime | int(10) unsigned | YES | | NULL | |
| data | mediumblob | YES | | NULL | |
+------------+----------------------+------+-----+-------------------+-----------------------------+

The same result for Plesk 10.2 database.
 
Not at all, I miss the last lines...

+------------+----------------------+------+-----+-------------------+-----------------------------+
| Field | Type | Null | Key | Default | Extra |
+------------+----------------------+------+-----+-------------------+-----------------------------+
| sess_id | varchar(33) | NO | PRI | NULL | |
| type | smallint(5) unsigned | NO | | NULL | |
| login | varchar(255) | NO | | NULL | |
| ip_address | varchar(15) | NO | | NULL | |
| login_time | datetime | NO | | NULL | |
| click_time | timestamp | NO | | CURRENT_TIMESTAMP | on update CURRENT_TIMESTAMP |
+------------+----------------------+------+-----+-------------------+-----------------------------+
 
Ok, I get an error, the problem is that my hosting probably updated Plesk when I reinitialized my server, and the databases are not the same version. Here's the error log from the bootstrapper script :

===> Upgrading database

Trying to start service mysqld... mysqld (pid 24990) is running...
done
Trying to establish test connection... connected
done
Trying to find psa database... version is 01020
DATABASE ERROR!!!
Previous product version is 10.13.4, but previous database
version is 01020. In most of cases it is result of
previous upgrade try failure. Please, restore previous version
from backup, and try again or contact technical support.

ERROR while trying to check database version
Check the error reason(see log file: /tmp/plesk_10.4.4_installation.log), fix and try again

***** problem report *****
ERROR while trying to check database version
Check the error reason(see log file: /tmp/plesk_10.4.4_installation.log), fix and try again
 
Back
Top