Error: Failure trying to run: chroot /var/cache/pbuilder/build/24081/. mount -t proc proc /proc

142 views
Skip to first unread message

Dave Kasberg

unread,
Feb 27, 2017, 11:06:57 PM2/27/17
to Ansible Development
When doing a 'make deb', more specifically 'make DEB_DIST=trusty deb' I get the error shown in the subject line.   Does anyone know what may be causing this?

Snippet of the output from the make.  See the lines highlighted in red/bold about 12 above the end of the text below.  There are '.....' lines where I've removed lines that did not seem relevant.

make DEB_DIST=trusty deb

Cleaning up distutils stuff
rm -rf build
rm -rf dist
rm -rf lib/ansible.egg-info/
Cleaning up byte compiled python stuff
find . -type f -regex ".*\.py[co]$" -delete
Cleaning up editor backup files
find . -type f -not -path ./test/units/inventory_test_data/group_vars/noparse/all.yml~ \( -name "*~" -or -name "#*" \) -delete
find . -type f \( -name "*.swp" \) -delete
Cleaning up manpage stuff
find ./docs/man -type f -name "*.xml" -delete
find ./docs/man -type f -name "*.asciidoc" -delete
find ./docs/man/man3 -type f -name "*.3" -delete
Cleaning up output from test runs
rm -rf test/test_data
Cleaning up RPM building stuff
rm -rf MANIFEST rpm-build
Cleaning up Debian building stuff
rm -rf debian
rm -rf deb-build
rm -rf docs/json
rm -rf docs/js
Cleaning up authors file
rm -f AUTHORS.TXT
find . -type f -name '*.pyc' -delete
rm -f /test/units/.coverage*
Cleaning up docsite
make -C docs/docsite clean
make[1]: Entering directory `/home/test/ansible/docs/docsite'
rm -rf htmlout
rm -rf _build
rm -f .buildinfo
rm -f *.inv
rm -rf *.doctrees
Cleaning up minified css files
find . -type f -name "*.min.css" -delete
Cleaning up byte compiled python stuff
find . -regex ".*\.py[co]$" -delete
Cleaning up editor backup files
find . -type f \( -name "*~" -or -name "#*" \) -delete
find . -type f \( -name "*.swp" \) -delete
Cleaning up generated rst
rm rst/list_of_*.rst
rm: cannot remove `rst/list_of_*.rst': No such file or directory
make[1]: [clean] Error 1 (ignored)
rm rst/*_by_category.rst
rm: cannot remove `rst/*_by_category.rst': No such file or directory
make[1]: [clean] Error 1 (ignored)
rm rst/*_module.rst
rm: cannot remove `rst/*_module.rst': No such file or directory
make[1]: [clean] Error 1 (ignored)
rm rst/playbooks_directives.rst
rm: cannot remove `rst/playbooks_directives.rst': No such file or directory
make[1]: [clean] Error 1 (ignored)
make[1]: Leaving directory `/home/test/ansible/docs/docsite'
make -C docs/api clean
make[1]: Entering directory `/home/test/ansible/docs/api'
rm -rf _build/*
rm -rf rst/*.rst
make[1]: Leaving directory `/home/test/ansible/docs/api'
python setup.py sdist
running sdist
running egg_info
creating lib/ansible.egg-info
writing requirements to lib/ansible.egg-info/requires.txt
writing lib/ansible.egg-info/PKG-INFO
writing top-level names to lib/ansible.egg-info/top_level.txt
writing dependency_links to lib/ansible.egg-info/dependency_links.txt
writing manifest file 'lib/ansible.egg-info/SOURCES.txt'
reading manifest file 'lib/ansible.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'ticket_stubs'
no previously-included directories found matching 'hacking'
writing manifest file 'lib/ansible.egg-info/SOURCES.txt'
warning: sdist: standard file not found: should have one of README, README.rst, README.txt

running check
creating ansible-2.3.0
creating ansible-2.3.0/bin
creating ansible-2.3.0/contrib
creating ansible-2.3.0/contrib/inventory
......
creating ansible-2.3.0/test/utils/shippable
creating ansible-2.3.0/test/utils/tox
copying files to ansible-2.3.0...
copying CHANGELOG.md -> ansible-2.3.0
copying COPYING -> ansible-2.3.0
copying MANIFEST.in -> ansible-2.3.0
copying Makefile -> ansible-2.3.0
copying README.md -> ansible-2.3.0
copying VERSION -> ansible-2.3.0
copying requirements.txt -> ansible-2.3.0
copying setup.py -> ansible-2.3.0
copying bin/ansible -> ansible-2.3.0/bin
copying bin/ansible-connection -> ansible-2.3.0/bin
......
copying test/utils/tox/requirements-py3.txt -> ansible-2.3.0/test/utils/tox
copying test/utils/tox/requirements.txt -> ansible-2.3.0/test/utils/tox
Writing ansible-2.3.0/setup.cfg
creating dist
Creating tar archive
removing 'ansible-2.3.0' (and everything under it)
ansible-2.3.0/
ansible-2.3.0/Makefile
ansible-2.3.0/MANIFEST.in
ansible-2.3.0/CHANGELOG.md
ansible-2.3.0/PKG-INFO
ansible-2.3.0/setup.py
ansible-2.3.0/hacking/
ansible-2.3.0/hacking/templates/
ansible-2.3.0/hacking/templates/rst.j2
.......
ansible-2.3.0/docs/docsite/variables.dot
ansible-2.3.0/docs/docsite/rst_common/
ansible-2.3.0/docs/docsite/rst_common/ansible_ssh_changes_note.rst
debuild: unknown dpkg-buildpackage/debuild option: --source-option=-I
 dpkg-buildpackage -rfakeroot -d -us -uc --source-option=-I -S
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro
dpkg-buildpackage: source package ansible
dpkg-buildpackage: source version 2.3.0-100.git201702232159.c3150fb.devel~trusty
dpkg-buildpackage: source changed by Ansible, Inc. <in...@ansible.com>
 dpkg-source -I --before-build ansible-2.3.0
 fakeroot debian/rules clean
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
test -x debian/rules
dh_testroot
dh_clean
cd . && \
                python setup.py clean \
                -a
running clean
'build/lib.linux-i686-2.7' does not exist -- can't clean it
'build/bdist.linux-i686' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
rm -rf debian/python-module-stampdir
find "/home/test/ansible/deb-build/trusty/ansible-2.3.0" -name '*.py[co]' -delete
find "/home/test/ansible/deb-build/trusty/ansible-2.3.0" -name __pycache__ -type d -empty -delete
find "/home/test/ansible/deb-build/trusty/ansible-2.3.0" -prune -name '*.egg-info' -exec rm -rf '{}' ';'
 dpkg-source -I -b ansible-2.3.0
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: info: using source format `1.0'
dpkg-source: info: building ansible in ansible_2.3.0-100.git201702232159.c3150fb.devel~trusty.tar.gz
dpkg-source: info: building ansible in ansible_2.3.0-100.git201702232159.c3150fb.devel~trusty.dsc
 dpkg-genchanges -S >../ansible_2.3.0-100.git201702232159.c3150fb.devel~trusty_source.changes
dpkg-genchanges: including full source code in upload
 dpkg-source -I --after-build ansible-2.3.0
dpkg-buildpackage: source only upload: Debian-native package
Now running lintian...
warning: the authors of lintian do not recommend running it with root privileges!
E: ansible changes: bad-distribution-in-changes-file trusty
W: ansible source: native-package-with-dash-version
W: ansible source: debian-revision-not-well-formed 2.3.0-100.git201702232159.c3150fb.devel~trusty
W: ansible source: binary-nmu-debian-revision-in-source 2.3.0-100.git201702232159.c3150fb.devel~trusty
Finished running lintian.
#############################################
Ansible DEB artifacts:
deb-build/trusty/ansible_2.3.0-100.git201702232159.c3150fb.devel~trusty_source.changes
#############################################
W: /root/.pbuilderrc does not exist
I: Distribution is trusty.
I: Building the build environment
I: running debootstrap
/usr/sbin/debootstrap
I: Retrieving Release
I: Retrieving Release.gpg
.....
I: Extracting util-linux...
I: Extracting zlib1g...
W: Failure trying to run: chroot /var/cache/pbuilder/build/24081/. mount -t proc proc /proc
E: debootstrap failed
W: Aborting with an error
I: cleaning the build env
I: removing directory /var/cache/pbuilder/build//24081 and its subdirectories
W: /root/.pbuilderrc does not exist
I: Building the build Environment
I: extracting base tarball [/var/cache/pbuilder/trusty-amd64-base.tgz]

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
E: failed to extract /var/cache/pbuilder/trusty-amd64-base.tgz to /var/cache/pbuilder/build//27602

Matt Clay

unread,
Feb 28, 2017, 1:09:08 AM2/28/17
to Ansible Development
Dave,

Make sure you're running the command as root to permit use of chroot.

 - Matt
Reply all
Reply to author
Forward
0 new messages