• 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

Question No such file or directory File - Hierarchical.php Problem

SahinS

Basic Pleskian
Hello,

I have a problem on Plesk Admin Control Panel, after the login request:

Internal error:
No such file or directory
Message No such file or directory
File Hierarchical.php
Line 201
Type UnknownError


I tried # plesk repair all, everything is ok.

# df -h
Use 82%
# df -i
Use 12%

Any advice?
Thanks you!
 
this sounds like a broken installation, have you upgraded your plesk installation ? Any related details in /var/log/plesk/panel.log ?

you might try
# plesk installer --select-release-current --reinstall-patch --upgrade-installed-components
 
this sounds like a broken installation, have you upgraded your plesk installation ? Any related details in /var/log/plesk/panel.log ?

you might try
# plesk installer --select-release-current --reinstall-patch --upgrade-installed-components

Hello,

I did not upgrade, but maybe auto-upgraded?

Ahh.. Yes, panel.log!

Like this:
Code:
[2018-10-21 00:20:57] ERR [panel] Unable to get key: error: Cannot create: /etc/sw/keys/lock/repository: Permission denied
[2018-10-21 00:20:57] ERR [panel] Unable to get key: error: Cannot create: /etc/sw/keys/lock/repository: Permission denied
[2018-10-21 00:20:57] ERR [panel] No such file or directory:
0: /usr/local/psa/admin/plib/Lock/Manager/Hierarchical.php:201
        LockQuery->lock(string '')
1: /usr/local/psa/admin/plib/Lock/Manager/Hierarchical.php:201
        Plesk\Lock\Manager_Hierarchical->_applyLock(string '', object of type Ple                                                                                       sk\Lock\Resource)
2: /usr/local/psa/admin/plib/Lock/Manager/Hierarchical.php:158
        Plesk\Lock\Manager_Hierarchical->lock(object of type Plesk\Lock\Resource,                                                                                        string '')
3: /usr/local/psa/admin/plib/Lock/Manager.php:85
        Plesk\Lock\Manager->lock(integer '2', array, string '')
4: /usr/local/psa/admin/plib/Lock.php:21
        Plesk\Lock::read(object of type Plesk\Lock\Object_SessionService)
5: /usr/local/psa/admin/plib/Application/Web.php:198
        Plesk\Application_Web->startSession()
6: /usr/local/psa/admin/plib/Application/Web.php:273
        Plesk\Application_Web->registerSession(string 'admin', string '******')
7: /usr/local/psa/admin/htdocs/login_up.php:79

...
...
[2018-10-21 07:19:38] ERR [panel] Unable to get key: error: Cannot create: /etc/sw/keys/lock/repository: Permission denied
[2018-10-21 07:19:38] ERR [panel] Unable to get key: error: Cannot create: /etc/sw/keys/lock/repository: Permission denied
[2018-10-21 07:19:38] ERR [panel] Unable to get key: error: Cannot create: /etc/s                                                                                       w/keys/lock/repository: Permission denied
[2018-10-21 07:19:38] ERR [panel] Unable to get key: error: Cannot create: /etc/s                                                                                       w/keys/lock/repository: Permission denied
[2018-10-21 07:19:38] ERR [panel] Unable to get key: error: Cannot create: /etc/s                                                                                       w/keys/lock/repository: Permission denied
[2018-10-21 07:19:38] ERR [panel] Unable to get key: error: Cannot create: /etc/s                                                                                       w/keys/lock/repository: Permission denied
[2018-10-21 07:19:38] ERR [panel] Unable to get key: error: Cannot create: /etc/s                                                                                       w/keys/lock/repository: Permission denied


- I have tried "fix_permissions.sh" (from Plesk).

- # plesk repair fs -verbose
Error messages: 0; Warnings: 1; Errors resolved: 0

- # plesk repair fs –system
Checking the file system ............................................ [ERROR]
The domain –system was not found.


# ls -ld /etc/sw /etc/sw/keys /etc/sw/keys/lock /etc/sw/keys/lock/repository
drwxr-xr-x 3 root root 4096 Mar 17 2017 /etc/sw
drwxrws--- 8 root swkey-data 4096 Oct 19 04:05 /etc/sw/keys
drwxrws--- 2 root swkey-data 4096 May 30 2017 /etc/sw/keys/lock
-rwxr-xr-x 1 root swkey-data 0 Mar 17 2017 /etc/sw/keys/lock/repository


