Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
`docker: Stale file handle` after updating Container Linux to alpha #2152
After an update from latest stable to latest alpha I encounter 'Stale file handle' errors while trying to use apt (dpkg) in Ubuntu-based docker containers (tested on 16.04 and 14.04). In Debian-based containers everything is ok.
Everything is fine with fresh alpha setup, but maybe there's an update issue. And I'll be grateful for ANY advice, because it's way more boring to move all the stuff to another instance.
Container Linux Version
Google Cloud Engine
One other step is needed to reproduce: between steps 1 and 2, run a container.
Container Linux stable currently has docker 1.12, which defaults to the
As a workaround, you can stop
I don't see any recent
So it looks as though this is a problem with the
There are three overlayfs commits that add ESTALE returns in 4.13. Two of them only affect mount time, and the third is torvalds/linux@b9ac5c2. Other 4.13 overlayfs changes may have introduced new calls to existing functions returning ESTALE, but I haven't checked.
Happens to me too on the
cat /etc/os-release NAME="Container Linux by CoreOS" ID=coreos VERSION=1520.3.0 VERSION_ID=1520.3.0 BUILD_ID=2017-09-15-2017 PRETTY_NAME="Container Linux by CoreOS 1520.3.0 (Ladybug)" ANSI_COLOR="38;5;75" HOME_URL="https://coreos.com/" BUG_REPORT_URL="https://issues.coreos.com" COREOS_BOARD="amd64-usr"
docker run -it --rm centos:7 bash Unable to find image 'centos:7' locally 7: Pulling from library/centos d9aaf4d82f24: Pull complete Digest: sha256:eba772bac22c86d7d6e72421b4700c3f894ab6e35475a34014ff8de74c10872e Status: Downloaded newer image for centos:7 [root@cc3077c5252a /]# yum install -y -q openssh-clients warning: /var/cache/yum/x86_64/7/base/packages/fipscheck-lib-1.4.1-6.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Public key for fipscheck-lib-1.4.1-6.el7.x86_64.rpm is not installed Public key for openssh-7.4p1-12.el7_4.x86_64.rpm is not installed Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <email@example.com>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-4.1708.el7.centos.x86_64 (@CentOS) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 370, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 276, in main return_code = base.doTransaction() File "/usr/share/yum-cli/cli.py", line 783, in doTransaction resultobject = self.runTransaction(cb=cb) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1943, in runTransaction self.verifyTransaction(resultobject, vTcb) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2006, in verifyTransaction po.yumdb_info.releasever = self.conf.yumvar['releasever'] File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1930, in __setattr__ self._write(attr, value) File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1854, in _write misc.unlink_f(fn + '.tmp') File "/usr/lib/python2.7/site-packages/yum/misc.py", line 955, in unlink_f os.unlink(filename) OSError: [Errno 116] Stale file handle: '/var/lib/yum/yumdb/f/cb7e013b0931dc495c9295d40ffbd0f49e31484b-fipscheck-lib-1.4.1-6.el7-x86_64/releasever.tmp'