• 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
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

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: 3
BTW, this bug PPPM-7455 is fixed since Plesk 17.8
Consider an upgrade to latest Plesk version.
 
Back
Top