Newsgroups: php.internals,php.pecl.dev Path: news.php.net Xref: news.php.net php.internals:85843 php.pecl.dev:12829 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1329 invoked from network); 16 Apr 2015 18:41:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Apr 2015 18:41:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.179 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.220.179 mail-qk0-f179.google.com Received: from [209.85.220.179] ([209.85.220.179:32806] helo=mail-qk0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/89-39957-14200355 for ; Thu, 16 Apr 2015 14:41:06 -0400 Received: by qkx62 with SMTP id 62so135243321qkx.0; Thu, 16 Apr 2015 11:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Dmp2IR4XuVL+TpKAVvgugRIB0cWsxTCLc/cdLRG2iSg=; b=erDxKM0u3u+o23u51vmmDQl/gdM7lIw9crzwPGUrLafL/1ECzwM1RuXgjf1NlGTR70 tRujTop6KsE5fviMRMa0M4vG5lWVKr1bjMhObnY5Mea6Ald43KIROpSZtvn8MNSsO48B EKNhI4dLpURb1pq1AB/BLOeVtWsiJBni3yo3njkK60KWCwfioto1tCRSAyBeT54iPv2I FHd6x+xgNRVhQVjhV7O1quT8qX1kyasjqFpIDVzDc8JZ6kn5wyKqsaFeFq9/SRlkGE/y hXQYEJFo3z8RGjm/6y+WiDkQVjRvQBqg6fp7DISNXnruYEgLJfH9ONSkSuZ77f8/R3Qk EmXg== MIME-Version: 1.0 X-Received: by 10.55.22.222 with SMTP id 91mr65716851qkw.101.1429209662880; Thu, 16 Apr 2015 11:41:02 -0700 (PDT) Received: by 10.96.39.195 with HTTP; Thu, 16 Apr 2015 11:41:02 -0700 (PDT) In-Reply-To: References: <552D4FD4.7070005@divbyzero.net> Date: Fri, 17 Apr 2015 01:41:02 +0700 Message-ID: To: Ferenc Kovacs Cc: Hannes Magnusson , PHP Development , PECL Dev , Martin Jansen , PHP Systems Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: PECL install no longer works out of the box From: pierre.php@gmail.com (Pierre Joye) it is not weird as we still send the tgz not the tar. try this: https://gist.github.com/pierrejoye/c33338677f89159f696d I cannot test and crafted it a la volee, but it should do it: $file is used to query the file from the database, which contains only filenames with tgz (as we created the .tar manually now) $basename is what is used by X-SendFile, this patch fixes it and create .tar instead of .tgz On Fri, Apr 17, 2015 at 1:26 AM, Ferenc Kovacs wrote: > > > On Thu, Apr 16, 2015 at 8:18 PM, Hannes Magnusson > wrote: >> >> On Thu, Apr 16, 2015 at 11:06 AM, Ferenc Kovacs wrote= : >> > >> > >> > On Thu, Apr 16, 2015 at 8:02 PM, Ferenc Kovacs wrot= e: >> >> >> >> >> >> >> >> On Thu, Apr 16, 2015 at 7:43 PM, Hannes Magnusson >> >> wrote: >> >>> >> >>> On Thu, Apr 16, 2015 at 10:14 AM, Ferenc Kovacs >> >>> wrote: >> >>> > >> >>> > >> >>> > On Thu, Apr 16, 2015 at 5:29 PM, Pierre Joye >> >>> > wrote: >> >>> >> >> >>> >> On Thu, Apr 16, 2015 at 10:02 PM, Ferenc Kovacs >> >>> >> wrote: >> >>> >> > >> >>> >> > >> >>> >> >> >> >>> >> >> As of the uncompressed data, I see something like less 0.01% o= f >> >>> >> >> the >> >>> >> >> requests actually requesting non compressed archives, the box = he >> >>> >> >> uses >> >>> >> >> must on of the 3-4. We are in the 21st century and compressed >> >>> >> >> output >> >>> >> >> is quite a standard. It makes the server serves faster too as = we >> >>> >> >> rely >> >>> >> >> on X-SendFile, as I reportedly said on this list during the >> >>> >> >> migration, >> >>> >> >> and ask for tests. >> >>> >> > >> >>> >> > >> >>> >> > hi Pierre, >> >>> >> > >> >>> >> > where do you get this 0.01%? >> >>> >> > from a quick look: >> >>> >> > root@pecl:~# grep '.tar.gz ' >> >>> >> > /var/log/apache2/pecl.php.net-access.log|wc >> >>> >> > -l >> >>> >> > 242 >> >>> >> > root@pecl:~# grep '.tar ' >> >>> >> > /var/log/apache2/pecl.php.net-access.log|wc -l >> >>> >> > 1350 >> >>> >> > so the majority of the download requests are looking for the >> >>> >> > uncompressed >> >>> >> > tar file, which is doesn't work now thanks to your changes. >> >>> >> > is there another metric or something that I'm missing? >> >>> >> > it seems that this is something which we should fix/restore eve= n >> >>> >> > if >> >>> >> > it >> >>> >> > costs >> >>> >> > us a bit more cpu. >> >>> >> >> >>> >> I check with the whole old log, was low. >> >>> >> >> >>> >> No need to change the download code. >> >>> >> >> >>> >> I will run a script to store both tgz and tar, easier and better. >> >>> >> And >> >>> >> changing the release code to save the uncompressed archive as wel= l. >> >>> >> Way better than what we had before. And if we like to be the onl= y >> >>> >> one >> >>> >> to provide uncompressed download of our releases, why not, I do n= ot >> >>> >> mind much ;-) >> >>> >> >> >>> >> But that's actually not a bug as of now, the SSL thing Hannes was >> >>> >> experiencing is what I was asking for, it is what I wonder what >> >>> >> happened to get the installer requesting SSL: in the 1st place an= d >> >>> >> how >> >>> >> it ends up like that and failed. But Hannes seems to do not care, >> >>> >> so I >> >>> >> will simply enable SSL again and that should be it. >> >>> >> >> >>> >> Cheers, >> >>> >> -- >> >>> >> Pierre >> >>> >> >> >>> >> @pierrejoye | http://www.libgd.org >> >>> > >> >>> > >> >>> > >> >>> > ok, after discussing with Pierre I gunzipped the release tarballs = so >> >>> > now >> >>> > they are there, Pierre will update the release upload/delete code = so >> >>> > that we >> >>> > also store/delete the .tar files so they can be also served via >> >>> > sendfile. >> >>> >> >>> $ sudo pecl install memcached >> >>> Could not download from "http://pecl.php.net/get/memcached-2.2.0.tar= ", >> >>> cannot download "pecl/memcached" (File >> >>> http://pecl.php.net:80/get/memcached-2.2.0.tar not valid (received: >> >>> HTTP/1.0 404 Not Found >> >>> )) >> >>> Error: cannot download "pecl/memcached" >> >>> Download failed >> >>> install failed >> >> >> >> >> >> it seems that the two commits (reverts) which should make that error = go >> >> away still not make to the peclweb machine yet. >> >> I will wait an hour or so, if still not there I will check out the >> >> rsync >> >> box (as I verified that the update-peclweb is executed properly). >> >> >> >> -- >> >> Ferenc Kov=C3=A1cs >> >> @Tyr43l - http://tyrael.hu >> > >> > >> > >> > oops, I made a mistake, one of the two reverts was against the wrong >> > hash. >> > just fixed it now. >> >> >> >> Getting closer :) >> >> $ sudo pecl install memcached >> downloading memcached-2.2.0.tar ... >> Starting to download memcached-2.2.0.tar (70,449 bytes) >> .....done: 70,449 bytes >> could not extract the package.xml file from >> "/tmp/pear/download/memcached-2.2.0.tar" >> Download of "pecl/memcached" succeeded, but it is not a valid package >> archive >> Error: cannot download "pecl/memcached" >> Download failed >> install failed >> $ file /tmp/pear/download/memcached-2.2.0.tar >> /tmp/pear/download/memcached-2.2.0.tar: gzip compressed data, from >> Unix, max compression >> >> >> It looks like it is actually gzipped? >> >> -Hannes > > > hm, weird, created it via gunzip -c ing the tgz, so it should be a tar fi= le: > root@pecl:~# file /var/lib/pear/memcached-2.2.0.tar > /var/lib/pear/memcached-2.2.0.tar: POSIX tar archive (GNU) > > > -- > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu --=20 Pierre @pierrejoye | http://www.libgd.org