Giter Site home page Giter Site logo

Comments (5)

reglim avatar reglim commented on June 13, 2024

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.

AlexReimann avatar AlexReimann commented on June 13, 2024

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.

reglim avatar reglim commented on June 13, 2024

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.

AlexReimann avatar AlexReimann commented on June 13, 2024

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.

reglim avatar reglim commented on June 13, 2024

Ok, perfect. I'll be interested to hear if it worked.

from aptly.

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.