Opened 6 years ago

Closed 6 years ago

#39746 closed defect (worksforme)

php54-apache2handler checksum error

Reported by: matteo.buferli@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: php

Description

i have this error during installation:

Error: Checksum (rmd160) mismatch for php-5.4.16.tar.bz2
Error: Checksum (sha256) mismatch for php-5.4.16.tar.bz2
***
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.4.16.tar.bz2.html
Error: org.macports.checksum for port php54-apache2handler returned: Unable to verify file checksums
Please see the log file for port php54-apache2handler for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php/php54-apache2handler/main.log

This is full log

:debug:main Executing org.macports.main (php54-apache2handler)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:archivefetch archivefetch phase started at Mon Jul 15 14:41:44 CEST 2013
:msg:archivefetch --->  Fetching archive for php54-apache2handler
:debug:archivefetch Executing org.macports.archivefetch (php54-apache2handler)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  php54-apache2handler-5.4.16_0.darwin_12.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch php54-apache2handler-5.4.16_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/php54-apache2handler
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch php54-apache2handler-5.4.16_0.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/php54-apache2handler
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch php54-apache2handler-5.4.16_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/php54-apache2handler
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Mon Jul 15 14:41:46 CEST 2013
:notice:fetch --->  Fetching distfiles for php54-apache2handler
:debug:fetch Executing org.macports.fetch (php54-apache2handler)
:info:fetch --->  php-5.4.16.tar.bz2 doesn't seem to exist in /opt/local/var/macports/distfiles/php5
:notice:fetch --->  Attempting to fetch php-5.4.16.tar.bz2 from http://th.php.net/get/php-5.4.16.tar.bz2/from/this/mirror?dummy=
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Mon Jul 15 14:41:49 CEST 2013
:notice:checksum --->  Verifying checksum(s) for php54-apache2handler
:debug:checksum Executing org.macports.checksum (php54-apache2handler)
:info:checksum --->  Checksumming php-5.4.16.tar.bz2
:error:checksum Checksum (rmd160) mismatch for php-5.4.16.tar.bz2
:info:checksum Portfile checksum: php-5.4.16.tar.bz2 rmd160 8fa3d93006f950706fd1f2544108cd69201a4d9e
:info:checksum Distfile checksum: php-5.4.16.tar.bz2 rmd160 cf31ef7edf7143fa5c1a5b8ff0a80a72a1d58ed8
:error:checksum Checksum (sha256) mismatch for php-5.4.16.tar.bz2
:info:checksum Portfile checksum: php-5.4.16.tar.bz2 sha256 3ec25fb5c260b3b512a5079ad1674fa6aea9c3bd79623bf307ee643f6fcdc236
:info:checksum Distfile checksum: php-5.4.16.tar.bz2 sha256 e82abb05319068b5db30a9d45f0f18825d464a8d206763dd760c046b6a91f714
:notice:checksum ***
:notice:checksum The non-matching file appears to be HTML. See this page for possible reasons
:notice:checksum for the checksum mismatch:
:notice:checksum <https://trac.macports.org/wiki/MisbehavingServers>
:notice:checksum ***
:notice:checksum The file has been moved to: /opt/local/var/macports/distfiles/php5/php-5.4.16.tar.bz2.html
:error:checksum org.macports.checksum for port php54-apache2handler returned: Unable to verify file checksums
:debug:checksum Error code: NONE
:debug:checksum Backtrace: Unable to verify file checksums
    while executing
"$procedure $targetname"
:info:checksum Warning: targets not executed for php54-apache2handler: org.macports.activate org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:checksum Please see the log file for port php54-apache2handler for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php/php54-apache2handler/main.log

Change History (6)

comment:1 Changed 6 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Port: php added
Priority: HighNormal
Status: newassigned

What does the file /opt/local/var/macports/distfiles/php5/php-5.4.16.tar.bz2.html contain?

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

I found three php mirrors that had disappeared. I deleted them from the fetch group in r108181. Did that help? Wait 30 minutes, then "sudo port selfupdate" and then try again.

comment:3 in reply to:  1 Changed 6 years ago by matteo.buferli@…

Replying to ryandesign@…:

What does the file /opt/local/var/macports/distfiles/php5/php-5.4.16.tar.bz2.html contain?

I can't attach more files, right? I paste below so

