Re[2]: [squid-users] 'Squid -k reconfigure' changes ownership of the swap.state file

2004-12-09 Thread Jafar Aliev
Good day.

HN Please file a bug report per the instructions in the Squid FAQ.

I can not do this because squid-cache.org's bugzilla does not send me
a password.

I was wrong in early posts: moving cache directory to default
location does not solve the problem completely - it persist till now.

-- 
Best regards,
 Jafar Aliev admin at usn dot ru
 usn.ru administrator



Re[3]: [squid-users] 'Squid -k reconfigure' changes ownership of the swap.state file

2004-12-09 Thread Jafar Aliev
Another good day.

HN Please file a bug report per the instructions in the Squid FAQ.

JA I can not do this because squid-cache.org's bugzilla does not send me
JA a password.

JA I was wrong in early posts: moving cache directory to default
JA location does not solve the problem completely - it persist till now.

This is not a joke. After I send previous mesage, I immediately recieve
the bugzilla password and ... the bug disappeared. I am very confused.

-- 
Best regards,
 Jafar Aliev admin at usn dot ru
 usn.ru administrator



Re[4]: [squid-users] 'Squid -k reconfigure' changes ownership of the swap.state file

2004-12-02 Thread Jafar Aliev
Good day.

EM  Check with :
 
EM  % squid -k parse

EM  further, to see that there are no other errors in squid.conf.
EM  Watchout for any errors  or warnings too in cache.log when a cold start of 
squid
EM  is performed.

Squid -k parse does not produce any errors or warings.
There are no errors in cache.log file after cold start.
(except strange
chdir: /var/squid/cache: (2) No such file or directory
but I didn't find any occurrence of /var/squid/cache in config file)

---[cache.log 
begin]
2004/11/12 18:26:09| Starting Squid Cache version 2.5.STABLE7 for 
i686-pc-linux-gnu...
2004/11/12 18:26:09| Process ID 18046
2004/11/12 18:26:09| With 1024 file descriptors available
2004/11/12 18:26:09| Performing DNS Tests...
2004/11/12 18:26:09| Successful DNS name lookup tests...
2004/11/12 18:26:09| DNS Socket created at 0.0.0.0, port 61016, FD 4
2004/11/12 18:26:09| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2004/11/12 18:26:09| Adding nameserver ...cuted... from /etc/resolv.conf
2004/11/12 18:26:09| Adding nameserver ...cuted... from /etc/resolv.conf
2004/11/12 18:26:09| helperOpenServers: Starting 10 'squidGuard' processes
2004/11/12 18:26:09| Unlinkd pipe opened on FD 19
2004/11/12 18:26:09| Swap maxSize 512000 KB, estimated 39384 objects
2004/11/12 18:26:09| Target number of buckets: 1969
2004/11/12 18:26:09| Using 8192 Store buckets
2004/11/12 18:26:09| Max Mem  size: 131072 KB
2004/11/12 18:26:09| Max Swap size: 512000 KB
2004/11/12 18:26:09| Store logging disabled
2004/11/12 18:26:09| Rebuilding storage in /squid.cache (CLEAN)
2004/11/12 18:26:09| Using Least Load store dir selection
2004/11/12 18:26:09| chdir: /var/squid/cache: (2) No such file or directory
2004/11/12 18:26:09| Current Directory is /etc/squid
2004/11/12 18:26:09| Loaded Icons.
2004/11/12 18:26:10| Accepting HTTP connections at 192.168.1.1, port 3128, FD 
20.
2004/11/12 18:26:10| Ready to serve requests.
2004/11/12 18:26:10| Store rebuilding is  9.4% complete
2004/11/12 18:26:10| Done reading /squid.cache swaplog (43713 entries)
2004/11/12 18:26:10| Finished rebuilding storage from disk.
2004/11/12 18:26:10| 43713 Entries scanned
2004/11/12 18:26:10| 0 Invalid entries.
2004/11/12 18:26:10| 0 With invalid flags.
2004/11/12 18:26:10| 43713 Objects loaded.
2004/11/12 18:26:10| 0 Objects expired.
2004/11/12 18:26:10| 0 Objects cancelled.
2004/11/12 18:26:10| 0 Duplicate URLs purged.
2004/11/12 18:26:10| 0 Swapfile clashes avoided.
2004/11/12 18:26:10|   Took 0.7 seconds (60160.1 objects/sec).
2004/11/12 18:26:10| Beginning Validation Procedure
2004/11/12 18:26:10|   Completed Validation Procedure
2004/11/12 18:26:10|   Validated 43713 Entries
2004/11/12 18:26:10|   store_swap_size = 460796k
2004/11/12 18:26:10| storeLateRelease: released 0 objects
---[cache.log 
end]

-- 
Best regards,
 Jafar Aliev admin at usn dot ru
 usn.ru administrator



Re: [squid-users] 'Squid -k reconfigure' changes ownership of the swap.state file

2004-12-02 Thread Jafar Aliev
tood day.
 
 (except strange
 chdir: /var/squid/cache: (2) No such file or directory
 but I didn't find any occurrence of /var/squid/cache in config file)


EM You should treat that message as an error and resolve it :
EM make sure that cache dirs defined in squid.conf exist and
EM are accessible by the user squid runs as.

I remake this directory (/var/squid/cache) with squid user
rights (squid.squid). Error in cache.log disappear, but the problem
still exists. 'Squid -k reconfigure' does 'Segment Violation...dying'
with squid.

...continued...

After I remount filesystem with squid cache to default position
(/var/squid/cache) all have been worked well. In conclusion, there are
a bug in the squid code that does not allow cache be positioned on
other than default location.

Do I have to report this to developers? :-)

-- 
Best regards and excuses for my English,
 Jafar Aliev admin at usn dot ru
 usn.ru administrator



Re: [squid-users] 'Squid -k reconfigure' changes ownership of the swap.state file

2004-11-29 Thread Jafar Aliev

 ---[squid.conf begin]
 cache_effective_user=squid
 cache_effective_user=squid
 cache_dir ufs /squid.cache 500 16 256
 ---[squid.conf end]--

EM   1) Why do you put the same directive twice in squid.conf ?
EM   2) The syntaxt is wrong and should be like :

EM cache_effective_user squid

Good day.

Of course, I've been wrong in posted massage but in real config
everything is ok:

---[squid.conf begin]
cache_effective_user squid
cache_effective_group squid
---[squid.conf end]--


-- 
Best regards,
 Jafar Aliev admin at usn dot ru
 usn.ru administrator



[squid-users] 'Squid -k reconfigure' changes ownership of the swap.state file

2004-11-26 Thread Jafar Aliev
Good day.

I have squid 2.5-stable7 installed on linux 2.4.27 box (Slackware 10).
When I try reconfigure squid with 'Squid -k reconfigure' it dies with
this messages in cache.log:

---[cache.log 
start]-
2004/11/10 18:19:29| Reconfiguring Squid Cache (version 2.5.STABLE7)...
2004/11/10 18:19:29| FD 20 Closing HTTP connection
FATAL: Received Segment Violation...dying.
2004/11/10 18:19:29| storeDirWriteCleanLogs: Starting...
2004/11/10 18:19:30|   Finished.  Wrote 43060 entries.
2004/11/10 18:19:30|   Took 0.1 seconds (542194.5 entries/sec).
2004/11/10 18:19:53| Starting Squid Cache version 2.5.STABLE7 for 
i686-pc-linux-gnu...
2004/11/10 18:19:53| Process ID 10994
2004/11/10 18:19:53| With 1024 file descriptors available
2004/11/10 18:19:53| Performing DNS Tests...
2004/11/10 18:19:53| Successful DNS name lookup tests...
2004/11/10 18:19:53| DNS Socket created at 0.0.0.0, port 61012, FD 4
2004/11/10 18:19:53| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2004/11/10 18:19:53| Adding nameserver [..cuted..] from /etc/resolv.conf
2004/11/10 18:19:53| Adding nameserver [..cuted..] from /etc/resolv.conf
2004/11/10 18:19:53| helperOpenServers: Starting 10 'squidGuard' processes
2004/11/10 18:19:54| Unlinkd pipe opened on FD 19
2004/11/10 18:19:54| Swap maxSize 512000 KB, estimated 39384 objects
2004/11/10 18:19:54| Target number of buckets: 1969
2004/11/10 18:19:54| Using 8192 Store buckets
2004/11/10 18:19:54| Max Mem  size: 131072 KB
2004/11/10 18:19:54| Max Swap size: 512000 KB
2004/11/10 18:19:54| Store logging disabled
2004/11/10 18:19:54| /squid.cache/swap.state: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Squid Cache (Version 2.5.STABLE7): Terminated abnormally.
CPU Usage: 0.030 seconds = 0.020 user + 0.010 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 345
---[cache.log 
end]---

when I look at swap.state this file I notice that ownership has changed to
root.squid instead of original squid.squid. After manually change
ownershp back to squid.squid Squid start normally.

When I reconfigure it with 'squid -k shutdown ' ... 'squid' all
done well.

---[squid.conf begin]
cache_effective_user=squid
cache_effective_user=squid
cache_dir ufs /squid.cache 500 16 256
---[squid.conf end]--

Squid configure string:
 ./configure  --disable-wccp --disable-snmp --enable-delay-pools \
--disable-ident-lookups --prefix=/usr/local --mandir=/usr/man \
--sysconfdir=/etc/squid --localstatedir=/var/squid --enable-async-io \
--enable-err-languages='English Russian-koi8-r'

Any ideas? Some help would be appreciate.
Thanks in advance.

-- 
Best regards and excuse for my English :-)
 Jafar Aliev admin at usn dot ru
 usn.ru administrator