1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

System error 13: permission denied after upgrade to 7.5.4

Discussion in 'Plesk for Linux - 8.x and Older' started by thawebmaster, Oct 27, 2005.

  1. thawebmaster

    thawebmaster Guest

    0
     
    I just updated Plesk to version 7.5.4 using the rpms. I encountered only a few problems during the installation. However the last problem to resolve is very hard to solve:

    When I try to create or edit a mail name, I get an error in a javascript msgbox:
    Unable to update the mail name properties:mailmng failed: mailmng: Unable to open file '/var/qmail/users/assign.lock': Permission denied.
    mailmng: Error occurred while locking the file /var/qmail/users/assign: Permission denied
    mailmng: Unable to remove record for test from assign file
    System error 13: Permission denied
    mailmng: Unable to open file '/var/qmail/users/assign.lock': Permission denied.
    mailmng: Error occurred while locking the file /var/qmail/users/assign: Permission denied
    mailmng: Unable to open file '/var/qmail/users/assign.lock': Permission denied.
    mailmng: Error occurred while locking the file /var/qmail/users/assign: Permission denied
    mailmng: Unable to remove test mailbox record from assign file
    mailmng: Unable to open file '/var/qmail/users/poppasswd.lock': Permission denied.
    mailmng: Error occurred while locking the file /var/qmail/users/poppasswd: Permission denied
    mailmng: Unable to remove test mailbox record from password file
    mailmng: Unable to add record for test to assign file
    System error 2: No such file or directory


    I checked whether the file (/var/qmail/users/assign.lock) exists, and it doesn't.

    Does anyone know how to solve this problem? It is a permission problem, but which rights does qmail need to have on the files mentioned above and which owner it belongs to?

    Thanks in advance!
     
  2. ShadowMan@

    ShadowMan@ Guest

    0
     
    Code:
    -rw-------    1 root     root          691 Oct 23 23:30 assign
    -rw-r--r--    1 root     root         3002 Oct 23 23:30 cdb
    -rw-------    1 root     root          174 Oct 17 02:39 poppasswd
    -rw-------    1 root     root          170 Jul 12 23:36 poppasswd.backup
    I do not find any file 'assign.lock' on my server.
     
  3. thawebmaster

    thawebmaster Guest

    0
     
    hmm, strange...
    however, can you show me the rights of your users folder?
    I think that the assign.lock is created when updating a mail name and plesk is unable to write to it.
     
  4. ShadowMan@

    ShadowMan@ Guest

    0
     
    drwxr-xr-x 2 root qmail 4096 Oct 23 23:30 users
     
  5. thawebmaster

    thawebmaster Guest

    0
     
    I did the rights exactly as you have them. However, it doesn't make any difference. Does anyone know how I can solve my problem?

    Thanks so far, and thanks in advance!
     
  6. thawebmaster

    thawebmaster Guest

    0
     
    I'm still trying to solve the problem. Without success however.
    Could it be a suexec problem?
    Does plesk make any logs where I can find more information?
     
  7. thawebmaster

    thawebmaster Guest

    0
     
    Something more research learned me that creating new DNS records is also impossible.
    I get the following error:

    Code:
    dnsmng() constructor failed: dnsmng failed: dnsmng: Unable to open file "/var/named/run-root/etc/named.conf.lock": Permission denied. dnsmng: Error occurred while locking the file /var/named/run-root/etc/named.conf
    0: /usr/local/psa/admin/plib/class.dnsmng.php:21 psaerror(string "dnsmng() constructor failed: dnsmng failed: dnsmng: Unable to open file "/var/named/run-root/etc/named.conf.lock": Permission denied. dnsmng: Error occurred while locking the file /var/named/run-root/etc/named.conf")
    1: /usr/local/psa/admin/plib/cmd_dns.php3:442 dnsmngMaker()
    2: /usr/local/psa/admin/plib/cmd_dns.php3:685 delete_dns_rec(integer "671")
    3: /usr/local/psa/admin/htdocs/domains/dns_add.php3:131 new_dns_rec(integer "18", boolean false, boolean false, string "bla", string "royalfish.nl", string "CNAME", string "50")
    Does anyone know how I can solve this?
     
  8. ShadowMan@

    ShadowMan@ Guest

    0
     
    With your original statement and the additional problems you are having, I personally would re-do the installation/upgrade since it is quite apparent that something went very wrong during the upgrade.

    There are a number of logs, located at:

    /var/log/
    /usr/local/psa/var/log/

    and the domain logs

    ~/vhosts/domain.tld/statistics/logs

    Sorry, I don't have any further specifics on either of your current issues.
     
  9. thawebmaster

    thawebmaster Guest

    0
     
    Thanks for the tip shadowman. After installing the plesk update again using the rpms, everything works well again!
     
  10. Tozz

    Tozz Regular Pleskian

    26
    23%
    Joined:
    Jun 30, 2006
    Messages:
    168
    Likes Received:
    3
    Location:
    Netherlands
    The problem is that /opt/psa/admin/sbin/wrapper is not setuid. Restoring the setuid bit resolves these problems.
     
Loading...