Saratov Linux User Group
 help / color / mirror / Atom feed
* Re: [Sarlug] squid СРОЧНО
@ 2008-03-26 12:05 linderoxxx
  2008-03-26 12:07 ` Конюков Александр
  0 siblings, 1 reply; 13+ messages in thread
From: linderoxxx @ 2008-03-26 12:05 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

2008/03/26 16:06:57| Initialising SSL.
2008/03/26 16:06:57| Using SSLv2/SSLv3.
2008/03/26 16:06:57| Setting RSA key generation callback.
2008/03/26 16:06:57| Setting certificate verification callback.
2008/03/26 16:06:57| Setting CA certificate locations.
2008/03/26 16:06:57| cachemgrRegister: registered config
2008/03/26 16:06:57| fd_open FD 4 epoll ctl
2008/03/26 16:06:57| fd_open FD 0 stdin
2008/03/26 16:06:57| fd_open FD 1 stdout
2008/03/26 16:06:57| fd_open FD 2 stderr
2008/03/26 16:06:57| leave_suid: PID 10364 called
WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
         messages will be sent to 'stderr'.
2008/03/26 16:06:57| WARNING: Closing open FD    2
2008/03/26 16:06:57| Starting Squid Cache version 2.6.STABLE17 for 
i686-pc-linux-gnu...
2008/03/26 16:06:57| Process ID 10364
2008/03/26 16:06:57| With 1024 file descriptors available
2008/03/26 16:06:57| Using epoll for the IO loop
2008/03/26 16:06:57| Performing DNS Tests...
2008/03/26 16:06:57| Successful DNS name lookup tests...
2008/03/26 16:06:57| DNS Socket created at 10.0.3.1, port 32886, FD 5
2008/03/26 16:06:57| Adding nameserver 88.147.129.15 from /etc/resolv.conf
2008/03/26 16:06:57| Adding nameserver 88.147.129.17 from /etc/resolv.conf
2008/03/26 16:06:57| User-Agent logging is disabled.
2008/03/26 16:06:57| Referer logging is disabled.
FATAL: Cannot open '/var/log/squid/access.mylog' for writing.
        The parent directory must be writeable by the
        user 'squid', which is the cache_effective_user
        set in squid.conf.
Squid Cache (Version 2.6.STABLE17): Terminated abnormally.
CPU Usage: 0.336 seconds = 0.296 user + 0.040 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Aborted (core dumped)



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Sarlug] squid СРОЧНО
  2008-03-26 12:05 [Sarlug] squid СРОЧНО linderoxxx
@ 2008-03-26 12:07 ` Конюков Александр
  2008-03-26 12:18   ` linderoxxx
  0 siblings, 1 reply; 13+ messages in thread
From: Конюков Александр @ 2008-03-26 12:07 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

linderoxxx пишет:

> FATAL: Cannot open '/var/log/squid/access.mylog' for writing.
>        The parent directory must be writeable by the
>        user 'squid', which is the cache_effective_user
>        set in squid.conf.

Ларчик просто открывался :)))


-- 
scor2k


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Sarlug] squid СРОЧНО
  2008-03-26 12:07 ` Конюков Александр
@ 2008-03-26 12:18   ` linderoxxx
  2008-03-26 12:20     ` Конюков Александр
                       ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: linderoxxx @ 2008-03-26 12:18 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

Конюков Александр wrote:
> linderoxxx пишет:
>
>> FATAL: Cannot open '/var/log/squid/access.mylog' for writing.
>>        The parent directory must be writeable by the
>>        user 'squid', which is the cache_effective_user
>>        set in squid.conf.
>
> Ларчик просто открывался :)))
>
>
Спасибо , но не всё еще интереснее...
что за права на access.log? что значит "P" в prw-rw-rw?
и вы видите вчера последняя запись вечером была...не пойму почему...

