{"action":"created","issue":{"url":"https://api.github.com/repos/boekkooi/openshift-cartridge-nginx/issues/1","labels_url":"https://api.github.com/repos/boekkooi/openshift-cartridge-nginx/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/boekkooi/openshift-cartridge-nginx/issues/1/comments","events_url":"https://api.github.com/repos/boekkooi/openshift-cartridge-nginx/issues/1/events","html_url":"https://github.com/boekkooi/openshift-cartridge-nginx/issues/1","id":65298801,"number":1,"title":"Error activating gear: CLIENT_ERROR: Failed to execute action hook 'deploy'","user":{"login":"ranib","id":7550345,"avatar_url":"https://avatars.githubusercontent.com/u/7550345?v=3","gravatar_id":"","url":"https://api.github.com/users/ranib","html_url":"https://github.com/ranib","followers_url":"https://api.github.com/users/ranib/followers","following_url":"https://api.github.com/users/ranib/following{/other_user}","gists_url":"https://api.github.com/users/ranib/gists{/gist_id}","starred_url":"https://api.github.com/users/ranib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranib/subscriptions","organizations_url":"https://api.github.com/users/ranib/orgs","repos_url":"https://api.github.com/users/ranib/repos","events_url":"https://api.github.com/users/ranib/events{/privacy}","received_events_url":"https://api.github.com/users/ranib/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-30T20:44:02Z","updated_at":"2015-04-01T19:15:14Z","closed_at":"2015-04-01T05:20:32Z","body":"Created scalable app using \"boekkooi NGINX cartridge\", added \"boekkooi PHP cartridge\" and \"mysql-5.5 cartridge\". When trying to deploy https://github.com/openshift/wordpress-example I get Deployment completed with status: failure with above mentioned error. Increasing timeout \"rhc app restart <appname> --timeout 120\" did not help and \"rhc tail <appname>\" does not have anything in logs that I can relate to this error.\r\n\r\n$ git push\r\nCounting objects: 4432, done.\r\nDelta compression using up to 2 threads.\r\nCompressing objects: 100% (2568/2568), done.\r\nWriting objects: 100% (4430/4430), 13.13 MiB | 77.00 KiB/s, done.\r\nTotal 4430 (delta 1779), reused 4418 (delta 1773)\r\nremote: Nginx instance is stopped\r\nremote: Syncing git content to other proxy gears\r\nremote: Building git ref 'master', commit 6350f2a\r\nremote: Preparing build for deployment\r\nremote: Deployment id is 302453b6\r\nremote: Activating deployment\r\nremote: [30-Mar-2015 15:44:15] NOTICE: [pool www] 'user' directive is ignored wh\r\nen FPM is not running as root\r\nremote: [30-Mar-2015 15:44:15] NOTICE: [pool www] 'group' directive is ignored w\r\nhen FPM is not running as root\r\nremote: HAProxy already running\r\nremote: HAProxy instance is started\r\nremote: Copying WordPress plugins from .openshift/plugins\r\nremote: Copying WordPress themes from .openshift/themes\r\nremote: Copying WordPress languages from .openshift/languages\r\nremote:\r\nremote: Could not find mysql database.  Please run:\r\nremote: rhc cartridge add -a <appname> -c mysql-5.1\r\nremote: then make a sample commit (add whitespace somewhere) and re-push\r\nremote:\r\nremote: -------------------------\r\nremote: Git Post-Receive Result: failure\r\nremote: Activation status: failure\r\nremote: Activation failed for the following gears:\r\nremote: XXXX9a195973caa4ad00xxxx (Error activating gear: CLIENT_ERROR: Failed to\r\n execute action hook 'deploy' for XXXX9a195973caa4ad00xxxx application <appname>\r\nremote: #<IO:0x0000000198f390>\r\nremote: #<IO:0x0000000198f318>\r\nremote: )\r\nremote: Deployment completed with status: failure\r\nremote: postreceive failed\r\nTo ssh://XXXX9a195973caa4ad00xxxx@<appname>-domain.rhcloud.com/~/git/<appname>.git/\r\n   9b2b78f..6350f2a  master -> master\r\n\r\nAli@DELL-C521 ~/<appname> (master)\r\n$ rhc tail <appname>\r\nDL is deprecated, please use Fiddle\r\n==> app-root/logs/haproxy.log <==\r\n[WARNING] 088/145222 (134964) : Stopping proxy express in 0 ms.\r\n[WARNING] 088/145222 (134964) : Proxy stats stopped (FE: 1 conns, BE: 0 conns).\r\n[WARNING] 088/145222 (134964) : Proxy express stopped (FE: 1 conns, BE: 1 conns)\r\n.\r\n[WARNING] 088/145222 (138205) : config : log format ignored for proxy 'stats' si\r\nnce it has no log address.\r\n[WARNING] 088/145222 (138205) : config : log format ignored for proxy 'express'\r\nsince it has no log address.\r\n[WARNING] 088/152631 (138205) : Server express/local-gear is DOWN for maintenanc\r\ne.\r\n[ALERT] 088/152631 (138205) : proxy 'express' has no server available!\r\n[WARNING] 088/152644 (138205) : Server express/local-gear is UP (leaving mainten\r\nance).\r\n[WARNING] 088/154337 (138205) : Server express/local-gear is DOWN for maintenanc\r\ne.\r\n[ALERT] 088/154337 (138205) : proxy 'express' has no server available!\r\n\r\n==> app-root/logs/nginx_error.log <==\r\n2015/03/30 15:16:47 [error] 137377#0: *735 open() \"/var/lib/openshift/55199a1959\r\n73caa4ad00010b/app-root/runtime/repo//public/favicon.ico\" failed (2: No such fil\r\ne or directory), client: 127.5.205.129, server: , request: \"GET /favicon.ico HTT\r\nP/1.1\", host: \"<appname>-domain.rhcloud.com\"\r\n\r\n==> app-root/logs/nginx_access.log <==\r\n127.5.205.129 - - [30/Mar/2015:15:43:18 -0400]  200 \"GET / HTTP/1.0\" 41217 \"-\" \"\r\n-\" \"-\"\r\n127.5.205.129 - - [30/Mar/2015:15:43:20 -0400]  200 \"GET / HTTP/1.0\" 41217 \"-\" \"\r\n-\" \"-\"\r\n127.5.205.129 - - [30/Mar/2015:15:43:22 -0400]  200 \"GET / HTTP/1.0\" 41217 \"-\" \"\r\n-\" \"-\"\r\n127.5.205.129 - - [30/Mar/2015:15:43:24 -0400]  200 \"GET / HTTP/1.0\" 41217 \"-\" \"\r\n-\" \"-\"\r\n127.5.205.129 - - [30/Mar/2015:15:43:26 -0400]  200 \"GET / HTTP/1.0\" 41217 \"-\" \"\r\n-\" \"-\"\r\n127.5.205.129 - - [30/Mar/2015:15:43:28 -0400]  200 \"GET / HTTP/1.0\" 41217 \"-\" \"\r\n-\" \"-\"\r\n127.5.205.129 - - [30/Mar/2015:15:43:30 -0400]  200 \"GET / HTTP/1.0\" 41217 \"-\" \"\r\n-\" \"-\"\r\n127.5.205.129 - - [30/Mar/2015:15:43:32 -0400]  200 \"GET / HTTP/1.0\" 41217 \"-\" \"\r\n-\" \"-\"\r\n127.5.205.129 - - [30/Mar/2015:15:43:34 -0400]  200 \"GET / HTTP/1.0\" 41217 \"-\" \"\r\n-\" \"-\"\r\n127.5.205.129 - - [30/Mar/2015:15:43:36 -0400]  200 \"GET / HTTP/1.0\" 41217 \"-\" \"\r\n-\" \"-\"\r\n\r\n==> app-root/logs/haproxy_ctld.log <==\r\nI, [2015-03-30T14:52:25.637637 #134978]  INFO -- : Starting haproxy_ctld\r\n\r\n==> app-root/logs/php-fpm-error.log <==\r\n[30-Mar-2015 15:26:38] NOTICE: [pool www] 'user' directive is ignored when FPM i\r\ns not running as root\r\n[30-Mar-2015 15:26:38] NOTICE: [pool www] 'group' directive is ignored when FPM\r\nis not running as root\r\n[30-Mar-2015 15:26:38] NOTICE: fpm is running, pid 180994\r\n[30-Mar-2015 15:26:38] NOTICE: ready to handle connections\r\n[30-Mar-2015 15:43:38] NOTICE: Terminating ...\r\n[30-Mar-2015 15:43:38] NOTICE: exiting, bye-bye!\r\n[30-Mar-2015 15:44:15] NOTICE: [pool www] 'user' directive is ignored when FPM i\r\ns not running as root\r\n[30-Mar-2015 15:44:15] NOTICE: [pool www] 'group' directive is ignored when FPM\r\nis not running as root\r\n[30-Mar-2015 15:44:15] NOTICE: fpm is running, pid 204457\r\n[30-Mar-2015 15:44:15] NOTICE: ready to handle connections\r\n\r\n==> nginx/logs/error.log <==\r\n2015/03/30 15:26:32 [notice] 180851#0: signal process started\r\n2015/03/30 15:43:39 [notice] 203567#0: signal process started"},"comment":{"url":"https://api.github.com/repos/boekkooi/openshift-cartridge-nginx/issues/comments/88598698","html_url":"https://github.com/boekkooi/openshift-cartridge-nginx/issues/1#issuecomment-88598698","issue_url":"https://api.github.com/repos/boekkooi/openshift-cartridge-nginx/issues/1","id":88598698,"user":{"login":"ranib","id":7550345,"avatar_url":"https://avatars.githubusercontent.com/u/7550345?v=3","gravatar_id":"","url":"https://api.github.com/users/ranib","html_url":"https://github.com/ranib","followers_url":"https://api.github.com/users/ranib/followers","following_url":"https://api.github.com/users/ranib/following{/other_user}","gists_url":"https://api.github.com/users/ranib/gists{/gist_id}","starred_url":"https://api.github.com/users/ranib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ranib/subscriptions","organizations_url":"https://api.github.com/users/ranib/orgs","repos_url":"https://api.github.com/users/ranib/repos","events_url":"https://api.github.com/users/ranib/events{/privacy}","received_events_url":"https://api.github.com/users/ranib/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T19:15:13Z","updated_at":"2015-04-01T19:15:13Z","body":"Thank you, now it works after configuring .openshift/nginx.conf.erb correctly"}}