You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "Sabutobi (via GitHub)" <gi...@apache.org> on 2024/04/29 11:47:33 UTC

[I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Sabutobi opened a new issue, #28259:
URL: https://github.com/apache/superset/issues/28259

   ### Bug description
   
   This is the 3.1.2 iteration of the this [issue](https://github.com/apache/superset/issues/23959)
   While using the superset app, I sometimes face two issues which might be related:
   - The superset app is stuck on the loading screen until refreshed manually.
   - When a dashboard is opened it gives an unexpected error.
   
   ### How to reproduce the bug
   
   Host the latest version of the superset app deployed using docker, in an EC2 instance.
   Connect the superset with a database and create multiple dashboards.
   Use it continuously for a while. In our case this issue can be raised after the redeployment process.
   
   
   ### Screenshots/recordings
   
   SQL Lab example:
   ![chunkerr1](https://github.com/apache/superset/assets/12499311/f6b15e01-0209-471e-90dd-86aacb665f92)
   Dashboards tab example:
   ![chunkerr2](https://github.com/apache/superset/assets/12499311/499bf964-f393-4f31-9a5c-81b9d8397851)
   
   
   ### Superset version
   
   3.1.2
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "Sabutobi (via GitHub)" <gi...@apache.org>.
Sabutobi commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-3156263056

   @rusackas I was an author of this issue. I've just patched-up my codebase with code from PR. So that's not relevant for me now. If community has no questions. Feel free to close this one. Thanks for your advices above once more.


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2692960876

   Are you continously deploying or deploying a lot behind the scene? Clearly it seems there's an issue with the single-page-app hot-loading asserts that are now-gone after a redeploy. This is all related to the frontend build "manifest" artifact that changes at each build/deploy. 
   
   I'm going to guess that the reason why we don't have issues with this at Preset is that our CDN keeps older assets/builds for a moment across deploys, but can't confirm for sure.
   
   Not sure how other single-page-app handle this or the best practices around it, but one way would be to have some sort of process on a timer that checks whether the app is in sync, and refreshes what needs to be refreshed (the manifest? the web page?) when it realizes the build id is out-of-sync. This could potentially happen on-error, like if/when a hot-loaded asset is MIA, you could check the version and refresh what needs to be refreshed. Just spitballing here.


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "etadelta222 (via GitHub)" <gi...@apache.org>.
etadelta222 commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2104855472

   
   
   
   > If it is the client caching pointers to chunks that no longer exist on the server, it does seem like we might have a few options
   > 
   > * tell the browser to refresh itself on error (the above suggestion) so it becomes aware and loads chunks... but that does seem glitch-prone in its own way, and does feel like a bandaid.
   > * Keep older chunks around in a directory, with a certain TTL on them that's longer than the client cache. This seems like the safest/smoothest option I can think of.
   > * Have the browser load from cache or not based on data in the JWT. When the site is redeployed, the JWT could effectively invalidate the cache. Probably not straightforward with a SPA... it'd have to do a check on route change or something.
   > * Set up a health check endpoint (I think we might already have one, actually) that responds with a build SHA/UUID. We could check that as a polling operation and/or on SPA route change, and force a reload when it changes... but this also feels like a weird bandaid.
   > 
   > This feels like there should be a best practice, and we're reinventing a wheel here. I'll try to do some digging.
   
   Hi @rusackas , @mistercrunch will the solution be part of a future release?


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "philicious (via GitHub)" <gi...@apache.org>.
philicious commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2265205195

   Since upgrading to 4.x, the JS Chunk load errors have become so severe that we had to downgrade again. 
   (We have several dozen users and use auto-refreshing dashboards alot)
   


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch closed issue #28259: Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2
URL: https://github.com/apache/superset/issues/28259


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2090888700

   Looks like a band-aid. It makes me wonder how Superset manages a new manifest and hot loading of obsolete assets (?) If we don't do this already it seems we should generally look for a manifest version and force a refresh of the manifest/assets when the client is behind. I'm wondering if there's anything like that in the code base (?)
   
   @Sabutobi do you only see this on new deploys?


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "luciesmrckova (via GitHub)" <gi...@apache.org>.
luciesmrckova commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2687863454

   Hi, I am using Superset version 4.0.2, and I am facing the same unexpected error message sometimes - unfortunately quite often e.g. 3 cases of 15. The CMD-R page refresh fixes the issue for the user, but the error appears in up to 20% of cases! That is not cool. 


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "yashgangrades (via GitHub)" <gi...@apache.org>.
yashgangrades commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2602636374

   Any update on the issue, we are experiencing in latest version also.


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2091095554

   If it is the client caching pointers to chunks that no longer exist on the server, it does seem like we might have a few options
   * tell the browser to refresh itself so it's aware of the new chunks... but that does seem glitch-prone in its own way, and does feel like a bandaid.
   * Keep older chunks around in a directory, with a certain TTL on them that's longer than the client cache.
   * Have the browser load from cache or not based on data in the JWT. When the site is redeployed, the JWT could effectively flush the cache. Probably not straightforward with a SPA... it'd have to do a check on route change or something.
   * Set up a health check endpoint (I think we might already have one, actually) that responds with a build SHA/UUID. We could check that as a polling operation and/or on SPA route change, and force a reload when it changes... but this also feels like a weird bandaid.
   
   This feels like there should be a best practice, and we're reinventing a wheel here. I'll try to do some digging.


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "Sabutobi (via GitHub)" <gi...@apache.org>.
Sabutobi commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2090520484

   Hey @mistercrunch and @rusackas . I think I've found the solution for my case.
   I've added this code snippet into the `superset-frontend/src/setup/setupApp.ts` file.
   ```
   window.addEventListener('error', e => {
         // prompt user to confirm refresh
         if (/Loading chunk [\d]+ failed/.test(e.message)) {
           window.location.reload();
         }
       });
   ```
   Can be done as PR by myself if needed.


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2569917820

   This last comment is bringing up an old thread that should actually be closed since we no longer support 3.x. Is anyone experiencing this in 4.x? 


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2099405448

   Are we sure this is a hot-loading issue (where js bundles are loaded dynamically)? If so it could just be we need better error handling on hot-load and that's it. Like if we get a 404 on hot-load, then you could check the manifest version and pop something to the user "The frontend has gone out of sync from the backend, refresh? Refresh / Cancel"


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "Sabutobi (via GitHub)" <gi...@apache.org>.
Sabutobi commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2120788281

   Hey @rusackas and @mistercrunch .
   FYI: The [PR](https://github.com/apache/superset/pull/28604) has been opened 


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2083425262

   It's not able to load a chunk of the javascript built by webpack. I'm not sure how you're deploying, but is `npm run build` part of the process, if you're making any frontend changes? That compiles all the JS/TS into bundles as a static asset for Superset to serve. I suspect somehow your deployment is only getting part of the JS updated somehow.


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "Sabutobi (via GitHub)" <gi...@apache.org>.
Sabutobi commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2083638431

   > It's not able to load a chunk of the javascript built by webpack. I'm not sure how you're deploying, but is `npm run build` part of the process, if you're making any frontend changes? That compiles all the JS/TS into bundles as a static asset for Superset to serve. I suspect somehow your deployment is only getting part of the JS updated somehow.
   
   Yep, @rusackas `npm run build` is there. I've mentioned deployment as one of the factors, but these chunk errors are met without deploy as well.


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2093778943

   Health check seems would be best and could handle a variety of things:
   - check auth hasn't expired and potentialy try to refresh the token if it's implemented, otherwise send to login screen
   - check manifest version (frontend/backend synchronicity) and either refresh the manifest client-side of tells the user to refresh the page or do it on their behalf


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2105184548

   Yup open a PR and we can see what it'd take to push this through. Some things that would be nice:
   
   - having a way to assess more clearly that it's a version/manifest issue, maybe there's another call to compare versions/manifest, and get more metadata about it
   - an antd-powered modal popup, with relevant information as to what exactly is happening
   - maybe a more targetted approach hooked to a hot-loading event or callback. `setupApp.ts` may not be the most targeted approach ...


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2084130662

   This is pointing towards a backend/frontend being out of sync. The backend is made aware of a manifest at  /static/assets/manifest.json , and there many reasons why this can/could get out of sync (though it's not common AFAIK). But normally if you're on a clean `npm run build` where manifest is defined and published, and a fresh backend that read the latest manifest, you should be fine. 
   
   I'm unclear what happens if the client (browser is out of sync) as it may ask for an old/expired asset (?). I'm guessing at Preset we may persist the older build chunks on the CDN or have some other way to tell the client to refresh its manifest
   
   In your cast does a client force-refresh fix the issue? Could you have zombie pods serving an older version of the app?


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "IamJeffG (via GitHub)" <gi...@apache.org>.
IamJeffG commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2101363260

   Just chiming into say that we are getting reports and screenshots of this exact same error (we are on 3.0.2).  I have nothing constructive to add here, other than validation that @Sabutobi is not the only one!
   
   Possibly relevant to the questions posed above:
   * Yes we are [building our own Docker image](https://github.com/ConservationMetrics/superset-deployment/blob/main/Dockerfile) that just inherits from `apache/superset` image to overwrite our own `superset_config.py`; it makes no frontend changes.
   * We deploy on Azure App Service, using a burstable instance, which, anecdotally, I feel like may occasionally serve up from older images when cold start.


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "Sabutobi (via GitHub)" <gi...@apache.org>.
Sabutobi commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2102575075

   Hey y'all.
   I know that's not the solution,but:
   ```
   const origin = console.error;
       console.error = error => {
         if (/Loading chunk [\d]+ failed/.test(error.message)) {
           alert(
             'A new version released. Need to relaod the page to apply changes.',
           );
           window.location.reload();
         } else {
           origin(error);
         }
       };
   ```
   I've added this code snippet into the `superset-frontend/src/setup/setupApp.ts file` additionally and to have this
   
   ![reload_chuck_stuff](https://github.com/apache/superset/assets/12499311/7cac78b0-087b-4a2d-89c9-1840ec5cd133)
   


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "cezudas (via GitHub)" <gi...@apache.org>.
cezudas commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2578044371

   We are experiencing the same issue with 4.1.1


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2265711907

   > the JS Chunk load errors have become so severe 
   
   I thought the JS Chunk load errors would be corollated to [how many users have an active browser open updates] * [how often you deploy]. Any other theory ln why they would be more frequent in your context? Partly defective or overwhelmed CDN/server * number of chunks to serve? 
   


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "Sabutobi (via GitHub)" <gi...@apache.org>.
Sabutobi commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2098059538

   > Health check seems would be best and could handle a variety of things:
   > 
   > * check auth hasn't expired and potentialy try to refresh the token if it's implemented, otherwise send to login screen
   > * check manifest version (frontend/backend synchronicity) and either refresh the manifest client-side of tells the user to refresh the page or do it on their behalf
   
   Thanks for the fresh ideas. I'll try to implement that somehow...


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2102903962

   It's better than nothin'!


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "jeanpommier (via GitHub)" <gi...@apache.org>.
jeanpommier commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2834537288

   Hey there,
   I was too having the problem, it was really inconvenient. But I think I found the solution this week end: increasing the gunicorn keepalive setting to 40 seconds gets rid of those errors.
   
   My Superset instance is integrated in a [geOrchestra](https://www.georchestra.org/) platform, behind a Spring cloud gateway doing routing & authentication. On a kubernetes infrastructure, so I also have an ingress reverse-proxy (traefik in my case).
   Looking at the gateway logs, I indeed had  `PrematureCloseException` or similar exceptions everytime a chunk load error happened. 
   Digging into this (thanks also to [a video about Netty server from violetagg](https://youtu.be/LLSln1_JAMY?t=1926)), I figured out that my issue was Superset/gunicorn closing connections while upstream reverse-proxies were still thinking them active.
   Setting the env var `GUNICORN_KEEPALIVE` to 40 (seconds) did the trick. Maybe we don't need to increase them that much, but the default, 2s, seems really too short (and is documented in https://docs.gunicorn.org/en/stable/settings.html#keepalive). 
   In any case, taking my situation as an example, as far as I understand it, we need to make sure that: gunicorn keepalive > gateway max-idle-time > traefik idleConnTimeout.
   
   I also have the impression that adjusting gunicorn workers and thread numbers improves a bit the latency, but that just a feeling.
   
   While playing with connection timeout and more specificly with Spring Cloud Gateway, it might be also interesting to consider changing the leasing-strategy to `lifo` (see [config reference](https://docs.spring.io/spring-cloud-gateway/reference/appendix.html)) and possibly [disabling the response-timeout for the superset route](https://docs.spring.io/spring-cloud-gateway/reference/spring-cloud-gateway/http-timeouts-configuration.html#per-route-timeouts) to cover long-lasting queries.
   
   Hope this helps


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "poiema72 (via GitHub)" <gi...@apache.org>.
poiema72 commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2560611655

   Hi all, I'm observing this issue on version 3.1.3 as well. (Unexpected error, Browser is Edge.)
   I believe no superset docker image customization from our side.


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "mistercrunch (via GitHub)" <gi...@apache.org>.
mistercrunch commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-2605668402

   In your cases, does a hard refresh (CMD-SHIFT-R) of the page fix the issue for the user?


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


Re: [I] Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #28259:
URL: https://github.com/apache/superset/issues/28259#issuecomment-3156134228

   Did the above advice work for others? If so, we should close this. If anyone's experiencing this in 5.0/`master` as of now, we can keep it open. Please advise :D 


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