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

increase body size for opencv-native #45

Merged
merged 1 commit into from
Apr 24, 2019

Conversation

hellonico
Copy link
Contributor

This increase the size of upload to 100m just for opencv-native.
I've created a sample nginx/docker repository to show how this works:

https://github.com/hellonico/nginx-clojars-sample

@danielcompton
Copy link
Member

Nifty, thanks!

@danielcompton danielcompton merged commit de3e350 into clojars:master Apr 24, 2019
@danielcompton
Copy link
Member

Have deployed this, can you give it a go and let me know if you run into any issues?

@hellonico
Copy link
Contributor Author

It probably almost worked, but I get a not allowed probably due to the fact that the group does not exist yet ?

Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact opencv-native:opencv-native:jar:4.0.0-1 from/to clojars (https://clojars.org/repo/): Failed to transfer file: https://clojars.org/repo/opencv-native/opencv-native/4.0.0-1/opencv-native-4.0.0-1.jar. Return code is: 405, ReasonPhrase: Not Allowed.
 at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed (ArtifactTransportListener.java:52)

This is the command i am using:

lein deploy clojars opencv-native/opencv-native 4.0.0-1 opencv-native-4.0.0-1.jar	opencv-native-4.0.0-1.pom.xml

@danielcompton
Copy link
Member

Can you run lein pprint to print out the project map? My suspicion is that it’s trying to deploy via the Fastly CDN (repo.clojars.org) instead of straight to Clojars (clojars.org/repo). This is controlled by :deploy-repositories.

@hellonico
Copy link
Contributor Author

Relevant part below:

...
 :deploy-repositories
 [["clojars"
   {:url "https://clojars.org/repo/",
    :password :gpg,
    :username :gpg}]],
...
 :repositories
 [["central"
   {:url "https://repo1.maven.org/maven2/", :snapshots false}]
  ["clojars" {:url "https://repo.clojars.org/"}]],
...

So :deploy-repositories looks correct?

I don't have a project.clj file by the way, I use straight the command below on the pom and jar file in a otherwise empty directory:

lein deploy clojars opencv-native/opencv-native 4.0.0-1 opencv-native-4.0.0-1.jar	opencv-native-4.0.0-1.pom.xml

The similar command below worked for the other opencv jar: (which contains only the api and is small)

lein deploy clojars opencv/opencv 4.0.0-0 opencv-4.0.0-0.jar opencv-4.0.0-0.pom 

@danielcompton
Copy link
Member

Hmm, I'm not quite sure here. The only 405 I can see is at https://github.com/clojars/clojars-web/blob/46abb2bef27084f253db55eed2f4a1bb07d2c843/src/clojars/web.clj#L91 which doesn't look relevant...

@hellonico
Copy link
Contributor Author

Actually it may be since the lein uploading is going through a put method as seen in the stack trace below.

 at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:635)
    org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:557)
    org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:539)
    org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:533)
    org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:513)
    org.eclipse.aether.transport.wagon.WagonTransporter$PutTaskRunner.run (WagonTransporter.java:653)
    org.eclipse.aether.transport.wagon.WagonTransporter.execute (WagonTransporter.java:436)
    org.eclipse.aether.transport.wagon.WagonTransporter.put (WagonTransporter.java:419)
    org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.runTask (BasicRepositoryConnector.java:519)
    org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:359)
    org.eclipse.aether.connector.basic.BasicRepositoryConnector.put (BasicRepositoryConnector.java:283)
    org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:289)
    org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:223)
    org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy (DefaultRepositorySystem.java:384)

@danielcompton
Copy link
Member

Just to rule out other possible causes, can you push a SNAPSHOT to opencv-native without the large files to make sure you can deploy to that location?

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

Successfully merging this pull request may close these issues.

None yet

2 participants