innoq / statuses

statuses
Apache License 2.0
13 stars 14 forks source link

cannot run leiningen #175

Closed phaus closed 9 years ago

phaus commented 9 years ago

Maybe not quite project-specific, but running

lein uberjar 

throws a lot of errors at me:

lein uberjar
Downloading Leiningen to /Users/philipp/.lein/self-installs/leiningen-2.1.3-standalone.jar now...
--2015-06-11 13:02:19--  https://leiningen.s3.amazonaws.com/downloads/leiningen-2.1.3-standalone.jar
Auflösen des Hostnamen »leiningen.s3.amazonaws.com (leiningen.s3.amazonaws.com)«... 54.231.13.177
Verbindungsaufbau zu leiningen.s3.amazonaws.com (leiningen.s3.amazonaws.com)|54.231.13.177|:443... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 403 Forbidden
2015-06-11 13:02:20 FEHLER 403: Forbidden.

Failed to download https://leiningen.s3.amazonaws.com/downloads/leiningen-2.1.3-standalone.jar
It's possible your HTTP client's certificate store does not have the
correct certificate authority needed. This is often caused by an
out-of-date version of libssl. Either upgrade it or set HTTP_CLIENT
to turn off certificate checks:
  export HTTP_CLIENT="wget --no-check-certificate -O" # or
  export HTTP_CLIENT="curl --insecure -f -L -o"
It's also possible that you're behind a firewall haven't yet
set HTTP_PROXY and HTTPS_PROXY.
Fehler: Hauptklasse clojure.main konnte nicht gefunden oder geladen werden
Imotep:statuses philipp$ export HTTP_CLIENT="wget --no-check-certificate -O"
Imotep:statuses philipp$ lein uberjar
Downloading Leiningen to /Users/philipp/.lein/self-installs/leiningen-2.1.3-standalone.jar now...
--2015-06-11 13:02:39--  https://leiningen.s3.amazonaws.com/downloads/leiningen-2.1.3-standalone.jar
Auflösen des Hostnamen »leiningen.s3.amazonaws.com (leiningen.s3.amazonaws.com)«... 54.231.13.177
Verbindungsaufbau zu leiningen.s3.amazonaws.com (leiningen.s3.amazonaws.com)|54.231.13.177|:443... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 403 Forbidden
2015-06-11 13:02:40 FEHLER 403: Forbidden.

Failed to download https://leiningen.s3.amazonaws.com/downloads/leiningen-2.1.3-standalone.jar
It's possible your HTTP client's certificate store does not have the
correct certificate authority needed. This is often caused by an
out-of-date version of libssl. Either upgrade it or set HTTP_CLIENT
to turn off certificate checks:
  export HTTP_CLIENT="wget --no-check-certificate -O" # or
  export HTTP_CLIENT="curl --insecure -f -L -o"
It's also possible that you're behind a firewall haven't yet
set HTTP_PROXY and HTTPS_PROXY.
Fehler: Hauptklasse clojure.main konnte nicht gefunden oder geladen werden
Imotep:statuses philipp$ export HTTP_CLIENT="curl --insecure -f -L -o"
Imotep:statuses philipp$ lein uberjar
Downloading Leiningen to /Users/philipp/.lein/self-installs/leiningen-2.1.3-standalone.jar now...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (22) The requested URL returned error: 403 Forbidden
Failed to download https://leiningen.s3.amazonaws.com/downloads/leiningen-2.1.3-standalone.jar
It's possible your HTTP client's certificate store does not have the
correct certificate authority needed. This is often caused by an
out-of-date version of libssl. Either upgrade it or set HTTP_CLIENT
to turn off certificate checks:
  export HTTP_CLIENT="wget --no-check-certificate -O" # or
  export HTTP_CLIENT="curl --insecure -f -L -o"
It's also possible that you're behind a firewall haven't yet
set HTTP_PROXY and HTTPS_PROXY.
Fehler: Hauptklasse clojure.main konnte nicht gefunden oder geladen werden
´´´
phaus commented 9 years ago

i created a ticket on the leiningen project as well https://github.com/technomancy/leiningen/issues/1916

mvitz commented 9 years ago

I think your leiningen is broken. Downloading the latest version should work. The JAR is not longer distributed over S3.

phaus commented 9 years ago

I deleted ~/.lein and also re-downloaded the latest lein version from https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein - still not working. So did you just used your local version or did you try to downlaod an update?

mvitz commented 9 years ago

I did exactly what you did on a VM that had no leiningen before. As you can see by yourself the scripts tries downloading the JAR from GitHub. Strange that your output above points to Amazon S3.

mvitz commented 9 years ago

Are you behind some kind of proxy/cache that cached the script in an older version? Because the stable branch/tag is reused for every latest release?

phaus commented 9 years ago

had an older version in Macports, that overrides the Path. Working now, see other Ticket.