0

我正在使用 Apache Airflow 来安排我的脚本。如果我尝试从终端运行脚本。stem 能够轻松获取 cookie 文件,但如果我尝试通过 Airflow 运行它,则会引发此错误。stem.connection.UnreadableCookieFile.

我尝试通过使用使其control_auth_cookie可读,并且在设置权限时,气流仍然无法读取 cookie 文件。/root/.tor/chmod ugo+r control_auth_cookie

我应该如何解决这个问题?

我在 torrc 中有以下选项未注释:

RunAsDaemon 1
ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1

注意:CookieAuthFileGroupReadable 1最初不存在。我在其他线程之后手动添加了它。

4

0 回答 0