autolab / autolab-oneclick

Apache License 2.0
6 stars 17 forks source link

ERROR: Line 180 of script has return value 1. The log file is saved at /tmp/tmp.pe5bmESQAJ #12

Open razeineldin opened 6 years ago

razeineldin commented 6 years ago

This error is caused when I uninstalled Autolab then tried to reinstall it. My explanation to this error is that Autolab was not completely removed due to some issues in the uninstall.sh script.

1) Firstly, I got the following errors when I run uninstall.sh:

Remove one or more containers
rm: cannot remove ‘/var/lib/docker/plugins’: Device or resource busy
rm: cannot remove ‘/var/lib/docker/overlay2’: Device or resource busy

the solution is simply umount these directories before removing them using

sudo umount /var/lib/docker/overlay2
sudo umount /var/lib/docker/plugins

2) Secondly, docker-engine is obsoleted and docker-ce is used instead, so the uninstall.sh should be updated

sudo apt-get purge docker-ce;
sudo apt-get autoremove --purge docker-ce;