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

lein deps Could not find a deployed artifact #297

Closed
firesofmay opened this issue Feb 18, 2015 · 8 comments
Closed

lein deps Could not find a deployed artifact #297

firesofmay opened this issue Feb 18, 2015 · 8 comments

Comments

@firesofmay
Copy link

Hi,

I've just pushed a clojure library (faker) to clojars.
The latest library version is 0.1.2 - https://clojars.org/helpshift/faker/versions/0.1.2

But I am unable to pull it into another project.

Command output:

$ lein deps
(Retrieving helpshift/faker/0.1.2/faker-0.1.2.jar from private)
Feb 18, 2015 3:00:05 PM org.jets3t.service.impl.rest.httpclient.RestS3Service performRequest
WARNING: Error Response: GET '/releases%2Fhelpshift%2Ffaker%2F0.1.2%2Ffaker-0.1.2.jar' -- ResponseCode: 404, ResponseStatus: Not Found, <clipped ....>

(Could not find artifact helpshift:faker:jar:0.1.2 in central (http://repo1.maven.org/maven2/))
(Could not find artifact helpshift:faker:jar:0.1.2 in clojars (https://clojars.org/repo/))
(Could not find artifact helpshift:faker:jar:0.1.2 in private (s3p://maven.helpshift.com/releases/))
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.

Note that I am able to pull 0.1.1 version.

Is this a clojars issue or I am doing something wrong here?

Other details:

$ lein --version
Leiningen 2.4.0 on Java 1.7.0_60 Java HotSpot(TM) 64-Bit Server VM
$ java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
@firesofmay
Copy link
Author

I tried upgrading to the latest lein version, now it's

$ lein version
Leiningen 2.5.1 on Java 1.7.0_60 Java HotSpot(TM) 64-Bit Server VM

Now I tried uploading another version of faker to clojars,
Still having problems.

$ lein deploy clojars

<Clipped....>

Sending helpshift/faker/0.2.0/faker-0.2.0.pom (3k)
    to https://clojars.org/repo/
Sending helpshift/faker/0.2.0/faker-0.2.0.jar (121k)
    to https://clojars.org/repo/
Could not transfer artifact helpshift:faker:jar:0.2.0 from/to clojars (https://clojars.org/repo/): Read timed out
Sending helpshift/faker/0.2.0/faker-0.2.0.jar.asc (1k)
    to https://clojars.org/repo/
Sending helpshift/faker/0.2.0/faker-0.2.0.pom.asc (1k)
    to https://clojars.org/repo/
Failed to deploy artifacts: Could not transfer artifact helpshift:faker:jar:0.2.0 from/to clojars (https://clojars.org/repo/): Read timed out

Now when I try to fetch it from another repo it fails:

$ lein deps
Retrieving helpshift/faker/0.2.0/faker-0.2.0.jar from clojars
Could not find artifact helpshift:faker:jar:0.2.0 in central (https://repo1.maven.org/maven2/)
Could not transfer artifact helpshift:faker:jar:0.2.0 from/to clojars (https://clojars.org/repo/): Checksum validation failed, no checksums available from the repository
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.

Is this a clojars problem?
How do I fix this?

@firesofmay
Copy link
Author

Btw here's the project.clj

(defproject helpshift/faker "0.2.0"
  :description "Helpshift's Library for generating Fake Data."
  :url "https://engineering.helpshift.com"
  :license  {:name "Eclipse Public License"
                 :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.6.0"]]
  :profiles {:dev {:global-vars {*warn-on-reflection* true
                                                *assert* true}
                   :codox {:defaults {:doc "FIXME: Write docs."
                                                :doc/format :markdown}}
                   :plugins [[codox "0.8.10"]]}})

@firesofmay
Copy link
Author

Any update on this? :-/

@tobias
Copy link
Member

tobias commented Mar 13, 2015

It looks like your deploys aren't successfully sending all of the required artifacts - version 0.1.2 is missing the jar file and the jar checksums, version 0.2.0 has the jar, but is missing the jar checksums. This is likely caused by network issues between you and clojars. Your only recourse currently is to try to deploy a new version - I can remove version 0.2.0 if you want to try it again, especially since no one will have been able to download and use it.

We have a request (#226) to allow you to replace incomplete deploys, but it has not yet been implemented.

@firesofmay
Copy link
Author

@tobias Yes could you please remove 0.2.0 version so I can try deploying again?
Thanks a lot.

@tobias
Copy link
Member

tobias commented Mar 13, 2015

I removed helpshift/faker 0.2.0. Give it another try.

@firesofmay
Copy link
Author

Thanks. It worked.
If this happens in future again, what's the best course of action?
Create a ticket?

@tobias
Copy link
Member

tobias commented Mar 14, 2015

Yes, for now, the best thing to do is to file a ticket.

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

2 participants