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

unable to open configuration file /etc/psa/psa.conf: Permission denied

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by raz3k, Dec 17, 2009.

  1. raz3k

    raz3k Basic Pleskian

    23
    23%
    Joined:
    Nov 12, 2006
    Messages:
    25
    Likes Received:
    0
    Hi, after the recent base update + horde update (i think) for plesk 9.2.3 i get this message in /var/log/messages

    Dec 17 12:10:04 ns01 spam_hook[3787]: unable to open configuration file /etc/psa/psa.conf: Permission denied


    The permissions are the same as before.


    -rw-r--r-- 1 root root 2472 Dec 3 14:06 psa.conf


    Any ideas ?

    L.E.: Unable to read string from file: /etc/psa/spf/spfbehavior

    Seems that the permissions that plesk hotfix3 set are not compatible with other components... so i just chmodded 755 /etc/psa ... problem fixed for now.
     
    Last edited: Dec 17, 2009
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Regarding spf I can suppose that there was received mail during upgrade procedure. SPF located in /etc/psa-spf now.
    Also could you specify with more details how we can reproduce problem with psa.conf?
     
  3. raz3k

    raz3k Basic Pleskian

    23
    23%
    Joined:
    Nov 12, 2006
    Messages:
    25
    Likes Received:
    0
    I had everything updated, and i saw that new updates are available... so i started the update procedure using the web-updater. It installed :
    psa-hotfix3-9.2.3-9.2.3-cos5.build92091210.17.x86_64.rpm
    psa-selinux-9.2.3-cos5.build92091210.17.noarch.rpm (i have selinux disabled btw)
    psa-updates-9.2.3-cos5.build92091210.17.noarch.rpm
    psa-horde-3.1.7-cos5.build92091210.17.noarch.rpm
    psa-imp-4.1.6-cos5.build92091210.17.noarch.rpm
    psa-ingo-1.1.5-cos5.build92091210.17.noarch.rpm
    psa-mimp-1.0.2-cos5.build92091210.17.noarch.rpm
    psa-mnemo-2.1.2-cos5.build92091210.17.noarch.rpm
    psa-passwd-3.0.1-cos5.build92091210.17.noarch.rpm
    psa-turba-2.1.7-cos5.build92091210.17.noarch.rpm

    and it generated these errors:

    Installing the package psa-hotfix3-9.2.3-9.2.3-cos5.build92091210.17.x86_64
    Trying to replace files and set up right permissions... cp: missing destination file operand after `/usr/local/psa/tmp/hotfix-92091210.17/'
    Try `cp --help' for more information.
    done
    Unable to create vhost configuration for horde webmail

    WARNING!
    During the register found some problems(see log file: /tmp/psa-hotfix92091210.17.log)

    Continue...

    mv: cannot move `/etc/psa/webmail/horde/.horde.shadow' to `/etc/psa-webmail/horde/': No such file or directory
    Unable to get options for atmail webmail

    WARNING!
    During the register found some problems(see log file: /tmp/psa-hotfix92091210.17.log)

    Continue...

    -----------------------------------------

    /tmp/psa-hotfix92091210.17.log:

    Trying to replace files and set up right permissions... `/usr/local/psa/tmp/hotfix-92091210.17//usr/local/psa/admin/sbin/webmailmng' -> `/usr/local/psa/admin/sbin/webmailmng'
    `/usr/local/psa/tmp/hotfix-92091210.17//usr/local/psa/admin/htdocs/get_password.php' -> `/usr/local/psa/admin/htdocs/get_password.php'
    `/usr/local/psa/tmp/hotfix-92091210.17//usr/local/psa/admin/htdocs/login_up.php3' -> `/usr/local/psa/admin/htdocs/login_up.php3'
    `/usr/local/psa/tmp/hotfix-92091210.17//usr/local/psa/admin/htdocs/server/ch_pass.php3' -> `/usr/local/psa/admin/htdocs/server/ch_pass.php3'
    done

    WARNING!
    During the register found some problems
    Continue...

    Unable to create vhost configuration for horde webmail

    WARNING!
    During the register found some problems
    Continue...

    STOP psa-hotfix3-9.2.3-9.2.3-cos5.build92091210.17 installing AT Thu Dec 17 10:54:11 CET 2009
    STOP psa-hotfix3-9.2.3-9.2.3-cos5.build92091210.17 installing AT Thu Dec 17 10:54:11 CET 2009
    ----------------------------

    My /etc/psa file had these perms:

    drwxr-x--- 5 psaadm psaadm 4096 Dec 3 13:54 psa

    works with:

    drwxr-xr-x 5 psaadm psaadm 4096 Dec 3 13:54 psa

    P.S. I have all mail features enabled like domainkeys, spamass, drweb(no license), rbl, spf.

    Thanks.
     
  4. raz3k

    raz3k Basic Pleskian

    23
    23%
    Joined:
    Nov 12, 2006
    Messages:
    25
    Likes Received:
    0
    I also do not have the /etc/psa-spf folder.

    Should i uninstall the hotfix and reinstall it using rpm --nodeps ?
     
  5. lazyd

    lazyd Guest

    0
     

    I am having the same problem I think:

    Dec 18 22:05:03 www spam_hook[8961]: unable to open configuration file /etc/psa/psa.conf: Permission denied
    Dec 18 22:05:03 www spam_hook[8951]: unable to open configuration file /etc/psa/psa.conf: Permission denied
    Dec 18 22:05:03 www spam_hook[8979]: unable to open configuration file /etc/psa/psa.conf: Permission denied


    this coincides with receiving the following spam email(s):

    DomainKey-Status: bad format
    X-Spam-Flag: YES
    X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mydomain.com
    X-Spam-Level: ********
    X-Spam-Status: Yes, score=8.9 required=7.0 tests=EMPTY_MESSAGE,MISSING_DATE,
    MISSING_HB_SEP,MISSING_HEADERS,MISSING_MID,MISSING_SUBJECT,NO_RELAYS,
    TVD_SPACE_RATIO autolearn=no version=3.2.5
    X-Spam-Report:
    * 0.0 MISSING_MID Missing Message-Id: header
    * 0.0 MISSING_DATE Missing Date: header
    * -0.0 NO_RELAYS Informational: message was not relayed via SMTP
    * 2.5 MISSING_HB_SEP Missing blank line between message header and body
    * 1.6 MISSING_HEADERS Missing To: header
    * 2.9 TVD_SPACE_RATIO BODY: TVD_SPACE_RATIO
    * 1.3 MISSING_SUBJECT Missing Subject: header
    * 0.6 EMPTY_MESSAGE Message appears to have no textual parts and no
    * Subject: text
    Received: (qmail 8991 invoked by alias); 18 Dec 2009 22:05:04 +0000
    Delivered-To: postmaster@mydomain.com
    Subject: ****SPAM****
    X-Spam-Prev-Subject: (nonexistent)
     
  6. raz3k

    raz3k Basic Pleskian

    23
    23%
    Joined:
    Nov 12, 2006
    Messages:
    25
    Likes Received:
    0
    After chmodding the /etc/psa folder, i searched for updates using the cli autoinstaller and it found+installed:

    psa-mail-driver-common-9.2.3-cos5.build92091210.17.x86_64.rpm

    after that the spf error got away, as i see from the log it has created /etc/psa-spf

    drwxr-xr-x 2 root popuser 4096 Dec 18 10:37 psa-spf

    It took a while for the script to rsync all spf handles but it was a success.

    I haven't chmodded the /etc/psa folder back yet.
     
  7. DandG

    DandG Guest

    0
     
    I have only these two errors:

    Dec 25 13:13:03 XXXXX spf filter[21183]: Unable to read string from file: /etc/psa/spf/spfbehavior
    Dec 25 13:13:03 XXXXX qmail-queue-handlers[21181]: handlers_stderr: Unable to open file /etc/psa/spf/spfbehavior: Permission denied System error 13: Permission denied

    I have all rpm paskages installed, how can I fix this? If I go to Plesk Admin and then Update I have yellow icon, but no updates is available. How can I update or check update with CLI or fix this error in web interface?
     
  8. DandG

    DandG Guest

    0
     
    My errors is similar like yours, but I don't know how to resolve error:

    Dec 25 17:22:53 farm01 spf filter[17443]: Starting spf filter...
    Dec 25 17:22:53 farm01 spf filter[17443]: Unable to read string from file: /etc/psa/spf/spfbehavior
    Dec 25 17:22:53 farm01 qmail-queue-handlers[17441]: handlers_stderr: Unable to open file /etc/psa/spf/spfbehavior: Permission denied System error 13: Permission denied
    Dec 25 17:22:53 farm01 spf filter[17443]: Unable to get spf checking mode
    Dec 25 17:22:53 farm01 spf filter[17443]: Unable to get options for spf filter
    Dec 25 17:22:53 farm01 qmail-queue-handlers[17441]: call_handlers: Error during call '/usr/local/psa/handlers/info/10-spf-h3GVbF/executable' handler
    Dec 25 17:22:53 farm01 qmail-queue-handlers[17441]: LOG Internal error in handler '10-spf-h3GVbF'. Skip handler.

    Anyone has the same error. I also have not directory /etc/psa-spf. Plesk is 9.2.3 with latest upgrades.
     
  9. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    As possible workaround just try to reinstall psa-hotfix3-9.2.3 package.
     
  10. lazyd

    lazyd Guest

    0
     
    Ok, tried installing and uninstalling the hot fix but still got blank emails. They seem to happen 3 at a time and are repeated daily this lead me to look at the crontab and sure enough, 3 of the 4 recurring blank emails seem to coincide with a cron I have to update various websites at various times. So I guess the issue here may have to to with the third party web application.

    This led me to try and find out what was causing the other one that always comes in at 04:08 every day. I notice from /var/log/messages that this has something to do with log rotate which is generating the same error every day:

    Jan 11 04:08:34 www logrotate: ALERT exited abnormally with [1]

    I have checked all the other cron users in plesk and I can't find where this is triggered or what might be causing the problem.

    Any suggestions welcome.
     
  11. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Upgrade to 9.3.0 will help with it.
     
  12. Superkikim

    Superkikim Regular Pleskian

    25
    57%
    Joined:
    Mar 10, 2008
    Messages:
    135
    Likes Received:
    0
    I have 9.3.0 and the problem occured too.
     
  13. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Fixed in 9.5.0
     
  14. danliker

    danliker Silver Pleskian Plesk Certified Professional

    33
    43%
    Joined:
    Feb 15, 2006
    Messages:
    575
    Likes Received:
    0
    Location:
    Switzerland
  15. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Yes, you can try

     
  16. IzFazt

    IzFazt Guest

    0
     
    where is this set?

    getting in 9.3.0

    where is the path set? this should be /etc/psa/spf in stead of /etc/psa-spf/ ? Which configuration file is setting the path to spfbehaviour?
     
  17. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Default 9.3.0 installation on CentOS:

     
  18. IzFazt

    IzFazt Guest

    0
     
    not centos

    error appears in opensuse 11.1

     
  19. TorstenD

    TorstenD Guest

    0
     
    psa.conf Permission denied

    Hi there, i got the same problem and trying to solve this. My permissions on the psa.conf are ok now and added you find some of my logfiles - My Plesk is 9.3.0. The problem occurs when forwarding a mail from one to another email account on my server. Whenever I got an incoming mail from @info and the mail goes out ok to user1 and user2 - but when user2 manually forwards the email back to user1 this problem occurs.

    -------------------

    Mar 21 15:59:29 Hostname relaylock: /var/qmail/bin/relaylock: mail from 81.xxx.40.xxx:41387 (xxx.red-81-xxx-40.dynamicip.rima-tde.net)
    Mar 21 15:59:29 Hostname smtp_auth: SMTP connect from (null)@xxx.red-81-xxx-40.dynamicip.rima-tde.net [81.xxx.40.xxx]
    Mar 21 15:59:29 Hostname smtp_auth: smtp_auth: SMTP user xxx@yyyy.com : logged in from (null)@xxx.red-81-xxx-40.dynamicip.rima-tde.net [81.xxx.40.xxx]
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: Handlers Filter before-queue for qmail started ...
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: from=xxx@yyyy.com
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: to=yyyyy@yyyy.com
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: hook_dir = '/usr/local/psa/handlers/before-queue'
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: recipient[3] = 'yyyyy@yyyy.com'
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/yyyyy@yyyy.com'
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: starter: submitter[4017] exited normally
    Mar 21 15:59:30 Hostname qmail: 1269183570.459231 new msg 200510
    Mar 21 15:59:30 Hostname qmail: 1269183570.459324 info msg 200510: bytes 1949 from <xxx@yyyy.com> qp 4017 uid 2020
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: Handlers Filter before-local for qmail started ...
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: from=xxx@yyyy.com
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: to=yyyyy@yyyy.com
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: mailbox: /var/qmail/mailnames/yyyyy.com/yyyyy
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: hook_dir = '/usr/local/psa/handlers/before-local'
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: recipient[3] = 'yyyyy@yyyy.com'
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: handlers dir = '/usr/local/psa/handlers/before-local/recipient/yyyyy@yyyy.com'
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: call_handlers: call executable = '/usr/local/psa/handlers/info/10-spam-CIb9fV/executable'
    Mar 21 15:59:30 Hostname spamd[2724]: spamd: got connection over /tmp/spamd_full.sock
    Mar 21 15:59:30 Hostname spamd[2724]: spamd: using default config for yyyyy@yyyy.com: /var/qmail/mailnames/yyyyy.com/yyyyy/.spamassassin/user_prefs
    Mar 21 15:59:30 Hostname spamd[2724]: spamd: processing message <838083A2A2DB49ACB78219B407CF9A59@yyyy.local> for yyyyy@yyyy.com:110
    Mar 21 15:59:30 Hostname qmail: 1269183570.644258 starting delivery 13: msg 200510 to local 34-yyyyy@yyyy.com
    Mar 21 15:59:30 Hostname qmail: 1269183570.644441 status: local 1/10 remote 0/20


    Mar 21 15:59:29 Hostname smtp_auth: SMTP connect from (null)@xxx.red-81-xxx-40.dynamicip.rima-tde.net [81.xxx.40.xxx]
    Mar 21 15:59:29 Hostname smtp_auth: smtp_auth: SMTP user xxx@yyyy.com : logged in from (null)@xxx.red-81-xxx-40.dynamicip.rima-tde.net [81.xxx.40.xxx]
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: Handlers Filter before-queue for qmail started ...
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: from=xxx@yyyy.com
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: to=yyyyy@yyyy.com
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: hook_dir = '/usr/local/psa/handlers/before-queue'
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: recipient[3] = 'yyyyy@yyyy.com'
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: handlers dir = '/usr/local/psa/handlers/before-queue/recipient/yyyyy@yyyy.com'
    Mar 21 15:59:30 Hostname qmail-queue-handlers[4016]: starter: submitter[4017] exited normally
    Mar 21 15:59:30 Hostname qmail: 1269183570.459231 new msg 200510
    Mar 21 15:59:30 Hostname qmail: 1269183570.459324 info msg 200510: bytes 1949 from <xxx@yyyy.com> qp 4017 uid 2020
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: Handlers Filter before-local for qmail started ...
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: from=xxx@yyyy.com
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: to=yyyyy@yyyy.com
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: mailbox: /var/qmail/mailnames/yyyyy.com/yyyyy
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: hook_dir = '/usr/local/psa/handlers/before-local'
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: recipient[3] = 'yyyyy@yyyy.com'
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: handlers dir = '/usr/local/psa/handlers/before-local/recipient/yyyyy@yyyy.com'
    Mar 21 15:59:30 Hostname qmail-local-handlers[4018]: call_handlers: call executable = '/usr/local/psa/handlers/info/10-spam-CIb9fV/executable'
    Mar 21 15:59:30 Hostname spamd[2724]: spamd: got connection over /tmp/spamd_full.sock
    Mar 21 15:59:30 Hostname spamd[2724]: spamd: using default config for yyyyy@yyyy.com: /var/qmail/mailnames/yyyyy.com/yyyyy/.spamassassin/user_prefs
    Mar 21 15:59:30 Hostname spamd[2724]: spamd: processing message <838083A2A2DB49ACB78219B407CF9A59@yyyy.local> for yyyyy@yyyy.com:110
    Mar 21 15:59:30 Hostname qmail: 1269183570.644258 starting delivery 13: msg 200510 to local 34-yyyyy@yyyy.com
    Mar 21 15:59:30 Hostname qmail: 1269183570.644441 status: local 1/10 remote 0/20
    Mar 21 15:59:32 Hostname spamd[2724]: spamd: identified spam (3.1/3.0) for yyyyy@yyyy.com:110 in 1.8 seconds, 1949 bytes.
    Mar 21 15:59:32 Hostname spamd[2724]: spamd: result: Y 3 - AWL,DEAR_SOMETHING,RCVD_IN_SORBS_DUL scantime=1.8,size=1949,user=yyyyy@yyyy.com,uid=110,required_score=3.0,rhost=localhost,raddr=127.0.0.1,rport=/tmp/spamd_full.sock,mid=<838083A2A2DB49ACB78219B407CF9A59@yyyy.local>,autolearn=no
    Mar 21 15:59:32 Hostname spam_hook[4019]: spam_hook: STOP mail for yyyyy@yyyy.com
    Mar 21 15:59:32 Hostname qmail-local-handlers[4018]: handlers_stderr: STOP
    Mar 21 15:59:32 Hostname qmail-local-handlers[4018]: call_handlers: STOP during call '/usr/local/psa/handlers/info/10-spam-CIb9fV/executable' handler

    Mar 21 15:59:32 Hostname qmail-local-handlers[4018]: call_handlers: stop call handlers from dir '/usr/local/psa/handlers/before-local/recipient/yyyyy@yyyy.com'
    Mar 21 15:59:32 Hostname spamd[2723]: prefork: child states: II
    Mar 21 15:59:32 Hostname qmail: 1269183572.449194 delivery 13: success:
    Mar 21 15:59:32 Hostname qmail: 1269183572.449247 status: local 0/10 remote 0/20
    Mar 21 15:59:32 Hostname qmail: 1269183572.449266 end msg 200510
    Mar 21 15:59:40 Hostname pop3d: Connection, ip=[79.zzz.152.zzz]
    Mar 21 15:59:40 Hostname pop3d: IMAP connect from @ [79.zzz.152.zzz]INFO: LOGIN, user=yyyyy@yyyy.com, ip=[79.zzz.152.zzz]
    Mar 21 15:59:40 Hostname pop3d: 1269183580.608997 LOGOUT, user=yyyyy@yyyy.com, ip=[79.zzz.152.zzz], top=0, retr=0, time=0, rcvd=24, sent=640, maildir=/var/qmail/mailnames/yyyyy.com/yyyyy/Maildir
     
  20. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    According information from developers this issue has been completely fixed in Plesk 9.5.0 version.
     
Loading...