Skip to content

Instantly share code, notes, and snippets.

@borgified
Created September 16, 2013 02:00
Show Gist options
  • Save borgified/6575939 to your computer and use it in GitHub Desktop.
Save borgified/6575939 to your computer and use it in GitHub Desktop.
build: 215 /etc/issue Ubuntu 11.10 \n \l + uname -a Linux supox 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux +
Started by upstream project "ha:AAAAmh+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAyOEgY+/az8JP3E4uLM3Nz8PH0AGp0igcMAAAA=assimmon" build number ha:AAAAnR+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzmEgZB/az8JP3E4uLM3Nz8PH0jQ1MADMtOzsYAAAA=215
originally caused by:
Started by command line by ha:AAAAmx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzOEgZ+/dLi1CL9xLz8vMrc/NJiAJjzDjjEAAAAanonymous
Starting limited count build: 1
[EnvInject] - Loading node environment variables.
Building remotely on ha:AAAAmx+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzWEgZ+/eT83ILSktQi/eLSgvwKANrN9A7EAAAAsupox (ubuntu_64) in workspace /tmp/workspace/assimmon/label/supox
[EnvInject] - Executing scripts and injecting environment variables after the SCM step.
[EnvInject] - Injecting as environment variables the properties content
BROKENDNS=1
[EnvInject] - Variables injected successfully.
[supox] $ /bin/sh -xe /tmp/hudson3362662657277551866.sh
+ echo this is build number 215
this is build number 215
+ cat /etc/issue
Ubuntu 11.10 \n \l
+ uname -a
Linux supox 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
+ whoami
ingresuser
+ sudo apt-get update
Ign http://ppa.launchpad.net precise InRelease
Get:1 http://ppa.launchpad.net precise Release.gpg [316 B]
Get:2 http://ppa.launchpad.net precise Release [11.9 kB]
Get:3 http://ppa.launchpad.net precise/main Sources [1,217 B]
Get:4 http://ppa.launchpad.net precise/main amd64 Packages [2,812 B]
Get:5 http://ppa.launchpad.net precise/main i386 Packages [2,812 B]
Ign http://ppa.launchpad.net precise/main TranslationIndex
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://security.ubuntu.com oneiric-security InRelease
Ign http://security.ubuntu.com oneiric-security Release.gpg
Hit http://security.ubuntu.com oneiric-security Release
Ign http://security.ubuntu.com oneiric-security/main Sources/DiffIndex
Ign http://security.ubuntu.com oneiric-security/restricted Sources/DiffIndex
Ign http://security.ubuntu.com oneiric-security/universe Sources/DiffIndex
Ign http://security.ubuntu.com oneiric-security/multiverse Sources/DiffIndex
Ign http://security.ubuntu.com oneiric-security/main amd64 Packages/DiffIndex
Ign http://security.ubuntu.com oneiric-security/restricted amd64 Packages/DiffIndex
Ign http://security.ubuntu.com oneiric-security/universe amd64 Packages/DiffIndex
Ign http://security.ubuntu.com oneiric-security/multiverse amd64 Packages/DiffIndex
Ign http://security.ubuntu.com oneiric-security/main i386 Packages/DiffIndex
Ign http://security.ubuntu.com oneiric-security/restricted i386 Packages/DiffIndex
Ign http://security.ubuntu.com oneiric-security/universe i386 Packages/DiffIndex
Ign http://security.ubuntu.com oneiric-security/multiverse i386 Packages/DiffIndex
Ign http://security.ubuntu.com oneiric-security/main TranslationIndex
Ign http://security.ubuntu.com oneiric-security/multiverse TranslationIndex
Ign http://security.ubuntu.com oneiric-security/restricted TranslationIndex
Ign http://security.ubuntu.com oneiric-security/universe TranslationIndex
Hit http://security.ubuntu.com oneiric-security/main Sources
Hit http://security.ubuntu.com oneiric-security/restricted Sources
Hit http://security.ubuntu.com oneiric-security/universe Sources
Hit http://security.ubuntu.com oneiric-security/multiverse Sources
Hit http://security.ubuntu.com oneiric-security/main amd64 Packages
Hit http://security.ubuntu.com oneiric-security/restricted amd64 Packages
Hit http://security.ubuntu.com oneiric-security/universe amd64 Packages
Hit http://security.ubuntu.com oneiric-security/multiverse amd64 Packages
Hit http://security.ubuntu.com oneiric-security/main i386 Packages
Hit http://security.ubuntu.com oneiric-security/restricted i386 Packages
Hit http://security.ubuntu.com oneiric-security/universe i386 Packages
Hit http://security.ubuntu.com oneiric-security/multiverse i386 Packages
Hit http://security.ubuntu.com oneiric-security/main Translation-en
Hit http://security.ubuntu.com oneiric-security/multiverse Translation-en
Hit http://security.ubuntu.com oneiric-security/restricted Translation-en
Hit http://security.ubuntu.com oneiric-security/universe Translation-en
Ign http://security.ubuntu.com oneiric-security/main Translation-en_US
Ign http://security.ubuntu.com oneiric-security/multiverse Translation-en_US
Ign http://security.ubuntu.com oneiric-security/restricted Translation-en_US
Ign http://security.ubuntu.com oneiric-security/universe Translation-en_US
Ign http://us.archive.ubuntu.com oneiric InRelease
Ign http://us.archive.ubuntu.com oneiric-updates InRelease
Ign http://us.archive.ubuntu.com oneiric-backports InRelease
Ign http://us.archive.ubuntu.com oneiric Release.gpg
Ign http://us.archive.ubuntu.com oneiric-updates Release.gpg
Ign http://us.archive.ubuntu.com oneiric-backports Release.gpg
Hit http://us.archive.ubuntu.com oneiric Release
Hit http://us.archive.ubuntu.com oneiric-updates Release
Hit http://us.archive.ubuntu.com oneiric-backports Release
Ign http://us.archive.ubuntu.com oneiric/main Sources/DiffIndex
Ign http://us.archive.ubuntu.com oneiric/restricted Sources/DiffIndex
Ign http://us.archive.ubuntu.com oneiric/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com oneiric/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com oneiric/main amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric/restricted amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric/universe amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric/multiverse amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric/main i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric/restricted i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric/multiverse i386 Packages/DiffIndex
Hit http://us.archive.ubuntu.com oneiric/main TranslationIndex
Hit http://us.archive.ubuntu.com oneiric/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com oneiric/restricted TranslationIndex
Hit http://us.archive.ubuntu.com oneiric/universe TranslationIndex
Ign http://us.archive.ubuntu.com oneiric-updates/main Sources/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-updates/restricted Sources/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-updates/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-updates/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-updates/main amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-updates/restricted amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-updates/universe amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-updates/multiverse amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-updates/main i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-updates/restricted i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-updates/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-updates/multiverse i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-updates/main TranslationIndex
Ign http://us.archive.ubuntu.com oneiric-updates/multiverse TranslationIndex
Ign http://us.archive.ubuntu.com oneiric-updates/restricted TranslationIndex
Ign http://us.archive.ubuntu.com oneiric-updates/universe TranslationIndex
Ign http://us.archive.ubuntu.com oneiric-backports/main Sources/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-backports/restricted Sources/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-backports/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-backports/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-backports/main amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-backports/restricted amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-backports/universe amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-backports/multiverse amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-backports/main i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-backports/restricted i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-backports/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-backports/multiverse i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com oneiric-backports/main TranslationIndex
Ign http://us.archive.ubuntu.com oneiric-backports/multiverse TranslationIndex
Ign http://us.archive.ubuntu.com oneiric-backports/restricted TranslationIndex
Ign http://us.archive.ubuntu.com oneiric-backports/universe TranslationIndex
Hit http://us.archive.ubuntu.com oneiric/main Sources
Hit http://us.archive.ubuntu.com oneiric/restricted Sources
Hit http://us.archive.ubuntu.com oneiric/universe Sources
Hit http://us.archive.ubuntu.com oneiric/multiverse Sources
Hit http://us.archive.ubuntu.com oneiric/main amd64 Packages
Hit http://us.archive.ubuntu.com oneiric/restricted amd64 Packages
Hit http://us.archive.ubuntu.com oneiric/universe amd64 Packages
Hit http://us.archive.ubuntu.com oneiric/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com oneiric/main i386 Packages
Hit http://us.archive.ubuntu.com oneiric/restricted i386 Packages
Hit http://us.archive.ubuntu.com oneiric/universe i386 Packages
Hit http://us.archive.ubuntu.com oneiric/multiverse i386 Packages
Hit http://us.archive.ubuntu.com oneiric/main Translation-en
Hit http://us.archive.ubuntu.com oneiric/multiverse Translation-en
Hit http://us.archive.ubuntu.com oneiric/restricted Translation-en
Hit http://us.archive.ubuntu.com oneiric/universe Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates/main Sources
Hit http://us.archive.ubuntu.com oneiric-updates/restricted Sources
Hit http://us.archive.ubuntu.com oneiric-updates/universe Sources
Hit http://us.archive.ubuntu.com oneiric-updates/multiverse Sources
Hit http://us.archive.ubuntu.com oneiric-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/restricted amd64 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/main i386 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/multiverse i386 Packages
Hit http://us.archive.ubuntu.com oneiric-updates/main Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com oneiric-updates/universe Translation-en
Hit http://us.archive.ubuntu.com oneiric-backports/main Sources
Hit http://us.archive.ubuntu.com oneiric-backports/universe Sources
Hit http://us.archive.ubuntu.com oneiric-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com oneiric-backports/universe amd64 Packages
Hit http://us.archive.ubuntu.com oneiric-backports/main i386 Packages
Hit http://us.archive.ubuntu.com oneiric-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com oneiric-backports/main Translation-en
Hit http://us.archive.ubuntu.com oneiric-backports/universe Translation-en
Ign http://us.archive.ubuntu.com oneiric-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com oneiric-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com oneiric-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com oneiric-updates/universe Translation-en_US
Err http://us.archive.ubuntu.com oneiric-backports/restricted Sources
404 Not Found
Err http://us.archive.ubuntu.com oneiric-backports/multiverse Sources
404 Not Found
Err http://us.archive.ubuntu.com oneiric-backports/restricted amd64 Packages
404 Not Found
Err http://us.archive.ubuntu.com oneiric-backports/multiverse amd64 Packages
404 Not Found
Err http://us.archive.ubuntu.com oneiric-backports/restricted i386 Packages
404 Not Found
Err http://us.archive.ubuntu.com oneiric-backports/multiverse i386 Packages
404 Not Found
Ign http://us.archive.ubuntu.com oneiric-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com oneiric-backports/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com oneiric-backports/multiverse Translation-en
Ign http://us.archive.ubuntu.com oneiric-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com oneiric-backports/restricted Translation-en
Ign http://us.archive.ubuntu.com oneiric-backports/universe Translation-en_US
Fetched 19.0 kB in 1h 2min 33s (5 B/s)
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/oneiric-backports/restricted/source/Sources 404 Not Found
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/oneiric-backports/multiverse/source/Sources 404 Not Found
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/oneiric-backports/restricted/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/oneiric-backports/multiverse/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/oneiric-backports/restricted/binary-i386/Packages 404 Not Found
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/oneiric-backports/multiverse/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Build step 'Execute shell' marked build as failure
Performing Post build task...
Match found for :Started by : True
Logical operation result is TRUE
Running script : echo ${NODE_NAME}
echo ${BUILD_NUMBER}
echo ${BUILD_ID}
ssh jctong@jenkinsci /home/jctong/scripts/jenkins-console-output-forwarder-to-gist/new.pl ${NODE_NAME} ${BUILD_NUMBER}
ssh jctong@jenkinsci /home/jctong/scripts/twitter_notifier/notifier.pl ${NODE_NAME} ${BUILD_NUMBER}
ssh jctong@jenkinsci /home/jctong/scripts/dropbox_pkg_uploader/upload.pl /tmp/${BUILD_NUMBER}/${NODE_NAME} ${BUILD_ID} ${NODE_NAME} ${BUILD_NUMBER}
[supox] $ /bin/sh -xe /tmp/hudson6668338593671807796.sh
+ echo supox
supox
+ echo 215
215
+ echo 2014-05-02_22-05-05
2014-05-02_22-05-05
+ ssh jctong@jenkinsci /home/jctong/scripts/jenkins-console-output-forwarder-to-gist/new.pl supox 215
Warning: Permanently added the ECDSA host key for IP address '10.3.12.38' to the list of known hosts.
@Alan-R
Copy link

Alan-R commented Nov 17, 2013

This is the error:

raise ValueError('Illegal NetAddr initial value: "%s"' % addrstring)
ValueError: Illegal NetAddr initial value: "www.linux-ha.org:http"

This is possibly a problem with DNS, possibly a problem with /etc/services, and possibly a library bug. It could also be something in the project code. But if it's a library bug, I need to create a workaround if possible.

@Alan-R
Copy link

Alan-R commented Nov 17, 2013

Here's the code snippet that fails:

        addr1 = pyNetAddr('www.linux-ha.org:80')
        self.assertEqual(addr1.port(), 80)
        addr2 = pyNetAddr('www.linux-ha.org:http')

Note that putting :80 must have succeeded, but :http failed. This nails it down to /etc/services not having http at port 80, or some library somewhere not supporting it being symbolic.

OK. Looking at my 'C' code that underlies this failure:

    memset(&hints, 0, sizeof(hints));
    hints.ai_family = AF_UNSPEC;
    hints.ai_socktype = SOCK_DGRAM;
    rc =  getaddrinfo(sysname, service, &hints, &sysinfo);
    if (0 != rc) {
        DEBUGMSG("%s.%d: Could not resolve %s - reason: %s"
        ,   __FUNCTION__, __LINE__, sysname, gai_strerror(rc));
    }else{
        ret = netaddr_sockaddr_new((struct sockaddr_in6*)sysinfo[0].ai_addr
        ,   sysinfo[0].ai_addrlen);
        freeaddrinfo(sysinfo);
    }

So, the function that's failing is the getaddrinfo call above. Getaddrinfo conforms to POSIX.1-2001. The getaddrinfo() function is documented in RFC 2553. RFC 2553 is dated 1999, and the POSIX spec that includes it is dated 2001. So, the function has not changed since 2001 or a few years after that. I'm thinking that /etc/services is not correct. I suppose /etc/gai.conf could also be wrong, but hard to see how that could cause the result to fail when given a symbolic address (it is supposed to specify how the output is sorted if more than one answer is returned).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment