ros-infrastructure / buildfarm

Build scripts and notes for catkin debian build pipeline.
6 stars 15 forks source link

apt-get install can collide with system operations #126

Closed tfoote closed 10 years ago

tfoote commented 11 years ago

My speculation is that this is colliding with the puppet instance in the background maintaining the server.

+ IMAGEFILE_FILENAME=/tmp/tmp.RCiRI3NjLS/basetgz
+ IMAGEFILE=/var/cache/pbuilder/jenkins_tools.precise.amd64-0.4.1.tgz
+ IMAGELOCK=/var/cache/pbuilder/jenkins_tools.precise.amd64-0.4.1.updatelock
+ IMAGESTAMPFILE=/var/cache/pbuilder/jenkins_tools.precise.amd64-0.4.1.version
+ ROOTDIR=/var/cache/pbuilder/jenkins_tools.precise.amd64-0.4.1/apt-conf-0.4.1
+ echo /var/cache/pbuilder/jenkins_tools.precise.amd64-0.4.1.tgz
+ '[' '!' -f /var/cache/pbuilder/jenkins_tools.precise.amd64-0.4.1.tgz ']'
+ UPDATE=/usr/bin/chroot_update.sh
+ '[' '!' -f /var/cache/pbuilder/jenkins_tools.precise.amd64-0.4.1.version ']'
++ cat /var/cache/pbuilder/jenkins_tools.precise.amd64-0.4.1.version
+ IMAGESTAMP=0.0.52-1
+ /bin/echo 'Image stamp is 0.0.52-1'
Image stamp is 0.0.52-1
+ sudo apt-get install apt-show-versions --yes
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Build step 'Execute shell' marked build as failure
Recording test results
Sending e-mails to: ros-buildfarm-doc@googlegroups.com
Finished: FAILURE
tfoote commented 10 years ago

I've confirmed that none of the jobs use apt-get anymore. (A few of the python releases do, but they should go away soon.

dirk-thomas commented 10 years ago

The doc jobs rely heavily on apt-get: https://github.com/ros-infrastructure/jenkins_scripts/blob/master/doc#L137

tfoote commented 10 years ago

jenkins_scripts reviewed https://github.com/ros-infrastructure/jenkins_scripts/pull/53

tfoote commented 10 years ago

We're clear now except for the metrics jobs which will be refactored shortly.