• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Can't delete subscription - Missing parameter 'dirname'

deltatech

Regular Pleskian
I am unable to delete a subscription. I am getting an error message that says...

Missing parameter 'dirname' or previous parameter is empty

The problem seems to be only one subscription. I am able to delete others.
 
At the moment we have no steps to reproduce for this issue. We need following information:

* Plesk debug log
* Plesk CLI util exec log
* mysql queries log

Could you please provide it for us?
 
I am not sure where to get all those logs or if my server even keeps them. But I did find this log..


2012-11-19T10:22:05-08:00 CRIT (2): Smb_Exception: Missing parameter 'dirname' or previous parameter is empty.

file: /usr/local/psa/admin/smb/application/library/Smb/Plesk/Bridge/Subdomain.php
line: 594
code: 0
2012-11-19 10:22:05: (mod_fastcgi.c.2746) FastCGI-stderr: PleskUtilException: '/usr/local/psa/admin/bin/dirmng' '-r' failed with code 1.

stdout:
Missing parameter 'dirname' or previous parameter is empty.


stderr:
Missing parameter 'dirname' or previous parameter is empty.

file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 66
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(58): Service_Agent_Transport_Local_Exec->process(0, Object(Service_Agent_Command_Exec), Object(Service_Agent_Log), Object(Service_Agent_Transport_LocalTransaction))
#1 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(24): Service_Agent_Transport_Local->_command(0, Object(Service_Agent_Command_Exec), Object(Service_Agent_Transport_LocalTransaction), Object(Service_Agent_Log))
#2 /usr/local/psa/admin/plib/Service/Agent.php(133): Service_Agent_Transport_Local->process('a469bb4efb9beb6...', Array, Object(Service_Agent_Log))
#3 /usr/local/psa/admin/plib/Service/Apache/VhostStructure.php(22): Service_Agent->commit()
#4 /usr/local/psa/admin/plib/Service/Apache/VhostStructure.php(32): Service_Apache_VhostStructure::_callDirectoryStructureAdapter(' :::::::0', Array, Object(Db_Table_Row_ServiceNode))
#5 /usr/local/psa/admin/plib/Service/Apache/VhostManager.php(153): Service_Apache_VhostStructure::removeDirectories(Object(Service_Apache_VhostStructure_Custom), Object(Db_Table_Row_ServiceNode))
#6 /usr/local/psa/admin/plib/SubDomain.php(306): Service_Apache_VhostManager->removeWwwRoot(Object(SubDomain))
#7 /usr/local/psa/admin/plib/SubDomain.php(275): SubDomain->_removeWwwRoot()
#8 /usr/local/psa/admin/plib/SubDomainManager.php(272): SubDomain->delete()
#9 /usr/local/psa/admin/smb/application/library/Smb/Plesk/Bridge/Subdomain.php(592): SubDomainManager->delete()
#10 /usr/local/psa/admin/smb/application/library/Smb/Plesk/Bridge/Domain.php(602): Smb_Plesk_Bridge_Subdomain->delete()
#11 /usr/local/psa/admin/smb/application/library/Smb/Plesk/Bridge/Domain.php(592): Smb_Plesk_Bridge_Domain->_deleteSubdomains()
#12 /usr/local/psa/admin/plib/Plesk/Smb/Bridge/Domain.php(19): Smb_Plesk_Bridge_Domain->deleteLinkedParts()
#13 /usr/local/psa/admin/plib/BsDomain.php(548): Plesk_Smb_Bridge_Domain::deleteLinkedParts(211)
#14 /usr/local/psa/admin/plib/Webspace.php(842): BsDomain->delete()
#15 /usr/local/psa/admin/panel/application/controllers/SubscriptionController.php(874): Webspace->delete()
#16 /usr/local/psa/admin/panel/application/controllers/SubscriptionController.php(852): SubscriptionController->_deleteSubscription(Object(Webspace))
#17 /usr/local/psa/admin/plib/Zend/Controller/Action.php(513): SubscriptionController->deleteCurrentAction()
#18 /usr/local/psa/admin/plib/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('deleteCurrentAc...')
#19 /usr/local/psa/admin/plib/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#20 /usr/local/psa/admin/panel/application/library/AdminPanel/Application/Web.php(20): Zend_Controller_Front->dispatch()
#21 /usr/local/psa/admin/panel/application/public/index.php(15): AdminPanel_Application_Web->run()
#22 {main}

Smb_Exception: Missing parameter 'dirname' or previous parameter is empty.

file: /usr/local/psa/admin/smb/application/library/Smb/Plesk/Bridge/Subdomain.php
line: 594
code: 0
trace: #0 /usr/local/psa/admin/smb/application/library/Smb/Plesk/Bridge/Domain.php(602): Smb_Plesk_Bridge_Subdomain->delete()
#1 /usr/local/psa/admin/smb/application/library/Smb/Plesk/Bridge/Domain.php(592): Smb_Plesk_Bridge_Domain->_deleteSubdomains()
#2 /usr/local/psa/admin/plib/Plesk/Smb/Bridge/Domain.php(19): Smb_Plesk_Bridge_Domain->deleteLinkedParts()
#3 /usr/local/psa/admin/plib/BsDomain.php(548): Plesk_Smb_Bridge_Domain::deleteLinkedParts(211)
#4 /usr/local/psa/admin/plib/Webspace.php(842): BsDomain->delete()
#5 /usr/local/psa/admin/panel/application/controllers/SubscriptionController.php(874): Webspace->delete()
#6 /usr/local/psa/admin/panel/application/controllers/SubscriptionController.php(852): SubscriptionController->_deleteSubscription(Object(Webspace))
#7 /usr/local/psa/admin/plib/Zend/Controller/Action.php(513): SubscriptionController->deleteCurrentAction()
#8 /usr/local/psa/admin/plib/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('deleteCurrentAc...')
#9 /usr/local/psa/admin/plib/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 /usr/local/psa/admin/panel/application/library/AdminPanel/Application/Web.php(20): Zend_Controller_Front->dispatch()
#11 /usr/local/psa/admin/panel/application/public/index.php(15): AdminPanel_Application_Web->run()
#12 {main}
 
We need additionally

* mysql queries log

How to enable DEBUG mode for the MySQL server:

In [mysqld] section of /etc/my.cnf just add the following string:

log = /tmp/query.log

create the needed log file:

# touch /tmp/query.log

and change the owner for the file:

#chown mysql:mysql /tmp/query.log

restart the MySQL service to apply changes

# /etc/init.d/mysqld restart

Then reproduce initial issue and disable this debug mode as soon as possible because there will be stored a lot of useless information additionally.
 
Is domain name of this subscription contains special symbols?
 
Here is the log output.

2012-11-20-12-46-07 [AGENT][INFO]
2012-11-20-12-46-07 [AGENT][INFO] ========>Start Transaction: 078212c11fc44a8193b0cfa3bb0ae5dc
2012-11-20-12-46-07 [AGENT][INFO] Transport: local
2012-11-20-12-46-07 [AGENT][DEBUG] 0, script = dirmng, version = 1.0, args=-r, stdin= :::::::0
2012-11-20-12-46-07 [AGENT][ERROR] proc_close() failed
2012-11-20-12-46-07 [AGENT][DEBUG] 0 time = 0.017477989196777
2012-11-20-12-46-07 [AGENT][DEBUG] 0 errcode = 1; stderr = Missing parameter 'dirname' or previous parameter is empty.
; stdout = Missing parameter 'dirname' or previous parameter is empty.

2012-11-20-12-46-07 [AGENT][INFO] ========>End Transaction
 
No, the domain name has no special symbols. The domain name is all lowercase alpha letters except the . in .com
 
Here is another clue.. This problem only exists on domains that also either have a subdomain or use to have a subdomain.. Subscriptions that have never had subdomains are deleting fine.
 
Here is another clue.. This problem only exists on domains that also either have a subdomain or use to have a subdomain.. Subscriptions that have never had subdomains are deleting fine.

Thank you. I have updated request with it.
 
Could you please send me login credentials for your server (ssh) in PM? We will check this issue directly on your server.
 
The problem was in fact that some of subdomain were not correctly upgraded during Plesk upgrade procedure.
We have found them and their IDs and upgraded them again with

# /usr/local/psa/bin/sw-engine-pleskrun "/usr/local/psa/admin/plib/scripts/upgrade_subdomains_1011.php" 43 55

start subdomain id: 43, end subdomain id: 55
 
Back
Top