[opensuse-buildservice] Install OBS in CentOS -- "Webclient Error: Unable to connect to API"
Hi, your guys! I want install obs on CentOS 5, after I build obs-server-0.9.1-4.1.src.rpm, and installed ------------------------- # rpm -qa|grep obs obs-worker-0.9.1-4.1 obs-api-0.9.1-4.1 obs-server-0.9.1-4.1 ========================= follow the cache page on google http://203.208.39.132/search?q=cache:Dm1eKDTlDg4J:https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/dist/README.SETUP+/srv/www/obs/webclient&cd=1&hl=zh-CN&ct=clnk&gl=cn&st_usg=ALhdy2-CIRL7BuSdU0Mm0wjPK0gG3mcGUA and install guide on http://en.opensuse.org/Build_Service/Build_Service_Installation_Tutorial/Cen... use the default configure but just modified the ip interface and username/password of mysql database , and create the needed empty database in mysql server . but when i login the web interface, i get following errors: --------------------------- OpenSUSE Webclient Error: Error Details: Errorcode: 500 Message: Unable to connect to API =========================== no useful info I found in /srv/obs/log/ and /var/log/lighttpd/, anyone can give me a help? Thanks for all your guys! -- Jian Lee MSN : lijian.gnu@gmail.com -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Dienstag, 25. August 2009 11:47:25 schrieb Jian Lee:
Hi, your guys!
I want install obs on CentOS 5, after I build obs-server-0.9.1-4.1.src.rpm, and installed
------------------------- # rpm -qa|grep obs obs-worker-0.9.1-4.1 obs-api-0.9.1-4.1 obs-server-0.9.1-4.1 =========================
follow the cache page on google http://203.208.39.132/search?q=cache:Dm1eKDTlDg4J:https://forgesvn1.novell. com/svn/opensuse/trunk/buildservice/dist/README.SETUP+/srv/www/obs/webclien t&cd=1&hl=zh-CN&ct=clnk&gl=cn&st_usg=ALhdy2-CIRL7BuSdU0Mm0wjPK0gG3mcGUA
and install guide on http://en.opensuse.org/Build_Service/Build_Service_Installation_Tutorial/Ce ntOS
use the default configure but just modified the ip interface and username/password of mysql database , and create the needed empty database in mysql server .
but when i login the web interface, i get following errors:
--------------------------- OpenSUSE Webclient Error:
Error Details: Errorcode: 500 Message: Unable to connect to API ===========================
no useful info I found in /srv/obs/log/ and /var/log/lighttpd/, anyone can give me a help?
Thanks for all your guys!
Hm, 0.9 is really quite old. Unfortunatly 1.6 is not building since, the rails stack is currently not building for CentOS. it would be great if someone with RH knowledge would have a look at the packages in openSUSE:Tools project and could fix them. If you need support, please come to our irc channel. 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
Hi, Adrian Thanks for your help, I'll try setup it from svn repository. --------------------------------- # svn log|head ------------------------------------------------------------------------ r7942 | AdrianSuSE | 2009-08-24 21:32:37 +0800 (一, 24 8月 2009) | 2 lines fix copy&paste error ------------------------------------------------------------------------ r7941 | AdrianSuSE | 2009-08-24 21:30:14 +0800 (一, 24 8月 2009) | 2 lines validate if the target package exists on change_devel request creation. ======================================================================= Adrian Schröter <adrian@suse.de> writes:
Am Dienstag, 25. August 2009 11:47:25 schrieb Jian Lee:
Hi, your guys!
I want install obs on CentOS 5, after I build obs-server-0.9.1-4.1.src.rpm, and installed
------------------------- # rpm -qa|grep obs obs-worker-0.9.1-4.1 obs-api-0.9.1-4.1 obs-server-0.9.1-4.1 =========================
follow the cache page on google http://203.208.39.132/search?q=cache:Dm1eKDTlDg4J:https://forgesvn1.novell. com/svn/opensuse/trunk/buildservice/dist/README.SETUP+/srv/www/obs/webclien t&cd=1&hl=zh-CN&ct=clnk&gl=cn&st_usg=ALhdy2-CIRL7BuSdU0Mm0wjPK0gG3mcGUA
and install guide on http://en.opensuse.org/Build_Service/Build_Service_Installation_Tutorial/Ce ntOS
use the default configure but just modified the ip interface and username/password of mysql database , and create the needed empty database in mysql server .
but when i login the web interface, i get following errors:
--------------------------- OpenSUSE Webclient Error:
Error Details: Errorcode: 500 Message: Unable to connect to API ===========================
no useful info I found in /srv/obs/log/ and /var/log/lighttpd/, anyone can give me a help?
Thanks for all your guys!
Hm, 0.9 is really quite old. Unfortunatly 1.6 is not building since, the rails stack is currently not building for CentOS.
it would be great if someone with RH knowledge would have a look at the packages in openSUSE:Tools project and could fix them.
If you need support, please come to our irc channel.
bye adrian
-- Jian Lee MSN : lijian.gnu@gmail.com -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Jian Lee wrote:
Hi, your guys!
I want install obs on CentOS 5, after I build obs-server-0.9.1-4.1.src.rpm, and installed
------------------------- # rpm -qa|grep obs obs-worker-0.9.1-4.1 obs-api-0.9.1-4.1 obs-server-0.9.1-4.1 =========================
follow the cache page on google http://203.208.39.132/search?q=cache:Dm1eKDTlDg4J:https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/dist/README.SETUP+/srv/www/obs/webclient&cd=1&hl=zh-CN&ct=clnk&gl=cn&st_usg=ALhdy2-CIRL7BuSdU0Mm0wjPK0gG3mcGUA
and install guide on http://en.opensuse.org/Build_Service/Build_Service_Installation_Tutorial/Cen...
use the default configure but just modified the ip interface and username/password of mysql database , and create the needed empty database in mysql server .
but when i login the web interface, i get following errors:
--------------------------- OpenSUSE Webclient Error:
Error Details: Errorcode: 500 Message: Unable to connect to API ===========================
no useful info I found in /srv/obs/log/ and /var/log/lighttpd/, anyone can give me a help?
Thanks for all your guys!
Did you go with virtual hosts or ips for the obs.conf for lighttpd? Are the virtual hosts resolvable from the local machine? (i.e. did you add them to /etc/hosts or your DNS?) The README.SETUP says to put the username and password in the 'production' section: * Configure your MySQL user and password in in the "production:" section of these files: /srv/www/obs/frontend/config/database.yml /srv/www/obs/webclient/config/database.yml but that's wrong. By default you'd be using the 'production_slave' environment in obs.conf: rails_mode = "production_slave" Also, you ran rake db:migrate on production_slave: * populate the database # cd /srv/www/obs/frontend/ # sudo -u lighttpd RAILS_ENV="production_slave" rake db:migrate So, the tables for frontend are only available when using the production_slave environment, but if you followed the README.SETUP, your password and username may not be there. Add the username and password to the production_slave section, and NOT the production section. You can also check if the frontend is sane by trying to load it from the console cd /srv/www/obs/frontend sudo script/console production_slave If that gives you prompt without errors then the frontend is working. You can also try to find yourself, by doing User.find_by_login('Admin') If that doesn't work then either the frontend can't talk to MySQL or the tables don't exist. You'll know based on the error you get. Also, if the permissions on the log directories are not writable by lighttpd, you won't see a thing, so make sure /srv/www/obs/frontend/log and any files in there are writable by lighttpd:lighttpd. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, Luke Your help was greatly appreciated. I've used "production_slave" already before, and I run your command : -------------------------------------- # script/console production_slave Loading production_slave environment (Rails 2.0.2) /srv/www/obs/frontend/config/environment.rb:98: warning: already initialized constant SEPARATORS
User.find_by_login('Admin') => #<User id: 1, created_at: "2009-08-25 17:05:28", updated_at: "2009-08-25 17:05:28", last_logged_in_at: "2009-08-25 17:05:28", login_failure_count: 0, login: "Admin", email: "root@localhost", realname: "", password: "e73a4697a25387cee5fb1b54e3253b30", password_hash_type: "md5", password_salt: "tdTOqHcfOC", password_crypted: "osQq6OKjF0f8I", state: 2, source_host: nil, source_port: nil, rpm_host: nil, rpm_port: nil, adminnote: nil>
================================================
I'll try to setup 1.6 on my enviroment, and come back after that. Thanks ! Luke Imhoff <luke@cray.com> writes:
Jian Lee wrote:
Hi, your guys!
I want install obs on CentOS 5, after I build obs-server-0.9.1-4.1.src.rpm, and installed
------------------------- # rpm -qa|grep obs obs-worker-0.9.1-4.1 obs-api-0.9.1-4.1 obs-server-0.9.1-4.1 =========================
follow the cache page on google http://203.208.39.132/search?q=cache:Dm1eKDTlDg4J:https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/dist/README.SETUP+/srv/www/obs/webclient&cd=1&hl=zh-CN&ct=clnk&gl=cn&st_usg=ALhdy2-CIRL7BuSdU0Mm0wjPK0gG3mcGUA
and install guide on http://en.opensuse.org/Build_Service/Build_Service_Installation_Tutorial/Cen...
use the default configure but just modified the ip interface and username/password of mysql database , and create the needed empty database in mysql server .
but when i login the web interface, i get following errors:
--------------------------- OpenSUSE Webclient Error:
Error Details: Errorcode: 500 Message: Unable to connect to API ===========================
no useful info I found in /srv/obs/log/ and /var/log/lighttpd/, anyone can give me a help?
Thanks for all your guys!
Did you go with virtual hosts or ips for the obs.conf for lighttpd? Are the virtual hosts resolvable from the local machine? (i.e. did you add them to /etc/hosts or your DNS?)
The README.SETUP says to put the username and password in the production' section:
* Configure your MySQL user and password in in the "production:" section of these files:
/srv/www/obs/frontend/config/database.yml /srv/www/obs/webclient/config/database.yml
but that's wrong. By default you'd be using the 'production_slave' environment in obs.conf:
rails_mode = "production_slave"
Also, you ran rake db:migrate on production_slave:
* populate the database
# cd /srv/www/obs/frontend/ # sudo -u lighttpd RAILS_ENV="production_slave" rake db:migrate
So, the tables for frontend are only available when using the production_slave environment, but if you followed the README.SETUP, your password and username may not be there. Add the username and password to the production_slave section, and NOT the production section.
You can also check if the frontend is sane by trying to load it from the console
cd /srv/www/obs/frontend sudo script/console production_slave
If that gives you prompt without errors then the frontend is working.
You can also try to find yourself, by doing
User.find_by_login('Admin')
If that doesn't work then either the frontend can't talk to MySQL or the tables don't exist. You'll know based on the error you get.
Also, if the permissions on the log directories are not writable by lighttpd, you won't see a thing, so make sure /srv/www/obs/frontend/log and any files in there are writable by lighttpd:lighttpd.
-- Jian Lee MSN : lijian.gnu@gmail.com Chinese Blog : http://jianlee.ylinux.org -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Adrian Schröter
-
Jian Lee
-
Luke Imhoff