aleph-vm icon indicating copy to clipboard operation
aleph-vm copied to clipboard

Running a vm using "storage" type instead of "ipfs" fail

Open aliel opened this issue 3 years ago • 0 comments

Describe the bug Running a vm using "storage" type instead of "ipfs" fail

To Reproduce

  1. upload a squashfs small file to force aleph upload to use "storage" type
  2. upload squashed file
  3. pin squashed file as a storage to or withing any program
  4. run program

Expected behavior Return any http response

Screenshots

Apr 22 12:16:41 aleph-vm1 python3[8263]: 2022-04-22 12:16:41,175 | ERROR | Error handling request
Apr 22 12:16:41 aleph-vm1 python3[8263]: Traceback (most recent call last):
Apr 22 12:16:41 aleph-vm1 python3[8263]:   File "/usr/lib/python3/dist-packages/aiohttp/web_protocol.py", line 406, in start
Apr 22 12:16:41 aleph-vm1 python3[8263]:     resp = await task
Apr 22 12:16:41 aleph-vm1 python3[8263]:   File "/usr/lib/python3/dist-packages/aiohttp/web_app.py", line 435, in _handle
Apr 22 12:16:41 aleph-vm1 python3[8263]:     resp = await handler(request)
Apr 22 12:16:41 aleph-vm1 python3[8263]:   File "/usr/lib/python3/dist-packages/aiohttp/web_urldispatcher.py", line 137, in handler_wrapper
Apr 22 12:16:41 aleph-vm1 python3[8263]:     result = await result
Apr 22 12:16:41 aleph-vm1 python3[8263]:   File "/opt/aleph-vm/vm_supervisor/run.py", line 63, in run_code_on_request
Apr 22 12:16:41 aleph-vm1 python3[8263]:     original=original_message.content,
Apr 22 12:16:41 aleph-vm1 python3[8263]:   File "/opt/aleph-vm/vm_supervisor/pool.py", line 34, in create_a_vm
Apr 22 12:16:41 aleph-vm1 python3[8263]:     await execution.prepare()
Apr 22 12:16:41 aleph-vm1 python3[8263]:   File "/opt/aleph-vm/vm_supervisor/models.py", line 82, in prepare
Apr 22 12:16:41 aleph-vm1 python3[8263]:     await resources.download_all()
Apr 22 12:16:41 aleph-vm1 python3[8263]:   File "/opt/aleph-vm/vm_supervisor/vm/firecracker_microvm.py", line 193, in download_all
Apr 22 12:16:41 aleph-vm1 python3[8263]:     self.download_data(),
Apr 22 12:16:41 aleph-vm1 python3[8263]:   File "/opt/aleph-vm/vm_supervisor/vm/firecracker_microvm.py", line 180, in download_volumes
Apr 22 12:16:41 aleph-vm1 python3[8263]:     await get_volume_path(volume=volume, namespace=self.namespace)
Apr 22 12:16:41 aleph-vm1 python3[8263]:   File "/opt/aleph-vm/vm_supervisor/storage.py", line 152, in get_volume_path
Apr 22 12:16:41 aleph-vm1 python3[8263]:     await download_file(url, cache_path)
Apr 22 12:16:41 aleph-vm1 python3[8263]:   File "/opt/aleph-vm/vm_supervisor/storage.py", line 44, in download_file
Apr 22 12:16:41 aleph-vm1 python3[8263]:     chunk = await resp.content.read(65536)
Apr 22 12:16:41 aleph-vm1 python3[8263]:   File "/usr/lib/python3/dist-packages/aiohttp/streams.py", line 350, in read
Apr 22 12:16:41 aleph-vm1 python3[8263]:     await self._wait('read')
Apr 22 12:16:41 aleph-vm1 python3[8263]:   File "/usr/lib/python3/dist-packages/aiohttp/streams.py", line 281, in _wait
Apr 22 12:16:41 aleph-vm1 python3[8263]:     await waiter
Apr 22 12:16:41 aleph-vm1 python3[8263]: aiohttp.client_exceptions.ClientPayloadError: Response payload is not completed

aliel avatar Apr 22 '22 11:04 aliel