You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/03/19 03:23:43 UTC

[GitHub] [superset] Riskatri opened a new issue #13697: cannot running superset

Riskatri opened a new issue #13697:
URL: https://github.com/apache/superset/issues/13697


   Hi iam using superset version 1.0.0 but when i am trying to run with superset run -p 8088 --with-threads --reload --debugger i have an error 
   
   ![image](https://user-images.githubusercontent.com/59104917/111727268-22cc7600-889d-11eb-8e04-94e28aa5c977.png)
   
   can someone help me? 


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



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


[GitHub] [superset] Riskatri commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Riskatri commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-813710534


   @anphamvn try to add PUBLIC_ROLE_LIKE_GAMMA = True in file config.py and re-launch again. 


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



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


[GitHub] [superset] Riskatri edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Riskatri edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-802635718


   @zhaoyongjie i've tried it, but when i logged in there was no response and went back to login like this 
   ![image](https://user-images.githubusercontent.com/59104917/111749678-b1a0b900-88c4-11eb-9cc2-dfb6a5bfdc9d.png)
   


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



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


[GitHub] [superset] anilvpatel21 commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
anilvpatel21 commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-880566624


   Hi, @albertwgchu @Riskatri 
   I am getting a similar issue, I check the logs its says 
   
   `2021-07-15 15:32:54,576:WARNING:root:Class 'werkzeug.local.LocalProxy' is not mapped`


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] Xx0w0wxX edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Xx0w0wxX edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-888730584


   @HariniPuppala 
   
   I had a same error and @anilvpatel21 's solution did not work, but solved as follows
   
   - remove redis cache


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] jhult commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
jhult commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-891353572


   Related: #8382


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] jhult commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
jhult commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-921897944


   Also related to #15737 and #16718.


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] Riskatri edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Riskatri edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-802635718


   @zhaoyongjie i've tried it, but when i am login to the page there was no response and went back to login 
   
   ![image](https://user-images.githubusercontent.com/59104917/111755103-52927280-88cb-11eb-9bb1-0cb6c8961b3e.png)
   
   


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



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


[GitHub] [superset] anphamvn commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
anphamvn commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-813394703


   > @anphamvn follow the step here :
   > 
   > * Set ROLE_PUBLIC as public and PUBLIC_ROLE_LIKE = ‘Gamma’ in file config.py
   > * Add datasource access in public role
   > * Re-launch superset with superset init
   > * If have an error ' the csrf token is missing' , set WTF_CSRF_ENABLED = False in config.py
   
   Thanks @Riskatri 
   i followed your instructions but still no luck :)
   
   1. Set ROLE_PUBLIC as public and PUBLIC_ROLE_LIKE = ‘Gamma’ in file 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:
users@infra.apache.org



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


[GitHub] [superset] Kingflyinger commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Kingflyinger commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-1078734999


   > @anphamvn maybe, you are wrong. just uncomment it in the AUTH_ROLE_PUBLIC section, don't rewrite it and for PUBLIC_ROLE_LIKE. You can find it on line 265 _
   > 
   > > PUBLIC_ROLE_LIKE: Optional [str] = 'Gamma'
   > 
   > _. change it there, don't rewrite it. and always re-launch again after change the file config.py. if still no successful, try to add PUBLIC_ROLE_LIKE_GAMMA = True in file config.py and re-launch again.
   
   thanks a lot.it solved my problem


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] albertwgchu edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
albertwgchu edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-841526580


   So I am using docker and I added the following to my config:
   
   WTF_CSRF_ENABLED = False
   SESSION_COOKIE_SAMESITE = None
   SESSION_COOKIE_SECURE = False
   SESSION_COOKIE_HTTPONLY = False
   AUTH_ROLE_PUBLIC = 'Public'
   PUBLIC_ROLE_LIKE = 'Gamma'
   
   This gets me past the login screen CSRF issues above and I can see that the api requests for charts, datasets and dashboard succeed.  However I'm getting a javascript error.  @Riskatri did you run into this?
   
   ![image](https://user-images.githubusercontent.com/11964537/118336041-26abfb80-b4ce-11eb-9eb5-d8255440cfd1.png)
   
   29db33713260b5a6d757.chunk.js:2 TypeError: Cannot convert undefined or null to object
       at values (<anonymous>)
       at spa.3b0a2a722a47bd99984d.entry.js:558
       at spa.3b0a2a722a47bd99984d.entry.js:1436
       at spa.3b0a2a722a47bd99984d.entry.js:558
       at spa.3b0a2a722a47bd99984d.entry.js:1098
       at 7ee55ea40fa185cf788d.chunk.js:1
       at au (29db33713260b5a6d757.chunk.js:2)
       at mc (29db33713260b5a6d757.chunk.js:2)
       at t.unstable_runWithPriority (29db33713260b5a6d757.chunk.js:2)
       at Ia (29db33713260b5a6d757.chunk.js:2)


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



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


[GitHub] [superset] anphamvn commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
anphamvn commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-813273985


   I had the same problem when embedding the superset dashboard in my web, I have tried many ways but with no luck hix
   Can someone help me to solve it?
   
   


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



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


[GitHub] [superset] vikas-nykaa edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
vikas-nykaa edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-971910942


   I am also getting same error on google chrome while iframe superset url
   WARNING:root:Class 'werkzeug.local.LocalProxy' is not mapped
   But on firefox and safari it is working fine.
   Any suggestions


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] anilvpatel21 commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
anilvpatel21 commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-881451604


   It's might be a problem with Flask Appbuilder recently upgraded in superset 1.2
   
   For a while use superset 1.1, with your config. It will works out. 


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] Riskatri edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Riskatri edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-802635718


   @zhaoyongjie i've tried it, but when I logged in to the page there was no response and went back to login 
   
   ![image](https://user-images.githubusercontent.com/59104917/111755103-52927280-88cb-11eb-9bb1-0cb6c8961b3e.png)
   
   


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



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


[GitHub] [superset] zhaoyongjie edited a comment on issue #13697: cannot running superset

Posted by GitBox <gi...@apache.org>.
zhaoyongjie edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-802623691


   @Riskatri 
   A quick solution is to set `WTF_CSRF_ENABLED = False` in config.py, or any overwrite config file.
   In the long term, you need to set a list for exempt CSRF protection.
   
   https://github.com/apache/superset/blob/375ded92ef43e8c4735a4d9e2e094c67258f3f60/superset/config.py#L168-L174


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



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


[GitHub] [superset] Riskatri edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Riskatri edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-802635718


   @zhaoyongjie i've tried it, but when I logged in to the page there was no response and went back to login 
   
   ![image](https://user-images.githubusercontent.com/59104917/111755103-52927280-88cb-11eb-9bb1-0cb6c8961b3e.png)
   
   I inspect console , and find this 
   
   ![image](https://user-images.githubusercontent.com/59104917/111759413-22999e00-88d0-11eb-8f6a-7221397850d4.png)
   


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



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


[GitHub] [superset] anphamvn edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
anphamvn edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-813394703


   > @anphamvn follow the step here :
   > 
   > * Set ROLE_PUBLIC as public and PUBLIC_ROLE_LIKE = ‘Gamma’ in file config.py
   > * Add datasource access in public role
   > * Re-launch superset with superset init
   > * If have an error ' the csrf token is missing' , set WTF_CSRF_ENABLED = False in config.py
   
   Thanks @Riskatri 
   i followed your instructions but still no luck :)
   
   1. Set ROLE_PUBLIC as public and PUBLIC_ROLE_LIKE = ‘Gamma’ in file config.py
   AUTH_ROLE_PUBLIC = 'Public'
   PUBLIC_ROLE_LIKE = 'Gamma'
   ![Capture_1](https://user-images.githubusercontent.com/38240236/113580982-ad102a80-9650-11eb-9d02-a038c6f6b7eb.PNG)
   2. Add datasource access in public role 
   i set 'All Datasource Access on all_datasource_access
   ![Capture_2](https://user-images.githubusercontent.com/38240236/113580986-ae415780-9650-11eb-996e-da1c4702b419.PNG)
    3. Re-launch superset with superset init
    Yes, sure :)
   here log file
   `INFO:superset.security.manager:Fetching a set of all perms to lookup which ones are missing
   Creating missing datasource permissions.
   INFO:superset.security.manager:Creating missing datasource permissions.
   Creating missing database permissions.
   INFO:superset.security.manager:Creating missing database permissions.
   Creating missing metrics permissions
   INFO:superset.security.manager:Creating missing metrics permissions
   Cleaning faulty perms
   INFO:superset.security.manager:Cleaning faulty perms`
   ![Error](https://user-images.githubusercontent.com/38240236/113580987-ae415780-9650-11eb-8125-d3631f45b848.PNG)
   ==> after that the error 'The CSRF missing ...' still occurred
   
   4 I try to set  WTF_CSRF_ENABLED = False and  when I logged in to the page there was no response and went back to login
   
   
   
   
   


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



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


[GitHub] [superset] Riskatri commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Riskatri commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-813314051


   @anphamvn follow the step here :
   -	Set ROLE_PUBLIC as public and PUBLIC_ROLE_LIKE = ‘Gamma’ in file config.py
   -	Add datasource access in public role
   -	Re-launch superset with superset init
   -	If have an error ' the csrf token is missing' , set WTF_CSRF_ENABLED = False in 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:
users@infra.apache.org



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


[GitHub] [superset] Riskatri commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Riskatri commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-802635718


   @zhaoyongjie i've tried it, but then i logged in there was no response and went back to login like this 
   ![image](https://user-images.githubusercontent.com/59104917/111749678-b1a0b900-88c4-11eb-9cc2-dfb6a5bfdc9d.png)
   


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



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


[GitHub] [superset] albertwgchu commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
albertwgchu commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-841526580


   I added the following to my config:
   
   WTF_CSRF_ENABLED = False
   SESSION_COOKIE_SAMESITE = None
   SESSION_COOKIE_SECURE = False
   SESSION_COOKIE_HTTPONLY = False
   AUTH_ROLE_PUBLIC = 'Public'
   PUBLIC_ROLE_LIKE = 'Gamma'
   
   I don't get the login screen and I can see that the api requests for charts, datasets and dashboard succeed.  However I'm getting a javascript error.  @Riskatri did you run into this?
   
   ![image](https://user-images.githubusercontent.com/11964537/118336041-26abfb80-b4ce-11eb-9eb5-d8255440cfd1.png)
   
   29db33713260b5a6d757.chunk.js:2 TypeError: Cannot convert undefined or null to object
       at values (<anonymous>)
       at spa.3b0a2a722a47bd99984d.entry.js:558
       at spa.3b0a2a722a47bd99984d.entry.js:1436
       at spa.3b0a2a722a47bd99984d.entry.js:558
       at spa.3b0a2a722a47bd99984d.entry.js:1098
       at 7ee55ea40fa185cf788d.chunk.js:1
       at au (29db33713260b5a6d757.chunk.js:2)
       at mc (29db33713260b5a6d757.chunk.js:2)
       at t.unstable_runWithPriority (29db33713260b5a6d757.chunk.js:2)
       at Ia (29db33713260b5a6d757.chunk.js:2)


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



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


[GitHub] [superset] Xx0w0wxX commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Xx0w0wxX commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-888730584


   @HariniPuppala 
   
   I had a same error and solved as follows
   
   - remove redis cache


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] handita commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
handita commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-901769808


   How to remove redis cache I have experiencing same problem.. @Xx0w0wxX 


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] vikas-nykaa edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
vikas-nykaa edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-971910942


   I am also getting same error on google chrome while iframe superset url
   WARNING:root:Class 'werkzeug.local.LocalProxy' is not mapped
   But on firefox and safari it os working fine.
   Any suggestions


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] albertwgchu edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
albertwgchu edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-841526580


   So I am using docker and I added the following to my config:
   
   WTF_CSRF_ENABLED = False
   SESSION_COOKIE_SAMESITE = None
   SESSION_COOKIE_SECURE = False
   SESSION_COOKIE_HTTPONLY = False
   AUTH_ROLE_PUBLIC = 'Public'
   PUBLIC_ROLE_LIKE = 'Gamma'
   
   This gets me past the login screen CSRF issues above and I can see that the api requests for charts, datasets and dashboard succeed.  However I'm getting a javascript error in the iframe.  @Riskatri did you run into this?
   
   ![image](https://user-images.githubusercontent.com/11964537/118336041-26abfb80-b4ce-11eb-9eb5-d8255440cfd1.png)
   
   29db33713260b5a6d757.chunk.js:2 TypeError: Cannot convert undefined or null to object
       at values (<anonymous>)
       at spa.3b0a2a722a47bd99984d.entry.js:558
       at spa.3b0a2a722a47bd99984d.entry.js:1436
       at spa.3b0a2a722a47bd99984d.entry.js:558
       at spa.3b0a2a722a47bd99984d.entry.js:1098
       at 7ee55ea40fa185cf788d.chunk.js:1
       at au (29db33713260b5a6d757.chunk.js:2)
       at mc (29db33713260b5a6d757.chunk.js:2)
       at t.unstable_runWithPriority (29db33713260b5a6d757.chunk.js:2)
       at Ia (29db33713260b5a6d757.chunk.js:2)


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



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


[GitHub] [superset] Xx0w0wxX edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Xx0w0wxX edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-888730584


   @HariniPuppala 
   
   I had a same error and does not work @anilvpatel21 's solution, but solved as follows
   
   - remove redis cache


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] HariniPuppala commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
HariniPuppala commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-881259842


   Hi, @albertwgchu @Riskatri @anilvpatel21 
   
   I am getting the similar issue as you all mentioned.
   
   Below are my Superset setup details:
   Configured LDAP Authentication in superset.
   Enabled a Custom Security Manager to authenticate based on a jwt-token.
   The jwt-token based authentication is working as expected and we are able to redirect to the dashboards without the login page
   The same is not working when passed in an iframe.
   
   ![MicrosoftTeams-image](https://user-images.githubusercontent.com/87519153/125913801-8201011c-928b-4b43-b159-646d1f81875f.png)
   
   I can see a warning message in the logs as below:
   WARNING:root:Class 'werkzeug.local.LocalProxy' is not mapped
   
   Can anyone please help. Thanks in advance!


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] Riskatri commented on issue #13697: cannot running superset

Posted by GitBox <gi...@apache.org>.
Riskatri commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-802596139


   @zhaoyongjie this issue has been solve. thankyou. but did you know about embed superset with iframe? i am trying to embed but i have an error like this 
   
   ![image](https://user-images.githubusercontent.com/59104917/111741247-beb7ab00-88b8-11eb-9ccb-2110bab2aa5c.png)
   
   i follow to change the config like this https://github.com/apache/superset/issues/8830 . but didn't work for me. 


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



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


[GitHub] [superset] zhaoyongjie commented on issue #13697: cannot running superset

Posted by GitBox <gi...@apache.org>.
zhaoyongjie commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-802623691


   @Riskatri 
   A quick solution is to set `WTF_CSRF_ENABLED = False` in config.py, or any overwrite config file.


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



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


[GitHub] [superset] anphamvn edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
anphamvn edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-813394703


   > @anphamvn follow the step here :
   > 
   > * Set ROLE_PUBLIC as public and PUBLIC_ROLE_LIKE = ‘Gamma’ in file config.py
   > * Add datasource access in public role
   > * Re-launch superset with superset init
   > * If have an error ' the csrf token is missing' , set WTF_CSRF_ENABLED = False in config.py
   
   Thanks @Riskatri 
   i followed your instructions but still no luck :)
   
   1. Set ROLE_PUBLIC as public and PUBLIC_ROLE_LIKE = ‘Gamma’ in file config.py
   AUTH_ROLE_PUBLIC = 'Public'
   PUBLIC_ROLE_LIKE = 'Gamma'
   2. Add datasource access in public role 
   i set 'All Datasource Access on all_datasource_access
    3. Re-launch superset with superset init
    Yes, sure :)
   here log file
   `INFO:superset.security.manager:Fetching a set of all perms to lookup which ones are missing
   Creating missing datasource permissions.
   INFO:superset.security.manager:Creating missing datasource permissions.
   Creating missing database permissions.
   INFO:superset.security.manager:Creating missing database permissions.
   Creating missing metrics permissions
   INFO:superset.security.manager:Creating missing metrics permissions
   Cleaning faulty perms
   INFO:superset.security.manager:Cleaning faulty perms`
   
   ==> after that the error 'The CSRF missing ...' still occurred
   
   4 I try to set  WTF_CSRF_ENABLED = False and  when I logged in to the page there was no response and went back to login
   ![Capture_1](https://user-images.githubusercontent.com/38240236/113580982-ad102a80-9650-11eb-9d02-a038c6f6b7eb.PNG)
   ![Capture_2](https://user-images.githubusercontent.com/38240236/113580986-ae415780-9650-11eb-996e-da1c4702b419.PNG)
   ![Error](https://user-images.githubusercontent.com/38240236/113580987-ae415780-9650-11eb-8125-d3631f45b848.PNG)
   
   


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



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


[GitHub] [superset] vikas-nykaa commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
vikas-nykaa commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-971910942


   I am also getting same error on google chrome while iframe superset url


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] amitmiran137 closed issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
amitmiran137 closed issue #13697:
URL: https://github.com/apache/superset/issues/13697


   


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] anphamvn edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
anphamvn edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-813273985


   I had the same problem when embedding the superset dashboard (using iframe) in my web, I have tried many ways but with no luck hix
   Can someone help me to solve it?
   
   


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



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


[GitHub] [superset] Riskatri edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Riskatri edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-802635718


   @zhaoyongjie i've tried it, but didn't work 
   
   ![image](https://user-images.githubusercontent.com/59104917/111754851-09422300-88cb-11eb-902a-1fe324631014.png)
   
   still error
   


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



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


[GitHub] [superset] zhaoyongjie commented on issue #13697: cannot running superset

Posted by GitBox <gi...@apache.org>.
zhaoyongjie commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-802572346


   Hi @Riskatri , did you change the `sueprset/config.py` file? 


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



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


[GitHub] [superset] handita edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
handita edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-901769808


   How to remove redis cache? I have experiencing same problem.. @Xx0w0wxX 


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [superset] Riskatri edited a comment on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Riskatri edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-813710534


   @anphamvn
   maybe, you are wrong. just uncomment it in the AUTH_ROLE_PUBLIC section, don't rewrite it and for PUBLIC_ROLE_LIKE. You can find it on line 265
   _
   
   > PUBLIC_ROLE_LIKE: Optional [str] = 'Gamma'
   
   _. 
   change it there, don't rewrite it.
   and always re-launch again after change the file config.py.
   if still no successful, try to add PUBLIC_ROLE_LIKE_GAMMA = True in file config.py and re-launch again. 


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



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


[GitHub] [superset] Xx0w0wxX commented on issue #13697: How to setup Superset and setup embeded charts

Posted by GitBox <gi...@apache.org>.
Xx0w0wxX commented on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-902555318


    @handita In my case, remove the mounted volume


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

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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