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

Resolved Unable to rename, copy, move file or directory in File Manager

tescik tescikowski

New Pleskian
Hi,

Unable to rename, copy, move file or directory in File Manager.
I tried to copy, rename, move for more than one domain and subscription.

OS ‪Debian 7.11‬
Product Plesk Onyx Version 17.5.3 Update #65, last updated on Jan 21, 2020 11:04 PM

In File Manager
I can: create, delete, edit, download
I can't: rename, copy, move
When I try rename, copy, move file or directory in File Manager I have this error in plesk panel
rename: Unable to rename /httpdocs/ddd.txt: filemng failed: filemng: Error occurred during /usr/bin/file command.
copy: Unable to copy /httpdocs/ddd.txt: filemng failed: filemng: Error occurred during /usr/bin/file command.
move: Unable to move /httpdocs/ddd.txt: filemng failed: filemng: Error occurred during /usr/bin/file command.

In /var/log/plesk/panel.log:
Code:
[2020-09-03 11:16:28] DEBUG [util_exec] [5f50b46c971bf] Starting: filwrpr 48
[2020-09-03 11:16:28] DEBUG [util_exec] [5f50b46c971bf] Finished in 0.01331s, Error code: TRUE
[2020-09-03 11:16:28] DEBUG [util_exec] [eee9cbfbd0aeaf94e6b056dea2bf596d-0] Starting: filemng testuser list dirs /var/www/vhosts/test.com/httpdocs --in-blocks
[2020-09-03 11:16:28] DEBUG [util_exec] [eee9cbfbd0aeaf94e6b056dea2bf596d-0] Finished in 0.01386s, Error code: 0
[2020-09-03 11:16:28] DEBUG [util_exec] [3f1accc150502f0690d9ca21a47eeac3-0] Starting: filemng testuser file_exists /var/www/vhosts/test.com/httpdocs
[2020-09-03 11:16:28] DEBUG [util_exec] [3f1accc150502f0690d9ca21a47eeac3-0] Finished in 0.01549s, Error code: 0
[2020-09-03 11:16:28] DEBUG [util_exec] [952bfcee98e1ab75ea43d372626d01c1-0] Starting: filemng testuser realpath /var/www/vhosts/test.com
[2020-09-03 11:16:28] DEBUG [util_exec] [952bfcee98e1ab75ea43d372626d01c1-0] Finished in 0.01308s, Error code: 0
[2020-09-03 11:16:28] DEBUG [util_exec] [4713b9e22de73c010d1ea7cdf619a1da-0] Starting: filemng testuser realpath /var/www/vhosts/test.com/httpdocs
[2020-09-03 11:16:28] DEBUG [util_exec] [4713b9e22de73c010d1ea7cdf619a1da-0] Finished in 0.01547s, Error code: 0
[2020-09-03 11:16:28] DEBUG [util_exec] [559b7748ba72b3ec3e6ae37850084956-0] Starting: filemng testuser list dirs /var/www/vhosts/test.com/httpdocs --in-blocks
[2020-09-03 11:16:28] DEBUG [util_exec] [559b7748ba72b3ec3e6ae37850084956-0] Finished in 0.0167s, Error code: 0
[2020-09-03 11:16:28] DEBUG [util_exec] [710a96f8bd695b482453d273aca44432-0] Starting: filemng testuser file_exists /var/www/vhosts/test.com/httpdocs
[2020-09-03 11:16:28] DEBUG [util_exec] [710a96f8bd695b482453d273aca44432-0] Finished in 0.01186s, Error code: 0
[2020-09-03 11:16:28] DEBUG [util_exec] [431fbf6fb9ae537e6a772e4c095ba8f3-0] Starting: filemng testuser file_exists /var/www/vhosts/test.com/httpdocs/new.txtold
[2020-09-03 11:16:28] DEBUG [util_exec] [431fbf6fb9ae537e6a772e4c095ba8f3-0] Finished in 0.01649s, Error code: 0
[2020-09-03 11:16:28] DEBUG [util_exec] [17057d1eecf18c8aa38d0907d9b37120-0] Starting: filemng testuser file -L /var/www/vhosts/test.com/httpdocs/new.txtold
[2020-09-03 11:16:28] DEBUG [util_exec] [17057d1eecf18c8aa38d0907d9b37120-0] Finished in 0.02218s, Error code: 1
[2020-09-03 11:16:28] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/filemng' 'testuser' 'file' '-L' '/var/www/vhosts/test.com/httpdocs/new.txtold'] with exit code [1]
[2020-09-03 11:16:28] ERR [1] PleskUtilException: '/opt/psa/admin/bin/filemng' 'testuser' 'file' '-L' '/var/www/vhosts/test.com/httpdocs/new.txtold' failed with code 1.

stdout:
/var/www/vhosts/test.com/httpdocs/new.txtold: ERROR: cannot open `/var/www/vhosts/test.com/httpdocs/new.txtold' (No such file or directory)
filemng: Error occurred during /usr/bin/file command.


stderr:
filemng: Error occurred during /usr/bin/file command.

file: /opt/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 45
code: 0
trace: #0 /opt/psa/admin/plib/Service/Agent/Transport/Local.php(60): Service_Agent_Transport_Local_Exec->process(integer '0', object of type Service_Agent_Command_Exec, object of type Service_Agent_Transport_LocalTransaction)
#1 /opt/psa/admin/plib/Service/Agent/Transport/Local.php(26): Service_Agent_Transport_Local->_command(integer '0', object of type Service_Agent_Command_Exec, object of type Service_Agent_Transport_LocalTransaction)
#2 /opt/psa/admin/plib/Service/Agent.php(157): Service_Agent_Transport_Local->process(string '17057d1eecf18c8aa38d0907d9b37120', array)
#3 /opt/psa/admin/plib/Service/Agent.php(223): Service_Agent->commit()
#4 /opt/psa/admin/plib/Service/Driver/Filesystem/Plesk/Unix.php(333): Service_Agent->execAndGetResponse(string 'filemng', array, NULL null, array)
#5 /opt/psa/admin/plib/Service/Driver/Filesystem/Plesk/Unix.php(235): Service_Driver_Filesystem_Plesk_Unix->_execAndGetResponse(array)
#6 /opt/psa/admin/plib/FileManager.php(264): Service_Driver_Filesystem_Plesk_Unix->getFileType(string 'testuser', string '/var/www/vhosts/test.com/httpdocs/new.txtold')
#7 /opt/psa/admin/application/smb/controllers/FileManagerController.php(627): FileManager->isDir(string '/var/www/vhosts/test.com/httpdocs/new.txtold')
#8 (0): Smb_FileManagerController->_copyFile(string 'new.txt', array)
#9 /opt/psa/admin/application/smb/controllers/FileManagerController.php(832): call_user_func_array(array, array)
#10 /opt/psa/admin/application/smb/controllers/FileManagerController.php(585): Smb_FileManagerController->_objectsGroupFilesAction(string '_copyFile', array)
#11 /opt/psa/admin/externals/Zend/Controller/Action.php(516): Smb_FileManagerController->renameAction()
#12 /opt/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch(string 'renameAction')
#13 /opt/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(object of type Zend_Controller_Request_Http, object of type Zend_Controller_Response_Http)
#14 /opt/psa/admin/plib/Application/Web.php(39): Zend_Controller_Front->dispatch(NULL null)
#15 /opt/psa/admin/htdocs/application.php(15): Plesk\Application_Web->run()

[2020-09-03 11:16:28] DEBUG [util_exec] [5f50b46ce5d4b] Starting: send-error-report warning
[2020-09-03 11:16:28] DEBUG [util_exec] [5f50b46ce5d4b] Finished in 0.00162s, Error code: TRUE
[2020-09-03 11:16:29] DEBUG [util_exec] [88fffb3461baf51db72aff3ecc5534d6-0] Starting: filemng testuser list dirs /var/www/vhosts/test.com/httpdocs --in-blocks
[2020-09-03 11:16:29] DEBUG [util_exec] [88fffb3461baf51db72aff3ecc5534d6-0] Finished in 0.01367s, Error code: 0
[2020-09-03 11:16:29] DEBUG [util_exec] [6201e498e2c6cd460a84b02a645c0663-0] Starting: filemng testuser file_exists /var/www/vhosts/test.com/httpdocs
[2020-09-03 11:16:29] DEBUG [util_exec] [6201e498e2c6cd460a84b02a645c0663-0] Finished in 0.01218s, Error code: 0

[2020-09-03 11:16:34] DEBUG [util_exec] [5f50b4720c4d1] Starting: /usr/bin/sw-rrdtool -
[2020-09-03 11:16:34] DEBUG [util_exec] [5f50b4720c4d1] Finished in 0.00169s, Error code: TRUE


On Debian 9, Plesk Obsidian Web Pro Edition Version 18.0.29 Update #3 I can rename, copy, move file or directory in File Manager without issues.
 
Create a backup of the original filemng file:

# cp /opt/psa/admin/sbin/filemng{,.orig}

Replace the original file with patched one from attach.
 

Attachments

  • debian7.zip
    31.5 KB · Views: 5
BTW, this bug PPPM-7455 is fixed since Plesk 17.8
Consider an upgrade to latest Plesk version.
 
Back
Top