tar: This does not look like a tar archive tar: Exiting with failure status due to previous errors. Singularity 2-4 on vagrant on windows10

800 views
Skip to first unread message

Aaron Dickey

unread,
Jul 24, 2018, 3:38:19 PM7/24/18
to singularity
Hi,

Things had been going swimmingly until a few weeks ago. This set of image.create and build commands used to go off without a hitch. Now I am not able to use my favorite docker image as a singularity image base anymore:
cd .\singularity-2.4\
vagrant init singularityware/singularity-2.4
vagrant up
vagrant ssh
sudo singularity image.create --size 3000 drvm.img
sudo singularity build --writable drvm.img docker://990210oliver/drvm --debug

###Failure###
#Building into existing container: drvm.img
#Cache folder set to /root/.singularity/docker
#[22/22] |===================================| 100.0%
#Importing: base Singularity environment
#Importing: /root/.singularity/docker/sha256:e190868d63f8f8b85b026e53b5724c3c2a4548e1d642953442559cfa5f79b2c9.tar.gz
#Importing: /root/.singularity/docker/sha256:909cd34c6fd77d398af1d93e9d4f7f76104903f237be3d4db7b345a19631f291.tar.gz
#Importing: /root/.singularity/docker/sha256:0b9bfabab7c119abe303f22a146ff78be4ab0abdc798b0a0e97e94e80238a7e8.tar.gz
#Importing: /root/.singularity/docker/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4.tar.gz
#Importing: /root/.singularity/docker/sha256:88ac4362f7a101fcdb62eb60e0b75b84b94cfe6a3b45d90266acf1c902cf8e36.tar.gz
#
#gzip: /root/.singularity/docker/sha256:88ac4362f7a101fcdb62eb60e0b75b84b94cfe6a3b45d90266acf1c902cf8e36.tar.gz: not in gzip format
#tar: This does not look like a tar archive
#tar: Exiting with failure status due to previous errors
#Cleaning up...
###Failure###

Also tried with singularity pull:
sudo singularity pull docker://990210oliver/drvm --size 3000 --name drvm.img --writable --debug
###Error###
WARNING: pull for Docker Hub is not guaranteed to produce the
WARNING: same image on repeated pull. Use Singularity Registry
WARNING: (shub://) to pull exactly equivalent images.
Traceback (most recent call last):
  File "/usr/local/libexec/singularity/python/import.py", line 109, in <module>
    main()
  File "/usr/local/libexec/singularity/python/import.py", line 86, in main
    layerfile=LAYERFILE)
  File "/usr/local/libexec/singularity/python/docker/main.py", line 83, in IMPORT
    client = DockerApiConnection(image=image, auth=auth)
  File "/usr/local/libexec/singularity/python/docker/api.py", line 89, in __init__
    self.load_image(kwargs['image'])
  File "/usr/local/libexec/singularity/python/docker/api.py", line 141, in load_image
    self.update_token()
  File "/usr/local/libexec/singularity/python/docker/api.py", line 152, in update_token
    response = self.get_tags(return_response=True)
  File "/usr/local/libexec/singularity/python/docker/api.py", line 271, in get_tags
    return_response=return_response)
  File "/usr/local/libexec/singularity/python/base.py", line 262, in get
    return_response=return_response)
  File "/usr/local/libexec/singularity/python/base.py", line 291, in submit_request
    response = urlopen(request)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
    context=self._context)
  File "/usr/lib/python2.7/urllib2.py", line 1201, in do_open
    r = h.getresponse(buffering=True)
  File "/usr/lib/python2.7/httplib.py", line 1136, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 453, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 409, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "/usr/lib/python2.7/socket.py", line 480, in readline
    data = self._sock.recv(self._rbufsize)
  File "/usr/lib/python2.7/ssl.py", line 756, in recv
    return self.read(buflen)
  File "/usr/lib/python2.7/ssl.py", line 643, in read
    v = self._sslobj.read(len)
socket.error: [Errno 104] Connection reset by peer
Cleaning up...
###Error###

Please help!

Steve

unread,
Sep 25, 2018, 5:04:42 PM9/25/18
to singularity
I was getting the same error. I think this is related to the same issue reported here:


I resolved the issue by simply deleting the '.vagrant' directory in the folder I was working out of, which causes a new Vagrant virtual machine to be created. After this, the container built fine. Just keep in mind that the old VM is still going to be running in VirtualBox, you will want to remove it there as well.
Reply all
Reply to author
Forward
0 new messages