master@local ~ $ ls -al /var/log/squid/
total 809587
drwxr-xr-x   2 squid squid       880 Мар 26 12:21 .
drwxr-xr-x  19 root  root        672 Мар  1 03:10 ..
prw-rw-rw-   1 squid squid         0 Мар 25 18:35 access.log
-rw-r-----   1 squid squid 129300214 Фев 29 14:56 access.log.0
-rw-r-----   1 squid squid  38948714 Янв 11 11:38 access.log.1
-rw-r-----   1 squid squid  49001629 Мар 25 16:15 access.log.2008325
-rw-r-----   1 squid squid  14435396 Ноя 21 15:51 access.log.3
-rw-r-----   1 squid squid  15672957 Ноя 15 16:31 access.log.4
-rw-r-----   1 squid squid  16184045 Ноя 10 07:24 access.log.5
-rw-rw-rw-   1 squid squid  32437551 Ноя  2 10:04 access.log.6
-rw-r-----   1 squid squid  32982941 Мар 25 18:35 access.mylog
-rw-r-----   1 squid squid  86260601 Фев 29 14:56 access.mylog.0
-rw-r-----   1 squid squid  26240334 Янв 11 11:38 access.mylog.1



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Sarlug] squid СРОЧНО
  2008-03-26 12:18   ` linderoxxx
@ 2008-03-26 12:20     ` Конюков Александр
  2008-03-26 12:26       ` linderoxxx
  2008-03-26 13:32     ` Genix
  2008-03-26 19:51     ` Paul P Komkoff Jr
  2 siblings, 1 reply; 13+ messages in thread
From: Конюков Александр @ 2008-03-26 12:20 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

linderoxxx пишет:
> Конюков Александр wrote:
>> linderoxxx пишет:
>>
>>> FATAL: Cannot open '/var/log/squid/access.mylog' for writing.
>>>        The parent directory must be writeable by the
>>>        user 'squid', which is the cache_effective_user
>>>        set in squid.conf.
>>
>> Ларчик просто открывался :)))
>>
>>
> Спасибо , но не всё еще интереснее...
> что за права на access.log? что значит "P" в prw-rw-rw?
> и вы видите вчера последняя запись вечером была...не пойму почему...
> 
> master@local ~ $ ls -al /var/log/squid/
> total 809587
> drwxr-xr-x  19 root  root        672 Мар  1 03:10 ..

прикол не в правах на файл, а в правах на вышестоящую директорию, о чем 
вам пишет лог ))


-- 
scor2k


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Sarlug] squid СРОЧНО
  2008-03-26 12:20     ` Конюков Александр
@ 2008-03-26 12:26       ` linderoxxx
  2008-03-26 12:35         ` Конюков Александр
  0 siblings, 1 reply; 13+ messages in thread
From: linderoxxx @ 2008-03-26 12:26 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

