musduo opened a new issue #15330:
URL: https://github.com/apache/superset/issues/15330


   
   I have problems with superset uwsgi configuration. Below are the uwsgi log 
details and uwsgi.ini configuration settings.
   
   Installation Document: 
[https://www.programmersought.com/article/2643728000/](url)
   
   **uwsgi.log**
   
   `Traceback (most recent call last):
     File "./werkzeug/local.py", line 375, in <lambda>
       __call__ = lambda x, *a, **kw: x._get_current_object()(*a, **kw)
     File "./werkzeug/local.py", line 306, in _get_current_object
       return self.__local()
     File "./flask/globals.py", line 52, in _find_app
       raise RuntimeError(_app_ctx_err_msg)
   RuntimeError: Working outside of application context.
   
   This typically means that you attempted to use functionality that needed
   to interface with the current application object in some way. To solve
   this, set up an application context with app.app_context().  See the
   documentation for more information.
   [pid: 16585|app: 0|req: 1/1] 127.0.0.1 () {38 vars in 602 bytes} [Wed Jun 23 
10:13:29 2021] GET / => generated 0 bytes in 2 msecs (HTTP/1.1 500) 0 headers 
in 0 bytes (0 switches on core 0)
   Traceback (most recent call last):
     File "./werkzeug/local.py", line 375, in <lambda>
       __call__ = lambda x, *a, **kw: x._get_current_object()(*a, **kw)
     File "./werkzeug/local.py", line 306, in _get_current_object
       return self.__local()
     File "./flask/globals.py", line 52, in _find_app
       raise RuntimeError(_app_ctx_err_msg)
   RuntimeError: Working outside of application context.`
   
   
   **uwsgi.ini**
   
   ``
   
   
   wsgi-file=/home/baris/supset/lib/python3.7/site-packages/superset/run.py
   callable=app
   socket= /home/baris/supset/uwsgi_conf/uwsgi.sock
   daemonize= /home/baris/supset/uwsgi_conf/uwsgi.log
   pidfile= /home/baris/supset/uwsgi_conf/uwsgi.pid
   workers=2
   http=localhost:8088
   uid=root
   gid=root
   master=true
   vacuum=true
   thunder-lock=true
   enable-threads=true
   harakiri=30
   post-buffering=4096
   py-autoreload = 1
   
   
   ``
   
   
   
   
   In this file, I tried many things instead of app.run. i am getting "no 
python application found, check your startup logs for errors" error here too.
   
   
   **run.py**
   
   `from superset import app
   
   if __name__ == '__main__':
       app.run(host='0.0.0.0')`
   


-- 
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to