{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/41489","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41489/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41489/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41489/events","html_url":"https://github.com/Homebrew/homebrew/issues/41489","id":93861261,"number":41489,"title":"Squid error: FATAL: Ipc::Mem::Segment::create failed to shm_open(/squid-cf__queues.shm): (13) Permission denied","user":{"login":"mconigliaro","id":180180,"avatar_url":"https://avatars.githubusercontent.com/u/180180?v=3","gravatar_id":"","url":"https://api.github.com/users/mconigliaro","html_url":"https://github.com/mconigliaro","followers_url":"https://api.github.com/users/mconigliaro/followers","following_url":"https://api.github.com/users/mconigliaro/following{/other_user}","gists_url":"https://api.github.com/users/mconigliaro/gists{/gist_id}","starred_url":"https://api.github.com/users/mconigliaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mconigliaro/subscriptions","organizations_url":"https://api.github.com/users/mconigliaro/orgs","repos_url":"https://api.github.com/users/mconigliaro/repos","events_url":"https://api.github.com/users/mconigliaro/events{/privacy}","received_events_url":"https://api.github.com/users/mconigliaro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Homebrew/homebrew/labels/needs%20response","name":"needs response","color":"c7def8"},{"url":"https://api.github.com/repos/Homebrew/homebrew/labels/upstream%20issue","name":"upstream issue","color":"ff7722"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-08T18:42:33Z","updated_at":"2015-09-26T16:06:06Z","closed_at":null,"body":"Squid doesn't run anymore. `squid -z` results in:\r\n\r\n```\r\nFATAL: Ipc::Mem::Segment::create failed to ftruncate(/squid-cf__metadata.shm): (22) Invalid argument\r\n```\r\n\r\nTrying to start squid before running `squid -z` results in the following error in `/usr/local/var/logs/cache.log`:\r\n\r\n```\r\nFATAL: Ipc::Mem::Segment::create failed to ftruncate(/squid-cf__metadata.shm): (22) Invalid argument\r\n\r\nSquid Cache (Version 3.5.6): Terminated abnormally.\r\nCPU Usage: 0.027 seconds = 0.020 user + 0.007 sys\r\nMaximum Resident Size: 30523392 KB\r\nPage faults with physical i/o: 0\r\n```\r\n\r\nHere's the output from `squid -v`\r\n\r\n```\r\nSquid Cache: Version 3.5.6\r\nService Name: squid\r\nconfigure options:  '--disable-debug' '--disable-dependency-tracking' '--prefix=/usr/local/Cellar/squid/3.5.6' '--localstatedir=/usr/local/var' '--enable-ssl' '--enable-ssl-crtd' '--disable-eui' '--enable-pf-transparent' '--with-included-ltdl' '--with-openssl' 'CC=clang' 'LDFLAGS=-lresolv' 'CXX=clang++' 'PKG_CONFIG_PATH=/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig' 'PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.10' --enable-ltdl-convenience\r\n```"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/143466960","html_url":"https://github.com/Homebrew/homebrew/issues/41489#issuecomment-143466960","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41489","id":143466960,"user":{"login":"wickedsp1d3r","id":1852854,"avatar_url":"https://avatars.githubusercontent.com/u/1852854?v=3","gravatar_id":"","url":"https://api.github.com/users/wickedsp1d3r","html_url":"https://github.com/wickedsp1d3r","followers_url":"https://api.github.com/users/wickedsp1d3r/followers","following_url":"https://api.github.com/users/wickedsp1d3r/following{/other_user}","gists_url":"https://api.github.com/users/wickedsp1d3r/gists{/gist_id}","starred_url":"https://api.github.com/users/wickedsp1d3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wickedsp1d3r/subscriptions","organizations_url":"https://api.github.com/users/wickedsp1d3r/orgs","repos_url":"https://api.github.com/users/wickedsp1d3r/repos","events_url":"https://api.github.com/users/wickedsp1d3r/events{/privacy}","received_events_url":"https://api.github.com/users/wickedsp1d3r/received_events","type":"User","site_admin":false},"created_at":"2015-09-26T16:06:06Z","updated_at":"2015-09-26T16:06:06Z","body":"Similar issues with squid 3.5.9,  `cache.log` has a message like this:\r\n\r\n```\r\nSquid Cache (Version 3.5.9): Terminated abnormally.\r\nCPU Usage: 0.028 seconds = 0.022 user + 0.006 sys\r\nMaximum Resident Size: 31293440 KB\r\nPage faults with physical i/o: 0\r\nFATAL: Ipc::Mem::Segment::create failed to ftruncate(/squid-cf__readers.shm): (22) Invalid argument\r\n```\r\n\r\nI run squid as launchd agent. It fails to launch a couple of times and then it starts up normally."}}