Skip to content
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

[Let's Encrypt] Unable to Update/Remove add-on when it was reconfigured from CP to BL node and BL node was deleted after it #296

Open
SlavaKatiukha opened this issue May 28, 2024 · 1 comment

Comments

@SlavaKatiukha
Copy link
Collaborator

STR:

  1. Create Env with Apache node
  2. Install LE add-on
  3. Add balancer node
  4. Reconfigure LE addon (add some domain)
  5. Remove Balancer node
  6. Try to:
    a. Update certificate
    b. Remove add-on from Apache node

ER:

a. Certificate updated w/o errors
b. Addon can be successfully removed

AR:
a.

[15:14:46 Let's.SSL:5]: callScript:  {"action":"callScript","params":{"action":"auto-update"}}
[15:14:47 Let's.SSL:6]: script:  {"body":"var targetAppid = api.dev.apps.CreatePersistence ? \"0b0a98ed30c391ef5855130dfe6d30aa\" : appid;\nvar resp = api.dev.scripting.Eval(targetAppid, session, 'env-1111-7203039-cp-letsencrypt-ssl', {action:'auto-update'});\nif (resp.result == 0 && typeof resp.response === 'object' && resp.response.result != 0) resp = resp.response;\nreturn resp;\n"}
[15:14:48]:> checkPermissions
[15:14:49]:> initCustomConfigs
[15:14:49]:> initCustomConfigs.response: {"result":2391,"responses":[],"source":"JEL","error":"The node group [bl] doesn't exist in environment [env-1111-7203039], appid [0b0a98ed30c391ef5855130dfe6d30aa]"}
[15:14:49]:> sendResp: {"result":2391,"responses":[],"source":"JEL","error":"The node group [bl] doesn't exist in environment [env-1111-7203039], appid [0b0a98ed30c391ef5855130dfe6d30aa]","method":"initCustomConfigs"},true
[15:14:49]:> checkUpdateExpiration
[15:14:50]:> cmd: $( [[ -e /usr/bin/python ]] || ln -s /usr/bin/python3 /usr/bin/python ); jem ssl checkdomain | python -c "import sys, json; print (json.load(sys.stdin)['expiredate'])"
[15:14:50 Let's.SSL:6]: ERROR: script.response: {"result":99,"error":"Error: {\"line\":194,\"name\":\"JavaException\",\"source\":\"env-1111-7203039-cp-letsencrypt-ssl\",\"message\":\"java.text.ParseException: Unparseable date: \\\"{\\\"result\\\":2309,\\\"responses\\\":[],\\\"source\\\":\\\"JEL\\\",\\\"error\\\":\\\"software node with id:[575812] not found for current environment\\\"}\\\"\"}"}
[15:14:50 Let's.SSL]: END EXECUTE REMOTE ACTION: {"result":99,"error":"Error: {\"line\":194,\"name\":\"JavaException\",\"source\":\"env-1111-7203039-cp-letsencrypt-ssl\",\"message\":\"java.text.ParseException: Unparseable date: \\\"{\\\"result\\\":2309,\\\"responses\\\":[],\\\"source\\\":\\\"JEL\\\",\\\"error\\\":\\\"software node with id:[575812] not found for current environment\\\"}\\\"\"}","action":"update.callScript.script"}

b.

[15:03:42 Let's.SSL:4]: callScript:  {"action":"callScript","params":{"action":"uninstall"}}
[15:03:43 Let's.SSL:5]: script:  {"body":"var targetAppid = api.dev.apps.CreatePersistence ? \"0b0a98ed30c391ef5855130dfe6d30aa\" : appid;\nvar resp = api.dev.scripting.Eval(targetAppid, session, 'env-1111-7203039-cp-letsencrypt-ssl', {action:'uninstall'});\nif (resp.result == 0 && typeof resp.response === 'object' && resp.response.result != 0) resp = resp.response;\nreturn resp;\n"}
[15:03:43]:> cmd: crontab -l 2>/dev/null | grep -v '%(scriptPath)' | crontab -,{"scriptPath":"/root/auto-update-ssl-cert.sh","nodeGroup":"bl"}
[15:03:43]:> cmd.response: {"result":2391,"responses":[],"source":"JEL","error":"The node group [bl] doesn't exist in environment [env-1111-7203039], appid [0b0a98ed30c391ef5855130dfe6d30aa]"}
[15:03:43]:> initAddOnExtIp: true
[15:03:44]:> initAddOnExtIp.response: {"result":0}
[15:03:44]:> undeploy
[15:03:44]:> isMoreLEAppInstalled
[15:03:45]:> isMoreLEAppInstalled.response: true
[15:03:45]:> undeploy.response: {"result":0}
[15:03:46]:> cmd: rm -rf %(paths),{"paths":"/opt/letsencrypt /root/generate-ssl-cert.sh /root/letsencrypt_settings /root/install-le.sh /root/validation.sh /root/auto-update-ssl-cert.sh"}
[15:03:46]:> cmd.response: {"result":2309,"responses":[],"source":"JEL","error":"software node with id:[575812] not found for current environment"}
[15:03:46 Let's.SSL:5]: ERROR: script.response: {"result":2309,"method":"cmd","responses":[],"source":"JEL","error":"software node with id:[575812] not found for current environment"}
[15:03:46 Let's.SSL]: process manifest: {"result":2309,"method":"cmd","responses":[],"source":"JEL","error":"software node with id:[575812] not found for current environment","action":"callScript.script"}
@lazarenkoalexey
Copy link
Contributor

#299

Please make full LE add-on retest flow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants