• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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