{"action":"created","issue":{"url":"https://api.github.com/repos/Crapworks/RESTlos/issues/10","repository_url":"https://api.github.com/repos/Crapworks/RESTlos","labels_url":"https://api.github.com/repos/Crapworks/RESTlos/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Crapworks/RESTlos/issues/10/comments","events_url":"https://api.github.com/repos/Crapworks/RESTlos/issues/10/events","html_url":"https://github.com/Crapworks/RESTlos/issues/10","id":171405673,"number":10,"title":"Help with deploymet ","user":{"login":"andrusstrockiy","id":2841979,"avatar_url":"https://avatars.githubusercontent.com/u/2841979?v=3","gravatar_id":"","url":"https://api.github.com/users/andrusstrockiy","html_url":"https://github.com/andrusstrockiy","followers_url":"https://api.github.com/users/andrusstrockiy/followers","following_url":"https://api.github.com/users/andrusstrockiy/following{/other_user}","gists_url":"https://api.github.com/users/andrusstrockiy/gists{/gist_id}","starred_url":"https://api.github.com/users/andrusstrockiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrusstrockiy/subscriptions","organizations_url":"https://api.github.com/users/andrusstrockiy/orgs","repos_url":"https://api.github.com/users/andrusstrockiy/repos","events_url":"https://api.github.com/users/andrusstrockiy/events{/privacy}","received_events_url":"https://api.github.com/users/andrusstrockiy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Crapworks/RESTlos/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"Crapworks","id":1851528,"avatar_url":"https://avatars.githubusercontent.com/u/1851528?v=3","gravatar_id":"","url":"https://api.github.com/users/Crapworks","html_url":"https://github.com/Crapworks","followers_url":"https://api.github.com/users/Crapworks/followers","following_url":"https://api.github.com/users/Crapworks/following{/other_user}","gists_url":"https://api.github.com/users/Crapworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Crapworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crapworks/subscriptions","organizations_url":"https://api.github.com/users/Crapworks/orgs","repos_url":"https://api.github.com/users/Crapworks/repos","events_url":"https://api.github.com/users/Crapworks/events{/privacy}","received_events_url":"https://api.github.com/users/Crapworks/received_events","type":"User","site_admin":false},"assignees":[{"login":"Crapworks","id":1851528,"avatar_url":"https://avatars.githubusercontent.com/u/1851528?v=3","gravatar_id":"","url":"https://api.github.com/users/Crapworks","html_url":"https://github.com/Crapworks","followers_url":"https://api.github.com/users/Crapworks/followers","following_url":"https://api.github.com/users/Crapworks/following{/other_user}","gists_url":"https://api.github.com/users/Crapworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Crapworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crapworks/subscriptions","organizations_url":"https://api.github.com/users/Crapworks/orgs","repos_url":"https://api.github.com/users/Crapworks/repos","events_url":"https://api.github.com/users/Crapworks/events{/privacy}","received_events_url":"https://api.github.com/users/Crapworks/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-08-16T13:17:05Z","updated_at":"2016-08-16T15:21:17Z","closed_at":null,"body":"Could you advise on installation to production.\r\n>To use this api with an apache web server, you need to install mod-wsgi.\r\n\r\nDone\r\n<pre>httpd -M | grep wsgi\r\nSyntax OK\r\n wsgi_module (shared)\r\n</pre>\r\n> In the contrib directory you will find a sample apache configuration which can be placed in the conf.d directory.\r\n\r\nDone. Also copied all files to \r\n/opt/restols\r\nas mentioned in /opt/restlos/contrib/restlos-directory.\r\nThen on next step.\r\n> You will also find a file called application.py, which have to be placed in the same directory as the executable python script.This will load the api as a wsgi application into the web server.\r\n\r\nErr, didn't found it.\r\n\r\n[andruss@serv restlos]# find /opt/restlos/ -name \"application\" \r\n\r\nThen i head to to http://nagios.domain.net/restlos\r\n\r\nAnd got 503 error\r\n\r\nInside apache error log \r\n<pre>\r\n[Tue Aug 16 15:46:48 2016] [error] [client 192.168.1.222] (13)Permission denied: mod_wsgi (pid=19069): Unable to connect to WSGI daemon process 'restlos' on '/etc/httpd/logs/wsgi.19065.0.1.sock' after multiple attempts.\r\n</pre>\r\n\r\nls -lh /etc/httpd/logs/\r\n<pre>\r\nsrwx------ 1 apache root    0 Aug 16 16:06 wsgi.21577.0.1.sock\r\n</pre>\r\ni.e is avalible '/etc/httpd/logs/wsgi.19065.0.1.sock' but it 0 bytes.\r\n\r\nWhat permissions should be for /etc/httpd/logs/wsgi.19065.0.1.sock and should be restlos running in background ?"},"comment":{"url":"https://api.github.com/repos/Crapworks/RESTlos/issues/comments/240136289","html_url":"https://github.com/Crapworks/RESTlos/issues/10#issuecomment-240136289","issue_url":"https://api.github.com/repos/Crapworks/RESTlos/issues/10","id":240136289,"user":{"login":"andrusstrockiy","id":2841979,"avatar_url":"https://avatars.githubusercontent.com/u/2841979?v=3","gravatar_id":"","url":"https://api.github.com/users/andrusstrockiy","html_url":"https://github.com/andrusstrockiy","followers_url":"https://api.github.com/users/andrusstrockiy/followers","following_url":"https://api.github.com/users/andrusstrockiy/following{/other_user}","gists_url":"https://api.github.com/users/andrusstrockiy/gists{/gist_id}","starred_url":"https://api.github.com/users/andrusstrockiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrusstrockiy/subscriptions","organizations_url":"https://api.github.com/users/andrusstrockiy/orgs","repos_url":"https://api.github.com/users/andrusstrockiy/repos","events_url":"https://api.github.com/users/andrusstrockiy/events{/privacy}","received_events_url":"https://api.github.com/users/andrusstrockiy/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T15:21:17Z","updated_at":"2016-08-16T15:21:17Z","body":"Yes for centos user name is apache and  my line looks as following:\r\n<pre>\r\nWSGIDaemonProcess restlos user=apache group=apache threads=5\r\n</pre>\r\nBut i get the same error 503 \r\nalso tried to change group  group=root i.e\r\n<pre>\r\nWSGIDaemonProcess restlos user=apache group=root threads=5\r\n</pre>\r\nbut again same response 503.\r\nMaybe there is another configuration i need to run.\r\n\r\nFYI: To be able run restlosapi while working on that issue with apache added host parameter to  restlosapi.py file\r\n<pre>\r\n    app.run(port=config['port'],host='0.0.0.0')\r\n</pre>\r\nHope you don't mind ;-) (and yes i know it's not for production and single threaded) "}}
{"actor":{"display_login":"andrusstrockiy"}}