GithubHelp home page GithubHelp logo

[bug] flexo serves 0 length files about flexo HOT 2 CLOSED

nroi avatar nroi commented on July 19, 2024
[bug] flexo serves 0 length files

from flexo.

Comments (2)

nroi avatar nroi commented on July 19, 2024

Flexo obviously shouldn't create empty files and then assume that 0 is the correct content length, so this is a bug.

Another problem is that, for some reason, the selected mirrors are causing timeouts for you. Could you please tell me if:

  • You are located at or near central Europe? Because if you're located at another continent, then there seems to be a problem with the mirror selection process, because the selected mirrors are in Germany.
  • Do you generally have a bad or high latency internet connection? Are you using a VPN, or a wireless 3G connection or anything out of the ordinary that could introduce latencies?

As a workaround:

  1. Remove all empty files (something like find /var/cache/flexo/pkg -size 0 -print -delete should do the trick.
  2. It looks like you currently have the setting mirrors_random_or_sort = "random", try to change this to mirrors_random_or_sort = "sort", because the random setting has not been tested as well as sort.
  3. Remove the latency test results and restart Flexo so that the latency test is started again:
    rm /var/cache/flexo/state/latency_test_results.json
    systemctl restart flexo
    

Any idea how to increase the downlaod time out as workaround?

Flexo is currently using the default timeouts from CURL, and so far, I think they have worked well for all users. So I hope we find a solution where fast mirrors are selected so that no timeouts occur.

from flexo.

ivdimitro avatar ivdimitro commented on July 19, 2024

Thanks for the reply. About the repo, yes I am in Central Europe. My internet is OK but I seems to have some issues with some of the German servers. I have to blacklist the ones that are causing me problem. The issues with those servers was happening even when I was using nginx caching server.

from flexo.

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.