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/09/29 02:39:24 UTC

[GitHub] [airflow] troyharvey commented on issue #26497: Upgrading to airflow 2.4.0 from 2.3.4 causes NotNullViolation error

troyharvey commented on issue #26497:
URL: https://github.com/apache/airflow/issues/26497#issuecomment-1261669184

   We are seeing the same issue upgrading from `2.3.4` to `2.4.0`
   
   ```
   [SQL: INSERT INTO ab_view_menu (name) VALUES (%(name)s) RETURNING ab_view_menu.id]
   [parameters: {'name': 'DAG:example_branch_datetime_operator_3'}]
   (Background on this error at: https://sqlalche.me/e/14/gkpj)
   ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint
   DETAIL:  Failing row contains (null, 1, null).
   
   [SQL: INSERT INTO ab_permission_view (permission_id, view_menu_id) VALUES (%(permission_id)s, %(view_menu_id)s) RETURNING ab_permission_view.id]
   [parameters: {'permission_id': 1, 'view_menu_id': None}]
   (Background on this error at: https://sqlalche.me/e/14/gkpj)
   ERROR [airflow.www.fab_security.sqla.manager] Creation of Permission View Error: (psycopg2.errors.NotNullViolation) null value in column "id" violates not-null constraint
   DETAIL:  Failing row contains (null, 4, 139).
   ```


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