1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Can't delete subscription - Missing parameter 'dirname'

Discussion in 'Plesk 11.x for Linux' started by deltatech, Nov 7, 2012.

  1. deltatech

    deltatech Basic Pleskian

    26
    73%
    Joined:
    Sep 27, 2008
    Messages:
    85
    Likes Received:
    1
    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.
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    What is version of your Plesk?
     
  3. deltatech

    deltatech Basic Pleskian

    26
    73%
    Joined:
    Sep 27, 2008
    Messages:
    85
    Likes Received:
    1
    The version is 11.0.9 Update #24

    My OS is CentOS 5.8 (Final)
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    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?
     
  5. deltatech

    deltatech Basic Pleskian

    26
    73%
    Joined:
    Sep 27, 2008
    Messages:
    85
    Likes Received:
    1
    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}
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    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.
     
  7. deltatech

    deltatech Basic Pleskian

    26
    73%
    Joined:
    Sep 27, 2008
    Messages:
    85
    Likes Received:
    1
    See query.txt attached.
     

    Attached Files:

  8. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
  9. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Is domain name of this subscription contains special symbols?
     
  10. deltatech

    deltatech Basic Pleskian

    26
    73%
    Joined:
    Sep 27, 2008
    Messages:
    85
    Likes Received:
    1
    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
     
  11. deltatech

    deltatech Basic Pleskian

    26
    73%
    Joined:
    Sep 27, 2008
    Messages:
    85
    Likes Received:
    1
    No, the domain name has no special symbols. The domain name is all lowercase alpha letters except the . in .com
     
  12. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Thanks, I have forwarded it to developers.
     
  13. deltatech

    deltatech Basic Pleskian

    26
    73%
    Joined:
    Sep 27, 2008
    Messages:
    85
    Likes Received:
    1
    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.
     
  14. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Thank you. I have updated request with it.
     
  15. deltatech

    deltatech Basic Pleskian

    26
    73%
    Joined:
    Sep 27, 2008
    Messages:
    85
    Likes Received:
    1
    Any progress on this???
     
  16. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Could you please send me login credentials for your server (ssh) in PM? We will check this issue directly on your server.
     
  17. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    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
     
  18. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
Loading...