Comments (9)
I can confirm this fixes things for us. Been uploading artifacts close to 4GB without a hitch using mvn.
from docker-archiva.
I'll take a look at this over the weekend and let you know how it goes
from docker-archiva.
👋 @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:
- There is no nginx server in the archiva image we provide (though it can be used with one!).
- 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.
👋 @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.
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.
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.
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.
Hmmm. Since I can can successfully upload very large files, can you do one of two things:
- Remove the
org.eclipse.jetty.server.Request.maxFormContentSize
settings from your archiva instance and see if things still work. I suspect they will. - 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.
/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)
- Running from example seems to hang on "Loading" HOT 2
- Support custom context path with environment variable HOT 7
- Artifacts are no longer stored under /archiva-data HOT 3
- What is the root password for Archiva Docker image? HOT 1
- while trying to push the artifact from jenkins(CI Job) to nexus.Error:"HTTP method PUT is not supported by this URL". HOT 1
- Latest openjdk:8 image breaks builds due to cacerts being moved.
- Error creating bean with name 'authenticationInterceptor#rest' HOT 2
- Hello, I'm new to docker. How easy would it be to add the $PORT env variable as a configuration parameter ? Thanks HOT 1
- validation_mail: user and password set via env variable HOT 2
- Container does not start as expected (HTTP ERROR 404) HOT 2
- How to set rest.baseUrl if behind proxy. HOT 2
- can't create directory '/archiva-data/data': Permission denied HOT 6
- Add support for ARM 64 HOT 2
- Critical Log4j RCE bug (CVE-2021-44228) HOT 2
- Dockerhub tag `latest` does not seem to get updated HOT 1
- SSL Connection issue while connecting to mysql database HOT 1
- Write migration guide to reposilite
- Archiva 2.2.10 HOT 1
- Adding port 8443 to port list HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-archiva.