Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Plesk fails to open: "cannot be opened with mode "a""  (Read 5231 times)

0 Members and 1 Guest are viewing this topic.

vinayakk

  • Guest
Plesk fails to open: "cannot be opened with mode "a""
« on: January 18, 2014, 10:31:26 pm »
The Plesk Panel upgrade failed, an attempt to open Plesk Panel fail with the following error:

ERROR: Zend_Log_Exception
"/usr/local/psa/admin/logs/panel.log" cannot be opened with mode "a"

0: Stream.php:66
    Zend_Log_Writer_Stream->__construct(string '/usr/local/psa/admin/logs/panel.log')
1: Abstract.php:84
    CommonPanel_Application_Abstract->_initLog()
2: Abstract.php:31
    CommonPanel_Application_Abstract->run()
3: Abstract.php:19
    CommonPanel_Application_Abstract::init()
4: auth.php3:137


Or with such error:

    ERROR: Uncaught exception 'Zend_Log_Exception' with message '"/usr/local/psa/admin/logs/panel.log" cannot be opened with mode "a"' in /usr/local/psa/admin/plib/Zend/Log/Writer/Stream.php:81



This error is caused beacuse the owner for Plesk log file /usr/local/psa/admin/logs/panel.log is not correct.


Check permissions for /usr/local/psa/admin/logs/panel.log, they should look as below:

    [root@test ~]# ls -la /usr/local/psa/admin/logs/panel.log
    -rw-r----- 1 psaadm root 67727 Jan 17 02:30 /usr/local/psa/admin/logs/panel.log

If you see that owner is root as below:

    [root@test ~]# ls -la /usr/local/psa/admin/logs/panel.log
    -rw-r----- 1 root root 67727 Jan 17 02:30 /usr/local/psa/admin/logs/panel.log

Change permissions with chown command:

    [root@test ~]# chown psaadm:root /usr/local/psa/admin/logs/panel.log


 :)