View previous topic :: View next topic |
Author |
Message |
Saigneur Apprentice
Joined: 21 Oct 2004 Posts: 277 Location: Evry, Essonne, France (48°35'N, 02°15'E)
|
Posted: Wed Oct 05, 2005 3:33 pm Post subject: [Squid] Ne démarre pas, "Failed to open swap log" |
|
|
Hello
Bon ça va vous paraître con, y'a quasiment la réponse dans la question, pourtant je galère là dessus (je manque gravement de sommeil alors j'ai une (mauvaise ) excuse).
La situation : je déboule sur une Gentoo que je n'ai pas faite moi même, sur laquelle est déjà emergé Squid.
Je vais voir /etc/squid/squid.conf, je rentre quelques trucs aussi vite que me le permet une lecture attentive du patafard anglophone.
Voici les lignes "utiles" de mon squid.conf :
Code: |
cache_dir ufs /var/cache/squid 256 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_swap_log none
pid_filename /var/run/squid.pid
cache_effective_user squid
cache_effective_group squid
coredump_dir /var/cache/squid
|
Code: |
ls -lisah /var/cache/
377217 4,0K drwxr-xr-x 18 squid squid 4,0K oct 5 09:41 squid
ls -lisah /var/log/squid/
932574 4,0K drwxr-xr-x 2 root root 4,0K oct 5 16:34 .
930247 4,0K drwxr-xr-x 10 root root 4,0K oct 5 10:46 ..
932613 0 -rw-r----- 1 squid squid 0 oct 5 16:08 access.log
932612 24K -rw-r----- 1 squid squid 22K oct 5 16:45 cache.log
932614 0 -rw-r----- 1 squid squid 0 oct 5 16:08 store.log
932615 0 -rw-r--r-- 1 squid squid 0 oct 5 16:34 swap.log
ls -lisah /var/cache/squid/
total 72K
377217 4,0K drwxr-xr-x 18 squid squid 4,0K oct 5 09:41 .
375361 4,0K drwxr-xr-x 6 root root 4,0K oct 4 21:29 ..
377219 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 00
377476 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 01
377733 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 02
377990 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 03
378247 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 04
394049 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 05
378254 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 06
394556 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 07
378261 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 08
410177 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 09
378268 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 0A
410677 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 0B
378275 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 0C
426355 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 0D
378282 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 0E
426848 4,0K drwxr-xr-x 258 squid squid 4,0K oct 5 09:41 0F |
Qu'est ce qui ne fonctionne pas ? Dans /var/log/messages, j'ai ceci :
Code: |
2005/10/05 16:45:20| Starting Squid Cache version 2.5.STABLE10 for i686-pc-linux-gnu...
2005/10/05 16:45:20| Process ID 18685
2005/10/05 16:45:20| With 1024 file descriptors available
2005/10/05 16:45:20| DNS Socket created at 0.0.0.0, port 32769, FD 5
2005/10/05 16:45:20| Adding nameserver 10.1.4.11 from /etc/resolv.conf
2005/10/05 16:45:20| User-Agent logging is disabled.
2005/10/05 16:45:20| Referer logging is disabled.
2005/10/05 16:45:20| Unlinkd pipe opened on FD 10
2005/10/05 16:45:20| Swap maxSize 262144 KB, estimated 20164 objects
2005/10/05 16:45:20| Target number of buckets: 1008
2005/10/05 16:45:20| Using 8192 Store buckets
2005/10/05 16:45:20| Max Mem size: 16384 KB
2005/10/05 16:45:20| Max Swap size: 262144 KB
2005/10/05 16:45:20| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2005/10/05 16:45:20| none.00: (13) Permission denied
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Squid Cache (Version 2.5.STABLE10): Terminated abnormally.
CPU Usage: 0.024 seconds = 0.010 user + 0.014 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
|
Je sèche sur l'origine du problème, et suis désolé si c'est évident.
(j'ai déjà naturellement cherché un peu sur tous les forums, mais....)
Merci _________________ Tant pis si ça saigne, pourvu que ça rentre. |
|
Back to top |
|
|
Saigneur Apprentice
Joined: 21 Oct 2004 Posts: 277 Location: Evry, Essonne, France (48°35'N, 02°15'E)
|
Posted: Thu Oct 06, 2005 10:42 am Post subject: |
|
|
Résolu (merci le forum d'HFR, et à la nuit de sommeil )
Ai modifié le fichier squid.conf pour passer cache_swap_log de none à /var/cache/squid
Merci à tous ceux qui ont pris la peine de lire ! _________________ Tant pis si ça saigne, pourvu que ça rentre. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|