Coder Social home page Coder Social logo

Comments (2)

ladar avatar ladar commented on August 18, 2024

@Kiran22222 I believe that is an issue with the bundled memcached. It doesn't destroy the server instances from pervious test cases, which keeps the port occupied, and when it tries to spawn a server instance for a new test case, it fails because the port is occupied.

You can try removing the OS memcached server package, so it uses the server bundled with the client library for (testing). You can try and diagnose why the server isn't exiting, and/or see if a newer there is a newer release/patch floating around that fixes this.

You can also run:

QUICK=yes dev/scripts/builders/build.lib.sh all

Which will build the shared magmad.so library without running the unit tests for each library.

from magma.

ladar avatar ladar commented on August 18, 2024

@Kiran22222 I recently dug into a number of minor issues with the dependency checks. I think I've fixed the issues for curl/clam, but with memcached the problem can sometimes be your firewall.

If the invalid address libmemcached tries connecting to, so it can test UDP timeouts, will sometimes trigger an immediate invalid network destination response from a firewall, which will break the test as written. An interim fix is to simply drop packets to that destination.

For iptables:

sudo iptables -I OUTPUT -d 10.2.251.4 -j DROP

To make the change permanent:

sudo service iptables save

Or for firewalld systems:

sudo firewall-cmd --direct --add-rule ipv4 filter OUTPUT 0 -d 10.2.251.4/32 -j DROP

To make the change permanent:

sudo firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -d 10.2.251.4/32 -j DROP

I confirmed this fixes things when those are run on a host, and the tests are being run inside a VM. I haven't tried this fix yet on the system running the tests yet. But the iptable/firewall rule might not work, as the kernel will report network prohibited in those situations.

from magma.

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.