• 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

Internal error: filemng: opendir failed: Permission denied System error 13:

EmilioV

New Pleskian
Hi,

I just unistalled and reinstalled plesk by Add/Remove Components but now I have serious problems.
When I try to access to ftp doesn't work, when I try to navigate clicking the File Manager I get this message:

Internal error: filemng: opendir failed: Permission denied System error 13: Permission denied

Message filemng: opendir failed: Permission denied System error 13: Permission denied
File Agent.php
Line 212
Type PleskUtilException



I also followed this guide http://kb.parallels.com/en/1528 and what I see is this:

---s--x--- 1 root psaadm 17240 19 ago 08:14 /usr/local/psa/admin/sbin/mod_wrapper
---s--x--- 1 root psaadm 19368 19 ago 08:14 /usr/local/psa/admin/sbin/wrapper

It seems all right.

What can I do to solve this issue?
 
Run bootstrapper repair

Code:
/usr/local/psa/bootstrapper/pp11.5.30-bootstrapper/bootstrapper.sh repair
 
We're having the same issue - same file (Agent.php) and same line number, running Plesk 11.5.30 Update #35. I've ran the bootstrapper repair as suggested but no luck. Looking through knowledgebase articles and all permissions seem to be correct on the user's files (http://kb.parallels.com/en/119725):
Code:
# ll /var/www/vhosts/system/(Domain Censored)/                 total 20
drwxr-x--- 2 root   psaserv 4096 Mar 11 09:20 conf
drwxr-xr-x 2 root   root    4096 Mar 10 14:58 etc
drwx------ 2 psaadm root    4096 Mar 11 04:29 logs
drwx--x--- 2 root   psaserv 4096 Mar 10 16:52 pd
dr-xr-x--- 6 root   psaserv 4096 Mar 10 14:58 statistics


Old domains can access file manager fine but newly created domains are throwing this error when trying to access file manager.
 
Last edited:
Hi,

as I found a similar issue yesterday, could you please supply me with the following details:

# ls -la /var/www/vhosts/ | grep newcreateddomain
# ls -la /var/www/vhosts/newcreateddomain

Thanks,
Kristian
 
At least it's something that's been picked up! As requested:

# ls -la /var/www/vhosts/ | grep braddison-trading.com
drwx--x--- 6 braddisontrading psaserv 4096 Mar 10 16:23 braddison-trading.com


# ls -la /var/www/vhosts/braddison-trading.com
total 32
drwx--x--- 6 braddisontrading psaserv 4096 Mar 10 16:23 .
drwxr-xr-x 189 root root 12288 Mar 10 14:58 ..
drwxr-xr-x 2 braddisontrading psacln 4096 Mar 10 14:58 error_docs
drwxr-x--- 6 braddisontrading psaserv 4096 Mar 10 14:58 httpdocs
drwx------ 2 braddisontrading root 4096 Mar 10 14:58 logs
drwxr-x--- 2 braddisont psaserv 4096 Mar 10 16:29 web_users
 
Hi,

this is exactly what I thought.

Can you try the following two commands:

# chmod 755 /var/www/vhosts/braddison-trading.com
# chmod 755 /var/www/vhosts/braddison-trading.com/httpdocs

Does the Filemanager work after this?

Regards,
Kristian

P.S: I am not a Parallels employee. But if you can confirm this works, I can forward this to Parallels for fixing.
 
Perfect! Thanks! Works fine now when tested. Can you tell me a little more about this? When comparing against another domain the same permissions were applied (drwxr-x---) for httpdocs and strangely their file managed seemed to work fine.
 
Hi Chris,
Perfect! Thanks! Works fine now when tested. Can you tell me a little more about this? When comparing against another domain the same permissions were applied (drwxr-x---) for httpdocs and strangely their file managed seemed to work fine.

really?
Can you give me an example of an old subscription where the same permissions are set and FileManager still works?

The same output of the above commands would be great.

Thanks
Kristian
 
Hi Chris,


really?
Can you give me an example of an old subscription where the same permissions are set and FileManager still works?

The same output of the above commands would be great.

Thanks
Kristian

Sure - as requested same command outputs are below:


# ls -la /var/www/vhosts/ | grep deborahgainey.co.uk
drwx--x--- 5 debbieg psaserv 4096 Oct 9 11:08 deborahgainey.co.uk

# ls -la /var/www/vhosts/deborahgainey.co.uk
total 28
drwx--x--- 5 debbieg psaserv 4096 Oct 9 11:08 .
drwxr-xr-x 189 root root 12288 Mar 10 14:58 ..
drwxr-xr-x 2 debbieg psacln 4096 Oct 9 11:08 error_docs
drwxr-x--- 6 debbieg psaserv 4096 Jan 16 11:11 httpdocs
drwx------ 2 debbieg root 4096 Mar 11 04:04 logs
 
Hi Chris,

thanks.
I'll have to do some more investigation in this then.

If you change back the permissions on the first subscription, will it then fail again?

# chmod 710 /var/www/vhosts/braddison-trading.com
# chmod 750 /var/www/vhosts/braddison-trading.com/httpdocs

Thanks for helping.
Kristian
 
Hi Chris,

thanks.
I'll have to do some more investigation in this then.

If you change back the permissions on the first subscription, will it then fail again?

# chmod 710 /var/www/vhosts/braddison-trading.com
# chmod 750 /var/www/vhosts/braddison-trading.com/httpdocs

Thanks for helping.
Kristian

Deeper insight:

# chmod 710 /var/www/vhosts/braddison-trading.com -> Causes the Permissions denied, exact same script, same line. (I then chmoded back to 755 which fixed the error again)
# chmod 710 /var/www/vhosts/braddison-trading.com/httpdocs -> chmoding to 710 caused no issues and file manager still works.

right now it's working fine as /var/www/vhosts/braddison-trading.com (755) and /var/www/vhosts/braddison-trading.com/httpdocs (710). I'd prefer to keep the 710 permission to be a little more restrictive.
 
Hi Chris,

in my first reply httpdocs had chmod 710. Should be 750 though.
Could you try chmod'ing /var/www/vhosts/braddison-trading.com to 750 also?

Thanks in advance,
Kristian
 
I'm having the same problem with FTP and file manager (Panel 11.5.30; Linux).
Changing permissions did not solve the issue.
On most domains we have no issue. But one is having problems now. It used to work just fine until about a week or two ago.

Now you can't log in to that domain using FTP, and when you try to set up a new FTP account you get an error (Invalid path, "/").
Trying to use File Manager, we get the error in this thread title.
The permissions are set just like for all other domains, nothing different.

We tried setting 755 permissions as suggested above, but no luck.
We noticed there's no "web_users" file in any of our domain folders (also in those that work properly).

Again, everything worked properly with our Linux Plesk Panel 11.5.30 until about a week or two ago.

Any clue to this mystery would be appreciated.

------------------------
UPDATE
------------------------

Tried to run "/usr/local/psa/bin/repair --restore-vhosts-permissions" but this didn't change any permissions.

Noticed that on one of my server permissions on /var/www/vhosts is set as:
drwxr-xr-x. 6 root root 4096 Jul 13 16:16 vhosts

While on the server where I experience problem (with only one domain) permissions are
drwxr-x---. 8 [domainuser] psaserv 4096 Jul 11 10:08 vhosts

What are the correct permissions and ownership on the vhosts folder?
 
Last edited:
I am getting a variation of the problem. The problem is intermittent. Just now, I ran 20 clicks of the FILES tab and got errors on 8 of them. Error looks like this:

upload_2015-9-15_22-57-31.png
Internal error: filemng failed:
Message filemng failed:
File Agent.php
Line 243
Type PleskUtilException
Go To Previous Page

Search for related Knowledge Base articles


In my case, this is a brand new server, created to fix this problem that was occurring before the rebuild. When I say rebuild, here are the steps I took:
  1. Spun up a new vps at Digital Ocean with Ubuntu 14.04
  2. Set the fully qualified host name, as required for the Plesk installation to work.
  3. Downloaded the plesk installer (wget http://autoinstall.plesk.com/plesk-installer)
  4. Made the installer executable (chmod +x plesk-installer)
  5. Ran the installer (./plesk-installer ) (see below for config)
  6. Loaded the files for the one domain that runs on that server
  7. Everything was good, until........
  8. I received a report from the system administator that she is unable to access the FILES tab, as a result of getting the error noted above
  9. I logged in and got the error 8 out of 20 times clicking the FILES tab

upload_2015-9-15_22-55-24.png
 
Back
Top