GithubHelp home page GithubHelp logo

Increase upload size about docker-archiva HOT 9 CLOSED

xetus-oss avatar xetus-oss commented on June 24, 2024
Increase upload size

from docker-archiva.

Comments (9)

CatsNipYummy avatar CatsNipYummy commented on June 24, 2024 1

I can confirm this fixes things for us. Been uploading artifacts close to 4GB without a hitch using mvn.

from docker-archiva.

CatsNipYummy avatar CatsNipYummy commented on June 24, 2024 1

I'll take a look at this over the weekend and let you know how it goes

from docker-archiva.

tkent avatar tkent commented on June 24, 2024

👋 @CatsNipYummy - This is the first time we've heard a need to change the max upload size. The docs you're referencing are from an older version of Archiva (1.3.6). The version of the image here is currently 2.2.5.

Did you run into an upload size constraint? If so, was this through a browser-based upload or through the mvn API? Also, two things I should note:

  1. There is no nginx server in the archiva image we provide (though it can be used with one!).
  2. Anecdotally, we worked with fairly large artifacts (100MB+) without any problem. We don't happen to use the UI for that though.

from docker-archiva.

CatsNipYummy avatar CatsNipYummy commented on June 24, 2024

👋 @tkent I am using the mvn API to upload the artifact. We have files close to 4GB in our system. Probably not the best use case for Archiva. but its been working well for us. The way I got it to work is by editing the following on docker creation:

JVM_EXTRA_OPTS="-Dorg.eclipse.jetty.server.Request.maxFormContentSize=2147483647" (JAVA's INT_MAX value)

Seems to have fixed the issue. Not sure if that's the best way forward

from docker-archiva.

tkent avatar tkent commented on June 24, 2024

Ah, good to know! If setting maxFormContentSize resolves the issue, we may want to want to just default the value going forward. That way other people with similar needs don't bump into it.

Just confirm once you know for sure and I'll see about adding that into the default image going forward.

from docker-archiva.

tkent avatar tkent commented on June 24, 2024

Hmmm.... I went to update the image to include org.eclipse.jetty.server.Request.maxFormContentSize as 2147483647 by default. Before making that change, I setup a test that uploaded a 6GB file to confirm the issue (so I could verify it was fixed by the change).

However, I was able to upload a 6GB zip file in the current v2.2.5 image version without a problem using a regular gradle publishing block (which uses the mvn API).

Did you perhaps change other things around the same time you set the org.eclipse.jetty.server.Request.maxFormContentSize value? Maybe a proxy in front of your archive container?

from docker-archiva.

CatsNipYummy avatar CatsNipYummy commented on June 24, 2024

Yes. we did. that was handled by another team so I'm not aware of all the changes that went into that side. But I do remember them setting a large upload size and still facing this issue with Archiva. but I cant confirm if both the changes happened at the same time resulting in the successful upload.

from docker-archiva.

tkent avatar tkent commented on June 24, 2024

Hmmm. Since I can can successfully upload very large files, can you do one of two things:

  1. Remove the org.eclipse.jetty.server.Request.maxFormContentSize settings from your archiva instance and see if things still work. I suspect they will.
  2. See if you can reproduce the issue with a local v2.2.5 instance? Since I'm able to upload a 6GB file using a test gradle project to a local container, there is a slim chance the problem only shows up with some different tooling.

Here is thebuild.gradle.kts I used for testing:

plugins {
  `maven-publish`
}

publishing {
  repositories {
    maven {
      url = uri("http://localhost:8080/repository/internal/")
      isAllowInsecureProtocol = true
      credentials {
        username = "admin"
        password = "abc123!!"
      }
    }
  }

  publications {
    create<MavenPublication>("maven") {
      groupId = "org.gradle.sample"
      artifactId = "library"
      version = "1.1"
      artifact("bigol.zip")
    }
  }
}

It assumes:

  • A large file named 'bigol.zip' exists in the project directory
  • A local archiva container with the admin user setup with a password of abc123!!

from docker-archiva.

tkent avatar tkent commented on June 24, 2024

/bump - Just checking to see if you were able to confirm on your side? If not, no big deal! I'll just close this issue in 10 days.

from docker-archiva.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.