> I have check my urls.diff , permission 640, ower.group squid.squid

That's good!

> after issur squidGuard -u
> error still occour

That's not so good. ;-)

Let's talk about what we know:

1) squidGuard will not complain if you run squidGuard -u and there
are no *.diff files present in one or more destination directories.
2) Your squidGuard *is* complaining, so we know that it sees the
existence of a urls.diff file.
3) We also know that although it *sees* the file, it can't *read*
the file.
4) I still don't understand why it is appending a '$' to the end of
the file name. Does anybody else here know the answer to that one?

I had another hunch of what the problem might be but I wanted to
test it first on my system. I thought urls.diff might be in DOS file
format instead of *NIX format (DOS: lines end with hex 0d0a [CRLF],
*NIX: lines end with hex 0a [LF]). That can occur when a file is
created on a PC and uploaded to the *nix box. I created a urls.diff
file in DOS format, uploaded it, and changed ownership and
permissions to squid and 640. I ran squidGuard -u and checked
squidGuard.log - no errors. [That doesn't mean that it worked
properly, the extra character at the end of each line is probably in
the db, preventing a proper match for redirection. But I was looking
for the error you received in the log, so this wasn't the culprit.]

I then changed the urls.diff file back to owner root.root, and owner
read/write permission only. I ran squidGuard -u again and looked at
the squidGuard.log - no errors. This baffled me. The first thing
that crossed my mind was that it was because I was issuing the
squidGuard -u command as root. But looking at the log, squidGuard
did not spawn another process to handle the -u command; the pid
listed was one that was already running with owner squid. I still
don't understand why that worked.

Then I tried the squidGuard -u command as a normal user. That
generated plenty of errors, but they were all logged back to the
terminal window since the first complaint was that it couldn't open
the log file. I don't believe any of those errors are applicable to
the problem you are experiencing.

I have one more round of questions, and a request that you email me
with a few file attachments:

- How are you logged in when you issue the -u command?

- Run 'ps -u squid -f > rick.txt' and send rick.txt to me.

- Run the squidGuard -u command

- cd into your squidGuard log directory, and run 'tail -n 200 -v
squidGuard.log > ricklog.txt' and send ricklog.txt to me.

- Send copies of domains.diff and urls.diff

If you'll send those to me I'll be able to finish checking
everything I would check on my own system if I was experiencing the
same problem.

Rick


-----Original Message-----
From: Li Kin Chung [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 16, 2002 9:49 AM
To: Rick Matthews
Subject: RE: Error Encounter on urls.db update


Thanks Rick,

I have check my urls.diff , permission 640, ower.group squid.squid
after issur squidGuard -u

error still occour
2002-02-16 23:39:32 [1392] init
urllist /usr/local/squidGuard/db/dest/porn/urls
2002-02-16 23:39:32 [1392] loading
dbfile /usr/local/squidGuard/db/dest/porn/urls.db
2002-02-16 23:39:32 [1392] update
dbfile /usr/local/squidGuard/db/dest/porn/urls.db
2002-02-16 23:39:32 [1392]
/usr/local/squidGuard/db/dest/porn/urls.diff$: No
such file or directory
2002-02-16 23:39:32 [1392] going into emergency mode

here is my file list:
-rw-r-----    1 squid    squid     1265660 Feb 14 21:07 domains
-rw-r--r--    1 squid    squid     3653632 Feb 15 23:35 domains.db
-rw-r-----    1 squid    squid          16 Feb 15 23:34 domains.diff
-rw-r-----    1 squid    squid         849 Feb 16 16:30 expressions
-rw-r-----    1 squid    squid      676980 Feb 14 21:10 urls
-rw-r--r--    1 squid    squid     1015808 Feb 15 23:18 urls.db
-rw-r-----    1 squid    squid          22 Feb 16 15:29 urls.diff
-rw-r--r--    1 squid    squid      702433 Feb 16 15:28 urls.list

the domains.diff update correctly. ^_^
error only on urls.diff. >_<
The squidGuard redirect works fine after issue squid -k reconfig.
^_^

Thansk a lot.

Kc Li


Rick Matthews <[EMAIL PROTECTED]> said:

> > there is a error on update urls.db from urls.diff
> > after issue squidGuard -u
> >
> > squidGuard going into emergency mode,
> > error: /usr/local/squidGuard/db/dest/porn/urls.diff$: No such
file
> or directory
>
> I can't tell you about version 1.2 (because I haven't upgraded),
but
> the previous version of squidGuard would never complain about not
> being able to find a file unless it couldn't find the file.
>
> > squidGuard file owner and group are set to squid.squid
>
> Have you verified that the files have the appropriate permissions?
> (use chmod 640)
>
> > /usr/local/squidGuard/db/dest/porn/urls.diff$: No such file or
> directory
> > /usr/local/squidGuard/db/dest/porn/urls.diff%: No such file or
> directory
>
> I searched through my archived squidGuard logs and I couldn't find
a
> single instance where the "No such file or directory" error
message
> ADDED a character to the end of the file name for which it was
> searching. Why is it looking for urls.diff$ and urls.diff%?
>
> Rick Matthews
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Kc Li
> Sent: Saturday, February 16, 2002 1:39 AM
> To: [EMAIL PROTECTED]
> Subject: Error Encounter on urls.db update
>
>
> Hi Everybody
> there is a error on update urls.db from urls.diff
> after issue squidGuard -u
>
> squidGuard going into emergency mode,
> error: /usr/local/squidGuard/db/dest/porn/urls.diff$: No such file
> or directory
>
>
> my system: Redhat 7.2
>                     squidGuard 1.2
>                     BerkeleyDB 4.0
>                     Squid-2.4 stable1-5 (rpm package)
>
> squidGuard file owner and group are set to squid.squid
> ie /usr/local/squidGuard......
>
> update to domains.db is correct and finished without any error.(
> refer to squidGuard.log)
>
> please help ^_^
>
> Kc Li
>



Reply via email to