It looks like hookenv.config("ldap_default_roles").split(",") should be `ldap_default_graylog_roles` instead.
2023-04-26 17:31:47 INFO unit.graylog/0.juju-log server.go:316 Invoking reactive handler: reactive/graylog.py:1426:configure_graylog_ldap_backend
2023-04-26 17:31:47 INFO unit.graylog/0.juju-log server.go:316 Get installed key for snap graylog
2023-04-26 17:31:47 ERROR unit.graylog/0.juju-log server.go:316 Hook error:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/__init__.py", line 74, in main
bus.dispatch(restricted=restricted_mode)
File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 390, in dispatch
_invoke(other_handlers)
File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 359, in _invoke
handler.invoke()
File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 181, in invoke
self._action(*args)
File "/var/lib/juju/agents/unit-graylog-0/charm/reactive/graylog.py", line 1438, in configure_graylog_ldap_backend
ldap_default_user_roles = hookenv.config("ldap_default_roles").split(",")
AttributeError: 'NoneType' object has no attribute 'split'
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 Traceback (most recent call last):
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 File "/var/lib/juju/agents/unit-graylog-0/charm/hooks/config-changed", line 22, in <module>
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 main()
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/__init__.py", line 74, in main
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 bus.dispatch(restricted=restricted_mode)
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 390, in dispatch
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 _invoke(other_handlers)
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 359, in _invoke
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 handler.invoke()
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 181, in invoke
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 self._action(*args)
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 File "/var/lib/juju/agents/unit-graylog-0/charm/reactive/graylog.py", line 1438, in configure_graylog_ldap_backend
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 ldap_default_user_roles = hookenv.config("ldap_default_roles").split(",")
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 AttributeError: 'NoneType' object has no attribute 'split'
2023-04-26 17:31:47 ERROR juju.worker.uniter.operation runhook.go:153 hook "config-changed" (via explicit, bespoke hook script) failed: exit status 1
It looks like hookenv. config( "ldap_default_ roles") .split( ",") should be `ldap_default_ graylog_ roles` instead.
2023-04-26 17:31:47 INFO unit.graylog/ 0.juju- log server.go:316 Invoking reactive handler: reactive/ graylog. py:1426: configure_ graylog_ ldap_backend 0.juju- log server.go:316 Get installed key for snap graylog 0.juju- log server.go:316 Hook error: juju/agents/ unit-graylog- 0/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ __init_ _.py", line 74, in main dispatch( restricted= restricted_ mode) juju/agents/ unit-graylog- 0/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , line 390, in dispatch other_handlers) juju/agents/ unit-graylog- 0/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , line 359, in _invoke invoke( ) juju/agents/ unit-graylog- 0/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , line 181, in invoke _action( *args) juju/agents/ unit-graylog- 0/charm/ reactive/ graylog. py", line 1438, in configure_ graylog_ ldap_backend default_ user_roles = hookenv. config( "ldap_default_ roles") .split( ",")
2023-04-26 17:31:47 INFO unit.graylog/
2023-04-26 17:31:47 ERROR unit.graylog/
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
ldap_
AttributeError: 'NoneType' object has no attribute 'split'
2023-04-26 17:31:47 WARNING unit.graylog/ 0.config- changed logger.go:60 Traceback (most recent call last): 0.config- changed logger.go:60 File "/var/lib/ juju/agents/ unit-graylog- 0/charm/ hooks/config- changed" , line 22, in <module> 0.config- changed logger.go:60 main() 0.config- changed logger.go:60 File "/var/lib/ juju/agents/ unit-graylog- 0/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ __init_ _.py", line 74, in main 0.config- changed logger.go:60 bus.dispatch( restricted= restricted_ mode) 0.config- changed logger.go:60 File "/var/lib/ juju/agents/ unit-graylog- 0/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , line 390, in dispatch 0.config- changed logger.go:60 _invoke( other_handlers) 0.config- changed logger.go:60 File "/var/lib/ juju/agents/ unit-graylog- 0/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , line 359, in _invoke 0.config- changed logger.go:60 handler.invoke() 0.config- changed logger.go:60 File "/var/lib/ juju/agents/ unit-graylog- 0/.venv/ lib/python3. 6/site- packages/ charms/ reactive/ bus.py" , line 181, in invoke 0.config- changed logger.go:60 self._action(*args) 0.config- changed logger.go:60 File "/var/lib/ juju/agents/ unit-graylog- 0/charm/ reactive/ graylog. py", line 1438, in configure_ graylog_ ldap_backend 0.config- changed logger.go:60 ldap_default_ user_roles = hookenv. config( "ldap_default_ roles") .split( ",") 0.config- changed logger.go:60 AttributeError: 'NoneType' object has no attribute 'split' uniter. operation runhook.go:153 hook "config-changed" (via explicit, bespoke hook script) failed: exit status 1
2023-04-26 17:31:47 WARNING unit.graylog/
2023-04-26 17:31:47 WARNING unit.graylog/
2023-04-26 17:31:47 WARNING unit.graylog/
2023-04-26 17:31:47 WARNING unit.graylog/
2023-04-26 17:31:47 WARNING unit.graylog/
2023-04-26 17:31:47 WARNING unit.graylog/
2023-04-26 17:31:47 WARNING unit.graylog/
2023-04-26 17:31:47 WARNING unit.graylog/
2023-04-26 17:31:47 WARNING unit.graylog/
2023-04-26 17:31:47 WARNING unit.graylog/
2023-04-26 17:31:47 WARNING unit.graylog/
2023-04-26 17:31:47 WARNING unit.graylog/
2023-04-26 17:31:47 WARNING unit.graylog/
2023-04-26 17:31:47 ERROR juju.worker.