Конюков Александр wrote:
> linderoxxx пишет:
>> Конюков Александр wrote:
>>> linderoxxx пишет:
>>>
>>>> FATAL: Cannot open '/var/log/squid/access.mylog' for writing.
>>>>        The parent directory must be writeable by the
>>>>        user 'squid', which is the cache_effective_user
>>>>        set in squid.conf.
>>>
>>> Ларчик просто открывался :)))
>>>
>>>
>> Спасибо , но не всё еще интереснее...
>> что за права на access.log? что значит "P" в prw-rw-rw?
>> и вы видите вчера последняя запись вечером была...не пойму почему...
>>
>> master@local ~ $ ls -al /var/log/squid/
>> total 809587
>> drwxr-xr-x  19 root  root        672 Мар  1 03:10 ..
>
> прикол не в правах на файл, а в правах на вышестоящую директорию, о 
> чем вам пишет лог ))
проблема помоему в том, что squid из выше написанного мною ps aux
запускается от рута...а когда squid пытается запуститься от самого себя, 
то он видит уже запущенный squid... как мне все поправить и гдЕ?



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Sarlug] squid СРОЧНО
  2008-03-26 12:26       ` linderoxxx
@ 2008-03-26 12:35         ` Конюков Александр
  2008-03-26 12:43           ` linderoxxx
  0 siblings, 1 reply; 13+ messages in thread
From: Конюков Александр @ 2008-03-26 12:35 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

linderoxxx пишет:
> Конюков Александр wrote:
>> linderoxxx пишет:
>>> Конюков Александр wrote:
>>>> linderoxxx пишет:
>>>>
>>>>> FATAL: Cannot open '/var/log/squid/access.mylog' for writing.
>>>>>        The parent directory must be writeable by the
>>>>>        user 'squid', which is the cache_effective_user
>>>>>        set in squid.conf.
>>>>
>>>> Ларчик просто открывался :)))
>>>>
>>>>
>>> Спасибо , но не всё еще интереснее...
>>> что за права на access.log? что значит "P" в prw-rw-rw?
>>> и вы видите вчера последняя запись вечером была...не пойму почему...
>>>
>>> master@local ~ $ ls -al /var/log/squid/
>>> total 809587
>>> drwxr-xr-x  19 root  root        672 Мар  1 03:10 ..
>>
>> прикол не в правах на файл, а в правах на вышестоящую директорию, о 
>> чем вам пишет лог ))
> проблема помоему в том, что squid из выше написанного мною ps aux
> запускается от рута...а когда squid пытается запуститься от самого себя, 
> то он видит уже запущенный squid... как мне все поправить и гдЕ?

имхо, стоит поправить права на /var/log/squid
[root@edu log]# ls -l | grep squid
drwxrws--T 2 root  squid     4096 Mar 23 04:04 squid

и права на файлики:
[root@edu squid]# ls -l
total 114796
-rw-rw---- 1 root squid 71435047 Mar 26 15:33 access.log
-rw-rw---- 1 root squid   293538 Mar 26 15:32 cache.log


-- 
scor2k


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Sarlug] squid СРОЧНО
  2008-03-26 12:35         ` Конюков Александр
@ 2008-03-26 12:43           ` linderoxxx
  2008-03-26 12:50             ` Конюков Александр
  0 siblings, 1 reply; 13+ messages in thread
From: linderoxxx @ 2008-03-26 12:43 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

Конюков Александр wrote:
> linderoxxx пишет:
>> Конюков Александр wrote:
>>> linderoxxx пишет:
>>>> Конюков Александр wrote:
>>>>> linderoxxx пишет:
>>>>>
>>>>>> FATAL: Cannot open '/var/log/squid/access.mylog' for writing.
>>>>>>        The parent directory must be writeable by the
>>>>>>        user 'squid', which is the cache_effective_user
>>>>>>        set in squid.conf.
>>>>>
>>>>> Ларчик просто открывался :)))
>>>>>
>>>>>
>>>> Спасибо , но не всё еще интереснее...
>>>> что за права на access.log? что значит "P" в prw-rw-rw?
>>>> и вы видите вчера последняя запись вечером была...не пойму почему...
>>>>
>>>> master@local ~ $ ls -al /var/log/squid/
>>>> total 809587
>>>> drwxr-xr-x  19 root  root        672 Мар  1 03:10 ..
>>>
>>> прикол не в правах на файл, а в правах на вышестоящую директорию, о 
>>> чем вам пишет лог ))
>> проблема помоему в том, что squid из выше написанного мною ps aux
>> запускается от рута...а когда squid пытается запуститься от самого 
>> себя, то он видит уже запущенный squid... как мне все поправить и гдЕ?
>
> имхо, стоит поправить права на /var/log/squid
> [root@edu log]# ls -l | grep squid
> drwxrws--T 2 root  squid     4096 Mar 23 04:04 squid
>
> и права на файлики:
> [root@edu squid]# ls -l
> total 114796
> -rw-rw---- 1 root squid 71435047 Mar 26 15:33 access.log
> -rw-rw---- 1 root squid   293538 Mar 26 15:32 cache.log
>
>
все сделал что Вы написали:

master@local ~ $ ps aux | grep squid
root     10868  0.0  3.5  32708 27292 ?        Ss   16:38   0:00 
/usr/sbin/squid -D
squid    10870  0.1  3.7  33228 28656 ?        S    16:38   0:00 (squid) -D
root     11340  0.0  3.5  32708 27292 ?        Ss   16:42   0:00 
/usr/sbin/squid #-DYC
squid    11342  6.4  3.7  33336 28764 ?        S    16:42   0:00 (squid) 
#-DYC
master   11349  0.0  0.0   2652   660 pts/2    R+   16:42   0:00 grep squid



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Sarlug] squid СРОЧНО
  2008-03-26 12:43           ` linderoxxx
@ 2008-03-26 12:50             ` Конюков Александр
  2008-03-26 12:59               ` linderoxxx
  2008-03-26 13:35               ` linderoxxx
  0 siblings, 2 replies; 13+ messages in thread
From: Конюков Александр @ 2008-03-26 12:50 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

linderoxxx пишет:
> master@local ~ $ ps aux | grep squid
> root     10868  0.0  3.5  32708 27292 ?        Ss   16:38   0:00 
> /usr/sbin/squid -D
> squid    10870  0.1  3.7  33228 28656 ?        S    16:38   0:00 (squid) -D
> root     11340  0.0  3.5  32708 27292 ?        Ss   16:42   0:00 
> /usr/sbin/squid #-DYC
> squid    11342  6.4  3.7  33336 28764 ?        S    16:42   0:00 (squid) 
> #-DYC
> master   11349  0.0  0.0   2652   660 pts/2    R+   16:42   0:00 grep squid

и? у меня похожая картина (за исключением -DYC).

-- 
scor2k


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Sarlug] squid СРОЧНО
  2008-03-26 12:50             ` Конюков Александр
@ 2008-03-26 12:59               ` linderoxxx
  2008-03-26 13:35               ` linderoxxx
  1 sibling, 0 replies; 13+ messages in thread
From: linderoxxx @ 2008-03-26 12:59 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

Конюков Александр wrote:
> linderoxxx пишет:
>> master@local ~ $ ps aux | grep squid
>> root     10868  0.0  3.5  32708 27292 ?        Ss   16:38   0:00 
>> /usr/sbin/squid -D
>> squid    10870  0.1  3.7  33228 28656 ?        S    16:38   0:00 
>> (squid) -D
>> root     11340  0.0  3.5  32708 27292 ?        Ss   16:42   0:00 
>> /usr/sbin/squid #-DYC
>> squid    11342  6.4  3.7  33336 28764 ?        S    16:42   0:00 
>> (squid) #-DYC
>> master   11349  0.0  0.0   2652   660 pts/2    R+   16:42   0:00 grep 
>> squid
>
> и? у меня похожая картина (за исключением -DYC).
>
master@local ~ $ ps aux | grep squid
master   11845  0.0  0.0   2648   672 pts/2    S+   17:01   0:00 grep squid
master@local ~ $ sudo /etc/init.d/squid start
 * WARNING:  "squid" has already been started.
master@local ~ $    


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Sarlug] squid СРОЧНО
  2008-03-26 12:18   ` linderoxxx
  2008-03-26 12:20     ` Конюков Александр
@ 2008-03-26 13:32     ` Genix
  2008-03-26 13:37       ` Конюков Александр
  2008-03-26 19:51     ` Paul P Komkoff Jr
  2 siblings, 1 reply; 13+ messages in thread
From: Genix @ 2008-03-26 13:32 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

linderoxxx пишет:
>>
> Спасибо , но не всё еще интереснее...
> что за права на access.log? что значит "P" в prw-rw-rw?

