You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On our kubernetes cluster, updates are semi regular to keep up to date with patches and the like. This means we get a lot of service restarts (up to once a week). It appears that when the services are restarted, ShinyProxy believes that an app we have a pre-init for with minimum seats available has a proxy available, even though it doesn't. We are using redis sentinel to manage the sessions.
Upon a restart, the key shinyproxy_shinyproxy-play-a3s-play__delegate_proxies_bto-game is present which has one hash value.
There are however no pods running on the cluster.
The key shinyproxy_shinyproxy-play-a3s-play__seats_bto-game shows 5 open seats (it is set to 5).
When trying to open an app, we just get stuck on a whitescreen for a while as the following happens
2025-02-20T15:50:42.077Z INFO 1 --- [ProxyService-16] e.o.containerproxy.service.ProxyService : [user=user94 proxyId=e9c2260f-4266-4d7b-a0b2-087b08de1347 specId=bto-game] Starting proxy
2025-02-20T15:50:42.081Z INFO 1 --- [ProxyService-16] e.o.c.b.d.p.ProxySharingDispatcher : [user=user94 proxyId=e9c2260f-4266-4d7b-a0b2-087b08de1347 specId=bto-game delegateProxyId=50f0f68e-7216-48b0-870f-c50455485acd seatId=977ae2ff-44ee-4f16-8313-78b6596c0fce] Seat claimed
2025-02-20T15:50:42.089Z INFO 1 --- [ProxyService-16] e.o.containerproxy.service.ProxyService : [user=user94 proxyId=e9c2260f-4266-4d7b-a0b2-087b08de1347 specId=bto-game] Proxy activated
2025-02-20T15:57:14.114Z INFO 1 --- [ XNIO-1 I/O-1] e.o.c.util.ProxyMappingManager : [user=user94 proxyId=e9c2260f-4266-4d7b-a0b2-087b08de1347 specId=bto-game] Proxy unreachable/crashed, stopping it now, failed request: GET https://xxx/proxy_endpoint/e9c2260f-4266-4d7b-a0b2-087b08de1347/ was proxied to: http://10.121.32.246:3838/, status: 503
2025-02-20T15:57:14.119Z INFO 1 --- [ProxyService-16] e.o.c.b.d.p.ProxySharingDispatcher : [user=user94 proxyId=e9c2260f-4266-4d7b-a0b2-087b08de1347 specId=bto-game delegateProxyId=50f0f68e-7216-48b0-870f-c50455485acd seatId=977ae2ff-44ee-4f16-8313-78b6596c0fce] Seat released
2025-02-20T15:57:14.122Z INFO 1 --- [ProxyService-16] e.o.containerproxy.service.ProxyService : [user=user94 proxyId=e9c2260f-4266-4d7b-a0b2-087b08de1347 specId=bto-game] Proxy released
2025-02-20T15:57:14.122Z INFO 1 --- [GlobalEventLoop] e.o.c.b.d.p.ProxySharingScaler : [specId=bto-game delegateProxyId=50f0f68e-7216-48b0-870f-c50455485acd] DelegateProxy crashed, marking for removal
2025-02-20T15:57:14.129Z INFO 1 --- [GlobalEventLoop] e.o.c.b.d.p.ProxySharingScaler : [specId=bto-game delegateProxyId=50f0f68e-7216-48b0-870f-c50455485acd seatId=977ae2ff-44ee-4f16-8313-78b6596c0fce] Removed seat
It takes at least 7 mintues for ShinyProxy to realise that there isn't a delegate proxy available and that it needs to remove the reference and create a new one.
Is there a way to speed up this process / make it so it doesn't require a user to try to open an application, and then wait for such a long time?
ShinyProxy currently doesn't actively check whether the pods still exists. We do want to improve this in the future.
However, as you noticed, ShinyProxy will remove the instance if it notices the requests are failing. In my experiences this doesn't take 7 minutes, so I'll have a look why this is the case for you/
Hi.
ShinyProxu 3.1.1
On our kubernetes cluster, updates are semi regular to keep up to date with patches and the like. This means we get a lot of service restarts (up to once a week). It appears that when the services are restarted, ShinyProxy believes that an app we have a pre-init for with minimum seats available has a proxy available, even though it doesn't. We are using redis sentinel to manage the sessions.
Upon a restart, the key
shinyproxy_shinyproxy-play-a3s-play__delegate_proxies_bto-game
is present which has one hash value.There are however no pods running on the cluster.
The key
shinyproxy_shinyproxy-play-a3s-play__seats_bto-game
shows 5 open seats (it is set to 5).When trying to open an app, we just get stuck on a whitescreen for a while as the following happens
It takes at least 7 mintues for ShinyProxy to realise that there isn't a delegate proxy available and that it needs to remove the reference and create a new one.
Is there a way to speed up this process / make it so it doesn't require a user to try to open an application, and then wait for such a long time?
The app spec is as follows.
Redis setup
The text was updated successfully, but these errors were encountered: