You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/11/12 17:26:55 UTC
[GitHub] [airflow] wentaowanguc commented on issue #12290: Got a sqlite3.OperationalError while runing airflow scheduler
wentaowanguc commented on issue #12290:
URL: https://github.com/apache/airflow/issues/12290#issuecomment-726222305
Hi @kaxil:
airflow version is 1.10.12
we use the default database
We don't know how to repeat it. The airflow scheduler was running correctly. We unpause one dag which is set to be executed daily. We got this error 8 hours after our dag was successfully executed.
Following are command we used to start the airflow scheduler:
`
airflow initdb
sed -i 's/\/root\/airflow\/logs/\/logs\/optimizer-dataplan-processing\/airflow-scheduler/g' /root/airflow/airflow.cfg
sed -i 's/sqlite:\/\/\/\/root\/airflow\/airflow.db/sqlite:\/\/\/\/data\/airflow.db/g' /root/airflow/airflow.cfg
airflow initdb
airflow scheduler
execution_date=$(date --date="yesterday" +"%Y-%m-%d")
airflow run -m our_dag task1 $execution_date
airflow run -m our_dag task2 $execution_date
airflow run -m our_dag task3 $execution_date
airflow run -m our_dag task4 $execution_date
airflow unpause our_dag
`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org