build failing on download by ant build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpad-buildd |
Fix Released
|
High
|
Colin Watson |
Bug Description
I have a snap part which builds fine under lxd however it fails to build on the build servers.
The error appears to indicate that it is unable to download a file which stops the build proceeding.
There also appears to be an secondary error as there is an error regarding a python library however the snap in question doesn't use python for the build. The build uses ant so I'm guessing the python error might be caused by the python plugin for ant.
The problem seems a little similar to a number of other reports related to ant in that there are some problems with ant downloading files.
The difference with this issue is that it reports an error saying it can't find a file rather than that it can't download a file.
For reference:
https:/
https:/
https:/
The build in question is here:
https:/
The primary error is:
testexist:
[echo] Testing for /root/tomcat-
downloadgz-2:
[mkdir] Created dir: /root/tomcat-
setproxy:
trydownload.check:
trydownload:
setproxy:
trydownload.check:
trydownload:
BUILD FAILED
/build/
/build/
Secondary error:
Total time: 0 seconds
ant
/usr/lib/
warnings.
/usr/lib/
warnings.
/usr/lib/
Related branches
- William Grant (community): Approve (code)
-
Diff: 598 lines (+370/-41)10 files modifiedbuildd-genconfig (+6/-1)
debian/changelog (+4/-0)
debian/control (+1/-0)
debian/postinst (+1/-1)
debian/upgrade-config (+13/-0)
lpbuildd/buildd-slave.tac (+1/-0)
lpbuildd/snap.py (+262/-2)
lpbuildd/target/build_snap.py (+0/-37)
lpbuildd/tests/test_snap.py (+79/-0)
template-buildd-slave.conf (+3/-0)
Changed in launchpad-buildd: | |
status: | Incomplete → Fix Committed |
importance: | Undecided → High |
assignee: | nobody → Colin Watson (cjwatson) |
I've narrowed this problem down and now believe it is a proxy issue.
Ant attempts to download a number of gz files as part of its build process.
Its my understanding that the build servers restrict direct access and all downloads must go via a proxy.
I believe that Ant is ignoring the proxy settings so the download fails.
So two questions:
1) how do I discover the proxy settings on the build servers
2) how do I pass those proxy settings to the Ant build process
Help would be greatly appreciated.