2

I'm trying to set up Munin 2.0.9 on Ubuntu with Nginx, so I'm launching munin-cgi-graph with the following command:

spawn-fcgi -s /var/run/munin/fastcgi-graph.sock -U www-data -u www-data -g www-data /usr/lib/cgi-bin/munin-cgi-graph

I get "spawn-fcgi: child spawned successfully: PID: 23886", but when I look in the list of running processes (using ps -elf) there is no process 23886. I get a "502 Bad Gateway" when I hit the webserver.

How can I get spawn-fcgi up and working? I can't find any instructions for debugging it.

Chris B.
  • 337
  • 1
  • 8
  • 17
  • 1
    Try adding `-n` to the `spawn-fcgi` command to prevent it from forking. If that doesn't help, execute `munin-cgi-graph` manually as the `www-data` user. – mgorven Jan 31 '13 at 22:58

1 Answers1

1

Check permissions for munin log files. I got exactly same problem on Ubuntu 14.04 and found that log files in /var/log/munin was owned by www-data:adm. After chown munin:munin fcgi processes started normally. Hope that will help you.

doublebind
  • 11
  • 1