Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#47080 closed defect (worksforme)

Fetching distfile failed: Failed to connect to geeklair.net port 3690: Connection refused

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: server/hosting Version:
Keywords: Cc: jmroot (Joshua Root), supercalbu@…
Port:

Description

The buildbot builders cannot fetch FTP files, e.g.:

--->  Attempting to fetch h3dutil-1.3.0.tar.gz from ftp://www.h3dapi.org/pub/releases/source/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0DEBUG: Fetching distfile failed: Failed to connect to geeklair.net port 3690: Connection refused

Daniel, is this an issue with your server or with Mac OS Forge's configuration of the buildbot builders?

Change History (12)

comment:1 Changed 10 years ago by danielluke (Daniel J. Luke)

Resolution: fixed
Status: newclosed

yep, looks like sometime recently (last squid3 update)? it decided it needed to store files in /opt/local/var/squid/cache/squid (which didn't exist) presumably instead of /opt/local/var/squid/cache/

for now, I've just created /opt/local/var/squid/cache/squid and restarted it.

comment:2 Changed 10 years ago by danielluke (Daniel J. Luke)

Resolution: fixed
Status: closedreopened

oh, actually it's worse than that. After fixing that and getting it to generate cache files, squid is failing on startup with:

FATAL: Ipc::Mem::Segment::create failed to ftruncate(/squid-cfmetadata.shm): (22) Invalid argument

comment:4 Changed 10 years ago by danielluke (Daniel J. Luke)

Cc: jmr@… added

comment:5 Changed 10 years ago by danielluke (Daniel J. Luke)

Resolution: worksforme
Status: reopenedclosed

... and it's started up now (I didn't change anything, just waited). ipcs didn't show a dangling shared memory segment, so I'm not sure what was causing it to fail.

comment:6 Changed 10 years ago by jmroot (Joshua Root)

Squid doesn’t (usually) clean up the segments when it exits due to an error. So probably it exited because of the missing dir initially, then the ftruncate failed the next time it ran because the segment already existed and had already been truncated, which makes it unlink the segment. This is what I mentioned in http://bugs.squid-cache.org/show_bug.cgi?id=3805#c17.

comment:7 in reply to:  6 Changed 10 years ago by danielluke (Daniel J. Luke)

Replying to jmr@…:

Squid doesn’t (usually) clean up the segments when it exits due to an error. So probably it exited because of the missing dir initially, then the ftruncate failed the next time it ran because the segment already existed and had already been truncated, which makes it unlink the segment. This is what I mentioned in http://bugs.squid-cache.org/show_bug.cgi?id=3805#c17.

That's what I thought at first, but I didn't see the segment in the listing from ipcs ... maybe I just missed it.

comment:8 Changed 10 years ago by jmroot (Joshua Root)

I don’t think ipcs will show posix segments, only sysv ones?

comment:9 in reply to:  8 Changed 10 years ago by danielluke (Daniel J. Luke)

Replying to jmr@…:

I don’t think ipcs will show posix segments, only sysv ones?

yep, that's right. mystery solved (pbkac)

comment:10 Changed 9 years ago by supercalbu@…

Squid was working for me then I just tried running it again and it wouldn't start.

Now I get alternating when I run sudo ./squid -z ...

FATAL: Ipc::Mem::Segment::create failed to shm_open(/squid-cf__queues.shm): (13) Permission denied
FATAL: Ipc::Mem::Segment::create failed to ftruncate(/squid-cf__metadata.shm): (22) Invalid argument

Saw in one of the links above that it seems that was a fixed bug in main squid if I understand correctly. Does that need to be applied to the port?

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:11 Changed 9 years ago by supercalbu@…

Is there any work around for this? Squid was working when I first installed it then this happened. Tried uninstalling and reinstalling and it still happens.

comment:12 in reply to:  11 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: supercalbu@… added

Replying to supercalbu@…:

Is there any work around for this? Squid was working when I first installed it then this happened. Tried uninstalling and reinstalling and it still happens.

This ticket is about a fetch failure involving Daniel's ftp proxy server, and is closed. Your question appears to be about the squid program, so that's not relevant to this ticket. Please ask your question on the macports-users mailing list, or if you believe there is a bug in one of our ports, file a new ticket in this issue tracker.

Note: See TracTickets for help on using tickets.