Opened 3 years ago

Closed 3 years ago

#50650 closed defect (fixed)

php56-apache2handler: php-5.6.18.tar.xz does not exist in /opt/local/var/macports/distfiles/php5

Reported by: dingyong.law@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: php56-apache2handler

Description (last modified by ryandesign (Ryan Schmidt))

i have this error during installation:

--->  Computing dependencies for php56-apache2handler
--->  Verifying checksums for php56-apache2handler
Error: org.macports.checksum for port php56-apache2handler returned: php-5.6.18.tar.xz does not exist in /opt/local/var/macports/distfiles/php5
Please see the log file for port php56-apache2handler for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php/php56-apache2handler/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port php56-apache2handler failed

I think this issue is very similar to this (3 years ago and later solved): #39746

3 years ago where the mirror/repo is not accessible too: http://lil.fr.packages.macports.org/php56-apache2handler

Change History (5)

comment:1 Changed 3 years ago by dingyong.law@…

above in ticket body are errors show in 2nd attempt. the following are errors shown in first attempt:

--->  Computing dependencies for php56-apache2handler
--->  Fetching archive for php56-apache2handler
Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers>
--->  Attempting to fetch php56-apache2handler-5.6.18_0.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/php56-apache2handler
--->  Attempting to fetch php56-apache2handler-5.6.18_0.darwin_15.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/php56-apache2handler
--->  Attempting to fetch php56-apache2handler-5.6.18_0.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/php56-apache2handler
--->  Fetching distfiles for php56-apache2handler
--->  Attempting to fetch php-5.6.18.tar.xz from http://pk.php.net/get/php-5.6.18.tar.xz/from/this/mirror?dummy=
--->  Verifying checksums for php56-apache2handler
Error: Checksum (rmd160) mismatch for php-5.6.18.tar.xz
Error: Checksum (sha256) mismatch for php-5.6.18.tar.xz
***
The non-matching file appears to be HTML. See this page for possible reasons
for the checksum mismatch:
<https://trac.macports.org/wiki/MisbehavingServers>
***
The file has been moved to: /opt/local/var/macports/distfiles/php5/php-5.6.18.tar.xz.html
Error: org.macports.checksum for port php56-apache2handler returned: Unable to verify file checksums
Please see the log file for port php56-apache2handler for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php/php56-apache2handler/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port php56-apache2handler failed
Last edited 3 years ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:2 Changed 3 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Keywords: php56 php56-apache2handler removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: php56-apache2handler added
Priority: HighNormal
Summary: php56-apache2handler checksum errorphp56-apache2handler: php-5.6.18.tar.xz does not exist in /opt/local/var/macports/distfiles/php5

I don't know why the "file does not exist in directory" error sometimes occurs, but the workaround is to clean the affect port and try again, which is the first thing we require you to do in the ticket filing instructions.

comment:3 Changed 3 years ago by ryandesign (Ryan Schmidt)

Status: newassigned

Ah, I see, your second error message shows the real problems:

  1. You are using a bad DNS server.
  2. One of the PHP mirrors has gone offline.

You can fix (1) by telling your DNS provider to fix their DNS server, or by using a different DNS server. I will fix (2) by updating the list of PHP mirrors MacPorts uses.

comment:4 Changed 3 years ago by dingyong.law@…

Thank you Ryan, I have changed network DNS settings to Google DNS to 8.8.8.8 and 8.8.4.4 and it works.

comment:5 Changed 3 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: assignedclosed

Google DNS is what I use too and I'm pretty happy with it.

Fixed the list of php mirrors in r145786.

Note: See TracTickets for help on using tickets.