You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by gi...@git.apache.org on 2017/08/02 03:50:19 UTC

[GitHub] laranzu opened a new issue #3223: superset/config.py creates directory before can be overridden

laranzu opened a new issue #3223: superset/config.py creates directory before can be overridden
URL: https://github.com/apache/incubator-superset/issues/3223
 
 
   Version: 0.18.5
   
   Platform: Ubuntu 16.04 Linux with Apache 2.4
   
   About 27 lines into superset/config.py is:
   ```
   DATA_DIR = os.path.join(os.path.expanduser('~'), '.superset')
   if not os.path.exists(DATA_DIR):
       os.makedirs(DATA_DIR)
   
   ```
   which will try to create the directory before it can be overridden by a new value in superset_config.py. If the program does not have permission to create the directory, superset will crash.
   
   Example: when superset is run from Apache via mod_wsgi, it attempts to create /var/www/.superset and crashes.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services