apptainer / singularity

Singularity has been renamed to Apptainer as part of us moving the project to the Linux Foundation. This repo has been persisted as a snapshot right before the changes.
https://github.com/apptainer/apptainer
Other
2.53k stars 424 forks source link

make test failed #963

Closed cclerget closed 7 years ago

cclerget commented 7 years ago

Version of Singularity:

2.3.9-development

Expected behavior

$ make test
...
All tests passed

Actual behavior

 + singularity build /tmp/stest.1SWKLM/container shub://GodloveD/busybox                         (retval=1) ERROR
Cache folder set to /home/ced/.singularity/shub
ERROR: Unsupported file type: /home/ced/.singularity/shub/GodloveD-busybox-master.img.gz
Full output in: /tmp/stest.1SWKLM
ERROR: Failed running test: 20-build.sh

Steps to reproduce behavior

$ make test

cclerget commented 7 years ago

Caused by an old file. Cleaning /home/ced/.singularity/shub corrects the problem.

However get permissions errors :

$ singularity build testing.img shub://singularityhub/busybox
Cache folder set to /home/ced/.singularity/shub
Progress |===================================| 100.0% 
Building from local image: /home/ced/.singularity/shub/singularityhub-busybox-master.img
WARNING: You are not root! Some files may not be exported from /home/ced/.singularity/shub/singularityhub-busybox-master.img due to permission errors.
tar: ./lost+found: Cannot open: Permission denied
tar: ./var/tmp: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
ERROR: Failed to export contents of /home/ced/.singularity/shub/singularityhub-busybox-master.img to /tmp/.singularity-build.VE1J5C
ABORT: Aborting with RETVAL=255
GodloveD commented 7 years ago

Right. Thanks. We should change the test to sudo.

gmkurtzer commented 7 years ago

Tar no longer exits error on permission denied errors. Is that satisfactory?

cclerget commented 7 years ago

@gmkurtzer yes make test work fine