Comments (5)
Thank you for submitting this issue.
I tried, but I couldn't reproduce this locally. I set up a snapshot with several gigabytes of data and I didn't get a timeout locally through curl with the following command:
$ time curl -X POST http://localhost:8080/api/publish -H 'Content-Type: application/json' -d '{
"SourceKind": "snapshot",
"Sources": [
{
"Name": "bullseye-snap"
}
],
"Signing": {
"Skip": true
}
}'
^C
real 2m23.659s
user 0m0.010s
sys 0m0.000s
Could you add some detail as to whether you're using some kind of nginx proxy or anything in that direction?
from aptly.
We have a traefik reverse proxy in between, but even using the command line the publishing in this case takes > 1min, so I think it is independent from the network setup.
It might be just that the disk we are using is slower (network drive), so it takes longer. Or the publishing time is more related to the number of packages (as stated above 15k+ packages), than the size. The size in our case was actually "rather small" (< 15 GB).
Our workaround so far is to have the publishing done with ?_async=true
(taken from here #1125), but with this we don't get error codes back when the publishing goes wrong.
from aptly.
What I thought could be the issue, is that the connection is being timed out by your proxy and not the API.
Is is possible to check by connecting via ssh (or just connect without the proxy) and curl-ing from there?
from aptly.
Yeah, just tried it locally without anything in between. Currently takes around 30 secs as we recently wiped the repo, so it is not timing out yet.
I can do a test setup with more packages to see if it then times out eventually, though maybe I'll just wait a week or two till we reached the amount of packages again 😅
from aptly.
Ok, perfect. I'll be interested to hear if it worked.
from aptly.
Related Issues (20)
- [Feature] Add arm64 deb builds to main repo HOT 1
- Aptly disrespects umask HOT 3
- List snapshots for specific repository? HOT 1
- Cannot update mirror of manticore search - aptly cannot parse Packages HOT 3
- how to package downloaded files for non-internet machine HOT 2
- Need help to get these packages using aptly HOT 3
- Cloudflare R2 S3 Storage API HOT 1
- Fix Pipeline failing because of Nvidia Repo Change
- Mirroring and publishing repository with debian-installer and its images HOT 1
- aptly graph image is removed immediately after rendering HOT 1
- Update Golang to 1.21, Python to 3.11 and Dependencies
- Fix Pipeline failing because of change in R-Project Repo
- Unable to mirror repository apt-archive.postgresql.org HOT 2
- "file already exists and is different" after un-publishing package from S3 HOT 2
- Feature request: option to generate a lastupdate file during aptly publish HOT 2
- nosuch.host tests fail when building on a host where wildcard dns entries are available HOT 1
- Build failure with go tidy HOT 1
- Filter not correctly working or no blacklisting of packages possible HOT 1
- Unable to get it working for Ubuntu Mantic - 404 error 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 aptly.