Unable to browse directory using File Manager on Plesk 12: filemng: Error occurred during /usr/bin/file command.

Refers to:

  • Plesk 12.0 for Linux

Created:

2016-11-16 13:08:56 UTC

Modified:

2016-12-21 20:03:38 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to browse directory using File Manager on Plesk 12: filemng: Error occurred during /usr/bin/file command.

Symptoms

It not possible to browse directory via File Manager in Plesk 12 if it contains files with spaces in its names. The following error appears in panel.log :

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

file: /opt/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 57
code: 0
trace: #0 /opt/psa/admin/plib/Service/Agent/Transport/Local.php(60): Service_Agent_Transport_Local_Exec->process(0, Object(Service_Agent_Command_Exec), Object(Service_Agent_Transport_LocalTransaction))
#1 /opt/psa/admin/plib/Service/Agent/Transport/Local.php(26): Service_Agent_Transport_Local->_command(0, Object(Service_Agent_Command_Exec), Object(Service_Agent_Transport_LocalTransaction))
#2 /opt/psa/admin/plib/Service/Agent.php(172): Service_Agent_Transport_Local->process('50e8f41b8d883d3...', Array)
#3 /opt/psa/admin/plib/Service/Agent.php(241): Service_Agent->commit()
#4 /opt/psa/admin/plib/Service/Driver/Filesystem/Plesk/Unix.php(327): Service_Agent->execAndGetResponse('filemng', Array, NULL, Array)
#5 /opt/psa/admin/plib/Service/Driver/Filesystem/Plesk/Unix.php(234): Service_Driver_Filesystem_Plesk_Unix->_execAndGetResponse(Array)
#6 /opt/psa/admin/plib/FileManager.php(117): Service_Driver_Filesystem_Plesk_Unix->getFileType('newtest', '/var/www/vhosts...')
#7 /opt/psa/admin/plib/FileManager.php(131): FileManager->detect_file_type('/var/www/vhosts...')
#8 /opt/psa/admin/plib/FileManager.php(693): FileManager->is_text_file('/var/www/vhosts...')
#9 /opt/psa/admin/plib/Smb/View/List/ContentFiles.php(236): FileManager->get_file_type('/var/www/vhosts...')
#10 /opt/psa/admin/plib/Smb/View/List/ContentFiles.php(134): Smb_View_List_ContentFiles->_getFilesList('/var/www/vhosts...')
#11 /opt/psa/admin/plib/CommonPanel/View/List/Abstract.php(401): Smb_View_List_ContentFiles->_getDataProvider()
#12 /opt/psa/admin/plib/CommonPanel/View/List/Abstract.php(201): CommonPanel_View_List_Abstract->_setupPaginator()
#13 /opt/psa/admin/plib/CommonPanel/View/List/Abstract.php(192): CommonPanel_View_List_Abstract->_setupList()
#14 /opt/psa/admin/application/smb/controllers/FileManagerController.php(760): CommonPanel_View_List_Abstract->__construct(Object(Zend_View), Object(Zend_Controller_Request_Http), Array)
#15 /opt/psa/admin/application/smb/controllers/FileManagerController.php(432): Smb_FileManagerController->_getFilesList()
#16 /opt/psa/admin/externals/Zend/Controller/Action.php(516): Smb_FileManagerController->listDataAction()
#17 /opt/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('listDataAction')
#18 /opt/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#19 /opt/psa/admin/plib/Application/Web.php(38): Zend_Controller_Front->dispatch(NULL)
#20 /opt/psa/admin/htdocs/application.php(15): Plesk\\Application_Web->run()
#21 {main}

Cause

This is a software issue with internal ID PPPM-4123 . The fix will be provided in further Plesk updates.

Resolution

Rename the file.

For Ubuntu 14.04 , replace /opt/psa/admin/plib/Smb/View/List/ContentFiles.php file with the fixed one .

Have more questions? Submit a request
Please sign in to leave a comment.