[squid-users] squid-4.0.18 error when running
Amos Jeffries
squid3 at treenet.co.nz
Thu Mar 9 14:56:35 UTC 2017
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
More information about the squid-users
mailing list