duckietown / duckietown-shell-commands

Commands for the Duckietown Shell
4 stars 4 forks source link

Error during init_sd_card command #80

Closed noccoa closed 5 years ago

noccoa commented 5 years ago

I got the same error while trying the init_sd_card command I tried also with ~/.dt-shell$ rm -rf commands/ and with the --reset-cache option but it doesn't work

Here the complete output:

dt> init_sd_card --reset-cache --country CH --compress INFO:dts:Removing cache

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

DEBUG:dts:Checking docker environment for user duckietown 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/duckietown/.dt-shell/commands/init_sd_card/list_disks.sh NAME TYPE SIZE VENDOR /dev/nvme0n1 disk 477G /dev/sda disk 15G Generic Done! Type the name of your device (include the '/dev' part): /dev/sda Running /bin/bash /home/duckietown/.dt-shell/commands/init_sd_card/init_sd_card2.sh 64-bit OS detected... Downloading etcher-cli... --2018-11-27 15:54:46-- https://github.com/balena-io/etcher/releases/download/v1.4.6/etcher-cli-1.4.6-linux-x64.tar.gz Resolving github.com (github.com)... 140.82.118.3, 140.82.118.4 Connecting to github.com (github.com)|140.82.118.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/45055693/f3861300-dbd4-11e8-9e34-c3a20e416028?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20181127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181127T145447Z&X-Amz-Expires=300&X-Amz-Signature=1b53adfe0ec09328935e986d19accbe413371509598cf1d7b994619c269b2a0f&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Detcher-cli-1.4.6-linux-x64.tar.gz&response-content-type=application%2Foctet-stream [following] --2018-11-27 15:54:47-- https://github-production-release-asset-2e65be.s3.amazonaws.com/45055693/f3861300-dbd4-11e8-9e34-c3a20e416028?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20181127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181127T145447Z&X-Amz-Expires=300&X-Amz-Signature=1b53adfe0ec09328935e986d19accbe413371509598cf1d7b994619c269b2a0f&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Detcher-cli-1.4.6-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.102.131 Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.102.131|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 19468508 (19M) [application/octet-stream] Saving to: ‘/tmp/duckietown/tmp.FvZH6XCooJ’

/tmp/duckietown/tmp.FvZH6XCoo 100%[===============================================>] 18.57M 12.8MB/s in 1.5s

2018-11-27 15:54:49 (12.8 MB/s) - ‘/tmp/duckietown/tmp.FvZH6XCooJ’ saved [19468508/19468508]

