2023-10-25 00:08:38 |
Mitch Burton |
description |
The version of haproxy in revision 75 of that charm on jammy is no longer compatible with the landscape-server charm:
[ALERT] (4962) : parsing [/etc/haproxy/haproxy.cfg:49] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] (4962) : parsing [/etc/haproxy/haproxy.cfg:58] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] (4962) : parsing [/etc/haproxy/haproxy.cfg:67] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] (4962) : parsing [/etc/haproxy/haproxy.cfg:76] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] (4962) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
[ALERT] (4962) : Fatal errors found in configuration.
Related error on the landscape-server unit
unit-landscape-server-2: 17:02:28 ERROR unit.landscape-server/2.juju-log website:12: Uncaught exception while in charm code:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-landscape-server-2/charm/src/settings_files.py", line 163, in write_ssl_cert
ssl_cert_fp.write(b64decode(ssl_cert.encode()))
File "/usr/lib/python3.10/base64.py", line 87, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Invalid base64-encoded string: number of data characters (1449) cannot be 1 more than a multiple of 4
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-landscape-server-2/charm/./src/charm.py", line 1004, in <module>
main(LandscapeServerCharm)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/main.py", line 441, in main
_emit_charm_event(charm, dispatcher.event_name)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/main.py", line 149, in _emit_charm_event
event_to_emit.emit(*args, **kwargs)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/framework.py", line 354, in emit
framework._emit(event)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/framework.py", line 830, in _emit
self._reemit(event_path)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/framework.py", line 919, in _reemit
custom_handler(event)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/./src/charm.py", line 602, in _website_relation_changed
write_ssl_cert(haproxy_ssl_cert)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/src/settings_files.py", line 165, in write_ssl_cert
raise SSLCertReadException(
settings_files.SSLCertReadException: Unable to decode b64-encoded SSL certificate
Resolving this will be required to move forward on #2040203 |
The version of haproxy in revision 75 of that charm on jammy is no longer compatible with the landscape-server charm:
[ALERT] (4962) : parsing [/etc/haproxy/haproxy.cfg:49] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] (4962) : parsing [/etc/haproxy/haproxy.cfg:58] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] (4962) : parsing [/etc/haproxy/haproxy.cfg:67] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] (4962) : parsing [/etc/haproxy/haproxy.cfg:76] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] (4962) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
[ALERT] (4962) : Fatal errors found in configuration.
Related error on the landscape-server unit
unit-landscape-server-2: 17:02:28 ERROR unit.landscape-server/2.juju-log website:12: Uncaught exception while in charm code:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-landscape-server-2/charm/src/settings_files.py", line 163, in write_ssl_cert
ssl_cert_fp.write(b64decode(ssl_cert.encode()))
File "/usr/lib/python3.10/base64.py", line 87, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Invalid base64-encoded string: number of data characters (1449) cannot be 1 more than a multiple of 4
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-landscape-server-2/charm/./src/charm.py", line 1004, in <module>
main(LandscapeServerCharm)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/main.py", line 441, in main
_emit_charm_event(charm, dispatcher.event_name)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/main.py", line 149, in _emit_charm_event
event_to_emit.emit(*args, **kwargs)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/framework.py", line 354, in emit
framework._emit(event)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/framework.py", line 830, in _emit
self._reemit(event_path)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/framework.py", line 919, in _reemit
custom_handler(event)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/./src/charm.py", line 602, in _website_relation_changed
write_ssl_cert(haproxy_ssl_cert)
File "/var/lib/juju/agents/unit-landscape-server-2/charm/src/settings_files.py", line 165, in write_ssl_cert
raise SSLCertReadException(
settings_files.SSLCertReadException: Unable to decode b64-encoded SSL certificate
Resolving this will be required to move forward on LP: #2040203 |
|