Article delegate-en/424 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: No URL logging
14 Apr 1999 18:39:20 GMT Mario Lobo <psiaqbdyi-rcwevebroulr.ml@ml.delegate.org>


At 14:51 14/04/99 JST, you wrote:
>On 04/13/99(21:13) you "Mario de Oliveira Lobo Neto"
<Mlobo.Sup.EAR@ear.com.br> wrote
>in <_A416@delegate-en.ML_>
> |  delegated -P8080 SERVER=http PROXY=proxy-host:8080 CACHE=no 
> |LOGDIR=/var/spool/delegate/log
> |
> |I it is really doing the job of relaying the requests to the 
> |proxy-host very well. But I can't find where the relayed URLs are 
> |being logged. They are not at the LOGDIR. LOGDIR only has 
> |initialization messages from delegate when it's starting. Where is 
> |delegate logging the relayed URLs ? Which file /directory?
>
>It should be at:
>
>  /var/spool/delegate/log/8080.http
>

It is. But it's zero (0) bytes, i.e., no logging is going on. I CHMOD it to
"nobody" user and group, and delegate is still not logging. The 8080.http is
still zero length.


>By the way, what do you mean by "initialization messages" and in which
>file they were?

I've added the command line option LOGFILE=/var/spool/delegate/log/gatew.log.
After delegate starts (invoked from rc.local), gatew.log has the following:

04/14 13:17:27.24 [275] 0+0: PORT> -P8080
04/14 13:17:27.60 [275] 0+0: --INITIALIZATION START: 5.9.1 on
freeBSD/2.2.8-RELEASE--
04/14 13:17:27.62 [276] 0+0: -- Fork(daemon): 1 -> 276
04/14 13:17:27.63 [276] 0+0: server_open(delegate,:8080,listen=20)
04/14 13:17:27.63 [276] 0+0: server_open(delegate,:8080) BOUND
04/14 13:17:27.63 [276] 0+0: <DeleGate/5.9.1 by ysato@etl.go.jp> [276]
-P8080 READY
04/14 13:17:27.63 [276] 0+0: PORT= 8080/7
04/14 13:17:27.78 [276] 0+0: OWNER=nobody => OWNER=nobody/nobody(nobody/nobody)
04/14 13:17:27.83 [276] 0+0: REMITTABLE = http,https/{443,563},gopher,ftp,wais
04/14 13:18:28.30 [276] 0+0: {R} CACHE cannot create:
/tmp/delegate/resolvy/82a6930ddab3c72930670e6b37156b9b/byname/09
04/14 13:18:28.30 [276] 0+0: RELIABLE[3]: + (ClientSockHost) = - / 0
04/14 13:18:28.30 [276] 0+0: RELIABLE[4]: + (OutgoingIF) = .o / 0
04/14 13:18:28.30 [276] 0+0: CMAP/SRC[3]: + (ClientSockHost) = - / 0
04/14 13:18:28.30 [276] 0+0: CMAP/SRC[4]: + (OutgoingIF) = .o / 0
04/14 13:18:28.30 [276] 0+0: ADMIN=mlobo@ear..br protocol=http(specialist)
04/14 13:18:28.32 [276] 0+0: WORKDIR=/var/spool/delegate/work/8080
04/14 13:18:28.38 [276] 0+0: MOUNT[0]=[0] /-* = 
04/14 13:18:28.38 [276] 0+0: MOUNT[1]=[1] /=* = 
04/14 13:18:28.38 [276] 0+0: MOUNT[2]=[2] /* http://-/* 
04/14 13:18:28.41 [276] 0+0: gethostbyname(-) unknown[0.00s] 
04/14 13:18:28.41 [276] 0+0: arg[2] SERVER=http
04/14 13:18:28.41 [276] 0+0: arg[3] PROXY=cache.nlink.com.br:3128
04/14 13:18:28.41 [276] 0+0: arg[4] CACHE=no
04/14 13:18:28.41 [276] 0+0: arg[5] LOGDIR=/var/spool/delegate/log
04/14 13:18:28.41 [276] 0+0:arg[6] LOGFILE=/var/spool/delegate/log/gatew.log
04/14 13:18:28.41 [276] 0+0: TMPFILE: cannot create (13) =
/tmp/delegate/dg276.2.924106708
04/14 13:18:28.53 [276] 0+0: DELEGATE_Modified[0]: 37132fd9
04/14 13:18:28.53 [276] 0+0: --INITIALIZATION DONE--

>I think one possibility for the cause of your problem can be relevant
>to the permission of your LOGDIR directory, so I'd like to know the
>result of the following command on your host, and in which owner you
>invoked your DeleGate.

Since "nobody" is the owner of delegate and gatew.log is working fine,
I granted full access to "nobody" for EVERYTHING inside /var/spool/delegate
directory and bellow (including 8080.http). The initialization log you just
was written to LOGFILE with no trouble at all. I also don't understand why
it complains about the TMPFILE, which is also inside a directory that
"nobody" also has full access to. Despite of all that, the 8080.http is
still zero length.

What could be wrong ?

Thanks once more,
Mario Lobo - American School of Recife


  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V