Bug #19957
open
Sometimes, clicking on regenerate all policies does nothing
Added by François ARMAND about 3 years ago.
Updated 5 months ago.
Description
Sometime, and I don't know what triggers it, the "regenerate all policies" button in the status pop-up does nothing at all (no log in background, nothing).
I seems to happen more when there is a lot of regeneration or changes (restoring archives for ex), and especially after a generation failure.
When that happens, a restart repairs things. Most of the time, even just a:
curl -k --header "X-API-Token: $(cat /var/rudder/run/api-token)" --request POST 'https://localhost/rudder/api/latest/system/regenerate/policies'
cleanly start a generation and make the button works again.
I reproduced it on 7.0.
It looks like the websocket is kind of broken:
- The request is sent correctly
- The server takes a very long time to reply with a:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request<p>Reason: <strong>Error reading from remote server</strong></p></p>
</body></html>
Nothing appears on server logs not browser console (except for the 502 error after some time).
The API call works normally:
# curl -H "X-API-Token: $(cat /var/rudder/run/api-token)" -k -X POST https://127.0.0.1/rudder/api/latest/system/update/policies
{"action":"updatePolicies","result":"success","data":{"policies":"Started"}}
- Target version changed from 6.2.11 to 6.2.12
i still have it in 7.0
reloading the page doesn't change anything
- Target version changed from 6.2.12 to 6.2.13
- Target version changed from 6.2.13 to 6.2.14
- Target version changed from 6.2.14 to 6.2.15
- Target version changed from 6.2.15 to 6.2.16
- Target version changed from 6.2.16 to 6.2.17
- Target version changed from 6.2.17 to 997
- Target version changed from 997 to 6.2.18
- Target version changed from 6.2.18 to 6.2.19
- Target version changed from 6.2.19 to 6.2.20
- Target version changed from 6.2.20 to old 6.2 issues to relocate
- Target version changed from old 6.2 issues to relocate to 7.2.11
- Target version changed from 7.2.11 to 1046
- Target version changed from 1046 to 7.3.8
- Target version changed from 7.3.8 to 7.3.9
- Target version changed from 7.3.9 to 7.3.10
- Target version changed from 7.3.10 to 7.3.11
- Target version changed from 7.3.11 to 7.3.12
- Target version changed from 7.3.12 to 7.3.13
- Target version changed from 7.3.13 to 7.3.14
- Target version changed from 7.3.14 to 7.3.15
- Target version changed from 7.3.15 to 7.3.16
- Target version changed from 7.3.16 to 7.3.17
Also available in: Atom
PDF