[opensuse-buildservice] 500 internal error of api server
Hi, I tried to setup a local OBS following /usr/share/doc/packages/obs-api/README.SETUP but have no luck. Step 1,2,3 runs smoothly and I have following setup: Main machine as backend server: peter-xps.sh.intel.com, also set it as peter-api.sh.intel.com, peter-build.sh.intel.com in /etc/hosts Worker and api machine is same as main machine. Set OBS_REPO_SERVERS='peter-xps.sh.intel.com:5252" in /etc/sysconfig/obs-worker Database is populated very well without any issue Modify /etc/lighthttpd/vhosts.d/obs.conf to add peter-api.sh.intel.com and peter-build.sh.intel.com and peter-download.sh.intel.com like attached. Modify /srv/www/obs/webui/config/environments/production.rb to point FRONTEND_HOST='peter-api.sh.intel.com" Modify /srv/www/obs/api/config/environments/production.rb to point SOURCE_HOST="peter-xps.sh.inetl.com" Modified /usr/share/doc/packages/obs-api/openSUSE.org.xml to point to build.meego.com like attached Please also see log of /var/log/lighttpd/error.log, which says 2010-05-25 12:06:07: (mod_fastcgi.c.1768) connect failed: Connection refused on unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-4 2010-05-25 12:06:07: (mod_fastcgi.c.2956) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 1 2010-05-25 12:06:07: (mod_fastcgi.c.1768) connect failed: Connection refused on unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-3 2010-05-25 12:06:07: (mod_fastcgi.c.2956) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 1 load: 1 2010-05-25 12:06:07: (mod_fastcgi.c.1768) connect failed: Connection refused on unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-2 2010-05-25 12:06:07: (mod_fastcgi.c.2956) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 2 load: 1 2010-05-25 12:06:07: (mod_fastcgi.c.1768) connect failed: Connection refused on unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-1 2010-05-25 12:06:07: (mod_fastcgi.c.2956) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 3 load: 1 2010-05-25 12:06:07: (mod_fastcgi.c.1768) connect failed: Connection refused on unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-0 2010-05-25 12:06:07: (mod_fastcgi.c.2956) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 4 load: 1 2010-05-25 12:06:13: (mod_fastcgi.c.3568) all handlers for /dispatch.fcgi on .fcgi are down. 2010-05-25 12:06:13: (mod_fastcgi.c.2769) fcgi-server re-enabled: unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-4 2010-05-25 12:06:13: (mod_fastcgi.c.2769) fcgi-server re-enabled: unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-3 2010-05-25 12:06:13: (mod_fastcgi.c.2769) fcgi-server re-enabled: unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-2 2010-05-25 12:06:13: (mod_fastcgi.c.2769) fcgi-server re-enabled: unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-1 2010-05-25 12:06:13: (mod_fastcgi.c.2769) fcgi-server re-enabled: unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-0 Any idea? Thanks. Peter
On May 25, 2010 (Tuesday), at 7:28 AM, Zhu, Peter J wrote:
Please also see log of /var/log/lighttpd/error.log, which says 2010-05-25 12:06:07: (mod_fastcgi.c.1768) connect failed: Connection refused on unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-4
I had the same errors (or probably the same) in all my installatons I tried. Firstly I thought it's my fault but now it seems it's like something with packages or default installation. For me it can be solved when I manually deleted all logs in /srv/www/ obs/api/log and/or /srv/www/obs/webui/log then I restarted lighttpd and it worked. Files/dir rights I think. but I cannot confirm it's real fix for your problem petr -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Dienstag, 25. Mai 2010, 09:47:35 schrieb Petr Vanek:
On May 25, 2010 (Tuesday), at 7:28 AM, Zhu, Peter J wrote:
Please also see log of /var/log/lighttpd/error.log, which says 2010-05-25 12:06:07: (mod_fastcgi.c.1768) connect failed: Connection refused on unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-4
I had the same errors (or probably the same) in all my installatons I tried. Firstly I thought it's my fault but now it seems it's like something with packages or default installation.
For me it can be solved when I manually deleted all logs in /srv/www/ obs/api/log and/or /srv/www/obs/webui/log
Hm, they should be owned by "lighttpd" user and group by default. Works at least on the appliance. Peter, what are the ownership / permissions in your installation ? bye adrian
then I restarted lighttpd and it worked. Files/dir rights I think.
but I cannot confirm it's real fix for your problem
petr
-- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de
Hi Am Dienstag, 25. Mai 2010, 09:47:35 schrieb Petr Vanek:
On May 25, 2010 (Tuesday), at 7:28 AM, Zhu, Peter J wrote:
Please also see log of /var/log/lighttpd/error.log, which says 2010-05-25 12:06:07: (mod_fastcgi.c.1768) connect failed: Connection refused on unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-4
I had the same errors (or probably the same) in all my installatons I tried. Firstly I thought it's my fault but now it seems it's like something with packages or default installation.
For me it can be solved when I manually deleted all logs in /srv/www/ obs/api/log and/or /srv/www/obs/webui/log Hm, they should be owned by "lighttpd" user and group by default. Works at least on the appliance. Peter, what are the ownership / permissions in your installation ?
drwxr-xr-x 2 lighttpd lighttpd 4096 May 25 13:17 /srv/www/obs/api/log drwxr-xr-x 2 lighttpd lighttpd 4096 May 25 11:59 /srv/www/obs/webui/log/ If I deleted the log, I can't even link to api or build server Peter -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Dne úterý 25 Květen 2010 10:13:57 Adrian Schröter napsal(a):
Am Dienstag, 25. Mai 2010, 09:47:35 schrieb Petr Vanek:
On May 25, 2010 (Tuesday), at 7:28 AM, Zhu, Peter J wrote:
Please also see log of /var/log/lighttpd/error.log, which says
2010-05-25 12:06:07: (mod_fastcgi.c.1768) connect failed: Connection refused on unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-4
I had the same errors (or probably the same) in all my installatons I tried. Firstly I thought it's my fault but now it seems it's like something with packages or default installation.
For me it can be solved when I manually deleted all logs in /srv/www/ obs/api/log and/or /srv/www/obs/webui/log
Hm, they should be owned by "lighttpd" user and group by default. Works at least on the appliance.
Peter, what are the ownership / permissions in your installation ?
I did not tell that it's the real issue, but it worked for me ;) Anyway for example the obs-api rpm contains log/production.log owned by root:root (unpacked fresh rpm) etc. I don't know if it's the real problem... petr -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Donnerstag, 27. Mai 2010 21:31:52 Petr Vaněk wrote:
Dne úterý 25 Květen 2010 10:13:57 Adrian Schröter napsal(a):
Am Dienstag, 25. Mai 2010, 09:47:35 schrieb Petr Vanek:
On May 25, 2010 (Tuesday), at 7:28 AM, Zhu, Peter J wrote:
Please also see log of /var/log/lighttpd/error.log, which says
2010-05-25 12:06:07: (mod_fastcgi.c.1768) connect failed: Connection refused on unix:/srv/www/obs/api/tmp/sockets/fcgi.socket-4
I had the same errors (or probably the same) in all my installatons I tried. Firstly I thought it's my fault but now it seems it's like something with packages or default installation.
For me it can be solved when I manually deleted all logs in /srv/www/ obs/api/log and/or /srv/www/obs/webui/log
Hm, they should be owned by "lighttpd" user and group by default. Works at least on the appliance.
Peter, what are the ownership / permissions in your installation ?
I did not tell that it's the real issue, but it worked for me ;) Anyway for example the obs-api rpm contains log/production.log owned by root:root (unpacked fresh rpm) etc. I don't know if it's the real problem...
The packages do not contain them, but the db:migrate creates them. I added a note to the README.SETUP to chown them afterwards. bye adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Adrian Schröter
-
Petr Vanek
-
Petr Vaněk
-
Zhu, Peter J