Mailinglist Archive: opensuse-buildservice (306 mails)

< Previous Next >
Re: [opensuse-buildservice] anonymous access support
  • From: Jan Engelhardt <jengelh@xxxxxxxxxx>
  • Date: Wed, 30 Jun 2010 08:26:43 +0200 (CEST)
  • Message-id: <alpine.LSU.2.01.1006300820420.30439@xxxxxxxxxxxxxxx>

On Wednesday 2010-06-30 07:57, Adrian Schröter wrote:
On Wednesday 30 June 2010 05:15:25 Zhang, Vivian wrote:
Hi,
I have setup OBS 2.0.1 on my local machine and tried to enable anonymous
access.

Here is my config in /srv/www/obs/api/config/options.xml:

allow_anonymous: true
webui_host: build.obstest.sh.intel.com

Unfortunately, it does not work, the log reports :
Processing StatusController#workerstatus (for ::ffff:10.239.36.25 at
2010-06-30 11:09:50) [GET]
[D|# 8304] AUTH:
[D|# 8304] remote_host:
[D|# 8304] remote_addr: ::ffff:10.239.36.25
[D|# 8304] no authentication string was sent

Seems the request.env['REMOTE_HOST'] is NULL and it failed at the host check
at:
[...app/controllers/application_controller.rb]
if @http_user.nil? and CONFIG['allow_anonymous'] and CONFIG['webui_host']
and [ request.env['REMOTE_HOST'], request.env['REMOTE_ADDR'] ].include?(
CONFIG['webui_host'] )

Any comments?

Try to specify the ip addr as "webui_host". lighttpd 1.4 seems to
require that since it does no dns lookup for that.

Putting the address into webui_host doesn't change the situation
here, either.

If that does not help, I would be interessted in the output of
"request.env.inspect" near this code line.

08:20 ares:../obs/api # grep -r request.env.inspect .
grep: ./tmp/sockets/fcgi.socket-4: No such device or address
grep: ./tmp/sockets/fcgi.socket-7: No such device or address
grep: ./tmp/sockets/fcgi.socket-10: No such device or address
grep: ./tmp/sockets/fcgi.socket-1: No such device or address
grep: ./tmp/sockets/fcgi.socket-0: No such device or address
grep: ./tmp/sockets/fcgi.socket-9: No such device or address
grep: ./tmp/sockets/fcgi.socket-3: No such device or address
grep: ./tmp/sockets/fcgi.socket-8: No such device or address
grep: ./tmp/sockets/fcgi.socket-6: No such device or address
grep: ./tmp/sockets/fcgi.socket-5: No such device or address
grep: ./tmp/sockets/fcgi.socket-2: No such device or address
grep: ./tmp/sockets/fcgi.socket-11: No such device or address

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups