[ 
https://issues.apache.org/jira/browse/AIRFLOW-2459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16474504#comment-16474504
 ] 

Tylar Murray commented on AIRFLOW-2459:
---------------------------------------

https://dba.stackexchange.com/questions/48704/mysql-5-6-datetime-incorrect-datetime-value-2013-08-25t1700000000-with-er

> Unable to insert in log table while using MySQL
> -----------------------------------------------
>
>                 Key: AIRFLOW-2459
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2459
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: db
>    Affects Versions: Airflow 2.0
>            Reporter: kunal gupta
>            Priority: Major
>             Fix For: Airflow 2.0
>
>         Attachments: image-2018-05-13-00-36-20-872.png
>
>
> When i fire airflow initdb, using MySQL 5.7, im getting an error
> MySQL version:
> mysql  Ver 14.14 Distrib 5.7.20-19, for Linux (x86_64) using  6.2
> Airflow 2.0
> MySQL set up for global variables:
> show global variables like '%timestamp%';
> !image-2018-05-13-00-36-20-872.png!
> Error message:
> sqlalchemy.exc.InvalidRequestError: This Session's transaction has been 
> rolled back due to a previous exception during flush. To begin a new 
> transaction with this Session, first issue Session.rollback(). Original 
> exception was: (_mysql_exceptions.OperationalError) (1292, "Incorrect 
> datetime value: '2018-05-13 05:24:37.946481+00:00' for column 'dttm' at row 
> 1") [SQL: u'INSERT INTO log (dttm, dag_id, task_id, event, execution_date, 
> owner, extra) VALUES (%s, %s, %s, %s, %s, %s, %s)'] [parameters: 
> (datetime.datetime(2018, 5, 13, 5, 24, 37, 946481, 
> tzinfo=<sqlalchemy_utc.timezone.Utc object at 0x7f4123196100>), None, None, 
> 'cli_scheduler', None, 'default', '{"full_command": "[\'/usr/bin/airflow\', 
> \'scheduler\']", "host_name": "airflow-35-8jn6w"}')]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to