Ad Widget

Collapse

Permission denied error when trying to start agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • disparo
    Junior Member
    • Sep 2005
    • 29

    #1

    Permission denied error when trying to start agent

    Hello! I has installed zabbix1.1alpha12 agent on 5 machines, then, i upgraded it to beta1. Upgrade was successfull! Now, i tried to perform clean installation of beta1 agent on new server. After installing i executed

    chown -R zabbix:zabbix /var/log/zabbix
    chown -R zabbix:zabbix /var/run/zabbix

    But every time i trying to start agent, i'm getting "Unable to open debug file... Cannot to create PID file - Permission denied!"

    /var/log is 777
    /var/run is 777
    /var is 777

    But permission denied...

    WHAT'S THE PROBLEM?! I BROKE MY BRAIN ALREADY...
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    Right off the bat, it looks like you might have an error in your zabbix_agend.conf file. Another possibility is that you manually altered some of the path's in your zabbix_agent source code, and need to re-apply them.

    I had this same issue happen. I altered the zabbix_agent code to use /opt/zabbix/tmp as it's temporary directory instead of /tmp, I changed a couple other paths as well. Later when I did a fresh install of 1.1Beta1, I forgot to reapply the path changes and got the same error.
    Unofficial Zabbix Developer

    Comment

    • disparo
      Junior Member
      • Sep 2005
      • 29

      #3
      Originally posted by James Wells
      Greetings,

      Right off the bat, it looks like you might have an error in your zabbix_agend.conf file. Another possibility is that you manually altered some of the path's in your zabbix_agent source code, and need to re-apply them.

      I had this same issue happen. I altered the zabbix_agent code to use /opt/zabbix/tmp as it's temporary directory instead of /tmp, I changed a couple other paths as well. Later when I did a fresh install of 1.1Beta1, I forgot to reapply the path changes and got the same error.
      Not in my case! You got an errors because you forgot to make "chown ...", i guess.

      Comment

      Working...