Mailinglist Archive: opensuse-buildservice (171 mails)

< Previous Next >
Re: [opensuse-buildservice] Setup obs on localhost - create project error.
  • From: 李建 <lijian.gnu@xxxxxxxxx>
  • Date: Wed, 2 Sep 2009 17:45:18 +0800
  • Message-id: <426c385a0909020245p69127aaen354dae2a8f8bb084@xxxxxxxxxxxxxx>
Hi, Adrian

thanks for you help !

yes, I modified the
/srv/www/obs/webclient/config/environments/production_slave.rb .

First I modified the obs.conf to :
-------------------------------------------
...
12 $SERVER["socket"] == "172.16.70.30:81\.?" {
13 rails_app = "frontend"
14 rails_root = "/srv/www/obs/frontend"
15 rails_procs = 5
16 # production/development are typical values here
17 rails_mode = "production_slave"
18
19 log_root = "/srv/www/obs/frontend/log"
20
21 include "vhosts.d/rails.inc"
22 }
...
================================

So, I modified the
/srv/www/obs/webclient/config/environments/production_slave.rb
-------------------------------------
...
23 FRONTEND_HOST = "172..16.70.30"
24 FRONTEND_PORT = 81
...
=======================

And, It have "craete project error"


Now , I use the default obs.conf
----------------------------------------
...
12 $HTTP["host"] =~ "127.0.42.2\.?" {
...
==========================

Use the default /srv/www/obs/webclient/config/environments/production_slave.rb:
--------------------------------------------------
...
23 FRONTEND_HOST = "127.0.42.2"
24 FRONTEND_PORT = 80
...
=============================

Last, I have "create project error" yet.


My start service is :
--------------------------------
/etc/init.d/mysqld start
rcobsrepserver start
rcobssrcserver start
rcobsscheduler start
rcobsworker start
rcobsdispatcher start
rcobspublisher start
/etc/init.d/lighttpd start
=================

Anyone can help me ?

thanks,

2009/9/2 Adrian Schröter <adrian@xxxxxxx>:
Am Mittwoch, 2. September 2009 10:40:37 schrieb 李建:
Hi, guys!

I've much question on setup obs on my localhost. :-)

Do you have configure the api server in the web server config ?

/srv/www/obs/webclient/config/environments/production_slave.rb

bye
adrian


my obs.conf is :
-----------------------------------------
  1 $HTTP["host"] =~ "172.16.70.30\.?" {
  2   rails_app   = "webclient"
  3   rails_root  = "/srv/www/obs/webclient"
  4   rails_procs = 5
  5   # production/development are typical values here
  6   rails_mode  = "production_slave"
  7
  8   log_root = "/srv/www/obs/webclient/log"
  9
 10   include "vhosts.d/rails.inc"
 11 }
 12 $SERVER["socket"] == "172.16.70.30:81\.?" {
 13   rails_app   = "frontend"
 14   rails_root  = "/srv/www/obs/frontend"
 15   rails_procs = 5
 16   # production/development are typical values here
 17   rails_mode  = "production_slave"
 18
 19   log_root = "/srv/www/obs/frontend/log"
 20
 21   include "vhosts.d/rails.inc"
 22 }
...
===============================

When I install obs pkgs, and configure database, initialed db.
I access http://172.16.70.30 which is my webclient ip, and
created project.

first, i clicked "Create New Project", the webclient convert to
http://172.16.70.30/project/new

second, I write some info and clicked "Creat Project",

third, the webclient convert to url --
 http://172.16.70.30/project/save_new, then get errors:
-----------------------------------------------
OpenSUSE Webclient Error:

Error Details:
Errorcode: unknown
Message: execution expired

Exception from Webclient:
Timeout::Error: execution expired
Stack Trace:

/usr/lib/ruby/1.8/timeout.rb:54:in `rbuf_fill'
/usr/lib/ruby/1.8/timeout.rb:56:in `timeout'
/usr/lib/ruby/1.8/timeout.rb:76:in `timeout'
/usr/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'
....
==================================

But, the project I created just now have  created successed already !
-------------------------------------------------
# cat /srv/obs/projects/GTES\:11.3.xml
<project name="GTES:11.3">
  <title>GTES 11.3 test environment</title>
  <description>GTES 11.3 test enviroment, at 172.16.70.30 host!

-- Jian Lee</description>
  <person role="maintainer" userid="Admin" />
  <person role="bugowner" userid="Admin" />
  <person role="maintainer" userid="Admin" />
</project>
================================

but when i logout and login with "Admin" account,
clicked "List of All projects" get none .

I'm puzzled on this, anyone can give me a suggest ?


--

Adrian Schroeter
SUSE Linux Products GmbH
email: adrian@xxxxxxx





--
Jian Lee [ http://jianlee.ylinux.org ]
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups