Skip to content

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 Docker

Install Ravada Dockers the usual way https://ravada.readthedocs.io/en/latest/docs/INSTALLfromDockers.html

Disable supervisord

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

Restart docker ravda-back

Now stop rvd_back and start it again

$ docker stop ravada-back
$ docker start ravada-back

Remove table you want to debug

docker exec -it ravada-mysql bash
root@ded8ba9a561d:/# mysql -u rvd_user -p ravada
mysql> drop table grant_types;

Start rvd_back

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
Clone this wiki locally