/ Zope / Apsis / Pound Mailing List / Archive / 2005 / 2005-07 / Problem with start pounds

[ << ] [ >> ]

[ Corrupted file download / "webmaster" ... ] [ Re: [Pound Mailing List] Signal HUP to reload ... ]

Problem with start pounds
=?ISO-8859-2?Q?=A3ukasz_Jagie=B3=B3o?= <lukasz.jagiello(at)zjednoczenie.com>
2005-07-12 14:28:48 [ SNIP ]
Hi,

I build pounds from spec - pound.spec (PLD Distribution) nothink special
inside just normal make with all options from configure and i got
problem. Config looks like this one:

#v+
User nobody
Group nobody
RootJail /usr/share/empty
ListenHTTP 127.0.0.1,81
ExtendedHTTP 1

# Images server(s)
UrlGroup ".*.(jpg|gif)"
BackEnd 127.0.0.1,80,1
Session 0
EndGroup

# Block all requests for /forbidden
UrlGroup "/forbidden.*"
Session 0
EndGroup

# Catch-all server(s)
UrlGroup ".*"
BackEnd 127.0.0.1,80,1
BackEnd 127.0.0.1,80,1
Session 300
EndGroup
#v-

Next i try run pound:

#v+
[root(at)p0x root]# /etc/init.d/pound start
Uruchamianie usługi pound.....................................[PROBLEM]
#v-

I check /var/messages and got somethink like this:

#v+
[root(at)p0x root]# tail /var/log/messages 
Jul 12 13:45:07 p0x pound: starting...
Jul 12 13:45:47 p0x last message repeated 2 times
Jul 12 13:45:54 p0x pound: starting...
Jul 12 13:45:54 p0x pound: pound startup  failed
Jul 12 13:45:55 p0x pound: starting...
Jul 12 13:45:55 p0x pound: pound startup  failed
Jul 12 13:46:32 p0x pound: starting...
Jul 12 13:46:40 p0x pound: pound startup  failed
Jul 12 13:52:52 p0x pound: starting...
Jul 12 13:52:53 p0x pound: pound startup  failed
#v-

Nothink special co i use strace:

#v+
[root(at)p0x root]# strace pound -f /etc/pound/pound.cfg
[...]
read(4, "User nobody\nGroup nobody\nRootJai"..., 4096) = 360
gettimeofday({1121169253, 488762}, NULL) = 0
open("/etc/resolv.conf", O_RDONLY)      = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=83, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ffe000 read(5, "nameserver 192.168.2.1\nnameserve"..., 4096) =
83 read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0xb7ffe000, 4096)                = 0
brk(0x80dc000)                          = 0x80dc000
time([1121169253])                      = 1121169253
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=961, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=961, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=961, ...}) = 0
send(3, "<27>Jul 12 13:54:13 pound: unkno"..., 66, MSG_NOSIGNAL) = 66
exit_group(1)                           = ?
#v-

... and still dunno whats wrong. Anyone got any idea how to fix this ?

-- 
*|    __   _________                                          |*
*|   / /  / ___/ __/  Łukasz Jagiełło                         |*
*|  / /__/ /__/ _/    email : lcf<at>zjednoczenie<dot>com     |*
*| /____/\___/_/      ul. Czyżewskiego 14 80-336 Gdańsk-Oliwa |*

Re: [Pound Mailing List] Problem with start pounds
Robert Segall <roseg(at)apsis.ch>
2005-07-12 14:44:42 [ SNIP ]
On Tue, 12 Jul 2005 14:28:48 +0200 __ukasz Jagie____o
<lukasz.jagiello(at)zjednoczenie.com> wrote:

> Hi,
> 
> I build pounds from spec - pound.spec (PLD Distribution) nothink
> special inside just normal make with all options from configure and i
> got problem. Config looks like this one:
> 
> #v+
> User nobody
> Group nobody
> RootJail /usr/share/empty
> ListenHTTP 127.0.0.1,81
> ExtendedHTTP 1
> 
> # Images server(s)
> UrlGroup ".*.(jpg|gif)"
> BackEnd 127.0.0.1,80,1
> Session 0
> EndGroup
> 
> # Block all requests for /forbidden
> UrlGroup "/forbidden.*"
> Session 0
> EndGroup
> 
> # Catch-all server(s)
> UrlGroup ".*"
> BackEnd 127.0.0.1,80,1
> BackEnd 127.0.0.1,80,1
> Session 300
> EndGroup
> #v-

There is no such thing as "Session 300" (or any other number). You need
to specify the session type and (possibly) id. See the man page for full
details. In any case "Session 0" is not required or useful.

> Next i try run pound:
> 
> #v+
> [root(at)p0x root]# /etc/init.d/pound start
> Uruchamianie us__ugi
> pound.....................................[PROBLEM]#v-

No idea where you got that from or what it means, but then I never heard
of a PLD distribution or a pound.spec either...
-- 
Robert Segall
Apsis GmbH
Postfach, Uetikon am See, CH-8707
Tel: +41-44-920 4904

Re: [Pound Mailing List] Problem with start pounds
Lukasz 'LCF' Jagiello <lukasz.jagiello(at)zjednoczenie.com>
2005-07-12 14:57:12 [ SNIP ]
On Tue, 12 Jul 2005 14:44:42 +0200
Robert Segall <roseg(at)apsis.ch> wrote:

> There is no such thing as "Session 300" (or any other number). You
> need to specify the session type and (possibly) id. See the man page
> for full details. In any case "Session 0" is not required or useful.

Ok, i fix that and problem looks same.

> No idea where you got that from or what it means,

It's simple start script witch run pound -f /etc/pound/pound.conf. It's
not importent do i run it via script or just at shell command.

> but then I never heard of a PLD distribution

http://pld-linux.org/

-- 
*|    __   _________                                          |*
*|   / /  / ___/ __/  Łukasz Jagiełło                         |*
*|  / /__/ /__/ _/    email : lcf<at>zjednoczenie<dot>com     |*
*| /____/\___/_/      ul. Czyżewskiego 14 80-336 Gdańsk-Oliwa |*

Re: [Pound Mailing List] Problem with start pounds
Lukasz 'LCF' Jagiello <lukasz.jagiello(at)zjednoczenie.com>
2005-07-12 16:08:27 [ SNIP ]
On Tue, 12 Jul 2005 14:28:48 +0200
Łukasz Jagiełło <lukasz.jagiello(at)zjednoczenie.com> wrote:

> BackEnd 127.0.0.1,80,1
> BackEnd 127.0.0.1,80,1

Problem was here. Can't be 2 times same BackEnd. Delete one and
everythink works fine.

-- 
*|    __   _________                                          |*
*|   / /  / ___/ __/  Łukasz Jagiełło                         |*
*|  / /__/ /__/ _/    email : lcf<at>zjednoczenie<dot>com     |*
*| /____/\___/_/      ul. Czyżewskiego 14 80-336 Gdańsk-Oliwa |*

MailBoxer