I am using Apache Airflow to schedule my script. If I try to run the script from the terminal. stem is able to pickup the cookie file easily but If I try to run it via Airflow, it throws this error.
I tried making
control_auth_cookie readable in
/root/.tor/ by using
chmod ugo+r and while the permissions are set, airflow still can't read the cookie file.
How should I fix this?
I have the following options uncommented in torrc:
RunAsDaemon 1 ControlPort 9051 CookieAuthentication 1 CookieAuthFileGroupReadable 1
CookieAuthFileGroupReadable 1 was not present initially. I added it manually following other threads.