LinuxForum.Fans
Тема

Не стартует squid

Автор: Shandor 55 сообщений 12117 просмотров
#276235

yum install mc

http://download.clarkconnect.com/community/5.0/repodata/repomd.xml: [Errno 14] HTTP Error 404:not found
trying othe mirror.
error: cannot retrive repository metadata (repomd.xml) for repository: base-os.
please verify its path and try again

закоментировал 643, он написал
squid is stopped
ACL name 'webconfig_lan' not defined!
FATAL: Bungled squid.conf line 644: http_access allow webconfig_lan
Squid Cache (Version 2.6.STABLE21): Terminated abnormally.

ее тоже закоментировал.
reboot
и все он стартанул при загрузке правда с многоточием.


пишу squid -z
выдает следующее:

Squid is already running! Process ID 4082

пишу:
ps aux | grep squid
reboot

the system is going down for reboot now!

squid -z
squid is already running! ProcessID 2729

service squid start
squid start failed
chkconfig --level 35 squid on
/etc/init.d/squid status
squid (pid 4075) is running...

squid -z
squid is already running! Process ID 4077

#276251
"Noob" написал:
пишу:
ps aux | grep squid
reboot

+

"Noob" написал:
squid -z
squid is already running! Process ID 4077

издеваетесь?

/etc/init.d/squid stop
потом
squid -z
потом:
/etc/init.d/squid start

#276378
"i2ks" написал:
издеваетесь?

нисколько....
пробовал все подряд лишь бы заработало
/etc/init.d/squid stop
stopping squid: .................................................
потом
squid -z
squid is already running! Process ID 4347

потом:
/etc/init.d/squid start
squid start failed

не представляю чего ему надо...

#276381

1) kill -9 `pgrep squid`
2) squid -z
3) /etc/init.d/squid start

#276389

kill -9 `pgrep squid`

2) squid -z
creating swap directories

3) /etc/init.d/squid start
starting squid ok


перезагрузил и вот что пишет щас

Checking filesystems
/contains a file system with errors, check forced.
/:
Inodes that were part of a corrupted orphan linked list found.
/:unexpected inconsistency; run fsck manually
(i.e., without -a or -p options)
failed
an error occurred during the file system check.
dropping you to a shell; the system will reboot
when you leave the shell.
give root password for maintenance
(or type control-d to continue):

#276392
"Noob" написал:
Checking filesystems
/contains a file system with errors, check forced.
/:
Inodes that were part of a corrupted orphan linked list found.
/:unexpected inconsistency; run fsck manually
(i.e., without -a or -p options)
failed
an error occurred during the file system check.
dropping you to a shell; the system will reboot
when you leave the shell.
give root password for maintenance
(or type control-d to continue):

и чего? переводить надо?

#276395

все равно не пашет..

что означает многоточие?
когда загружается starting squid: ... [ok]

т.е. он как-то неправильно работает?

#276486

спасибо большое, конечно, но за 2 недели столько перечитано в инете про линукс и ошибки всякие, что голова кругом идет и уже ничего не соображаю, полнейшая каша в голове.
вопрос такой, может ли быть проблема в этом:

Checking configuration files for slapd warning

при загрузке пишет.

#276494
"Noob" написал:
Checking configuration files for slapd warning

Ну наскоко мне извесно это об том что есть какието предуприждение какие относятса к конфигу LDAP, может из за этого не стартует LDAP, а без него не будет нормально работать кальмар. У вас же в кальмар должен пользователей брать из LDAP, верно??
Смотрите логи LDAP или системы на что оно там ругаетса.

Смотря на ваше прежние посты могу сказать не спешыте, когда что то делаете в линуксе, его перегружать, а то смотрю с вашыми перегрузками уже проблемы с ФС начались.

#353262

Добрый день товарищи и у меня беда, чую в простой заковырке, но не пойму где...

налил сквида на центосе 5.8
прикрутил его к АД, лдапом и керберосом.
Заработало, но есть косяк.

если я запускаю как положено service squid start (/etc/init.d/squid start), то он запускается и не работает авторизация керберос.

В скрипте старта сквида надо было дописать вот такие строки:
KRB5_KTNAME=/etc/squid/proxy3.head.narcred.ru.keytab
export KRB5_KTNAME


KRB5RCACHETYPE=none
export KRB5RCACHETYPE


если я запускаю вот так:
sh /etc/init.d/squid start
все зашибись работает....

заметил, что pid файл создается в первом случае от squid:squid
а во втором случае root:squid

куда копать...
где-то права не те, но как найти...

#353265

А какие у вас права на директории что относятса к сквиду и к дмректории с кешем особенно???
Может керберос тоже должен создать pid файл для работы. В первом варианте он не может его создать, а во втором создаёт.От какого пользователя у вас должен работать кальмар?

#353289

Да какие только не делал.....
все без толку...
на данный момент вообще рекурсивно root:squid 777 сделал

на папку /var/log/squid/*
на папку /etc/squid/*
/etc/krb5.conf

может еще куда?

#353296

А покажите но лог старта сквида после команды service squid start

#353399
text
2013/12/07 09:40:02| Starting Squid Cache version 3.1.10 for i386-redhat-linux-gnu...
2013/12/07 09:40:02| Process ID 2972
2013/12/07 09:40:02| With 1024 file descriptors available
2013/12/07 09:40:02| Initializing IP Cache...
2013/12/07 09:40:02| DNS Socket created at [::], FD 7
2013/12/07 09:40:02| DNS Socket created at 0.0.0.0, FD 8
2013/12/07 09:40:02| Adding domain host.domain.ru from /etc/resolv.conf
2013/12/07 09:40:02| Adding nameserver 10.50.0.100 from /etc/resolv.conf
2013/12/07 09:40:02| helperOpenServers: Starting 5/5 'squid_kerb_auth' processes
2013/12/07 09:40:02| helperOpenServers: Starting 5/5 'squid_ldap_group' processes
2013/12/07 09:40:02| User-Agent logging is disabled.
2013/12/07 09:40:02| Referer logging is disabled.
2013/12/07 09:40:02| Unlinkd pipe opened on FD 33
2013/12/07 09:40:02| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2013/12/07 09:40:02| Store logging disabled
2013/12/07 09:40:02| Swap maxSize 10240000 + 262144 KB, estimated 807857 objects
2013/12/07 09:40:02| Target number of buckets: 40392
2013/12/07 09:40:02| Using 65536 Store buckets
2013/12/07 09:40:02| Max Mem  size: 262144 KB
2013/12/07 09:40:02| Max Swap size: 10240000 KB
2013/12/07 09:40:02| Version 1 of swap file with LFS support detected...
2013/12/07 09:40:02| Rebuilding storage in /var/log/squid/cache/ (CLEAN)
2013/12/07 09:40:02| Using Least Load store dir selection
2013/12/07 09:40:02| Set Current Directory to /var/log/squid/cache/
2013/12/07 09:40:02| Loaded Icons.
2013/12/07 09:40:02| Accepting  HTTP connections at 10.50.0.3:3128, FD 36.
2013/12/07 09:40:02| HTCP Disabled.
2013/12/07 09:40:02| Squid plugin modules loaded: 0
2013/12/07 09:40:02| Adaptation support is off.
2013/12/07 09:40:02| Ready to serve requests.
2013/12/07 09:40:02| Done reading /var/log/squid/cache/ swaplog (922 entries)
2013/12/07 09:40:02| Finished rebuilding storage from disk.
2013/12/07 09:40:02|       922 Entries scanned
2013/12/07 09:40:02|         0 Invalid entries.
2013/12/07 09:40:02|         0 With invalid flags.
2013/12/07 09:40:02|       922 Objects loaded.
2013/12/07 09:40:02|         0 Objects expired.
2013/12/07 09:40:02|         0 Objects cancelled.
2013/12/07 09:40:02|         0 Duplicate URLs purged.
2013/12/07 09:40:02|         0 Swapfile clashes avoided.
2013/12/07 09:40:02|   Took 0.02 seconds (42702.98 objects/sec).
2013/12/07 09:40:02| Beginning Validation Procedure
2013/12/07 09:40:02|   Completed Validation Procedure
2013/12/07 09:40:02|   Validated 1869 Entries
2013/12/07 09:40:02|   store_swap_size = 28492
2013/12/07 09:40:03| storeLateRelease: released 0 objects

попытка зайти на сайт 2013/12/07 09:40:50| authenticateNegotiateHandleReply: Error validating user via Negotiate. Error returned 'BH gss_acquire_cred() failed: Unspecified GSS failure. Minor code may provide more information. ' 2013/12/07 09:40:50| squid_kerb_auth: INFO: User not authenticated

а вот через sh /etc/init.d/squid start

2013/12/07 09:45:50| Starting Squid Cache version 3.1.10 for i386-redhat-linux-gnu... 2013/12/07 09:45:50| Process ID 3067 2013/12/07 09:45:50| With 1024 file descriptors available 2013/12/07 09:45:50| Initializing IP Cache... 2013/12/07 09:45:50| DNS Socket created at [::], FD 7 2013/12/07 09:45:50| DNS Socket created at 0.0.0.0, FD 8 2013/12/07 09:45:50| Adding domain [b]host.domain.ru[/b] from /etc/resolv.conf 2013/12/07 09:45:50| Adding nameserver 10.50.0.100 from /etc/resolv.conf 2013/12/07 09:45:50| helperOpenServers: Starting 5/5 'squid_kerb_auth' processes 2013/12/07 09:45:50| helperOpenServers: Starting 5/5 'squid_ldap_group' processes 2013/12/07 09:45:50| User-Agent logging is disabled. 2013/12/07 09:45:50| Referer logging is disabled. 2013/12/07 09:45:50| Unlinkd pipe opened on FD 33 2013/12/07 09:45:50| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec 2013/12/07 09:45:50| Store logging disabled 2013/12/07 09:45:50| Swap maxSize 10240000 + 262144 KB, estimated 807857 objects 2013/12/07 09:45:50| Target number of buckets: 40392 2013/12/07 09:45:50| Using 65536 Store buckets 2013/12/07 09:45:50| Max Mem size: 262144 KB 2013/12/07 09:45:50| Max Swap size: 10240000 KB 2013/12/07 09:45:50| Version 1 of swap file with LFS support detected... 2013/12/07 09:45:50| Rebuilding storage in /var/log/squid/cache/ (CLEAN) 2013/12/07 09:45:50| Using Least Load store dir selection 2013/12/07 09:45:50| Set Current Directory to /var/log/squid/cache/ 2013/12/07 09:45:50| Loaded Icons. 2013/12/07 09:45:50| Accepting HTTP connections at 10.50.0.3:3128, FD 36. 2013/12/07 09:45:50| HTCP Disabled. 2013/12/07 09:45:50| Squid plugin modules loaded: 0 2013/12/07 09:45:50| Adaptation support is off. 2013/12/07 09:45:50| Ready to serve requests. 2013/12/07 09:45:50| Done reading /var/log/squid/cache/ swaplog (922 entries) 2013/12/07 09:45:50| Finished rebuilding storage from disk. 2013/12/07 09:45:50| 922 Entries scanned 2013/12/07 09:45:50| 0 Invalid entries. 2013/12/07 09:45:50| 0 With invalid flags. 2013/12/07 09:45:50| 922 Objects loaded. 2013/12/07 09:45:50| 0 Objects expired. 2013/12/07 09:45:50| 0 Objects cancelled. 2013/12/07 09:45:50| 0 Duplicate URLs purged. 2013/12/07 09:45:50| 0 Swapfile clashes avoided. 2013/12/07 09:45:50| Took 0.02 seconds (42794.15 objects/sec). 2013/12/07 09:45:50| Beginning Validation Procedure 2013/12/07 09:45:50| Completed Validation Procedure 2013/12/07 09:45:50| Validated 1869 Entries 2013/12/07 09:45:50| store_swap_size = 28492

А вот я на сайт успешно вошел:

text
2013/12/07 09:45:50| squid_kerb_auth: INFO: User prasolov@host.DOMAIN.RU authenticated
Connected OK
group filter '(&(objectclass=user)(sAMAccountName=prasolov)(memberof=CN=inet_access_all,CN=Users,DC=host,DC=domain,DC=ru))', searchbase 'dc=host,dc=domain,dc=ru'
2013/12/07 09:45:51| storeLateRelease: released 0 objects
Войдите или зарегистрируйтесь, чтобы ответить.