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

ASF GitHub Bot commented on AIRFLOW-4347:
-----------------------------------------

sumous commented on pull request #5129: [AIRFLOW-4347] fix WEBSERVER_CONFIG 
when AIRFLOW_HOME=./
URL: https://github.com/apache/airflow/pull/5129
 
 
   Make sure you have checked _all_ steps below.
   
   ### Jira
   
   - [ ] My PR addresses the following 
[AIRFLOW-4347](https://issues.apache.org/jira/browse/AIRFLOW-4347) issues and 
references them in the PR title. 
   
   ### Description
   
   - [ ] Here are some details about my PR, including screenshots of any UI 
changes:
   I set AIRFLOW_HOME=./ 
   command **airflow initdb** is ok.
   And command **airflow webserver** got this:
   ```
   
/Users/guoguo/Downloads/env_tmp/lib/python3.6/site-packages/flask_sqlalchemy/__init__.py:774:
 UserWarning: Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. 
Defaulting SQLALCHEMY_DATABASE_URI to "sqlite:///:memory:".
     'Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. '
   ```
   
   Airflow v1.10.3 code load RBAC WEBSERVER_CONFIG config in 
https://github.com/apache/airflow/blob/v1-10-stable/airflow/www_rbac/app.py#L51.
 
   When **AIRFLOW_HOME=./**, then 
**settings.WEBSERVER_CONFIG=.//webserver_config.py**.  It will got the error 
path of RBAC_CODE_PATH+.//webserver_config.py
   
   
   
 
----------------------------------------------------------------
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]


> airflow webserver can not load webserver_config.py
> --------------------------------------------------
>
>                 Key: AIRFLOW-4347
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4347
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: webserver
>    Affects Versions: 1.10.3
>            Reporter: sumous
>            Assignee: sumous
>            Priority: Minor
>             Fix For: 1.10.4
>
>
> I set AIRFLOW_HOME=./ 
> command *airflow initdb* is ok.
> And command *airflow webserver* got this:
> {code:shell}
> /Users/guoguo/Downloads/env_tmp/lib/python3.6/site-packages/flask_sqlalchemy/__init__.py:774:
>  UserWarning: Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. 
> Defaulting SQLALCHEMY_DATABASE_URI to "sqlite:///:memory:".
>   'Neither SQLALCHEMY_DATABASE_URI nor SQLALCHEMY_BINDS is set. '
> {code}



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

Reply via email to