<html>
    <head>
        <title>  </title>

        <script type="text/javascript">
            function bredir(a, b, c, d, e, ldr, ifc) {
                var h, i, j;
                var f = 0;
                var g = 0;
                var k = false;
                var l = false;
                var m = [
                    [300, 250, false],
                    [250, 250, false],
                    [240, 400, false],
                    [336, 280, false],
                    [180, 150, false],
                    [468, 60, false],
                    [234, 60, false],
                    [88, 31, false],
                    [120, 90, false],
                    [120, 60, false],
                    [120, 240, false],
                    [125, 125, false],
                    [728, 90, false],
                    [160, 600, false],
                    [120, 600, false],
                    [300, 600, false],
                    [300, 125, false],
                    [530, 300, false],
                    [190, 200, false],
                    [470, 250, false],
                    [720, 300, true],
                    [500, 350, true],
                    [550, 480, true],
                    //YouTube:
                    [560, 315, true],
                    [640, 360, true],
                    [853, 480, true],
                    [1280, 720, true],
                    //Vimeo:
                    [400, 300, true],
                    [500, 281, true],
                    //Hulu:
                    [480, 270, true],
                    [512, 288, true],
                    //metacafe:
                    [440, 248, true],
                    [460, 284, true],
                    [540, 304, true],
                    [600, 338, true],
                    //Other dimensions (metacafe, myspace video, yahoo video, break.com, ustream, vevo, justin.tv, etc):
                    [210, 120, true],
                    [400, 300, true],
                    [425, 350, true],
                    [425, 360, true],
                    [435, 251, true],
                    [435, 271, true],
                    [500, 300, true],
                    [525, 295, true],
                    [575, 324, true],
                    [620, 389, true],
                    [624, 351, true],
                    [630, 381, true],
                    [640, 385, true],
                    [650, 368, true],
                    [1000, 562, true],
                    [1000, 563, true],
                    [1000, 564, true]
                ];
                if (typeof window.innerHeight == "number") {
                    g = window.innerHeight;
                    f = window.innerWidth;
                } else if (typeof document.body.offsetHeight == "number") {
                    g = document.body.offsetHeight;
                    f = document.body.offsetWidth;
                }
                for (var n = 0; n < m.length; n++) {
                    j = m[n];
                    h = Math.abs(f - j[0]);
                    i = Math.abs(g - j[1]);
                    if (top != self) {
                        ifc = 1;
                    } else {
                        ifc = 0;
                    };
                    if (h <= 2 && i <= 2) {
                        k = true;
                        l = j[2]
                    }
                }
                if(f === 0 && g === 0){
                    return;
                }
                if ((a != "www.facebook.com" && a != "platform.twitter.com") && (k || f < 100 && f !== 0 || g < 100 && g !== 0)) {
                    if (l && self == parent) {
                        return;
                    }
                    return "/b" + "anner.php?w=" + f + "&h=" + g + "&d=" + a + "&url=" + b + "&ref=" + c + "&view=" + d
                } else if ((a == "www.facebook.com" || a == "platform.twitter.com") && (f >= 250 && g >= 60) && (k || f < 100 && f !== 0 || g < 100 && g !== 0)) {
                    if (l && self == parent) {
                        return;
                    }
                    return e + "&w=" + f + "&h=" + g + "&ldr=" + "b" + "&ifc=" + ifc;
                } else if ((a == "www.facebook.com" || a == "platform.twitter.com") && (f < 250 || g < 60) && (k || f < 100 && f !== 0 || g < 100 && g !== 0)) {
                    if (l && self == parent) {
                        return;
                    }
                    return "/b" + "anner.php?w=" + f + "&h=" + g + "&d=" + a + "&url=" + b + "&ref=" + c + "&view=" + d;
                } else {
                    return e + "&w=" + f + "&h=" + g + "&ifc=" + ifc;
                }
            }
            function bdetect() {
                var loc = bredir(
                    'th.php.net', 
                    'th.php.net%2Fget%2Fphp-5.4.16.tar.bz2%2Ffrom%2Fthis%2Fmirror%3Fdummy%3D%2Fphp-5.4.16.tar.bz2', 
                    '', 
                    'error', 
                    '/main?wc=EWJpExd9AQVEBgpyAww%3D&url=th.php.net%2Fget%2Fphp-5.4.16.tar.bz2%2Ffrom%2Fthis%2Fmirror%3Fdummy%3D%2Fphp-5.4.16.tar.bz2'
                );

                if(typeof loc === 'undefined') {
                    self.close();
                    return;
                }

                location.replace(loc);

            }
        </script>
    </head>
    <body onLoad="bdetect()" style="margin: 0px;">
        <noscript>
            <iframe frameborder="0" src="/main?wc=EWJpExd9AQVEBgpyAww%3D&amp;url=th.php.net%2Fget%2Fphp-5.4.16.tar.bz2%2Ffrom%2Fthis%2Fmirror%3Fdummy%3D%2Fphp-5.4.16.tar.bz2" width="100%" height="100%"></iframe>
        </noscript>
    </body>
</html>

comment:4 in reply to:  2 Changed 6 years ago by matteo.buferli@…

Replying to ryandesign@…:

I found three php mirrors that had disappeared. I deleted them from the fetch group in r108181. Did that help? Wait 30 minutes, then "sudo port selfupdate" and then try again.

I can't test right now, sorry.. but i think the reason should be that the file is not present yet here http://lil.fr.packages.macports.org/php54-apache2handler or in any others repository.. The same for php53 and php55..

Thanks for now!

comment:5 in reply to:  2 ; Changed 6 years ago by larryv (Lawrence Velázquez)

Replying to ryandesign@…:

Wait 30 minutes, then "sudo port selfupdate" and then try again.

#39652 still hasn’t been resolved.

comment:6 in reply to:  5 Changed 6 years ago by ryandesign (Ryan Schmidt)

Resolution: worksforme
Status: assignedclosed

Replying to matteo.buferli@…:

Replying to ryandesign@…:

What does the file /opt/local/var/macports/distfiles/php5/php-5.4.16.tar.bz2.html contain?

I can't attach more files, right?

You can attach as many files as you like to a ticket.

                    'th.php.net%2Fget%2Fphp-5.4.16.tar.bz2%2Ffrom%2Fthis%2Fmirror%3Fdummy%3D%2Fphp-5.4.16.tar.bz2', 

This shows the failed mirror was th.php.net, which is working fine for me at the moment. Maybe it was temporarily down. "sudo port clean --all php54" and try again.

Replying to matteo.buferli@…:

I can't test right now, sorry.. but i think the reason should be that the file is not present yet here http://lil.fr.packages.macports.org/php54-apache2handler or in any others repository.. The same for php53 and php55..

Irrelevant. That's the packages server. MacPorts checks first if packages exist. If not, then it downloads source and tries to build it. Downloading the source is what was failing for you.

Replying to larryv@…:

#39652 still hasn’t been resolved.

It has now.

Note: See TracTickets for help on using tickets.