Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot upgrade #226

Closed
cybersiddhu opened this issue Aug 5, 2012 · 10 comments
Closed

Cannot upgrade #226

cybersiddhu opened this issue Aug 5, 2012 · 10 comments

Comments

@cybersiddhu
Copy link

I cannot upgrade from 0.43

$_> perlbrew --version
/Users/sid/perl5/perlbrew/bin/perlbrew  - App::perlbrew/0.43

$_> perlbrew self-upgrade
Unable to detect version of new perlbrew!

I am on Mac OSX 10.5.8

@gugod
Copy link
Owner

gugod commented Aug 7, 2012

This worked for me. It can be your network, try downloading http://get.perlbrew.pl as "perlbrew" directly, and run perlbrew self-install against the downloaded file.

@cybersiddhu
Copy link
Author

That worked!!!
However, is there any way to debug or run a trace where perlbrew self-upgrade is getting stuck in the network

@gugod gugod closed this as completed Aug 26, 2012
@karenetheridge
Copy link
Contributor

I occasionally run into this as well; usually it seems to be a problem with credentials (github does not allow access to the raw.* site without a certificate, it seems) -- so it would be quite helpful to give a detailed error message.

@karenetheridge
Copy link
Contributor

The self-upgrade command is now consistently failing for me -- I think there may be a discrepancy between the options passed to wget and what newer versions of wget expect.

More diagnostics in the http_get sub would be VERY helpful here, otherwise we can't really tell what the problem is (and because App::perlbrew is fatpacked, it makes it hard to edit the code in a local installation to add these diagnostics).

@karenetheridge
Copy link
Contributor

more information:

: [ether@bourbon ~]$; wget --quiet -O perlbrew http://get.perlbrew.pl/
: [ether@bourbon ~]$; echo $?
5
: [ether@bourbon ~]$; ls -l perlbrew
-rw-r--r--  1 ether  staff  0 21 Nov 10:41 perlbrew

: [ether@bourbon ~]$; wget -O perlbrew http://get.perlbrew.pl/
--2013-11-21 10:42:03--  http://get.perlbrew.pl/
Resolving get.perlbrew.pl (get.perlbrew.pl)... 217.70.184.38
Connecting to get.perlbrew.pl (get.perlbrew.pl)|217.70.184.38|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://raw.github.com/gugod/App-perlbrew/master/perlbrew [following]
--2013-11-21 10:42:03--  https://raw.github.com/gugod/App-perlbrew/master/perlbrew
Resolving raw.github.com (raw.github.com)... 199.27.77.133
Connecting to raw.github.com (raw.github.com)|199.27.77.133|:443... connected.
ERROR: The certificate of ‘raw.github.com’ is not trusted.
ERROR: The certificate of ‘raw.github.com’ hasn't got a known issuer.

@karenetheridge
Copy link
Contributor

: [ether@bourbon ~]$; wget -O --no-check-certificate perlbrew http://get.perlbrew.pl/
--2013-11-21 10:43:14--  http://perlbrew/
Resolving perlbrew (perlbrew)... 69.50.167.197
Connecting to perlbrew (perlbrew)|69.50.167.197|:80... failed: Operation timed out.
Retrying.

@vsespb
Copy link
Contributor

vsespb commented Nov 21, 2013

related #335
@karenetheridge what's your OS and version? did you try cURL ?

@karenetheridge
Copy link
Contributor

This was on darwin, 10.8 (Mountain Lion).

I did not try curl, as the steps I included above were to duplicate what perlbrew was doing under the hood (it uses wget when available, falling back to curl otherwise).

@nigelhorne
Copy link

Same on MirBSD from 0.67:
njh@qemu:~ $ perlbrew version
/home/njh/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.67
255|njh@qemu:~ $ perlbrew self-upgrade
Unable to detect version of new perlbrew!
255|njh@qemu:~ $

@hermidalc
Copy link

This issue shouldn't be reopened because it still exists in the latest version of perlbrew 0.74 and it's been the same issue in every previous version I've had installed. The self-upgrade functionality doesn't work and while there is a workaround it should still be fixed or removed altogether.

On latest version 0.74 I still get:

$ perlbrew self-upgrade
Unable to detect version of new perlbrew!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants