Skip to content
This repository has been archived by the owner on Mar 28, 2018. It is now read-only.

nginx image apt-get update failed in Clear Container #1062

Closed
jovizhangwei opened this issue Sep 5, 2017 · 1 comment · Fixed by kata-containers/linux#7
Closed

nginx image apt-get update failed in Clear Container #1062

jovizhangwei opened this issue Sep 5, 2017 · 1 comment · Fixed by kata-containers/linux#7
Assignees

Comments

@jovizhangwei
Copy link

Hi,

I got an error when use command "apt-get update" in nginx image, but there have no error after I switch cc-oci-runtime to runc.

root@14021d5b4307:/# apt-get update
Get:1 http://nginx.org/packages/mainline/debian stretch InRelease [2854 B]                  
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease                             
Get:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [88.5 kB]           
Ign:5 http://nginx.org/packages/mainline/debian stretch/nginx all Packages                  
Get:6 http://security.debian.org stretch/updates InRelease [62.9 kB]                    
Get:4 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]                      
Get:7 http://nginx.org/packages/mainline/debian stretch/nginx amd64 Packages [12.9 kB]      
Ign:5 http://nginx.org/packages/mainline/debian stretch/nginx all Packages                  
Ign:5 http://nginx.org/packages/mainline/debian stretch/nginx all Packages                  
Get:8 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2373 B]           
Get:9 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [20 B]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch-updates/main all Packages [20 B]     
Ign:5 http://nginx.org/packages/mainline/debian stretch/nginx all Packages      
Get:11 http://security.debian.org stretch/updates/main all Packages [92.2 kB]
Ign:5 http://nginx.org/packages/mainline/debian stretch/nginx all Packages            
Ign:5 http://nginx.org/packages/mainline/debian stretch/nginx all Packages            
Get:12 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [9497 kB]
Get:13 http://security.debian.org stretch/updates/main amd64 Packages [197 kB]              
Reading package lists... Error!                                                             
E: Unable to determine file size for fd 13 - fstat (2: No such file or directory)
W: The repository 'http://nginx.org/packages/mainline/debian stretch InRelease' provides only weak security information.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Conflicting distribution: http://nginx.org/packages/mainline/debian stretch InRelease (expected stretch but got )
E: Unable to determine file size for fd 15 - fstat (2: No such file or directory)
W: The repository 'http://deb.debian.org/debian stretch-updates InRelease' provides only weak security information.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Conflicting distribution: http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease (expected stretch-updates but got )
E: Unable to determine file size for fd 15 - fstat (2: No such file or directory)
W: The repository 'http://security.debian.org stretch/updates InRelease' provides only weak security information.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Conflicting distribution: http://security.debian.org stretch/updates InRelease (expected stretch/updates but got )
E: Unable to determine file size for fd 4 - fstat (2: No such file or directory)
E: The package lists or status file could not be parsed or opened.

Using runc:

root@4a53bc7322f8:/# apt-get update
Get:1 http://nginx.org/packages/mainline/debian stretch InRelease [2854 B]                  
Get:2 http://security.debian.org stretch/updates InRelease [62.9 kB]                        
Get:3 http://nginx.org/packages/mainline/debian stretch/nginx amd64 Packages [12.9 kB]      
Get:5 http://security.debian.org stretch/updates/main amd64 Packages [197 kB]               
Ign:4 http://cdn-fastly.deb.debian.org/debian stretch InRelease                             
Get:6 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [88.5 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]                   
Get:8 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2373 B]                
Get:9 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [9497 kB]
Fetched 9981 kB in 3min 28s (47.8 kB/s)                                                     
Reading package lists... Done
@grahamwhaley
Copy link

Hi @jovizhangwei I strongly suspect that you are hitting this issue:
#47

There is a workaround you can try (listed over in #152). If you try:

# mount -t ramfs -o size=20M ramfs /tmp

and then your apt-get again, does that work around the issue?

devimc pushed a commit to devimc/packaging that referenced this issue Sep 18, 2017
Fixes intel/cc-oci-runtime#152
Fixes intel/cc-oci-runtime#1062

Signed-off-by: Julio Montes <julio.montes@intel.com>
@devimc devimc self-assigned this Sep 18, 2017
devimc pushed a commit to devimc/linux that referenced this issue Nov 17, 2017
So that if in cache=none mode, we don't have to lookup server that
might not support open-unlink-fstat operation.

fixes intel/cc-oci-runtime#47
fixes intel/cc-oci-runtime#1062

Signed-off-by: Peng Tao <bergwolf@gmail.com>
casparant pushed a commit to alibaba/cloud-kernel that referenced this issue Apr 16, 2019
Cherry-pick from kata-container patches:
https://github.com/kata-containers/packaging/tree/master/kernel/patches/0001-NO-UPSTREAM-9P-always-use-cached-inode-to-fill-in-v9.patch

So that if in cache=none mode, we don't have to lookup server that
might not support open-unlink-fstat operation.

fixes intel/cc-oci-runtime#47
fixes intel/cc-oci-runtime#1062

Signed-off-by: Julio Montes <julio.montes@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
Reviewed-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
casparant pushed a commit to alibaba/cloud-kernel that referenced this issue May 8, 2019
Cherry-pick from kata-container patches:
https://github.com/kata-containers/packaging/tree/master/kernel/patches/0001-NO-UPSTREAM-9P-always-use-cached-inode-to-fill-in-v9.patch

So that if in cache=none mode, we don't have to lookup server that
might not support open-unlink-fstat operation.

fixes intel/cc-oci-runtime#47
fixes intel/cc-oci-runtime#1062

Signed-off-by: Julio Montes <julio.montes@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
Reviewed-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
casparant pushed a commit to alibaba/cloud-kernel that referenced this issue May 20, 2019
Cherry-pick from kata-container patches:
https://github.com/kata-containers/packaging/tree/master/kernel/patches/0001-NO-UPSTREAM-9P-always-use-cached-inode-to-fill-in-v9.patch

So that if in cache=none mode, we don't have to lookup server that
might not support open-unlink-fstat operation.

fixes intel/cc-oci-runtime#47
fixes intel/cc-oci-runtime#1062

Signed-off-by: Julio Montes <julio.montes@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
Reviewed-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
casparant pushed a commit to alibaba/cloud-kernel that referenced this issue May 23, 2019
Cherry-pick from kata-container patches:
https://github.com/kata-containers/packaging/tree/master/kernel/patches/0001-NO-UPSTREAM-9P-always-use-cached-inode-to-fill-in-v9.patch

So that if in cache=none mode, we don't have to lookup server that
might not support open-unlink-fstat operation.

fixes intel/cc-oci-runtime#47
fixes intel/cc-oci-runtime#1062

Signed-off-by: Julio Montes <julio.montes@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
Reviewed-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
casparant pushed a commit to alibaba/cloud-kernel that referenced this issue Jul 1, 2019
Cherry-pick from kata-container patches:
https://github.com/kata-containers/packaging/tree/master/kernel/patches/0001-NO-UPSTREAM-9P-always-use-cached-inode-to-fill-in-v9.patch

So that if in cache=none mode, we don't have to lookup server that
might not support open-unlink-fstat operation.

fixes intel/cc-oci-runtime#47
fixes intel/cc-oci-runtime#1062

Signed-off-by: Julio Montes <julio.montes@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
Reviewed-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
casparant pushed a commit to alibaba/cloud-kernel that referenced this issue Aug 16, 2019
Cherry-pick from kata-container patches:
https://github.com/kata-containers/packaging/tree/master/kernel/patches/0001-NO-UPSTREAM-9P-always-use-cached-inode-to-fill-in-v9.patch

So that if in cache=none mode, we don't have to lookup server that
might not support open-unlink-fstat operation.

fixes intel/cc-oci-runtime#47
fixes intel/cc-oci-runtime#1062

Signed-off-by: Julio Montes <julio.montes@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
Reviewed-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
casparant pushed a commit to alibaba/cloud-kernel that referenced this issue Sep 28, 2019
Cherry-pick from kata-container patches:
https://github.com/kata-containers/packaging/tree/master/kernel/patches/0001-NO-UPSTREAM-9P-always-use-cached-inode-to-fill-in-v9.patch

So that if in cache=none mode, we don't have to lookup server that
might not support open-unlink-fstat operation.

fixes intel/cc-oci-runtime#47
fixes intel/cc-oci-runtime#1062

Signed-off-by: Julio Montes <julio.montes@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
Reviewed-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
casparant pushed a commit to alibaba/cloud-kernel that referenced this issue Oct 30, 2019
Cherry-pick from kata-container patches:
https://github.com/kata-containers/packaging/tree/master/kernel/patches/0001-NO-UPSTREAM-9P-always-use-cached-inode-to-fill-in-v9.patch

So that if in cache=none mode, we don't have to lookup server that
might not support open-unlink-fstat operation.

fixes intel/cc-oci-runtime#47
fixes intel/cc-oci-runtime#1062

Signed-off-by: Julio Montes <julio.montes@intel.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
Reviewed-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants