We are testing Charmed PostgreSQL K8s on ARM and grafana-agent-k8s throw an exception after relating with PostgreSQL:
unit-grafana-agent-k8s-0: 10:23:46 DEBUG unit.grafana-agent-k8s/0.juju-log Emitting Juju event agent_pebble_ready.
unit-grafana-agent-k8s-0: 10:23:46 ERROR unit.grafana-agent-k8s/0.juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/./src/charm.py", line 242, in <module>
main(GrafanaAgentK8sCharm)
File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/main.py", line 436, in main
_emit_charm_event(charm, dispatcher.event_name)
File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/main.py", line 144, in _emit_charm_event
event_to_emit.emit(*args, **kwargs)
File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/framework.py", line 351, in emit
framework._emit(event)
File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/framework.py", line 853, in _emit
self._reemit(event_path)
File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/framework.py", line 942, in _reemit
custom_handler(event)
File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/./src/charm.py", line 120, in _on_agent_pebble_ready
self._container.autostart()
File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/model.py", line 2100, in autostart
self._pebble.autostart_services()
File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/pebble.py", line 1764, in autostart_services
return self._services_action('autostart', [], timeout, delay)
File "/var/lib/juju/agents/unit-grafana-agent-k8s-0/charm/venv/ops/pebble.py", line 1866, in _services_action
raise ChangeError(change.err, change)
ops.pebble.ChangeError: cannot perform the following tasks:
- Start service "agent" (cannot start service: fork/exec /bin/agent: exec format error)
----- Logs from task 0 -----
2024-01-31T09:23:46Z ERROR cannot start service: fork/exec /bin/agent: exec format error
Bug Description
We are testing Charmed PostgreSQL K8s on ARM and grafana-agent-k8s throw an exception after relating with PostgreSQL:
To Reproduce
On ARM !!!
Environment
PINE64 Arch linux
Juju:
Microk8s doesn't work on this kernel (no apparmor) using K3s, but "should work anyway (c)".
Relevant log output
Additional context
ARM support for grafana-agent-k8s introduced here: https://github.com/canonical/grafana-agent-k8s-operator/pull/264