• 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!
  • 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.

Issue Enabling HTTP2 result in: ERR [panel] A table must have a primary key [...]

Ron Fak

New Pleskian
Hello everyone,

I was fallowing that Plesk page that explains how to enable HTTP/2 Support :
HTTP/2 Support in Plesk


I just logged-in using SSH and enter the command line and I get some errors :
root@212.34.89.71:~# plesk bin http2_pref enable
HTTP/2 support was successfully activated.
[2018-02-22 09:22:01] ERR [panel] A table must have a primary key, but none was found for table 'Repositories'
[2018-02-22 09:22:01] ERR [panel] A table must have a primary key, but none was found for table 'Repositories'
[2018-02-22 09:22:01] ERR [panel] A table must have a primary key, but none was found for table 'Repositories'
[2018-02-22 09:22:01] ERR [panel] A table must have a primary key, but none was found for table 'Repositories'
[2018-02-22 09:22:01] ERR [panel] A table must have a primary key, but none was found for table 'Repositories'
[2018-02-22 09:22:01] ERR [panel] A table must have a primary key, but none was found for table 'Repositories'
[2018-02-22 09:22:01] ERR [panel] A table must have a primary key, but none was found for table 'Repositories'
[2018-02-22 09:22:01] ERR [panel] A table must have a primary key, but none was found for table 'Repositories'
root@212.34.89.71:~# plesk version
Product version: Plesk Onyx 17.5.3 Update #41
Update date: 2018/02/21 11:48
Build date: 2017/03/17 16:00
OS version: Ubuntu 14.04
Revision: 55d1b49a272f44666e1920eca8b6e4da449a38cd
Architecture: 64-bit
Wrapper version: 1.2
root@212.34.89.71:~#


I think it's important to say that my Plesk installation just broke from nowhere one day ago, and all my website stopped working. After few hours, I didn't find the way of fixing it, everything was up normally. Emails were working, but website access was all not working. I guess it was a system settings problem because my host added one IPV6. But even trying to say that I want to use IPV4 only I get no luck (I had Centos 6).
I choose then to backup Plesk (from the Backup Manager), and then I wiped out my VPS and installed a fresh Ubuntu 14.04 that came with a Pre installed Plesk version 12.0.18 (OVH image).

I updated from 12.0.18 to Plesk 17.5.3 with :
wget https://autoinstall.plesk.com/plesk-installer
./plesk-installer

Everything went smoothly. The restoration of the backup was less smoothly but I make it work eventually.

I did nothing else, this morning i just wanted to enable http2 support, and I got this error message telling me that maybe the upgrade didn't go that smoothly...

So my question is, should I worry for that ? And, is it a way to fix it ?

Thank you,
 
Last edited:
Looks like some problems with Plesk database. Try to fix it with

# plesk repair db
 
That doesn't seem to solve the problem :

root@212.34.89.71:~# plesk repair db
Checking the Plesk database using the native database server tools .. [OK]
Checking the structure of the Plesk database ........................ [
OK]
Checking the consistency of the Plesk database ...................... [
OK]
Error messages: 0; Warnings: 0; Errors resolved: 0
root@212.34.89.71:~#
 
Last edited:
The cause of this error may be corrupted WordPress Toolkit database /usr/local/psa/var/modules/wp-toolkit/wp-toolkit.sqlite3. Check that table Repository exists:
# sqlite3 /usr/local/psa/var/modules/wp-toolkit/wp-toolkit.sqlite3
sqlite> .tables

If there is no this table - try to reinstall WordPress Toolkit extension.
 
Back
Top