creating swap directory error in squid

General discussion about PLUC and Linux in Pakistan.

creating swap directory error in squid

Postby venky145 » Mon May 09, 2005 4:11 pm

hi

when i starting squid

squid -z

creating swap directories
FATAL: Failed to make swap directopry /usr/local.squid/var/cache : (13) permission denied
venky145
Havaldaar
 
Posts: 118
Joined: Thu Jan 13, 2005 2:35 pm
WLM: ranga72
Yahoo Messenger: venky145
Location: qatar

Postby shakirz1 » Mon May 09, 2005 4:43 pm

run this command

chown squid.squid /usr/local.squid/var/cache

then run squid -z, i hope it will work
shakirz1
Battalion Quarter Master Havaldaar
 
Posts: 207
Joined: Sat Aug 09, 2003 5:00 pm
Website: http://www.fattanis.cjb.net
WLM: shakirz1@hotmail.com
Yahoo Messenger: shakirz1@yahoo.com
Location: Karachi

Re:

Postby LinuxFreaK » Mon May 09, 2005 10:35 pm

Dear venky145,
Salam,

# chown -R squid.squid /usr/local.squid/var/cache

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Re:

Postby lambda » Tue May 10, 2005 12:59 am

you should use : to separate user and group fields, not . this is because . is valid in a username, and chown on some systems won't accept it as a valid separator.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Re:

Postby Qadri-409 » Tue May 10, 2005 6:42 pm

LinuxFreaK wrote:
# chown -R squid.squid /usr/local.squid/var/cache



what if ..when we change it to #chown -R nodoby:nobody
as it cache effective user in squid.conf ?


takecare
M Shahzad Qadri
Qadri-409
Battalion Havaldaar Major
 
Posts: 286
Joined: Sun May 09, 2004 4:16 pm
WLM: qadri409
Yahoo Messenger: shahzadqadri409
Location: Peshawar

Re:

Postby LinuxFreaK » Wed May 11, 2005 12:32 am

Dear Qadri-409,
Salam,

Well if it is defined in squid.conf then you can do this :)

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby asaddotcom » Wed Nov 02, 2005 12:14 pm

When I start my squid service then i got this message :
Nov 2 12:12:14 Microsoft squid[4758]: Squid Parent: child process 4766 started
Nov 2 12:12:14 Microsoft squid[4758]: Squid Parent: child process 4766 exited due to signal 6
Nov 2 12:12:17 Microsoft (squid): Cannot open '/usr/local/squid/var/logs/access.log' for writing. ^IThe parent directory must be writeable by the ^Iuser 'squid', which is the cache_effective_user ^Iset in squid.conf.


Please tell what can i do ? If its a parent directory permission issue then please tell me how to change permission. ?

waiting..
Thanking You...

ครค๔
www.apnicollection.com | www.wikisoft.pk
asaddotcom
Company Havaldaar Major
 
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
ICQ: 172131405
Website: http://www.apnicollection.com
WLM: asaddotcom@msn.com
Yahoo Messenger: asaddotcom2002@yahoo.com
AOL: AsadDotCom
Location: Lahore, PK

Re:

Postby LinuxFreaK » Wed Nov 02, 2005 1:14 pm

Dear asaddotcom,
Salam,

# adduser squid
# chown -R squid.squid /var/log/squid


Best Regards.
Last edited by LinuxFreaK on Thu Nov 03, 2005 7:57 am, edited 1 time in total.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Re:

Postby asaddotcom » Wed Nov 02, 2005 1:30 pm

LinuxFreaK wrote:Dear asaddotcom,
Salam,

# adduser squid
# chown -R squid.suqid /var/log/squid


Best Regards.


I got still this message in my error log file:
Nov 2 13:29:33 Microsoft squid[4311]: Squid Parent: child process 4313 started
Nov 2 13:29:33 Microsoft (squid): ERROR: Unknown policy lru
Nov 2 13:29:33 Microsoft squid[4311]: Squid Parent: child process 4313 exited due to signal 6
Nov 2 13:29:36 Microsoft squid[4311]: Squid Parent: child process 4316 started
Nov 2 13:29:37 Microsoft (squid): ERROR: Unknown policy lru
Nov 2 13:29:37 Microsoft squid[4311]: Squid Parent: child process 4316 exited due to signal 6


even i closed #cache_replacment_policy in squid. . .. .
Thanking You...



ครค๔

www.apnicollection.com | www.wikisoft.pk
asaddotcom
Company Havaldaar Major
 
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
ICQ: 172131405
Website: http://www.apnicollection.com
WLM: asaddotcom@msn.com
Yahoo Messenger: asaddotcom2002@yahoo.com
AOL: AsadDotCom
Location: Lahore, PK

Re:

Postby asaddotcom » Wed Nov 02, 2005 1:32 pm

LinuxFreaK wrote:Dear asaddotcom,
Salam,

# adduser squid
# chown -R squid.suqid /var/log/squid


Best Regards.


I got this message:

[root@Microsoft root]# chown -R squid.suqid /var/log/squid
chown: `squid.suqid': invalid group
[root@Microsoft root]#
Thanking You...



ครค๔

www.apnicollection.com | www.wikisoft.pk
asaddotcom
Company Havaldaar Major
 
Posts: 195
Joined: Fri Feb 04, 2005 7:21 pm
ICQ: 172131405
Website: http://www.apnicollection.com
WLM: asaddotcom@msn.com
Yahoo Messenger: asaddotcom2002@yahoo.com
AOL: AsadDotCom
Location: Lahore, PK

Re:

Postby LinuxFreaK » Thu Nov 03, 2005 7:58 am

Dear asaddotcom,
Salam,

well that was spell mistake :(

# adduser squid
# chown -R squid.squid /var/log/squid


BTW from your last i have seen that you did not apply what i said and you just say its not working :(

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi


Return to “%s” General

Who is online

Users browsing this forum: No registered users and 1 guest

cron