charles2588 opened a new issue #15413:
URL: https://github.com/apache/airflow/issues/15413


   **Apache Airflow version**: 2.0
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl 
version`): N/A
   
   **Environment**: 
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release): 
   ```
   NAME="Ubuntu"
   VERSION="20.04.1 LTS (Focal Fossa)"
   ID=ubuntu
   ID_LIKE=debian
   PRETTY_NAME="Ubuntu 20.04.1 LTS"
   VERSION_ID="20.04
   ```
   - **Kernel** (e.g. `uname -a`):  `Linux airflowvm 5.4.0-70-generic 
#78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux`
   - **Install tools**: 
   - **Others**:
   
   **What happened**:
   
     The instance details page throws error:-
   
http://localhost:8080/task?dag_id=xcom_dag&task_id=downloading_data&execution_date=2021-04-16T23%3A01%3A08.044070%2B00%3A00
   
   
![image](https://user-images.githubusercontent.com/5734421/115091805-71d1ef00-9ecd-11eb-9ab1-839d5e8a7e51.png)
   
   
   `Something bad has happened.
   Please consider letting us know by creating a bug report using GitHub.
   
   Python version: 3.8.5
   Airflow version: 2.0.0
   Node: airflowvm
   
-------------------------------------------------------------------------------
   Traceback (most recent call last):
     File "/home/airflow/sandbox/lib/python3.8/site-packages/flask/app.py", 
line 2447, in wsgi_app
       response = self.full_dispatch_request()
     File "/home/airflow/sandbox/lib/python3.8/site-packages/flask/app.py", 
line 1952, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/home/airflow/sandbox/lib/python3.8/site-packages/flask/app.py", 
line 1821, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/home/airflow/sandbox/lib/python3.8/site-packages/flask/_compat.py", 
line 39, in reraise
       raise value
     File "/home/airflow/sandbox/lib/python3.8/site-packages/flask/app.py", 
line 1950, in full_dispatch_request
       rv = self.dispatch_request()
     File "/home/airflow/sandbox/lib/python3.8/site-packages/flask/app.py", 
line 1936, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File 
"/home/airflow/sandbox/lib/python3.8/site-packages/airflow/www/auth.py", line 
34, in decorated
       return func(*args, **kwargs)
     File 
"/home/airflow/sandbox/lib/python3.8/site-packages/airflow/www/decorators.py", 
line 60, in wrapper
       return f(*args, **kwargs)
     File 
"/home/airflow/sandbox/lib/python3.8/site-packages/airflow/www/views.py", line 
1193, in task
       attr = getattr(ti, attr_name)
     File 
"/home/airflow/sandbox/lib/python3.8/site-packages/airflow/models/taskinstance.py",
 line 792, in previous_start_date_success
       return self.get_previous_start_date(state=State.SUCCESS)
     File 
"/home/airflow/sandbox/lib/python3.8/site-packages/airflow/utils/session.py", 
line 65, in wrapper
       return func(*args, session=session, **kwargs)
     File 
"/home/airflow/sandbox/lib/python3.8/site-packages/airflow/models/taskinstance.py",
 line 776, in get_previous_start_date
       return prev_ti and pendulum.instance(prev_ti.start_date)
     File 
"/home/airflow/sandbox/lib/python3.8/site-packages/pendulum/__init__.py", line 
174, in instance
       raise ValueError("instance() only accepts datetime objects.")
   ValueError: instance() only accepts datetime objects.`
   
   **What you expected to happen**:
   
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**:
   
   1. Go to Airflow UI and open any  dag you may have
   2. Click on any task node in Graph view
   3. Click on Instance Details button
   
   
![image](https://user-images.githubusercontent.com/5734421/115092500-15bb9a80-9ece-11eb-8e31-3182c8300fe4.png)
   
   
![image](https://user-images.githubusercontent.com/5734421/115092769-279d3d80-9ece-11eb-90e8-bed3794826d5.png)
   
   
   
![image](https://user-images.githubusercontent.com/5734421/115093135-43084880-9ece-11eb-8461-0a8ede567eac.png)
   
   Note the Host operating system is windows 10 and Chrome 85
   
   
   **Anything else we need to know**:
   
   The issue is consistently reproducible.


-- 
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:
[email protected]


Reply via email to