это значит что вместо файла у тебя именованный FIFO, который с другой 
стороны кто то должен [может] читать

так как SAMS ты снес, то его и не читает никто.
видимо так

-- 
У каждого в башке свои тараканы...



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Sarlug] squid СРОЧНО
  2008-03-26 12:50             ` Конюков Александр
  2008-03-26 12:59               ` linderoxxx
@ 2008-03-26 13:35               ` linderoxxx
  1 sibling, 0 replies; 13+ messages in thread
From: linderoxxx @ 2008-03-26 13:35 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

Чудеса.... всё работает... я не пойму что я сделал
все запускается... никаких изменений в /etc/init.d/squid

pid появился... ничего не правил в правах /var/run....

в var log правил, но как тогда не работало... так оно и продолжала не 
работать...
а ps aux выглядит так

root      7416  0.0  3.5  32704 27292 ?        Ss   17:36   0:00 
/usr/sbin/squid -DYC
squid     7418 17.3  4.3  36828 33176 ?        S    17:36   0:00 (squid) 
-DYC
squid     7420  0.0  0.0   1328   284 ?        Ss   17:36   0:00 (unlinkd)
master    7426  0.0  0.0   2648   656 pts/1    R+   17:36   0:00 grep squid


чтобы значил этот unlinkd?


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Sarlug] squid СРОЧНО
  2008-03-26 13:32     ` Genix
@ 2008-03-26 13:37       ` Конюков Александр
  0 siblings, 0 replies; 13+ messages in thread
From: Конюков Александр @ 2008-03-26 13:37 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

Genix пишет:
> linderoxxx пишет:
>>>
>> Спасибо , но не всё еще интереснее...
>> что за права на access.log? что значит "P" в prw-rw-rw?
> 
> это значит что вместо файла у тебя именованный FIFO, который с другой 
> стороны кто то должен [может] читать
> 
> так как SAMS ты снес, то его и не читает никто.
> видимо так
> 
прикольно, не знал ))) rtfm однако :((

-- 
scor2k


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [Sarlug] squid СРОЧНО
  2008-03-26 12:18   ` linderoxxx
  2008-03-26 12:20     ` Конюков Александр
  2008-03-26 13:32     ` Genix
@ 2008-03-26 19:51     ` Paul P Komkoff Jr
  2 siblings, 0 replies; 13+ messages in thread
From: Paul P Komkoff Jr @ 2008-03-26 19:51 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

Replying to linderoxxx:
> Спасибо , но не всё еще интереснее...
> что за права на access.log? что значит "P" в prw-rw-rw?
> и вы видите вчера последняя запись вечером была...не пойму почему...

Ой я не могу уже больше.
Ты хоть иногда документацию читаешь?
Ты хоть иногда думаешь над тем что тебе пишут или просто тупо всё в
консоли набираешь?

-- 
Paul P 'Stingray' Komkoff Jr // http://stingr.net/key <- my pgp key
 This message represents the official view of the voices in my head


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-03-26 19:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-26 12:05 [Sarlug] squid СРОЧНО linderoxxx
2008-03-26 12:07 ` Конюков Александр
2008-03-26 12:18   ` linderoxxx
2008-03-26 12:20     ` Конюков Александр
2008-03-26 12:26       ` linderoxxx
2008-03-26 12:35         ` Конюков Александр
2008-03-26 12:43           ` linderoxxx
2008-03-26 12:50             ` Конюков Александр
2008-03-26 12:59               ` linderoxxx
2008-03-26 13:35               ` linderoxxx
2008-03-26 13:32     ` Genix
2008-03-26 13:37       ` Конюков Александр
2008-03-26 19:51     ` Paul P Komkoff Jr

Saratov Linux User Group

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sarlug/0 sarlug/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sarlug sarlug/ http://lore.altlinux.org/sarlug \
		sarlug@lists.lug.ru sarlug@lug.ru
	public-inbox-index sarlug

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sarlug


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git