{"action":"created","issue":{"url":"https://api.github.com/repos/esnet/maddash/issues/21","labels_url":"https://api.github.com/repos/esnet/maddash/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/esnet/maddash/issues/21/comments","events_url":"https://api.github.com/repos/esnet/maddash/issues/21/events","html_url":"https://github.com/esnet/maddash/issues/21","id":105452492,"number":21,"title":"Apache locks out proxying to maddash-server","user":{"login":"candlerb","id":44789,"avatar_url":"https://avatars.githubusercontent.com/u/44789?v=3","gravatar_id":"","url":"https://api.github.com/users/candlerb","html_url":"https://github.com/candlerb","followers_url":"https://api.github.com/users/candlerb/followers","following_url":"https://api.github.com/users/candlerb/following{/other_user}","gists_url":"https://api.github.com/users/candlerb/gists{/gist_id}","starred_url":"https://api.github.com/users/candlerb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/candlerb/subscriptions","organizations_url":"https://api.github.com/users/candlerb/orgs","repos_url":"https://api.github.com/users/candlerb/repos","events_url":"https://api.github.com/users/candlerb/events{/privacy}","received_events_url":"https://api.github.com/users/candlerb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-08T19:24:14Z","updated_at":"2015-09-20T02:15:46Z","closed_at":null,"body":"If maddash-server goes down for a short time (e.g. while it is being restarted), and in the mean time Apache tries to proxy to it, it marks the server as down and will no longer proxy to it.\r\n\r\n~~~\r\ntail /var/log/httpd/error_log\r\n...\r\n[Tue Sep 08 16:38:35 2015] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8881 (localhost) failed\r\n[Tue Sep 08 16:38:35 2015] [error] ap_proxy_connect_backend disabling worker for (localhost)\r\n[Tue Sep 08 16:38:35 2015] [error] proxy: HTTP: disabled connection for (localhost)\r\n[Tue Sep 08 16:39:24 2015] [error] proxy: HTTP: disabled connection for (localhost)\r\n[Tue Sep 08 16:39:24 2015] [error] proxy: HTTP: disabled connection for (localhost)\r\n~~~\r\n\r\nAlthough restarting Apache fixes this, it's only temporary until the next occurrence.\r\n\r\nBut there is a simple fix, which is to add `status=+I` (letter 'i') to the ProxyPass line in `/etc/httpd/conf.d/apache-maddash.conf`\r\n\r\n~~~\r\n    ProxyPass /maddash http://localhost:8881/maddash status=+I\r\n~~~\r\n"},"comment":{"url":"https://api.github.com/repos/esnet/maddash/issues/comments/141729113","html_url":"https://github.com/esnet/maddash/issues/21#issuecomment-141729113","issue_url":"https://api.github.com/repos/esnet/maddash/issues/21","id":141729113,"user":{"login":"soichih","id":923896,"avatar_url":"https://avatars.githubusercontent.com/u/923896?v=3","gravatar_id":"","url":"https://api.github.com/users/soichih","html_url":"https://github.com/soichih","followers_url":"https://api.github.com/users/soichih/followers","following_url":"https://api.github.com/users/soichih/following{/other_user}","gists_url":"https://api.github.com/users/soichih/gists{/gist_id}","starred_url":"https://api.github.com/users/soichih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soichih/subscriptions","organizations_url":"https://api.github.com/users/soichih/orgs","repos_url":"https://api.github.com/users/soichih/repos","events_url":"https://api.github.com/users/soichih/events{/privacy}","received_events_url":"https://api.github.com/users/soichih/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T02:15:46Z","updated_at":"2015-09-20T02:15:46Z","body":"I recommend switching to nginx as a web proxy. It's much easier to configure and reliable than apache, and it's faster than mod_proxy. "}}