Installing etcher-cli to /tmp/duckietown/etcher-cli... etcher-cli-1.4.6-linux-x64-dist/etcher etcher-cli-1.4.6-linux-x64-dist/node_modules/ etcher-cli-1.4.6-linux-x64-dist/node_modules/drivelist/ etcher-cli-1.4.6-linux-x64-dist/node_modules/drivelist/build/ etcher-cli-1.4.6-linux-x64-dist/node_modules/drivelist/build/Release/ etcher-cli-1.4.6-linux-x64-dist/node_modules/drivelist/build/Release/drivelist.node etcher-cli-1.4.6-linux-x64-dist/node_modules/lzma-native/ etcher-cli-1.4.6-linux-x64-dist/node_modules/lzma-native/binding/ etcher-cli-1.4.6-linux-x64-dist/node_modules/lzma-native/binding/lzma_native.node etcher-cli-1.4.6-linux-x64-dist/node_modules/lzma-native/build/ etcher-cli-1.4.6-linux-x64-dist/node_modules/lzma-native/build/Release/ etcher-cli-1.4.6-linux-x64-dist/node_modules/lzma-native/build/Release/obj.target/ etcher-cli-1.4.6-linux-x64-dist/node_modules/lzma-native/build/Release/obj.target/lzma_native.node etcher-cli-1.4.6-linux-x64-dist/node_modules/lzma-native/build/Release/lzma_native.node etcher-cli-1.4.6-linux-x64-dist/node_modules/lzma-native/deps/ etcher-cli-1.4.6-linux-x64-dist/node_modules/lzma-native/deps/bin_i686/ etcher-cli-1.4.6-linux-x64-dist/node_modules/lzma-native/deps/bin_i686/liblzma.dll etcher-cli-1.4.6-linux-x64-dist/node_modules/lzma-native/deps/bin_x86-64/ etcher-cli-1.4.6-linux-x64-dist/node_modules/lzma-native/deps/bin_x86-64/liblzma.dll etcher-cli-1.4.6-linux-x64-dist/node_modules/mountutils/ etcher-cli-1.4.6-linux-x64-dist/node_modules/mountutils/build/ etcher-cli-1.4.6-linux-x64-dist/node_modules/mountutils/build/Release/ etcher-cli-1.4.6-linux-x64-dist/node_modules/mountutils/build/Release/obj.target/ etcher-cli-1.4.6-linux-x64-dist/node_modules/mountutils/build/Release/obj.target/MountUtils.node etcher-cli-1.4.6-linux-x64-dist/node_modules/mountutils/build/Release/MountUtils.node etcher-cli-1.4.6-linux-x64-dist/node_modules/usb/ etcher-cli-1.4.6-linux-x64-dist/node_modules/usb/build/ etcher-cli-1.4.6-linux-x64-dist/node_modules/usb/build/Release/ etcher-cli-1.4.6-linux-x64-dist/node_modules/usb/build/Release/obj.target/ etcher-cli-1.4.6-linux-x64-dist/node_modules/usb/build/Release/obj.target/usb_bindings.node etcher-cli-1.4.6-linux-x64-dist/node_modules/usb/build/Release/usb_bindings.node etcher-cli-1.4.6-linux-x64-dist/node_modules/usb/src/ etcher-cli-1.4.6-linux-x64-dist/node_modules/usb/src/binding/ etcher-cli-1.4.6-linux-x64-dist/node_modules/usb/src/binding/usb_bindings.node etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/ etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/build/ etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/ etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/obj.target/ etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/obj.target/Generator.node etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/obj.target/embedder.node etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/obj.target/installer_x64.node etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/obj.target/installer_x86.node etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/obj.target/wdi.node etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/Generator.node etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/embedder.node etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/installer_x64.node etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/installer_x86.node etcher-cli-1.4.6-linux-x64-dist/node_modules/winusb-driver-generator/build/Release/wdi.node etcher-cli-1.4.6-linux-x64-dist/node_modules/xxhash/ etcher-cli-1.4.6-linux-x64-dist/node_modules/xxhash/build/ etcher-cli-1.4.6-linux-x64-dist/node_modules/xxhash/build/Release/ etcher-cli-1.4.6-linux-x64-dist/node_modules/xxhash/build/Release/obj.target/ etcher-cli-1.4.6-linux-x64-dist/node_modules/xxhash/build/Release/obj.target/hash.node etcher-cli-1.4.6-linux-x64-dist/node_modules/xxhash/build/Release/hash.node --2018-11-27 15:54:50-- 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.118.4, 140.82.118.3 Connecting to github.com (github.com)|140.82.118.4|: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%2F20181127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181127T145450Z&X-Amz-Expires=300&X-Amz-Signature=24fc5a94046b83f032e4ef73cb47f14c4d2be49065107666b8af843c547c0a13&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] --2018-11-27 15:54:50-- 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%2F20181127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181127T145450Z&X-Amz-Expires=300&X-Amz-Signature=24fc5a94046b83f032e4ef73cb47f14c4d2be49065107666b8af843c547c0a13&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.102.131 Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.102.131|: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 100%[===============================================>] 298.89M 27.1MB/s in 13s

2018-11-27 15:55:05 (22.3 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/sda ? This will erase the selected drive. Are you sure? Yes Flashing: 10.41 MB/s [========================] 100% eta 0s
Validating: 0 B/s [========================] 100% eta 0s

Checksums:

INFO:dts:Updated status: DEBUG:dts:$ ['sudo', 'lsblk', '/dev/sda'] NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 15G 0 disk ├─sda2 8:2 1 15G 0 part └─sda1 8:1 1 64M 0 part DEBUG:dts:$ ['sudo', 'udevadm', 'trigger'] DEBUG:dts:$ ['udisksctl', 'mount', '-b', '/dev/disk/by-label/HypriotOS'] Mounted /dev/sda1 at /media/duckietown/HypriotOS. DEBUG:dts:$ ['sudo', 'udevadm', 'trigger'] DEBUG:dts:$ ['udisksctl', 'mount', '-b', '/dev/disk/by-label/root'] Mounted /dev/sda2 at /media/duckietown/root. 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/MAC/README.txt INFO:dts:Configuration already found in ~/.ssh/config INFO:dts:Adding file /var/local/wificfg.json INFO:dts:Adding file /etc/wpa_supplicant/wpa_supplicant.conf INFO:dts:Stacks to load: ['DT18_00_basic', 'DT18_01_health_stats', 'DT18_02_others', 'DT18_05_duckiebot_base'] INFO:dts:Stacks to run: ['DT18_00_basic', 'DT18_01_health_stats'] ERROR:dts:Could not find docker-compose. Cannot validate file. INFO:dts:Adding file /var/local/DT18_00_basic.yaml ERROR:dts:Could not find docker-compose. Cannot validate file. INFO:dts:Adding file /var/local/DT18_01_health_stats.yaml ERROR:dts:Could not find docker-compose. Cannot validate file. INFO:dts:Adding file /var/local/DT18_02_others.yaml ERROR:dts:Could not find docker-compose. Cannot validate file. INFO:dts:Adding file /var/local/DT18_05_duckiebot_base.yaml INFO:dts:The stacks that are available are: DT18_01_health_stats, DT18_02_others, DT18_03_roscore, DT18_05_duckiebot_base, DT18_04_camera, DT18_99_swarm, DT18_00_basic INFO:dts:You asked to use ['DT18_00_basic', 'DT18_01_health_stats', 'DT18_02_others', 'DT18_05_duckiebot_base'] DEBUG:dts:Checking docker environment for user duckietown 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 INFO:dts:Pulling portainer/portainer:linux-arm DEBUG:dts:$ ['docker', 'pull', 'portainer/portainer:linux-arm'] linux-arm: Pulling from portainer/portainer Digest: sha256:d20496a3f98a594550f896a70748e0ad98b5be460d7849b9ad6db9f3c5bc3560 Status: Image is up to date for portainer/portainer:linux-arm INFO:dts:Saving to /tmp/duckietown/docker_images/DT18_00_basic-f78bd7e5.tar DEBUG:dts:$ ['docker', 'save', '-o', '/tmp/duckietown/docker_images/DT18_00_basic-f78bd7e5.tar', 'sha256:974254f0054ef1390fcef062f13797319551530219a791c52f30cb05fe525da8', 'sha256:b74a792de471c9652fb9456071f207eec88cd39dfb17d883d9b755ade5a40d24'] DEBUG:dts:$ ['gzip', '-f', '/tmp/duckietown/docker_images/DT18_00_basic-f78bd7e5.tar'] INFO:dts:Saved archive /tmp/duckietown/docker_images/DT18_00_basic-f78bd7e5.tar.gz of size 0.018 GB INFO:dts:Pulling duckietown/rpi-duckiebot-loader:master18 DEBUG:dts:$ ['docker', 'pull', 'duckietown/rpi-duckiebot-loader:master18'] master18: Pulling from duckietown/rpi-duckiebot-loader Digest: sha256:986708fcac2f9051b17f51c02514279a42089e758b220311ac2de52aa5bad1ec Status: Image is up to date for duckietown/rpi-duckiebot-loader:master18 INFO:dts:Pulling duckietown/rpi-health:master18 DEBUG:dts:$ ['docker', 'pull', 'duckietown/rpi-health:master18'] master18: Pulling from duckietown/rpi-health Digest: sha256:f56a664e610813be5e99a05e9afb78629f424323ad825afc0f19f92acf9c3a61 Status: Image is up to date for duckietown/rpi-health:master18 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 INFO:dts:Pulling duckietown/rpi-duckiebot-online:master18 DEBUG:dts:$ ['docker', 'pull', 'duckietown/rpi-duckiebot-online:master18'] master18: Pulling from duckietown/rpi-duckiebot-online Digest: sha256:68e5d5b1d6677e8f0110b4f81bb1fb3d47d5658d8de8988108999b7cd8dce3e2 Status: Image is up to date for duckietown/rpi-duckiebot-online:master18 INFO:dts:Saving to /tmp/duckietown/docker_images/DT18_01_health_stats-83f5dbad.tar DEBUG:dts:$ ['docker', 'save', '-o', '/tmp/duckietown/docker_images/DT18_01_health_stats-83f5dbad.tar', 'sha256:fe4f149c3646cacc9bffe3d8ec524b32a212ce48b217871d65f273476b88edbe', 'sha256:8b7e75c76852e9db87ab14f12c1cd589e7e752e027084ccd7d4d00190a33fef4', 'sha256:2784311b814c9c1016dc7dcec83ec31e98f8566e02c46ebd3abd328dccde0217', 'sha256:034be85761ff8f455e69e276b8fc1bdb62e670dbaf41ef1c288b1d9984e97393'] DEBUG:dts:$ ['gzip', '-f', '/tmp/duckietown/docker_images/DT18_01_health_stats-83f5dbad.tar'] INFO:dts:Saved archive /tmp/duckietown/docker_images/DT18_01_health_stats-83f5dbad.tar.gz of size 0.168 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:3b6bbc18929a3f75fbf8c73b7d523f66542da5b4735af8deed94f12c9ff88420 Status: Image is up to date for duckietown/rpi-python-picamera:master18 INFO:dts:Saving to /tmp/duckietown/docker_images/DT18_02_others-7c4056c7.tar DEBUG:dts:$ ['docker', 'save', '-o', '/tmp/duckietown/docker_images/DT18_02_others-7c4056c7.tar', 'sha256:100aa840f58b2508221507236bd556229e3af02cfe86a467acb0a3db179302ec'] DEBUG:dts:$ ['gzip', '-f', '/tmp/duckietown/docker_images/DT18_02_others-7c4056c7.tar'] INFO:dts:Saved archive /tmp/duckietown/docker_images/DT18_02_others-7c4056c7.tar.gz of size 0.085 GB INFO:dts:Pulling duckietown/rpi-duckiebot-logger:master18 DEBUG:dts:$ ['docker', 'pull', 'duckietown/rpi-duckiebot-logger:master18'] master18: Pulling from duckietown/rpi-duckiebot-logger Digest: sha256:e66c1c82dfbe7f6b4a5f3532138e6cc6a6a7f8e01ff92cdad35fb5f3a2eec8e0 Status: Image is up to date for duckietown/rpi-duckiebot-logger:master18 INFO:dts:Pulling duckietown/rpi-ros-kinetic-base:master18 DEBUG:dts:$ ['docker', 'pull', 'duckietown/rpi-ros-kinetic-base:master18'] master18: Pulling from duckietown/rpi-ros-kinetic-base Digest: sha256:79829ac0d362f0fca3a4b8b61194df94fabc97fdf5efcbf2d47eeda203547380 Status: Image is up to date for duckietown/rpi-ros-kinetic-base:master18 INFO:dts:Pulling duckietown/rpi-duckiebot-lanefollowing-demo:master18 DEBUG:dts:$ ['docker', 'pull', 'duckietown/rpi-duckiebot-lanefollowing-demo:master18'] master18: Pulling from duckietown/rpi-duckiebot-lanefollowing-demo Digest: sha256:fcf9ab80006bf9640576a557eebe6006f3368356a6937d22c932934d728f0883 Status: Image is up to date for duckietown/rpi-duckiebot-lanefollowing-demo:master18 INFO:dts:Pulling duckietown/rpi-duckiebot-joystick-demo:master18 DEBUG:dts:$ ['docker', 'pull', 'duckietown/rpi-duckiebot-joystick-demo:master18'] master18: Pulling from duckietown/rpi-duckiebot-joystick-demo Digest: sha256:4996b642df61d79fc5487c13de77d43fbbfd89025e6a8c15e25c084d609a28ad Status: Image is up to date for duckietown/rpi-duckiebot-joystick-demo:master18 INFO:dts:Pulling arm32v7/ros:kinetic-ros-base-xenial DEBUG:dts:$ ['docker', 'pull', 'arm32v7/ros:kinetic-ros-base-xenial'] kinetic-ros-base-xenial: Pulling from arm32v7/ros Digest: sha256:85df31d593051c3dd7e841c53fe8eed70d5d7d237da406fc694d28ec57e36aee Status: Image is up to date for arm32v7/ros:kinetic-ros-base-xenial INFO:dts:Pulling duckietown/rpi-ros-kinetic-roscore:master18 DEBUG:dts:$ ['docker', 'pull', 'duckietown/rpi-ros-kinetic-roscore:master18'] master18: Pulling from duckietown/rpi-ros-kinetic-roscore Digest: sha256:5637a1fa458763e97ada7728bc9d1da52725c1d601f0d1237b998afff18088e7 Status: Image is up to date for duckietown/rpi-ros-kinetic-roscore:master18 INFO:dts:Pulling duckietown/rpi-duckiebot-web_video_server:master18 DEBUG:dts:$ ['docker', 'pull', 'duckietown/rpi-duckiebot-web_video_server:master18'] master18: Pulling from duckietown/rpi-duckiebot-web_video_server Digest: sha256:e8903b36f1503d48ee713bff9b31fb9874f49afb4dafc0c0d491207cf1fb105f Status: Image is up to date for duckietown/rpi-duckiebot-web_video_server:master18 INFO:dts:Pulling duckietown/rpi-duckiebot-base:master18 DEBUG:dts:$ ['docker', 'pull', 'duckietown/rpi-duckiebot-base:master18'] master18: Pulling from duckietown/rpi-duckiebot-base Digest: sha256:559c511e4039f2d4cfa9217e9d034e1531bdb15361c608774c9669ded2dab0f1 Status: Image is up to date for duckietown/rpi-duckiebot-base:master18 INFO:dts:Pulling duckietown/rpi-duckiebot-ros-picam:master18 DEBUG:dts:$ ['docker', 'pull', 'duckietown/rpi-duckiebot-ros-picam:master18'] master18: Pulling from duckietown/rpi-duckiebot-ros-picam Digest: sha256:3be3334f98de6e9b5565d7321b2e2a9814a8efaecd4e0a3f51f4a81eff676c77 Status: Image is up to date for duckietown/rpi-duckiebot-ros-picam:master18 INFO:dts:Saving to /tmp/duckietown/docker_images/DT18_05_duckiebot_base-c2774c4f.tar DEBUG:dts:$ ['docker', 'save', '-o', '/tmp/duckietown/docker_images/DT18_05_duckiebot_base-c2774c4f.tar', 'sha256:ef0925ecc01ac4bc71e2786abeb0a2ccd9ca228ea254fb1dba3748ac50ea491c', 'sha256:1c4a85b6aedf672421d9fa570abcf39cd4100d3408db5b7a1c54484e5e31edad', 'sha256:a730e745aef170390e760de612cc21521d7a30db1924ef5c257df68e8e099cd6', 'sha256:b09bf58e021c96261740d429076a2576cfed58ae24e818905497d9c3e334bcf8', 'sha256:d28aa3f00b9cbdb7e38cd1dd01f49b5163609e576330c0157ef1048ec7830a5e', 'sha256:e02c1b982b9b0b3c34360ceb35aed9996c3070554a97f4de04141dd574b0c89f', 'sha256:73becbe372aa3f39943d2ca7112b6e1d1a30899ddb4aafc1df613a6635f43f62', 'sha256:1c001d6ff197c800788fcdeb7c54ce5dea5f3b336c8b29c93362ff143886a016', 'sha256:e5c9f84e9d7737268521ed2d44ab28755fdf99e70caf38f2ad77b4148575e225'] DEBUG:dts:$ ['gzip', '-f', '/tmp/duckietown/docker_images/DT18_05_duckiebot_base-c2774c4f.tar'] INFO:dts:Saved archive /tmp/duckietown/docker_images/DT18_05_duckiebot_base-c2774c4f.tar.gz of size 1.285 GB DEBUG:dts:{'DT18_00_basic': StackInfo(archive='/tmp/duckietown/docker_images/DT18_00_basic-f78bd7e5.tar.gz', image_name2id={'portainer/portainer:linux-arm': 'sha256:974254f0054ef1390fcef062f13797319551530219a791c52f30cb05fe525da8', 'v2tec/watchtower:armhf-latest': 'sha256:b74a792de471c9652fb9456071f207eec88cd39dfb17d883d9b755ade5a40d24'}, hname='f78bd7e5'), 'DT18_02_others': StackInfo(archive='/tmp/duckietown/docker_images/DT18_02_others-7c4056c7.tar.gz', image_name2id={'duckietown/rpi-python-picamera:master18': 'sha256:100aa840f58b2508221507236bd556229e3af02cfe86a467acb0a3db179302ec'}, hname='7c4056c7'), 'DT18_05_duckiebot_base': StackInfo(archive='/tmp/duckietown/docker_images/DT18_05_duckiebot_base-c2774c4f.tar.gz', image_name2id={'duckietown/rpi-duckiebot-web_video_server:master18': 'sha256:ef0925ecc01ac4bc71e2786abeb0a2ccd9ca228ea254fb1dba3748ac50ea491c', 'duckietown/rpi-ros-kinetic-base:master18': 'sha256:1c4a85b6aedf672421d9fa570abcf39cd4100d3408db5b7a1c54484e5e31edad', 'arm32v7/ros:kinetic-ros-base-xenial': 'sha256:a730e745aef170390e760de612cc21521d7a30db1924ef5c257df68e8e099cd6', 'duckietown/rpi-duckiebot-lanefollowing-demo:master18': 'sha256:b09bf58e021c96261740d429076a2576cfed58ae24e818905497d9c3e334bcf8', 'duckietown/rpi-duckiebot-base:master18': 'sha256:d28aa3f00b9cbdb7e38cd1dd01f49b5163609e576330c0157ef1048ec7830a5e', 'duckietown/rpi-duckiebot-logger:master18': 'sha256:e02c1b982b9b0b3c34360ceb35aed9996c3070554a97f4de04141dd574b0c89f', 'duckietown/rpi-duckiebot-ros-picam:master18': 'sha256:73becbe372aa3f39943d2ca7112b6e1d1a30899ddb4aafc1df613a6635f43f62', 'duckietown/rpi-ros-kinetic-roscore:master18': 'sha256:1c001d6ff197c800788fcdeb7c54ce5dea5f3b336c8b29c93362ff143886a016', 'duckietown/rpi-duckiebot-joystick-demo:master18': 'sha256:e5c9f84e9d7737268521ed2d44ab28755fdf99e70caf38f2ad77b4148575e225'}, hname='c2774c4f'), 'DT18_01_health_stats': StackInfo(archive='/tmp/duckietown/docker_images/DT18_01_health_stats-83f5dbad.tar.gz', image_name2id={'duckietown/rpi-simple-server:master18': 'sha256:fe4f149c3646cacc9bffe3d8ec524b32a212ce48b217871d65f273476b88edbe', 'duckietown/rpi-health:master18': 'sha256:8b7e75c76852e9db87ab14f12c1cd589e7e752e027084ccd7d4d00190a33fef4', 'duckietown/rpi-duckiebot-online:master18': 'sha256:2784311b814c9c1016dc7dcec83ec31e98f8566e02c46ebd3abd328dccde0217', 'duckietown/rpi-duckiebot-loader:master18': 'sha256:034be85761ff8f455e69e276b8fc1bdb62e670dbaf41ef1c288b1d9984e97393'}, hname='83f5dbad')} INFO:dts:Considering copying /tmp/duckietown/docker_images/DT18_00_basic-f78bd7e5.tar.gz of size 0.018 GB

dts : Traceback (most recent call last): : File "/home/duckietown/.local/lib/python2.7/site-packages/dt_shell/init.py", line 38, in cli_main : climain() : File "/home/duckietown/.local/lib/python2.7/site-packages/dt_shell/init.py", line 108, in climain : shell.cmdloop() : File "/usr/lib/python2.7/cmd.py", line 142, in cmdloop : stop = self.onecmd(line) : File "/usr/lib/python2.7/cmd.py", line 221, in onecmd : return func(arg) : File "/home/duckietown/.local/lib/python2.7/site-packages/dt_shell/cli.py", line 409, in : do_command_lam = lambda s, w: do_command(klass, s, w) : File "/home/duckietown/.local/lib/python2.7/site-packages/dt_shell/dt_command_abs.py", line 47, in do_command : cls.command(shell, args) : File "/home/duckietown/.dt-shell/commands/init_sd_card/command.py", line 191, in command : step2function[step_name](shell, parsed) : File "/home/duckietown/.dt-shell/commands/init_sd_card/command.py", line 449, in step_setup : configure_images(parsed, user_data, add_file_local, add_file) : File "/home/duckietown/.dt-shell/commands/init_sd_card/command.py", line 535, in configure_images : available = psutil.disk_usage(TMP_ROOT_MOUNTPOINT).free : File "/home/duckietown/.local/lib/python2.7/site-packages/psutil/init.py", line 1978, in disk_usage : return _psplatform.disk_usage(path) : File "/home/duckietown/.local/lib/python2.7/site-packages/psutil/_psposix.py", line 133, in disk_usage : st = os.statvfs(path) : OSError: [Errno 2] No such file or directory: '/media/duckietown/root'

dts : Please report that you are using: :
: duckietown-shell: 3.0.31 : duckietown-shell-commands: 1.1.1 : python: "2.7.12 (default, Nov 12 2018, 14:36:49) \n[GCC 5.4.0 20160609]"

breandan commented 5 years ago

This error occurs in configure_images, which is called by step_setup, which first checks to see if the path /media/duckietown/root (i.e. DUCKIETOWN_ROOT) exists. Since this did not raise an exception on 342, we can assume it passed this initial check, but failed later on line 535. Could something have caused the SD card to be unmounted (e.g. physically disconnected) in the intervening time?

LukyBo commented 5 years ago

After typing the init_sd_card command and the installation the following question appears: "? This will erase the selected drive. Are you sure?" After typing "yes" the following error appears. What can I do?

The selected drive "/dev/sdc1" was not found We can't find "/dev/sdc1" in your system. Did you unplug the drive?

dts : Traceback (most recent call last): : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/init.py", line 48, in cli_main : climain() : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/init.py", line 126, in climain : shell.onecmd(cmdline) : File "/home/linuxbrew/.linuxbrew/opt/python/lib/python3.7/cmd.py", line 217, in onecmd : return func(arg) : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/cli.py", line 413, in : do_command_lam = lambda s, w: do_command(klass, s, w) : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/dt_command_abs.py", line 53, in do_command : cls.command(shell, args) : File "/home/sakul1308/.dt-shell/commands/init_sd_card/command.py", line 215, in command : step2function[step_name](shell, parsed) : File "/home/sakul1308/.dt-shell/commands/init_sd_card/command.py", line 289, in step_flash : start_command_in_subprocess(script_cmd, env) : File "/home/sakul1308/.dt-shell/commands/utils/cli_utils.py", line 30, in start_command_in_subprocess : raise Exception(msg) : Exception: Error occurred while running /bin/bash /home/sakul1308/.dt-shell/commands/init_sd_card/init_sd_card.sh, please check and retry (1).

dts : If you think this is a bug, please report that you are using: :
: duckietown-shell-commands: 4.0.24 : duckietown-challenges: 4.0.30 : python: "3.7.4 (default, Jul 12 2019, 20:57:46) \n[GCC 5.4.0 20160609]" : duckietown-shell: 4.0.24 : encodings: : stdout: UTF-8 : stderr: UTF-8 : locale: UTF-8

sdmendoza commented 5 years ago

After typing the init_sd_card command and the installation the following question appears: "? This will erase the selected drive. Are you sure?" After typing "yes" the following error appears. What can I do?

The selected drive "/dev/sdc1" was not found We can't find "/dev/sdc1" in your system. Did you unplug the drive?

dts : Traceback (most recent call last): : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/init.py", line 48, in cli_main : climain() : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/init.py", line 126, in climain : shell.onecmd(cmdline) : File "/home/linuxbrew/.linuxbrew/opt/python/lib/python3.7/cmd.py", line 217, in onecmd : return func(arg) : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/cli.py", line 413, in : do_command_lam = lambda s, w: do_command(klass, s, w) : File "/home/sakul1308/.local/lib/python3.7/site-packages/dt_shell/dt_command_abs.py", line 53, in do_command : cls.command(shell, args) : File "/home/sakul1308/.dt-shell/commands/init_sd_card/command.py", line 215, in command : step2function[step_name](shell, parsed) : File "/home/sakul1308/.dt-shell/commands/init_sd_card/command.py", line 289, in step_flash : start_command_in_subprocess(script_cmd, env) : File "/home/sakul1308/.dt-shell/commands/utils/cli_utils.py", line 30, in start_command_in_subprocess : raise Exception(msg) : Exception: Error occurred while running /bin/bash /home/sakul1308/.dt-shell/commands/init_sd_card/init_sd_card.sh, please check and retry (1).

dts : If you think this is a bug, please report that you are using: : : duckietown-shell-commands: 4.0.24 : duckietown-challenges: 4.0.30 : python: "3.7.4 (default, Jul 12 2019, 20:57:46) \n[GCC 5.4.0 20160609]" : duckietown-shell: 4.0.24 : encodings: : stdout: UTF-8 : stderr: UTF-8 : locale: UTF-8

Hi, i had the same error, i used $ export LANGUAGE="en:en" (in my case it appears "es:en"), i thougth that is an error whith the general Ubuntu Language (i installed the spanish language), but i have the same ERROR in the first question with the "docker-composer".

LukyBo commented 5 years ago

I uninstalled docker-compose and reinstalled it via https://docs.docker.com/compose/install/#alternative-install-options. Now the init_sd_card command works!

liampaull commented 5 years ago

if issue is closed please close