0

(base) [email protected]:~/Desktop/Harvard$ dts init_sd_card –hostname copbot2 –wifi duckietown:quackquack
INFO:dts:duckietown-shell 5.0.3
dts : Problems with a command?
:
: Report here: https://github.com/duckietown/duckietown-shell-commands/issues
:
: Troubleshooting:
:
: – If some commands update fail, delete ~/.dt-shell/commands
:
: – To reset the shell to “factory settings”, delete ~/.dt-shell
:
: (Note: you will have to re-configure.)
INFO:dts:looking at /home/lab/.dt-shell/commands-multi/daffy
INFO:dts:duckietown-shell-commands 4.1.7
INFO:duckietown-challenges:duckietown-challenges 5.0.7
## Tips and tricks
### Multiple networks
dts init_sd_card –wifi network1:password1,network2:password2 –country US
### Steps
Without arguments the script performs the steps:
flash
expand
mount
setup
unmount
You can use –steps to run only some of those:
dts init_sd_card –steps expand,mount
You did not specify a robot type. Default is “duckiebot”. Do you confirm? [y]y
DEBUG:dts:Found ‘wget’ at /usr/bin/wget
DEBUG:dts:Found ‘tar’ at /bin/tar
DEBUG:dts:Found ‘udisksctl’ at /usr/bin/udisksctl
DEBUG:dts:Found ‘docker’ at /usr/bin/docker
DEBUG:dts:Found ‘base64’ at /usr/bin/base64
DEBUG:dts:Found ‘gzip’ at /bin/gzip
DEBUG:dts:Found ‘udevadm’ at /sbin/udevadm
DEBUG:dts:Found ‘lsblk’ at /bin/lsblk
INFO:dts:Please type the device with your SD card. Please be careful to pick the right device and to include ‘/dev/’. Here’s a list of the devices on your system:
Running /bin/bash /home/lab/.dt-shell/commands-multi/daffy/init_sd_card/list_disks.sh
NAME TYPE SIZE VENDOR
/dev/sdb disk 29.1G Generic
/dev/sda disk 465.8G ATA
Done!
Type the name of your device (include the ‘/dev’ part): /dev/sdb
Running /bin/bash /home/lab/.dt-shell/commands-multi/daffy/init_sd_card/init_sd_card.sh
64-bit OS detected…
Downloading etcher-cli…
–2019-10-16 22:08:33– https://github.com/balena-io/etcher/releases/download/v1.4.4/etcher-cli-1.4.4-linux-x64.tar.gz
Resolving github.com (github.com)… 140.82.114.4
Connecting to github.com (github.com)|140.82.114.4|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/45055693/bd655d70-4954-11e8-8120-2d4297329df7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191017%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191017T020833Z&X-Amz-Expires=300&X-Amz-Signature=fcf901abe3bb9a8f08bad17357b7e7665f00daec01a4f028fb16a1076ec19bdc&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Detcher-cli-1.4.4-linux-x64.tar.gz&response-content-type=application%2Foctet-stream [following]
–2019-10-16 22:08:33– https://github-production-release-asset-2e65be.s3.amazonaws.com/45055693/bd655d70-4954-11e8-8120-2d4297329df7?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191017%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191017T020833Z&X-Amz-Expires=300&X-Amz-Signature=fcf901abe3bb9a8f08bad17357b7e7665f00daec01a4f028fb16a1076ec19bdc&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Detcher-cli-1.4.4-linux-x64.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)… 52.216.80.16
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.80.16|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 19921477 (19M) [application/octet-stream]
Saving to: ‘/tmp/duckietown/tmp.Xl8SGS1YHd’
/tmp/duckietown/tmp.Xl8SGS1YHd 100%[=====================================================================================>] 19.00M 3.34MB/s in 6.0s
2019-10-16 22:08:39 (3.19 MB/s) – ‘/tmp/duckietown/tmp.Xl8SGS1YHd’ saved [19921477/19921477]
Installing etcher-cli to /tmp/duckietown/etcher-cli…
etcher-cli-1.4.4-linux-x64-dist/etcher
etcher-cli-1.4.4-linux-x64-dist/node_modules/
etcher-cli-1.4.4-linux-x64-dist/node_modules/drivelist/
etcher-cli-1.4.4-linux-x64-dist/node_modules/drivelist/build/
etcher-cli-1.4.4-linux-x64-dist/node_modules/drivelist/build/Release/
etcher-cli-1.4.4-linux-x64-dist/node_modules/drivelist/build/Release/drivelist.node
etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/
etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/binding/
etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/binding/lzma_native.node
etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/build/
etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/build/Release/
etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/build/Release/obj.target/
etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/build/Release/obj.target/lzma_native.node
etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/build/Release/lzma_native.node
etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/deps/
etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/deps/bin_i686/
etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/deps/bin_i686/liblzma.dll
etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/deps/bin_x86-64/
etcher-cli-1.4.4-linux-x64-dist/node_modules/lzma-native/deps/bin_x86-64/liblzma.dll
etcher-cli-1.4.4-linux-x64-dist/node_modules/mountutils/
etcher-cli-1.4.4-linux-x64-dist/node_modules/mountutils/build/
etcher-cli-1.4.4-linux-x64-dist/node_modules/mountutils/build/Release/
etcher-cli-1.4.4-linux-x64-dist/node_modules/mountutils/build/Release/MountUtils.node
etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/
etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/build/
etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/build/Release/
etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/build/Release/obj.target/
etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/build/Release/obj.target/usb_bindings.node
etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/build/Release/usb_bindings.node
etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/src/
etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/src/binding/
etcher-cli-1.4.4-linux-x64-dist/node_modules/usb/src/binding/usb_bindings.node
etcher-cli-1.4.4-linux-x64-dist/node_modules/winusb-driver-generator/
etcher-cli-1.4.4-linux-x64-dist/node_modules/winusb-driver-generator/build/
etcher-cli-1.4.4-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/
etcher-cli-1.4.4-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/obj.target/
etcher-cli-1.4.4-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/obj.target/Generator.node
etcher-cli-1.4.4-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/Generator.node
–2019-10-16 22:08:40– https://github.com/hypriot/image-builder-rpi/releases/download/v1.9.0/hypriotos-rpi-v1.9.0.img.zip
Resolving github.com (github.com)… 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/49221370/4f707dc4-4b28-11e8-851a-5571d179f48f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191017%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191017T020840Z&X-Amz-Expires=300&X-Amz-Signature=38f45f3d5840f8cedd38ba6ccdaae562b8f1e6e4297a84851996ddd9a769eb9e&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dhypriotos-rpi-v1.9.0.img.zip&response-content-type=application%2Foctet-stream [following]
–2019-10-16 22:08:40– https://github-production-release-asset-2e65be.s3.amazonaws.com/49221370/4f707dc4-4b28-11e8-851a-5571d179f48f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20191017%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191017T020840Z&X-Amz-Expires=300&X-Amz-Signature=38f45f3d5840f8cedd38ba6ccdaae562b8f1e6e4297a84851996ddd9a769eb9e&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dhypriotos-rpi-v1.9.0.img.zip&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)… 52.216.166.11
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.166.11|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 313413047 (299M) [application/octet-stream]
Saving to: ‘/tmp/duckietown/hypriotos-rpi-v1.9.0.img.zip’
/tmp/duckietown/hypriotos-rpi-v1.9.0.img.z 100%[=====================================================================================>] 298.89M 3.43MB/s in 86s
2019-10-16 22:10:07 (3.47 MB/s) – ‘/tmp/duckietown/hypriotos-rpi-v1.9.0.img.zip’ saved [313413047/313413047]
Downloading Hypriot image complete.
Flashing Hypriot image /tmp/duckietown/hypriotos-rpi-v1.9.0.img.zip to disk /dev/sdb
[sudo] Enter password for ‘lab’ which is required to run Etcher:
? This will erase the selected drive. Are you sure? Yes
Flashing: 14.43 MB/s [========================] 100% eta 0s
Validating: 0 B/s [========================] 100% eta 0s
Checksums:
– /dev/sdb: 3ab3f1eb0b0b4e04f9630035ba95f26046b9e104a65dd78f8bb4fa9ed24c0dbebc647e8aa119c0b60bd8ba4d28e739709befbdfceac45ec2416b53c1b0f93423
Flashing Hypriot image succeeded.
Done!
INFO:dts:Waiting 5 seconds for the device to get ready…
INFO:dts:Partitions created:
DEBUG:dts:$ [‘sudo’, ‘lsblk’, ‘/dev/sdb’]
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 29.1G 0 disk
├─sdb2 8:18 1 935M 0 part
└─sdb1 8:17 1 64M 0 part
DEBUG:dts:Found ‘parted’ at /sbin/parted
DEBUG:dts:Found ‘resize2fs’ at /sbin/resize2fs
DEBUG:dts:Found ‘e2fsck’ at /sbin/e2fsck
DEBUG:dts:Found ‘lsblk’ at /bin/lsblk
DEBUG:dts:Found ‘fdisk’ at /sbin/fdisk
DEBUG:dts:Found ‘umount’ at /bin/umount
INFO:dts:Found device /dev/sdb.
INFO:dts:Current status:
DEBUG:dts:$ [‘sudo’, ‘lsblk’, ‘/dev/sdb’]
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 29.1G 0 disk
├─sdb2 8:18 1 935M 0 part
└─sdb1 8:17 1 64M 0 part
DEBUG:dts:$ [‘sudo’, ‘fdisk’, ‘-l’, ‘/dev/sdb’]
DEBUG:dts:$ [‘sudo’, ‘parted’, ‘-s’, ‘/dev/sdb’, ‘resizepart’, ‘2’, ‘100%’]
DEBUG:dts:$ [‘sudo’, ‘e2fsck’, ‘-f’, ‘/dev/sdb2’]
e2fsck 1.42.13 (17-May-2015)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
root: 30693/239360 files (0.2% non-contiguous), 217214/239359 blocks
DEBUG:dts:$ [‘sudo’, ‘resize2fs’, ‘/dev/sdb2’]
resize2fs 1.42.13 (17-May-2015)
Resizing the filesystem on /dev/sdb2 to 7617024 (4k) blocks.
The filesystem on /dev/sdb2 is now 7617024 (4k) blocks long.
DEBUG:dts:$ [‘sudo’, ‘fdisk’, ‘/dev/sdb’]
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help):
Expert command (m for help):
Enter the new disk identifier:
Disk identifier changed from 0xaa55a1d1 to 0x00000000.
Expert command (m for help):
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
INFO:dts:Updated status:
DEBUG:dts:$ [‘sudo’, ‘lsblk’, ‘/dev/sdb’]
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 29.1G 0 disk
├─sdb2 8:18 1 29.1G 0 part
└─sdb1 8:17 1 64M 0 part
DEBUG:dts:$ [‘sudo’, ‘udevadm’, ‘trigger’]
DEBUG:dts:$ [‘udisksctl’, ‘mount’, ‘-b’, ‘/dev/disk/by-label/HypriotOS’]
Mounted /dev/sdb1 at /media/lab/HypriotOS.
DEBUG:dts:$ [‘sudo’, ‘udevadm’, ‘trigger’]
DEBUG:dts:$ [‘udisksctl’, ‘mount’, ‘-b’, ‘/dev/disk/by-label/root’]
Mounted /dev/sdb2 at /media/lab/root.
/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/command.py:539: YAMLLoadWarning: calling yaml.load() without Loader=… is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
user_data = yaml.load(open(user_data_file).read())
INFO:dts:Adding file /home/duckie/.ssh/authorized_keys
INFO:dts:Adding file /home/duckie/.dt-shell/config
INFO:dts:Adding file /secrets/tokens/dt1
INFO:dts:Adding file /data/stats/init_sd_card/README.txt
INFO:dts:Adding file /data/stats/init_sd_card/CHANGELOG
INFO:dts:Adding file /data/stats/init_sd_card/version
INFO:dts:Adding file /data/stats/init_sd_card/flash_time
INFO:dts:Adding file /data/stats/init_sd_card/flash_user
INFO:dts:Adding file /data/stats/init_sd_card/flash_machine
INFO:dts:Adding file /data/stats/init_sd_card/parameters/hostname
INFO:dts:Adding file /data/stats/init_sd_card/parameters/linux_username
INFO:dts:Adding file /data/stats/init_sd_card/parameters/stacks_to_run
INFO:dts:Adding file /data/stats/init_sd_card/parameters/stacks_to_load
INFO:dts:Adding file /data/stats/init_sd_card/parameters/compress
INFO:dts:Adding file /data/stats/init_sd_card/parameters/device
INFO:dts:Adding file /data/stats/init_sd_card/parameters/country
INFO:dts:Adding file /data/stats/init_sd_card/parameters/wifi
INFO:dts:Adding file /data/stats/init_sd_card/parameters/ethz_username
INFO:dts:Adding file /data/stats/init_sd_card/parameters/robot_type
INFO:dts:Adding file /data/stats/MAC/README.txt
INFO:dts:Adding file /etc/avahi/services/dt.static.presence.service
INFO:dts:Adding file /etc/avahi/services/dt.static.robot_type.service
INFO:dts:Adding file /etc/avahi/services/dt.device-init.service
INFO:dts:Updating ~/.ssh/config with:
# — init_sd_card generated —
# Use the key for all hosts
IdentityFile /home/lab/.ssh/DT18_key_00
Host copbot2
User duckie
Hostname copbot2.local
IdentityFile /home/lab/.ssh/DT18_key_00
StrictHostKeyChecking no
# ——————————
INFO:dts:Adding file /var/local/wificfg.json
INFO:dts:Adding file /etc/wpa_supplicant/wpa_supplicant.conf
/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/command.py:1028: YAMLLoadWarning: calling yaml.load() without Loader=… is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
content=yaml.dump(yaml.load(kin_calib_file), default_flow_style=False),
INFO:dts:Adding file /data/config/calibrations/kinematics/default.yaml
/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/command.py:1032: YAMLLoadWarning: calling yaml.load() without Loader=… is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
content=yaml.dump(yaml.load(ext_cam_calib_file), default_flow_style=False),
INFO:dts:Adding file /data/config/calibrations/camera_extrinsic/default.yaml
/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/command.py:1036: YAMLLoadWarning: calling yaml.load() without Loader=… is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
content=yaml.dump(yaml.load(int_cam_calib_file), default_flow_style=False),
INFO:dts:Adding file /data/config/calibrations/camera_intrinsic/default.yaml
INFO:dts:Stacks to load: [‘DT18_00_basic’, ‘DT18_01_health’, ‘DT18_02_others’, ‘DT18_03_interface’, ‘DT18_05_core’]
INFO:dts:Stacks to run: [‘DT18_00_basic’, ‘DT18_01_health’, ‘DT18_03_interface’]
INFO:dts:The stacks that are available are: DT18_02_others, DT18_05_core, DT18_99_swarm, DT18_01_health, DT18_00_basic, DT18_04_camera, DT18_03_interface
INFO:dts:You asked to use [‘DT18_00_basic’, ‘DT18_01_health’, ‘DT18_02_others’, ‘DT18_03_interface’, ‘DT18_05_core’]
/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/command.py:1260: YAMLLoadWarning: calling yaml.load() without Loader=… is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
stacks2yaml[sn] = yaml.load(open(lpath).read())
INFO:dts:Pulling portainer/portainer:linux-arm
DEBUG:dts:$ [‘docker’, ‘pull’, ‘portainer/portainer:linux-arm’]
linux-arm: Pulling from portainer/portainer
Digest: sha256:6b2d62e2fb2ff0c7575bd18323fbf4c92e133df6371edf666569129c5b234056
Status: Image is up to date for portainer/portainer:linux-arm
docker.io/portainer/portainer:linux-arm
INFO:dts:Pulling v2tec/watchtower:armhf-latest
DEBUG:dts:$ [‘docker’, ‘pull’, ‘v2tec/watchtower:armhf-latest’]
armhf-latest: Pulling from v2tec/watchtower
Digest: sha256:63abf3fc71a46b8fc46674342766d976e6a97d6c70d2560a0986ec63c1784812
Status: Image is up to date for v2tec/watchtower:armhf-latest
docker.io/v2tec/watchtower:armhf-latest
INFO:dts:Pulling duckietown/dt-duckiebot-dashboard:daffy-arm32v7
DEBUG:dts:$ [‘docker’, ‘pull’, ‘duckietown/dt-duckiebot-dashboard:daffy-arm32v7’]
daffy-arm32v7: Pulling from duckietown/dt-duckiebot-dashboard
Digest: sha256:7e906994e4ba151cd8046f8aa0cc7fdde1e7a204ee63be02207cab12e35c67e3
Status: Image is up to date for duckietown/dt-duckiebot-dashboard:daffy-arm32v7
docker.io/duckietown/dt-duckiebot-dashboard:daffy-arm32v7
INFO:dts:Pulling duckietown/dt-device-loader:daffy-arm32v7
DEBUG:dts:$ [‘docker’, ‘pull’, ‘duckietown/dt-device-loader:daffy-arm32v7’]
daffy-arm32v7: Pulling from duckietown/dt-device-loader
Digest: sha256:c668ac673086b4f63eac0ac86e79e92d849dc109e94d26894439667477cd5de3
Status: Image is up to date for duckietown/dt-device-loader:daffy-arm32v7
docker.io/duckietown/dt-device-loader:daffy-arm32v7
INFO:dts:Saving to /tmp/duckietown/docker_images/DT18_00_basic-f488e50c.tar
DEBUG:dts:$ [‘docker’, ‘save’, ‘-o’, ‘/tmp/duckietown/docker_images/DT18_00_basic-f488e50c.tar’, ‘sha256:6cb2cfd64c9359fc5bf5f522512e4bb7b7fcf6588d40660f8361f6b6c0979fdd’, ‘sha256:b74a792de471c9652fb9456071f207eec88cd39dfb17d883d9b755ade5a40d24’, ‘sha256:14844e742addfb0fbd9d87176d5f9f0abe16bf912744b6bea423eda2c128ecc3’, ‘sha256:2d152629e1c66ef8ba527846223012dd689e8ed2b8ce9fa853e6212e31b40924’]
INFO:dts:Saved archive /tmp/duckietown/docker_images/DT18_00_basic-f488e50c.tar of size 0.598 GB
INFO:dts:Pulling duckietown/rpi-health:master18
DEBUG:dts:$ [‘docker’, ‘pull’, ‘duckietown/rpi-health:master18’]
master18: Pulling from duckietown/rpi-health
Digest: sha256:c368e18f3fd804d2b801a6a650a8811f82cd92272a77838737527795aedd79f3
Status: Image is up to date for duckietown/rpi-health:master18
docker.io/duckietown/rpi-health:master18
INFO:dts:Pulling duckietown/dt-device-online:daffy-arm32v7
DEBUG:dts:$ [‘docker’, ‘pull’, ‘duckietown/dt-device-online:daffy-arm32v7’]
daffy-arm32v7: Pulling from duckietown/dt-device-online
Digest: sha256:03ca78aaa4a7fb20c27f2e8045d06bd1372077e784380b7d915c8da6a19044f3
Status: Image is up to date for duckietown/dt-device-online:daffy-arm32v7
docker.io/duckietown/dt-device-online:daffy-arm32v7
INFO:dts:Saving to /tmp/duckietown/docker_images/DT18_01_health-7ddf09f8.tar
DEBUG:dts:$ [‘docker’, ‘save’, ‘-o’, ‘/tmp/duckietown/docker_images/DT18_01_health-7ddf09f8.tar’, ‘sha256:2269ddbb897bafaec75ad3ba6c46a5b0876e6eb29fbb6045e79682a2249ac942’, ‘sha256:e4ca1181ff3c8b49ca0c1493fd2978f3784529efda03c0f1f168b70fc98c793b’]
INFO:dts:Saved archive /tmp/duckietown/docker_images/DT18_01_health-7ddf09f8.tar of size 0.611 GB
INFO:dts:Pulling duckietown/rpi-python-picamera:master18
DEBUG:dts:$ [‘docker’, ‘pull’, ‘duckietown/rpi-python-picamera:master18’]
master18: Pulling from duckietown/rpi-python-picamera
Digest: sha256:56e72af27a01611f2e5b693e87a6361db470c0aced17fa509e64328139713b8c
Status: Image is up to date for duckietown/rpi-python-picamera:master18
docker.io/duckietown/rpi-python-picamera:master18
INFO:dts:Saving to /tmp/duckietown/docker_images/DT18_02_others-3f233b14.tar
DEBUG:dts:$ [‘docker’, ‘save’, ‘-o’, ‘/tmp/duckietown/docker_images/DT18_02_others-3f233b14.tar’, ‘sha256:29cbbdc1158f8ed02dffa272013c8e51f2463299de6140fbef804dad69690ec0’]
INFO:dts:Saved archive /tmp/duckietown/docker_images/DT18_02_others-3f233b14.tar of size 0.237 GB
INFO:dts:Pulling duckietown/dt-duckiebot-interface:daffy-arm32v7
DEBUG:dts:$ [‘docker’, ‘pull’, ‘duckietown/dt-duckiebot-interface:daffy-arm32v7’]
daffy-arm32v7: Pulling from duckietown/dt-duckiebot-interface
Digest: sha256:944c923c878377fab3a13e364d1c60b5ba1de22ecf57930948a3e73bf8f0d60a
Status: Image is up to date for duckietown/dt-duckiebot-interface:daffy-arm32v7
docker.io/duckietown/dt-duckiebot-interface:daffy-arm32v7
INFO:dts:Pulling duckietown/dt-car-interface:daffy-arm32v7
DEBUG:dts:$ [‘docker’, ‘pull’, ‘duckietown/dt-car-interface:daffy-arm32v7’]
daffy-arm32v7: Pulling from duckietown/dt-car-interface
Digest: sha256:8a48f5081e61e5fd1a87e9613b0cd5c66f473f10ccc1f3e334e4958832e7caf0
Status: Image is up to date for duckietown/dt-car-interface:daffy-arm32v7
docker.io/duckietown/dt-car-interface:daffy-arm32v7
INFO:dts:Pulling duckietown/dt-rosbridge-websocket:daffy-arm32v7
DEBUG:dts:$ [‘docker’, ‘pull’, ‘duckietown/dt-rosbridge-websocket:daffy-arm32v7’]
daffy-arm32v7: Pulling from duckietown/dt-rosbridge-websocket
Digest: sha256:d840c657cd34dd23825506fe08db683dc751f599b37093ff39a6425196c1b262
Status: Image is up to date for duckietown/dt-rosbridge-websocket:daffy-arm32v7
docker.io/duckietown/dt-rosbridge-websocket:daffy-arm32v7
INFO:dts:Pulling duckietown/rpi-simple-server:master18
DEBUG:dts:$ [‘docker’, ‘pull’, ‘duckietown/rpi-simple-server:master18’]
master18: Pulling from duckietown/rpi-simple-server
Digest: sha256:6b6787319cd87b413d5b0a8737f6127c719293c12936c94b5ea3a2d7fd62f6b5
Status: Image is up to date for duckietown/rpi-simple-server:master18
docker.io/duckietown/rpi-simple-server:master18
INFO:dts:Saving to /tmp/duckietown/docker_images/DT18_03_interface-bc3a881b.tar
DEBUG:dts:$ [‘docker’, ‘save’, ‘-o’, ‘/tmp/duckietown/docker_images/DT18_03_interface-bc3a881b.tar’, ‘sha256:d46f0ca4e7daa131114d81189f537eb5bdb75679585d63a753bcd6d7a76a0c36’, ‘sha256:e5863b0ce7cf2bf4007ba82e0b1c58bdabc0636f72d481500a35595f7c05d492’, ‘sha256:ee33172df11ceb8423f50c50b1b83a31d30c12c7020331ee058c40bc7677b862’, ‘sha256:fe4f149c3646cacc9bffe3d8ec524b32a212ce48b217871d65f273476b88edbe’]
INFO:dts:Saved archive /tmp/duckietown/docker_images/DT18_03_interface-bc3a881b.tar of size 3.364 GB
INFO:dts:Pulling duckietown/dt-core:daffy-arm32v7
DEBUG:dts:$ [‘docker’, ‘pull’, ‘duckietown/dt-core:daffy-arm32v7’]
daffy-arm32v7: Pulling from duckietown/dt-core
Digest: sha256:233d67f0ddc1a31beb05385b1791f61749f94178a9ef75336c80c089632d2662
Status: Image is up to date for duckietown/dt-core:daffy-arm32v7
docker.io/duckietown/dt-core:daffy-arm32v7
INFO:dts:Saving to /tmp/duckietown/docker_images/DT18_05_core-22dea94f.tar
DEBUG:dts:$ [‘docker’, ‘save’, ‘-o’, ‘/tmp/duckietown/docker_images/DT18_05_core-22dea94f.tar’, ‘sha256:86c99e16ea9df0c708421a0a8e963cd440fa0b7071107995bc29b4c534680b38’]
INFO:dts:Saved archive /tmp/duckietown/docker_images/DT18_05_core-22dea94f.tar of size 2.213 GB
DEBUG:dts:{‘DT18_00_basic’: StackInfo(archive=’/tmp/duckietown/docker_images/DT18_00_basic-f488e50c.tar’, image_name2id={‘portainer/portainer:linux-arm’: ‘sha256:6cb2cfd64c9359fc5bf5f522512e4bb7b7fcf6588d40660f8361f6b6c0979fdd’, ‘v2tec/watchtower:armhf-latest’: ‘sha256:b74a792de471c9652fb9456071f207eec88cd39dfb17d883d9b755ade5a40d24’, ‘duckietown/dt-duckiebot-dashboard:daffy-arm32v7’: ‘sha256:14844e742addfb0fbd9d87176d5f9f0abe16bf912744b6bea423eda2c128ecc3’, ‘duckietown/dt-device-loader:daffy-arm32v7’: ‘sha256:2d152629e1c66ef8ba527846223012dd689e8ed2b8ce9fa853e6212e31b40924′}, hname=’f488e50c’), ‘DT18_01_health’: StackInfo(archive=’/tmp/duckietown/docker_images/DT18_01_health-7ddf09f8.tar’, image_name2id={‘duckietown/rpi-health:master18’: ‘sha256:2269ddbb897bafaec75ad3ba6c46a5b0876e6eb29fbb6045e79682a2249ac942’, ‘duckietown/dt-device-online:daffy-arm32v7’: ‘sha256:e4ca1181ff3c8b49ca0c1493fd2978f3784529efda03c0f1f168b70fc98c793b’}, hname=’7ddf09f8′), ‘DT18_02_others’: StackInfo(archive=’/tmp/duckietown/docker_images/DT18_02_others-3f233b14.tar’, image_name2id={‘duckietown/rpi-python-picamera:master18’: ‘sha256:29cbbdc1158f8ed02dffa272013c8e51f2463299de6140fbef804dad69690ec0′}, hname=’3f233b14’), ‘DT18_03_interface’: StackInfo(archive=’/tmp/duckietown/docker_images/DT18_03_interface-bc3a881b.tar’, image_name2id={‘duckietown/dt-duckiebot-interface:daffy-arm32v7’: ‘sha256:d46f0ca4e7daa131114d81189f537eb5bdb75679585d63a753bcd6d7a76a0c36’, ‘duckietown/dt-car-interface:daffy-arm32v7’: ‘sha256:e5863b0ce7cf2bf4007ba82e0b1c58bdabc0636f72d481500a35595f7c05d492’, ‘duckietown/dt-rosbridge-websocket:daffy-arm32v7’: ‘sha256:ee33172df11ceb8423f50c50b1b83a31d30c12c7020331ee058c40bc7677b862’, ‘duckietown/rpi-simple-server:master18’: ‘sha256:fe4f149c3646cacc9bffe3d8ec524b32a212ce48b217871d65f273476b88edbe’}, hname=’bc3a881b’), ‘DT18_05_core’: StackInfo(archive=’/tmp/duckietown/docker_images/DT18_05_core-22dea94f.tar’, image_name2id={‘duckietown/dt-core:daffy-arm32v7’: ‘sha256:86c99e16ea9df0c708421a0a8e963cd440fa0b7071107995bc29b4c534680b38′}, hname=’22dea94f’)}
INFO:dts:Considering copying /tmp/duckietown/docker_images/DT18_00_basic-f488e50c.tar of size 0.598 GB to SD:data/loader/images_to_load/DT18_00_basic-f488e50c.tar
DEBUG:dts:$ [‘sudo’, ‘mkdir’, ‘-p’, ‘/media/lab/root/data/loader/images_to_load’]
INFO:dts:available 25.152 GB
INFO:dts:OK, copying…
DEBUG:dts:$ [‘sudo’, ‘rsync’, ‘-avP’, ‘/tmp/duckietown/docker_images/DT18_00_basic-f488e50c.tar’, ‘/media/lab/root/data/loader/images_to_load/DT18_00_basic-f488e50c.tar’]
sending incremental file list
DT18_00_basic-f488e50c.tar
641,805,824 100% 48.14MB/s 0:00:12 (xfr#1, to-chk=0/1)
sent 641,962,631 bytes received 35 bytes 47,552,790.07 bytes/sec
total size is 641,805,824 speedup is 1.00
DEBUG:dts:$ [‘sync’]
INFO:dts:Considering copying /tmp/duckietown/docker_images/DT18_01_health-7ddf09f8.tar of size 0.611 GB to SD:data/loader/images_to_load/DT18_01_health-7ddf09f8.tar
DEBUG:dts:$ [‘sudo’, ‘mkdir’, ‘-p’, ‘/media/lab/root/data/loader/images_to_load’]
INFO:dts:available 24.554 GB
INFO:dts:OK, copying…
DEBUG:dts:$ [‘sudo’, ‘rsync’, ‘-avP’, ‘/tmp/duckietown/docker_images/DT18_01_health-7ddf09f8.tar’, ‘/media/lab/root/data/loader/images_to_load/DT18_01_health-7ddf09f8.tar’]
sending incremental file list
DT18_01_health-7ddf09f8.tar
656,421,888 100% 41.85MB/s 0:00:14 (xfr#1, to-chk=0/1)
sent 656,582,264 bytes received 35 bytes 42,360,148.32 bytes/sec
total size is 656,421,888 speedup is 1.00
DEBUG:dts:$ [‘sync’]
INFO:dts:Considering copying /tmp/duckietown/docker_images/DT18_02_others-3f233b14.tar of size 0.237 GB to SD:data/loader/images_to_load/DT18_02_others-3f233b14.tar
DEBUG:dts:$ [‘sudo’, ‘mkdir’, ‘-p’, ‘/media/lab/root/data/loader/images_to_load’]
INFO:dts:available 23.942 GB
INFO:dts:OK, copying…
DEBUG:dts:$ [‘sudo’, ‘rsync’, ‘-avP’, ‘/tmp/duckietown/docker_images/DT18_02_others-3f233b14.tar’, ‘/media/lab/root/data/loader/images_to_load/DT18_02_others-3f233b14.tar’]
sending incremental file list
DT18_02_others-3f233b14.tar
254,215,168 100% 68.73MB/s 0:00:03 (xfr#1, to-chk=0/1)
sent 254,277,351 bytes received 35 bytes 72,650,681.71 bytes/sec
total size is 254,215,168 speedup is 1.00
DEBUG:dts:$ [‘sync’]
INFO:dts:Considering copying /tmp/duckietown/docker_images/DT18_03_interface-bc3a881b.tar of size 3.364 GB to SD:data/loader/images_to_load/DT18_03_interface-bc3a881b.tar
DEBUG:dts:$ [‘sudo’, ‘mkdir’, ‘-p’, ‘/media/lab/root/data/loader/images_to_load’]
INFO:dts:available 23.706 GB
INFO:dts:OK, copying…
DEBUG:dts:$ [‘sudo’, ‘rsync’, ‘-avP’, ‘/tmp/duckietown/docker_images/DT18_03_interface-bc3a881b.tar’, ‘/media/lab/root/data/loader/images_to_load/DT18_03_interface-bc3a881b.tar’]
sending incremental file list
DT18_03_interface-bc3a881b.tar
3,612,574,208 100% 17.57MB/s 0:03:16 (xfr#1, to-chk=0/1)
sent 3,613,456,307 bytes received 35 bytes 18,295,981.48 bytes/sec
total size is 3,612,574,208 speedup is 1.00
DEBUG:dts:$ [‘sync’]
INFO:dts:Considering copying /tmp/duckietown/docker_images/DT18_05_core-22dea94f.tar of size 2.213 GB to SD:data/loader/images_to_load/DT18_05_core-22dea94f.tar
DEBUG:dts:$ [‘sudo’, ‘mkdir’, ‘-p’, ‘/media/lab/root/data/loader/images_to_load’]
INFO:dts:available 20.341 GB
INFO:dts:OK, copying…
DEBUG:dts:$ [‘sudo’, ‘rsync’, ‘-avP’, ‘/tmp/duckietown/docker_images/DT18_05_core-22dea94f.tar’, ‘/media/lab/root/data/loader/images_to_load/DT18_05_core-22dea94f.tar’]
sending incremental file list
DT18_05_core-22dea94f.tar
2,376,172,032 100% 18.44MB/s 0:02:02 (xfr#1, to-chk=0/1)
sent 2,376,752,271 bytes received 35 bytes 19,244,957.94 bytes/sec
total size is 2,376,172,032 speedup is 1.00
DEBUG:dts:$ [‘sync’]
DEBUG:dts:$ [‘docker-compose’, ‘-f’, ‘/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/stacks/DT18_00_basic.yaml’, ‘config’, ‘–quiet’]
INFO:dts:Considering copying /home/lab/.dt-shell/commands-multi/daffy/init_sd_card/stacks/DT18_00_basic.yaml of size 0.000 GB to SD:/data/loader/stacks_to_run/DT18_00_basic.yaml
DEBUG:dts:$ [‘sudo’, ‘mkdir’, ‘-p’, ‘/media/lab/root/data/loader/stacks_to_run’]
INFO:dts:available 18.128 GB
INFO:dts:OK, copying…
DEBUG:dts:$ [‘sudo’, ‘rsync’, ‘-avP’, ‘/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/stacks/DT18_00_basic.yaml’, ‘/media/lab/root/data/loader/stacks_to_run/DT18_00_basic.yaml’]
sending incremental file list
DT18_00_basic.yaml
1,741 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/1)
sent 1,855 bytes received 35 bytes 3,780.00 bytes/sec
total size is 1,741 speedup is 0.92
DEBUG:dts:$ [‘sync’]
DEBUG:dts:$ [‘docker-compose’, ‘-f’, ‘/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/stacks/DT18_01_health.yaml’, ‘config’, ‘–quiet’]
ERROR: Version in “/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/stacks/DT18_01_health.yaml” is unsupported. You might be seeing this error because you’re using the wrong Compose file version. Either specify a version of “2” (or “2.0”) and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
dts : Traceback (most recent call last):
: File “/home/lab/.local/lib/python3.7/site-packages/dt_shell/main.py”, line 37, in cli_main
: cli_main_()
: File “/home/lab/.local/lib/python3.7/site-packages/dt_shell/main.py”, line 157, in cli_main_
: shell.onecmd(cmdline)
: File “/home/lab/anaconda3/lib/python3.7/cmd.py”, line 217, in onecmd
: return func(arg)
: File “/home/lab/.local/lib/python3.7/site-packages/dt_shell/cli.py”, line 287, in <lambda>
: do_command_lam = lambda s, w: do_command(klass, s, w)
: File “/home/lab/.local/lib/python3.7/site-packages/dt_shell/dt_command_abs.py”, line 50, in do_command
: cls.command(shell, args)
: File “/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/command.py”, line 296, in command
: step2function[step_name](shell, parsed)
: File “/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/command.py”, line 711, in step_setup
: configure_images(parsed, user_data, add_file_local, add_file)
: File “/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/command.py”, line 814, in configure_images
: _run_cmd([“docker-compose”, “-f”, lpath, “config”, “–quiet”])
: File “/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/command.py”, line 1042, in _run_cmd
: subprocess.check_call(cmd)
: File “/home/lab/anaconda3/lib/python3.7/subprocess.py”, line 347, in check_call
: raise CalledProcessError(retcode, cmd)
: subprocess.CalledProcessError: Command ‘[‘docker-compose’, ‘-f’, ‘/home/lab/.dt-shell/commands-multi/daffy/init_sd_card/stacks/DT18_01_health.yaml’, ‘config’, ‘–quiet’]’ returned non-zero exit status 1.
dts : If you think this is a bug, please report that you are using:
:
: duckietown-shell-commands: 4.1.7
: duckietown-challenges: 5.0.7
: python: “3.7.3 (default, Mar 27 2019, 22:11:17) n[GCC 7.3.0]”
: duckietown-shell: 5.0.3
: encodings:
: stdout: UTF-8
: stderr: UTF-8
: locale: UTF-8

Asked question