-
Notifications
You must be signed in to change notification settings - Fork 176
Debugging Dockers
Francesc Guasch edited this page Mar 15, 2021
·
4 revisions
If you want to debug rvd_back launch in dockers do it this way.
Install Ravada Dockers the usual way https://ravada.readthedocs.io/en/latest/docs/INSTALLfromDockers.html
Launch a bash shell in ravada back and disable supervisord to restart rvd_back
docker exec -it ravada-back bash
root@aaa9068c0b51:/ravada# apt update
root@aaa9068c0b51:/ravada# apt install vim
root@aaa9068c0b51:/ravada# vim /etc/supervisord.conf
Set this line from true to false
autorestart=false
Now stop rvd_back and start it again
$ docker stop ravada-back
$ docker start ravada-back
docker exec -it ravada-mysql bash
root@ded8ba9a561d:/# mysql -u rvd_user -p ravada
mysql> drop table grant_types;
Inside the docker ravada-back launch the process rvd_back. Maybe you have to repeat the drop table from previous step.
$ docker exec -it ravada-back bash
root@aaa9068c0b51:/ravada# PERL5LIB=./lib/ script/rvd_back