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 2022/06/12 12:15:22 UTC

[GitHub] [airflow] dcardinha opened a new issue, #24400: Airflow fails to insert rows in log_template table

dcardinha opened a new issue, #24400:
URL: https://github.com/apache/airflow/issues/24400

   ### Apache Airflow version
   
   2.3.2 (latest released)
   
   ### What happened
   
   When trying to start airflow version 2.3.2, both the workers, scheduler and webserver fail to start all showing the same kind of error:
   ```
   sqlalchemy.exc.IntegrityError: (psycopg2.errors.NotNullViolation) null value in column "task_prefix" violates not-null constraint
   scheduler_1  | DETAIL:  Failing row contains (103, dag_id={{ ti.dag_id }}/run_id={{ ti.run_id }}/task_id={{ ti.task..., null, {dag_id}-{task_id}-{run_id}-{map_index}-{try_number}, 2022-06-12 12:08:13.60148+00).
   scheduler_1  | 
   scheduler_1  | [SQL: INSERT INTO log_template (filename, elasticsearch_id, created_at) VALUES (%(filename)s, %(elasticsearch_id)s, %(created_at)s) RETURNING log_template.id]
   scheduler_1  | [parameters: {'filename': 'dag_id={{ ti.dag_id }}/run_id={{ ti.run_id }}/task_id={{ ti.task_id }}/{% if ti.map_index >= 0 %}map_index={{ ti.map_index }}/{% endif %}attempt={{ try_number }}.log', 'elasticsearch_id': '{dag_id}-{task_id}-{run_id}-{map_index}-{try_number}', 'created_at': datetime.datetime(2022, 6, 12, 12, 8, 13, 601480, tzinfo=Timezone('UTC'))}]
   
   ```
   
   ### What you think should happen instead
   
   _No response_
   
   ### How to reproduce
   
   _No response_
   
   ### Operating System
   
   ubuntu 16.04
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] github-actions[bot] commented on issue #24400: Airflow db upgrade fails to insert rows in log_template table

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #24400:
URL: https://github.com/apache/airflow/issues/24400#issuecomment-1192050381

   This issue has been closed because it has not received response from the issue author.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] github-actions[bot] commented on issue #24400: Airflow db upgrade fails to insert rows in log_template table

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #24400:
URL: https://github.com/apache/airflow/issues/24400#issuecomment-1183802778

   This issue has been automatically marked as stale because it has been open for 30 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] dcardinha commented on issue #24400: Airflow db upgrade fails to insert rows in log_template table

Posted by GitBox <gi...@apache.org>.
dcardinha commented on issue #24400:
URL: https://github.com/apache/airflow/issues/24400#issuecomment-1153545745

   Hi, I m upgrading from version 2.2.3, but I am using docker and pruned the postgres volumes so it should be like installing from scratch.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] github-actions[bot] closed issue #24400: Airflow db upgrade fails to insert rows in log_template table

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #24400: Airflow db upgrade fails to insert rows in log_template table
URL: https://github.com/apache/airflow/issues/24400


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] uranusjr commented on issue #24400: Airflow db upgrade fails to insert rows in log_template table

Posted by GitBox <gi...@apache.org>.
uranusjr commented on issue #24400:
URL: https://github.com/apache/airflow/issues/24400#issuecomment-1153223071

   What version are you upgrading from? `task_prefix` was a field that only existed in some in-development version of Airflow, and upgrading from such versions is not supported. You should downgrade back to a 2.2.x version from the in-development version, and upgrade from there instead.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org