New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report] AJAX error in the new release of ShinyProxy (version 2.2.0+) #140
Comments
Thanks! We can reproduce this and are working on it. |
@shrektan thanks for reporting the issue. Can you please give this dev build a try and see if it fixes the problem? |
@fmichielssen Thanks for the quick fix. I can confirm both DT and |
Thanks for the confirmation, @shrektan! Released it as part of ShinyProxy 2.2.1 |
Just did a fresh install with 2.2.1 and I'm getting the same error as @shrektan reported: Then, in shinyproxy.log, I get:
What's interesting is that this affects another package: shinyWidgets. I have a bunch of inputs that get generated using insertUI, and the values in the dropdown list highlighted below get pulled from a database (dynamic). When running local, everything runs great (and I get the actual values). When deploying to shinyproxy, I get NA1, NA2, NA3...super odd. I should mention that things were working fine on 2.1.0. In case this makes a difference, I am using shinyproxy behind nginx, with a LetsEncrypt cert. |
@bogdanrau Could you provide a dummy example app (similarly to the one @shrektan provided) that allows us to rapidly reproduce? |
Hey @tverbeke I was wondering if we could now deploy 2.2.1 - is it fixed ? |
Hello @dylancis: the original problem is definitely fixed as confirmed by our tests and by @shrektan. For the issue reported by @bogdanrau, we don't have a reproducible example yet or (confirmation from another user there is still an issue). |
works fine here with |
And that's using the deb installer, or the jar file? I created a new VM from scratch just using the .deb file and still had the same issues for whatever reason. |
what is the deb file? |
@shrektan : if you look at the shinyproxy download page (https://www.shinyproxy.io/downloads/), you can download either a platform-independent file (.jar), or a deb file specific to Ubuntu that you install with dpkg. I chose that vs. the platform independent file. |
I get the same error like @bogdanrau. |
Can confirm that I'm also using keycloak with nginx. |
I also have this problem with version >2.1.0 (last known to work) even 2.2.1 does not work for me. |
Are there any news or workarounds for that bug? I run in exact the same problem and can confirm that the problem occurs in combination with keycloak auth. I am using shinyproxy-2.3.0.jar in a dockerized environment onto an Ubuntu 18.04.2 LTS machine. Nginx is used as reverse proxy in combination with a letsencrypt ssl cert. Example-shiny-App:
Trying to run upper example with shinyproxy and keycloak-auth (btw. running on the same server) leads on to the mentioned 503 Service Unavailable AJAX error. Turning server=FALSE solves that error but is out of question for big tables. Exact the same machine (docker,shinyproxy,nginx setting) with simple auth or ldap in application.yml is running without any trouble. |
the same problem with billy34 Example App
|
I have the same |
Just adding a 'me too'. The issue is with Keycloak authorization backend and does not otherwise show up. Reverting to 2.1 works as expected. |
Encountering this also with KeyCloak Auth and any ShinyProxy version > 2.1.0 |
We were able to reproduce with Keycloak. A fix will be in the next release. |
Thanks for reverting! |
Getting the same error, without any kind of authentication. When making a POST request of content-type: multipart/form-data. Any idea what is the difference between the two versions that this error is coming. Please suggest some solution in case reverting is not an option. Btw I am running flask behind shinyproxy |
@tverbeke could you kindly push a snapshot of the |
@tverbeke it's unfortunate that develop branch of containerproxy build failed (please see attached). I have also built develop branch of shinyproxy hoping the containerproxy 0.8.4-SNAPSHOT on pom.xml would give the purported fix. No fix yet. At this point I rest my case for this is something else different from what is tracked by this issue. |
@jaysnm You need to compile with Oracle Java for the moment. The constructor in the sun.security.krb5.KrbTgsReq class is different between Oracle Java and OpenJDK and we are aware of it. |
With official version 2.3.1 this works finally fine for me. Time to close this issue #140? |
Thanks for the feedback, @Dusan-Dingarac |
Hi, I'm having the same issue after upgrading from ShinyProxy 2.3.1 to 2.4.1, can we re-open the bug? on browser: on shinyproxy |
I'm having the same issue with DT without ShinyProxy with load balancing using traefik as reverse proxy. Maybe linked to DT and load balancing ? |
I'm also using traefik as a load balancer but I went back to 2.3.1 and it works fine, with 2.4.0 and 2.4.1 it gives that error. |
Hi @giordyb I just tested the example code in the first post of this issue with ShinyProxy 2.4.1 and that still works for me.
I need at least the two first pieces, otherwise I won't be able to re-produce the issue. |
Just add my two cents here. In order to ensure DT works behind a load balancer (Traefik) , I recently created a simple repo DT-load-balancer based on Docker swarm, with detailed setups... I think with a little effort, you can turn it into a reproducible example for ShinyProxy about this issue... |
@giordyb I solved my problem with traefik and load balancing. I'm still using traefik 1.7 (1.7.26) and there is still a problem with stickiness configuration. I was using label "traefik.backend.loadbalancer.stickiness" as documented but with no success. Using deprecated label "traefik.backend.loadbalancer.sticky=true" is working. Don't know if it's a clue for this issue but who knows. |
@billy34 thanks, I am running traefik 2.2, i tried to enable the sticky session but it didn't make any difference. I will post my the code and traefik config shortly |
@LEDfan I'm running traefik under kubernetes (on a multi-node cluster) so it's a bit tricky to replicate our environment with a docker-compose. here is the code for the app (it's just a sample but it errors out as well): I tested this version of this app with this config of traefik under shinyproxy 2.3.0 and it works, if I try the same thing on 2.4.1 I get the error Another thing that I tried is to bypass traefik by port-forwarding directly to the shinyproxy container, even by doing this the error shows up, so I really doubt that it's a traefik issue. |
I did some more tests, it looks like traefik has nothing to do with it. I created a repo that replicates my environment (https://github.com/giordyb/test_shinyproxy.git) on docker for mac running kubernetes I created 2 deployments of shiny proxy (2.3.1 and 2.4.1) that serve the same shiny R container application. under 2.3.1 the request to the datatable works under 2.4.1 the same request fails and I get this in the log of the shinyproxy container is there anything else that I can do on my end to troubleshoot the issue further? |
Hi @giordyb Thank you for your example deployment and report. I looked into the issue today and it's quite a strange issue. The solution is to disable debug logging for the
This will be the default in the next ShinyProxy release, so that this workaround is no longer needed. |
Hi @LEDfan, thank you for looking into this so promptly. I added the logging configuration as you suggested and now everything is working as expected, so I'm a happy camper. thank you very much for your help! |
I'm having the same issue with kubernetes behind NGINX and Azure Active Directory. Data Tables display correctly with 2.3.1 but will not with 2.4.1. I've tried builds with JDK8 and with JDK11. We've removed all logging config from Have posted a simplified version of our |
Hi @smlehman , thank you for your extra information. Could you please provide an example Shiny app (Dockerfile and R sources) using DataTables? |
Hi @LEDfan https://github.com/smlehman/shinyproxy-debugDT |
Fixing Ajax Datatable bug - openanalytics/shinyproxy#137, openanalytics/shinyproxy#140
In the new release version (2.2.0) of ShinyProxy, all the Apps that use DT with server processing mode will break. The browser complains Ajax errors while ShinyProxy log says Request Methods 'Post' not supported.
Screen Shots
An example app
I actually set up a docker-compose example for this, see https://github.com/shrektan/shinyproxy-docker-compose-example
The text was updated successfully, but these errors were encountered: