Closed lapandic closed 6 years ago
Can you first verify that you have swap enabled on the pi by looking at the output of free -h
- you should see 1G under swap.
Then rerun the run
command with --memory 800m --memory-swap 1.8g
included
I don't have swap enabled:
total used free shared buff/cache available
Mem: 865M 123M 475M 6.1M 266M 653M
Swap: 0B 0B 0B
It is not mentioned that we need to enable swap. How can I do it? Maybe we should include it in the documentation.
it is included in the new sd card flashing script. Do this:
sudo dd if=/dev/zero of=/swap0 bs=1M count=1024
sudo mkswap /swap0
sudo echo "/swap0 swap swap" >> /etc/fstab (if it doesn't work just edit /etc/fstab and add that line)
sudo chmod 0600 /swap0
sudo swapon -a
Thanks! It works now.
I have tried to run the demo on my bot by executing the command as specified in docs
docker -H DUCKIEBOT_NAME.local run -it \ --name lanefollowing-demo \ --privileged \ -v /data:/data \ --net host \ duckietown/rpi-duckiebot-lanefollowing-demo:master18
After the container is run it crashes(see error log 1). I've tried to execute:
docker -H zmaj.local run -it --name lanefollowing-demo-2 --privileged -v /data:/data --net host duckietown/rpi-duckiebot-lanefollowing-demo:master18 /bin/bash
and run it in the consoleroslaunch duckietown_demos lane_following.launch
It becomes unresponsive for 20-30 seconds and then I get an error (see error log 2).Any idea how to fix this?
Error log 1:
Error log 2: