Comment 0 for bug 2025284

Revision history for this message
Marcelo Henrique Neppel (neppel) wrote :

Hi Juju team!

I was investigating one issue from a member of the community and to understand better the deployment of charms on arm64 (M2 proc) I tried to deploy two charms that have revisions for arm64:
- https://charmhub.io/kubernetes-dashboard?channel=1.28/edge
- https://charmhub.io/coredns

However, both failed with the following error:

unit-coredns-0: 14:38:08 ERROR unit.coredns/0.juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-coredns-0/charm/./src/charm.py", line 182, in <module>
    main(CoreDNSCharm)
  File "/var/lib/juju/agents/unit-coredns-0/charm/venv/ops/main.py", line 441, in main
    _emit_charm_event(charm, dispatcher.event_name)
  File "/var/lib/juju/agents/unit-coredns-0/charm/venv/ops/main.py", line 149, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-coredns-0/charm/venv/ops/framework.py", line 354, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-coredns-0/charm/venv/ops/framework.py", line 830, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-coredns-0/charm/venv/ops/framework.py", line 919, in _reemit
    custom_handler(event)
  File "/var/lib/juju/agents/unit-coredns-0/charm/./src/charm.py", line 74, in _on_coredns_pebble_ready
    container.autostart()
  File "/var/lib/juju/agents/unit-coredns-0/charm/venv/ops/model.py", line 1874, in autostart
    self._pebble.autostart_services()
  File "/var/lib/juju/agents/unit-coredns-0/charm/venv/ops/pebble.py", line 1561, in autostart_services
    return self._services_action('autostart', [], timeout, delay)
  File "/var/lib/juju/agents/unit-coredns-0/charm/venv/ops/pebble.py", line 1659, in _services_action
    raise ChangeError(change.err, change)
ops.pebble.ChangeError: cannot perform the following tasks:
- Start service "coredns" (cannot start service: fork/exec /coredns: exec format error)
----- Logs from task 0 -----
2023-06-28T17:38:08Z ERROR cannot start service: fork/exec /coredns: exec format error
-----
unit-coredns-0: 14:38:09 ERROR juju.worker.uniter.operation hook "coredns-pebble-ready" (via hook dispatching script: dispatch) failed: exit status 1
unit-coredns-0: 14:38:09 ERROR juju.worker.uniter pebble poll failed for container "coredns": failed to send pebble-ready event: hook failed

The worked fine on amd64 on a cloud instance (at least I saw that they reached the active/idle state).

Is is a problem in the charms or in Juju?