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).
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: /charmhub. io/kubernetes- dashboard? channel= 1.28/edge /charmhub. io/coredns
- https:/
- https:/
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: juju/agents/ unit-coredns- 0/charm/ ./src/charm. py", line 182, in <module> CoreDNSCharm) juju/agents/ unit-coredns- 0/charm/ venv/ops/ main.py" , line 441, in main charm_event( charm, dispatcher. event_name) juju/agents/ unit-coredns- 0/charm/ venv/ops/ main.py" , line 149, in _emit_charm_event to_emit. emit(*args, **kwargs) juju/agents/ unit-coredns- 0/charm/ venv/ops/ framework. py", line 354, in emit _emit(event) juju/agents/ unit-coredns- 0/charm/ venv/ops/ framework. py", line 830, in _emit _reemit( event_path) juju/agents/ unit-coredns- 0/charm/ venv/ops/ framework. py", line 919, in _reemit handler( event) juju/agents/ unit-coredns- 0/charm/ ./src/charm. py", line 74, in _on_coredns_ pebble_ ready autostart( ) juju/agents/ unit-coredns- 0/charm/ venv/ops/ model.py" , line 1874, in autostart _pebble. autostart_ services( ) juju/agents/ unit-coredns- 0/charm/ venv/ops/ pebble. py", line 1561, in autostart_services action( 'autostart' , [], timeout, delay) juju/agents/ unit-coredns- 0/charm/ venv/ops/ pebble. py", line 1659, in _services_action change. err, change) ChangeError: cannot perform the following tasks: 28T17:38: 08Z ERROR cannot start service: fork/exec /coredns: exec format error uniter. operation hook "coredns- pebble- ready" (via hook dispatching script: dispatch) failed: exit status 1
Traceback (most recent call last):
File "/var/lib/
main(
File "/var/lib/
_emit_
File "/var/lib/
event_
File "/var/lib/
framework.
File "/var/lib/
self.
File "/var/lib/
custom_
File "/var/lib/
container.
File "/var/lib/
self.
File "/var/lib/
return self._services_
File "/var/lib/
raise ChangeError(
ops.pebble.
- Start service "coredns" (cannot start service: fork/exec /coredns: exec format error)
----- Logs from task 0 -----
2023-06-
-----
unit-coredns-0: 14:38:09 ERROR juju.worker.
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?