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 2021/06/21 15:04:50 UTC

[GitHub] [airflow] anirudhbagri opened a new issue #16566: upgrade_check fails db version check for postgres DB

anirudhbagri opened a new issue #16566:
URL: https://github.com/apache/airflow/issues/16566


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**: 1.10.15 with postgres db in docker container
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`): NA
   
   **Environment**: DEV
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release): MacOS 10.15.7
   - **Kernel** (e.g. `uname -a`): Darwin Kernel
   - **Install tools**:
   - **Others**:
   
   **What happened**: Running `airflow upgrade_check` returns the following error:
   ```
   Traceback (most recent call last):
     File "/Users/abagri/Workspace/service-workflows/venv/bin/airflow", line 37, in <module>
       args.func(args)
     File "/Users/abagri/Workspace/service-workflows/venv/lib/python3.7/site-packages/airflow/upgrade/checker.py", line 118, in run
       all_problems = check_upgrade(formatter, rules)
     File "/Users/abagri/Workspace/service-workflows/venv/lib/python3.7/site-packages/airflow/upgrade/checker.py", line 38, in check_upgrade
       rule_status = RuleStatus.from_rule(rule)
     File "/Users/abagri/Workspace/service-workflows/venv/lib/python3.7/site-packages/airflow/upgrade/problem.py", line 44, in from_rule
       result = rule.check()
     File "/Users/abagri/Workspace/service-workflows/venv/lib/python3.7/site-packages/airflow/utils/db.py", line 74, in wrapper
       return func(*args, **kwargs)
     File "/Users/abagri/Workspace/service-workflows/venv/lib/python3.7/site-packages/airflow/upgrade/rules/postgres_mysql_sqlite_version_upgrade_check.py", line 50, in check
       installed_postgres_version = Version(session.execute('SHOW server_version;').scalar())
     File "/Users/abagri/Workspace/service-workflows/venv/lib/python3.7/site-packages/packaging/version.py", line 298, in __init__
       raise InvalidVersion("Invalid version: '{0}'".format(version))
   packaging.version.InvalidVersion: Invalid version: '12.3 (Debian 12.3-1.pgdg100+1)'
   ```
   <!-- (please include exact error messages if you can) -->
   
   **What you expected to happen**: commands runs through and prints helpful messages
   
   <!-- What do you think went wrong? -->
   
   Running `'SHOW server_version;` against the postgres db returns "12.3 (Debian 12.3-1.pgdg100+1)"' which is possibly not a valid value for Version class __init__ function because of the `(Debian 12.3-1.pgdg100+1)` ending?
   **How to reproduce it**: Run airflow upgrade_check again.
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**:
   
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


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



[GitHub] [airflow] potiuk closed issue #16566: upgrade_check fails db version check for postgres DB

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #16566:
URL: https://github.com/apache/airflow/issues/16566


   


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



[GitHub] [airflow] potiuk closed issue #16566: upgrade_check fails db version check for postgres DB

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #16566:
URL: https://github.com/apache/airflow/issues/16566


   


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



[GitHub] [airflow] potiuk commented on issue #16566: upgrade_check fails db version check for postgres DB

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


   Duplicate of https://github.com/apache/airflow/pull/15122


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



[GitHub] [airflow] potiuk commented on issue #16566: upgrade_check fails db version check for postgres DB

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


   Duplicate of https://github.com/apache/airflow/pull/15122


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