[opensuse-buildservice] Application error
Hi, I have an application error (500) with my own OBS server. How to find the problem? There is nothing about errors in /srv/obs/log or /srv/www/obs/api/log/. /srv/www/obs/webui/log/ has : * SSL verify fail (because self signed) * 500 internal server error But nothing very useful here. Any idea how to find the source of the error? Note that API seems to work fine (tested with basi osc commands and via web interface, port 444). webui config file is set to use my own api server, not api.o.o, Guillaume -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Le 10/06/2013 16:57, Guillaume Gardet a écrit :
Hi,
I have an application error (500) with my own OBS server.
How to find the problem?
There is nothing about errors in /srv/obs/log or /srv/www/obs/api/log/.
/srv/www/obs/webui/log/ has : * SSL verify fail (because self signed) * 500 internal server error
But nothing very useful here.
Now, I have this output in the log: [INFO |# 3321] Started GET "/" for 127.0.0.1 at 2013-06-10 17:10:56 +0200 [INFO |# 3321] Processing by MainController#index as HTML [INFO |# 3321] Anonymous request to / [INFO |# 3321] Completed 500 Internal Server Error in 27ms [FATAL|# 3321] OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed): lib/activexml/transport.rb:350:in `http_do' lib/activexml/transport.rb:227:in `direct_http' app/controllers/application_controller.rb:352:in `block in require_configuration' app/controllers/application_controller.rb:350:in `require_configuration' It seems it does not find the file "/public/configuration.json". It is not present in filesystem but it seems to be a redirection to 'configurations#show' which seems to be defined in /srv/www/obs/api/app/controllers/configurations_controller.rb Any idea how to solve that? Guillaume -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Le 10/06/2013 17:25, Guillaume Gardet a écrit :
Le 10/06/2013 16:57, Guillaume Gardet a écrit :
Hi,
I have an application error (500) with my own OBS server.
How to find the problem?
There is nothing about errors in /srv/obs/log or /srv/www/obs/api/log/.
/srv/www/obs/webui/log/ has : * SSL verify fail (because self signed) * 500 internal server error
But nothing very useful here.
Now, I have this output in the log: [INFO |# 3321] Started GET "/" for 127.0.0.1 at 2013-06-10 17:10:56 +0200 [INFO |# 3321] Processing by MainController#index as HTML [INFO |# 3321] Anonymous request to / [INFO |# 3321] Completed 500 Internal Server Error in 27ms
[FATAL|# 3321] OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed): lib/activexml/transport.rb:350:in `http_do' lib/activexml/transport.rb:227:in `direct_http' app/controllers/application_controller.rb:352:in `block in require_configuration' app/controllers/application_controller.rb:350:in `require_configuration'
It seems it does not find the file "/public/configuration.json". It is not present in filesystem but it seems to be a redirection to 'configurations#show' which seems to be defined in /srv/www/obs/api/app/controllers/configurations_controller.rb
Any idea how to solve that?
I fixed it with: cp /srv/obs/certs/server.pem /etc/ssl/certs/ c_rehash /etc/ssl/certs/ Guillaume -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
It has strict check for ssl certs. I hooked it with: https://github.com/KostyaSha/open-build-service/commit/cbd6f8f61c4c7d2698b45... -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Guillaume Gardet
-
Kanstantsin Shautsou