The ls -l
command:
$ ls -l *projectfile.img
-rw-r--r--@ 1 Orion staff 935329792 Jan 2 21:41 projectfile.img
The file
command
projectfile.img: DOS/MBR boot sector;
partition 1 : ID=0xc, active, start-CHS (0x40,0,1), end-CHS (0x2bf,3,32), startsector 8192, 81920 sectors;
partition 2 : ID=0x83, start-CHS (0x2c0,0,1), end-CHS (0x3ff,3,32), startsector 90112, 638976 sectors;
partition 3 : ID=0x83, start-CHS (0x3ff,3,32), end-CHS (0x3ff,3,32), startsector 729088, 638976 sectors;
partition 4 : ID=0xf, start-CHS (0x3ff,3,32), end-CHS (0x3ff,3,32), startsector 1368064, 458752 sectors
DEBUG results:
Orion-5:project Orion$ DEBUG=1 balena preload projectfile.img --app 1555703
[debug] original argv0="/usr/local/lib/balena-cli/bin/node" argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,preload,projectfile.img,--app,1555703] length=6
Building Docker preloader image. [=== ] 12%
Step 1/7 : FROM docker:17.10.0-ce-dind
Building Docker preloader image. [====== ] 25%
Step 2/7 : RUN apk update && apk add --no-cache python3 parted btrfs-progs docker util-linux sfdisk file coreutils sgdisk
---> Using cache
Building Docker preloader image. [========= ] 37%
Step 3/7 : COPY ./requirements.txt /tmp/
---> Using cache
Building Docker preloader image. [============ ] 50%
Step 4/7 : RUN pip3 install -r /tmp/requirements.txt
---> Using cache
Building Docker preloader image. [=============== ] 62%
Step 5/7 : COPY ./src /usr/src/app
---> Using cache
Building Docker preloader image. [================== ] 75%
Step 6/7 : WORKDIR /usr/src/app
---> Using cache
Building Docker preloader image. [===================== ] 87%
Step 7/7 : CMD ["python3", "/usr/src/app/preload.py"]
---> Using cache
---> 6489fb6d10dd
Successfully built 6489fb6d10dd
Building Docker preloader image. [========================] 100%
/ Creating preloader container
\ Starting preloader container
/ Fetching application 1555703
- Reading image informationWaiting for Docker to start...
\ Reading image informationException in thread background thread for pid 113:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.6/site-packages/sh.py", line 1540, in wrap
fn(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/sh.py", line 2459, in background_thread
handle_exit_code(exit_code)
File "/usr/lib/python3.6/site-packages/sh.py", line 2157, in fn
return self.command.handle_command_exit_code(exit_code)
File "/usr/lib/python3.6/site-packages/sh.py", line 815, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /usr/local/bin/dockerd --storage-driver=aufs --data-root=/tmp/tmp5xxd4psw/docker --host=tcp://0.0.0.0:49812
STDOUT:
STDERR:
time="2020-01-03T19:56:24.013222300Z" level=warning msg="[!] DON'T BIND ON ANY IP ADDRESS WITHOUT setting --tlsverify IF YOU DON'T KNOW WHAT YOU'RE DOING [!]"
time="2020-01-03T19:56:24.015558300Z" level=info msg="libcontainerd: new containerd process, pid: 132"
Error starting daemon: error initializing graphdriver: driver not supported
Traceback (most recent call last):
File "/usr/src/app/preload.py", line 832, in <module>
result = method(**data.get("parameters", {}))
File "/usr/src/app/preload.py", line 791, in get_image_info
images, supervisor_version = get_images_and_supervisor_version()
File "/usr/src/app/preload.py", line 675, in get_images_and_supervisor_version
return _get_images_and_supervisor_version()
File "/usr/src/app/preload.py", line 646, in _get_images_and_supervisor_version
with docker_context_manager(driver, mountpoint):
File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
return next(self.gen)
File "/usr/src/app/preload.py", line 513, in docker_context_manager
running_dockerd = start_docker_daemon(storage_driver, docker_dir)
File "/usr/src/app/preload.py", line 482, in start_docker_daemon
running_dockerd.wait()
File "/usr/lib/python3.6/site-packages/sh.py", line 792, in wait
self.handle_command_exit_code(exit_code)
File "/usr/lib/python3.6/site-packages/sh.py", line 815, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /usr/local/bin/dockerd --storage-driver=aufs --data-root=/tmp/tmp5xxd4psw/docker --host=tcp://0.0.0.0:49812
STDOUT:
STDERR:
time="2020-01-03T19:56:24.013222300Z" level=warning msg="[!] DON'T BIND ON ANY IP ADDRESS WITHOUT setting --tlsverify IF YOU DON'T KNOW WHAT YOU'RE DOING [!]"
time="2020-01-03T19:56:24.015558300Z" level=info msg="libcontainerd: new containerd process, pid: 132"
Error starting daemon: error initializing graphdriver: driver not supported