Should I try this still?
# # plesk installer --select-release-current --reinstall-patch --upgrade-installed-components

Thanks a lot for your reply!
 
Please see the following knowledgebase article: Error in Plesk: SWKeyExFatalError error: Cannot open file

Hello again,

I have tried, but... :(

Code:
[root@a ~]# /usr/sbin/usermod -a -G swkey-data psaadm
[root@a ~]# chown -R root:swkey-data /etc/sw/keys/
[root@a ~]# chmod -R 660 /etc/sw/keys/*
[root@a ~]# chmod -R 644 /etc/sw/keys/info
[root@a ~]# find /etc/sw/keys -type d -exec chmod 2770 {} \;
[root@a ~]# chmod 4510 /etc/sw/keys/restart/*
[root@a ~]# chown -R psaadm:swkey-data /etc/sw/keys/registry.xml /etc/sw/keys/keys/* /etc/sw/keys/tokens*
[root@a ~]#  service psa restart
Unable to create 'dirty' flag (/usr/local/psa/tmp/components_dirty_flag): Permission denied
System error 13: Permission denied
Unable to create 'dirty' flag (/usr/local/psa/tmp/components_dirty_flag): Permission denied
System error 13: Permission denied
[root@a ~]#

Thanks!
 
it seems to be everywhere permission issues with your installation

therefor please try:

# plesk installer --select-release-current --reinstall-patch --upgrade-installed-components
but I think we will run again into permission problems...

please post also the output of:
# plesk version
 
Last edited:
it seems to be everywhere permission issues with your installation

therefor please try:

# plesk installer --select-release-current --reinstall-patch --upgrade-installed-components
but I think we will run again into permission problems...

please post also the output of:
# plesk version

Hi,

(Actually, it is not a new installation.)

# plesk version
Product version: Plesk Onyx 17.5.3 Update #58
Update date: 2018/10/15 04:03
Build date: 2018/10/03 19:00
OS version: CentOS 6.9
Revision: 55d1b49a272f44666e1920eca8b6e4da449a38cd
Architecture: 64-bit
Wrapper version: 1.2

I did not try this:
plesk installer --select-release-current --reinstall-patch --upgrade-installed-components

It is so interesting but, now I did login Plesk Admin. But the problem is cont.

# plesk repair fs –system

Checking the file system ............................................ [ERROR]
The domain –system was not found.

exit status 1


I'm a little concerned, what's your suggestion?
Thanks a lot!

Oh! Additional info:
I can not login my SSH directly. (Its error is: server unexpectedly closed network connection)
I login from SolusVM.
 
take into consider to contact Plesk Support directly Plesk Help Center

about the Error message of plesk repair command
Checking the file system ............................................ [ERROR]
The domain –system was not found.

this looks like a typical copy & past issue you use the wrong dash "-"
# plesk repair fs -system

I can not login my SSH directly. (Its error is: server unexpectedly closed network connection)

perhaps firewall is blocking it or fail2ban or service died... Any related details in the logfiles?
Plesk for Linux services logs and configuration files
 
Last edited:
take into consider to contact Plesk Support directly Plesk Help Center

about the Error message of plesk repair command

this looks like a typical copy & past issue you use the wrong dash "-"
# plesk repair fs -system



perhaps firewall is blocking it or fail2ban or service died... Any related details in the logfiles?
Plesk for Linux services logs and configuration files

:) Yes it is!
and sorry for my typo. :(

# plesk repair fs -system

Checking Linux system files ......................................... [OK]

Error messages: 0; Warnings: 0; Errors resolved: 0


On the Plesk Admin -> A Domain.com File Manager Page:

Internal error:
Unable to find the directory /var/www/vhosts/voyd.org.tr/: filemng failed: filemng: Unable to init new groups for user voydrg: Operation not permitted System error 1: Operation not permitted
Message Unable to find the directory /var/www/vhosts/voyd.org.tr/: filemng failed: filemng: Unable to init new groups for user voydrg: Operation not permitted System error 1: Operation not permitted
File FileManagerController.php
Line 1068
Type PleskUtilException

and I solved it. (#solution source)


- perhaps firewall is blocking it or fail2ban or service died... Any related details in the logfiles?
+ In fact, the IP address is not banned, I checked it.
 
Back
Top