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

Can not delete a domain / add a domain.

I

IgorR

Guest
I am having problems deleting/adding domains to my Plesk Panel

ERROR: PleskFatalException

Unable to create LogRotation object: LogRotation: unable to select: no such row in the table
0: common_func.php3:146
psaerror(string 'Unable to create LogRotation object: LogRotation: unable to select: no such row in the table')
1: log_rotation.php:30
require(string '/usr/local/psa/admin/htdocs/domains/logs/log_rotation.php')
2: plesk.php:51

I checked the database, and psa.log_rotation table exists, but is empty.

I am running Plesk 9.5.2

Any sugestions?
 
Do you have the same structure of this table?

mysql> show create table log_rotation\G
*************************** 1. row ***************************
Table: log_rotation
Create Table: CREATE TABLE `log_rotation` (
`id` int(10) unsigned NOT NULL auto_increment,
`period_type` enum('by_time','by_size') NOT NULL default 'by_time',
`period` varchar(50) character set ascii collate ascii_bin default NULL,
`max_number_of_logfiles` bigint(20) unsigned default '0',
`compress_enable` enum('false','true') NOT NULL default 'false',
`email` varchar(255) character set utf8 default NULL,
`turned_on` enum('false','true') NOT NULL default 'false',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1
1 row in set (0.00 sec)

mysql> desc log_rotation;
+------------------------+---------------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------------------+---------------------------+------+-----+---------+----------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| period_type | enum('by_time','by_size') | NO | | by_time | |
| period | varchar(50) | YES | | NULL | |
| max_number_of_logfiles | bigint(20) unsigned | YES | | 0 | |
| compress_enable | enum('false','true') | NO | | false | |
| email | varchar(255) | YES | | NULL | |
| turned_on | enum('false','true') | NO | | false | |
+------------------------+---------------------------+------+-----+---------+----------------+
7 rows in set (0.00 sec)
 
This is what I have:

mysql> show create table log_rotation\G
*************************** 1. row ***************************
Table: log_rotation
Create Table: CREATE TABLE `log_rotation` (
`id` int(10) unsigned NOT NULL auto_increment,
`period_type` enum('by_time','by_size') NOT NULL default 'by_time',
`period` varchar(50) character set ascii collate ascii_bin default NULL,
`max_number_of_logfiles` bigint(20) unsigned default '0',
`compress_enable` enum('false','true') NOT NULL default 'false',
`email` varchar(255) character set utf8 default NULL,
`turned_on` enum('false','true') NOT NULL default 'false',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=155 DEFAULT CHARSET=latin1
1 row in set (0.00 sec)

mysql> desc log_rotation;
+------------------------+---------------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------------------+---------------------------+------+-----+---------+----------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| period_type | enum('by_time','by_size') | NO | | by_time | |
| period | varchar(50) | YES | | NULL | |
| max_number_of_logfiles | bigint(20) unsigned | YES | | 0 | |
| compress_enable | enum('false','true') | NO | | false | |
| email | varchar(255) | YES | | NULL | |
| turned_on | enum('false','true') | NO | | false | |
+------------------------+---------------------------+------+-----+---------+----------------+
7 rows in set (0.00 sec)

Looks right to me :(

--Igor
 
This is what I get

/usr/local/psa/bin/domain -r flakymodels.com
ERROR: PleskFatalException
Unable to remove hosting: Unable to init LogRotation object:LogRotation: unable to select: no such row in the table

0: class.PhDomain.php:278
PhDomain->reset(integer '0', boolean true, boolean false)
1: class.BsDomain.php:330
BsDomain->reset(integer '0')
2: class.BsDomain.php:302
BsDomain->delete()
3: cuDomain.php:1751
cuDomain->cmdRemove(string 'flakymodels.com')
4: cuDomain.php:718
cuDomain->cuDomain()
5: domain.php:17
PHP Warning: Releasing semaphore 20 in request cleanup in Unknown on line 0
 
Anyone got any other suggestions?

I see many references to this problem through this forum, but NONE have solutions. Has anyone ever got this problem solved?
 
It looks like there is database inconsistency and it can be fixed only by support team with direct access to your server.
 
Back
Top