squid-4.0.18 error when running

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

squid-4.0.18 error when running

sothy shan
Hello,

I am trying to run <<sudo squid -d 2 -N -X >>, I got the followng error.

Why is this error ? Thanks for your help.


Best regards
Sothy

2017/03/07 15:02:48.221| 1,2| main.cc(1568) SquidMain: running RegisteredRunner::finalizeConfig
2017/03/07 15:02:48.221| 1,2| main.cc(1569) SquidMain: running RegisteredRunner::claimMemoryNeeds
2017/03/07 15:02:48.221| 1,2| main.cc(1570) SquidMain: running RegisteredRunner::useConfig
2017/03/07 15:02:48.221| Not currently OK to rewrite swap log.
2017/03/07 15:02:48.221| storeDirWriteCleanLogs: Operation aborted.
FATAL: Ipc::Mem::Segment::create failed to shm_open(/squid-cf__metadata.shm): (17) File exists
>


_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: squid-4.0.18 error when running

Amos Jeffries
Administrator
On 8/03/2017 3:05 a.m., sothy shan wrote:

> Hello,
>
> I am trying to run <<sudo squid -d 2 -N -X >>, I got the followng error.
>
> Why is this error ? Thanks for your help.
>
>
> Best regards
> Sothy
>
> 2017/03/07 15:02:48.221| 1,2| main.cc(1568) SquidMain: running
> RegisteredRunner::finalizeConfig
> 2017/03/07 15:02:48.221| 1,2| main.cc(1569) SquidMain: running
> RegisteredRunner::claimMemoryNeeds
> 2017/03/07 15:02:48.221| 1,2| main.cc(1570) SquidMain: running
> RegisteredRunner::useConfig
> 2017/03/07 15:02:48.221| Not currently OK to rewrite swap log.
> 2017/03/07 15:02:48.221| storeDirWriteCleanLogs: Operation aborted.
> FATAL: Ipc::Mem::Segment::create failed to
> shm_open(/squid-cf__metadata.shm): (17) File exists
>>

Several things:

1) The -N option is not compatible with SMP operations and auto-disables
these shared memory things in current Squid.

  - is your version a current 3.5.* ?


2) some other Squid process is either still running.

 - fix should be obvious. Stop the other Squid.,

 - or use -n option to run a sandboxed instance with a different process
namespace.


3) previously Squid crashed leaving the SHM sockets open.

 - simply deleting the /dev/shm/squid-*.shm should fix the issue.

 - And an upgrade to a current Squid-3.5 which can handle these
leftovers would be best.


Amos

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: squid-4.0.18 error when running

Eliezer Croitoru
In reply to this post by sothy shan
What OS are you using?

----
http://ngtech.co.il/lmgtfy/
Linux System Administrator
Mobile: +972-5-28704261
Email: [hidden email]


From: squid-users [mailto:[hidden email]] On Behalf Of sothy shan
Sent: Tuesday, March 7, 2017 4:06 PM
To: [hidden email]
Subject: [squid-users] squid-4.0.18 error when running

Hello,
I am trying to run <<sudo squid -d 2 -N -X >>, I got the followng error.

Why is this error ? Thanks for your help.


Best regards
Sothy

2017/03/07 15:02:48.221| 1,2| main.cc(1568) SquidMain: running RegisteredRunner::finalizeConfig
2017/03/07 15:02:48.221| 1,2| main.cc(1569) SquidMain: running RegisteredRunner::claimMemoryNeeds
2017/03/07 15:02:48.221| 1,2| main.cc(1570) SquidMain: running RegisteredRunner::useConfig
2017/03/07 15:02:48.221| Not currently OK to rewrite swap log.
2017/03/07 15:02:48.221| storeDirWriteCleanLogs: Operation aborted.
FATAL: Ipc::Mem::Segment::create failed to shm_open(/squid-cf__metadata.shm): (17) File exists
>


_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users