Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On startup, charm briefly goes into error state #36

Open
sed-i opened this issue Sep 7, 2023 · 0 comments
Open

On startup, charm briefly goes into error state #36

sed-i opened this issue Sep 7, 2023 · 0 comments
Assignees

Comments

@sed-i
Copy link
Contributor

sed-i commented Sep 7, 2023

Pebble says cannot start service: exited quickly with code 0:

unit-cat-0: 11:36:47.613 DEBUG unit.cat/0.juju-log Emitting Juju event catalogue_pebble_ready.
unit-cat-0: 11:36:47.685 ERROR unit.cat/0.juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
  File "./src/charm.py", line 141, in <module>
    main(CatalogueCharm)
  File "/var/lib/juju/agents/unit-cat-0/charm/venv/ops/main.py", line 435, in main
    _emit_charm_event(charm, dispatcher.event_name)
  File "/var/lib/juju/agents/unit-cat-0/charm/venv/ops/main.py", line 144, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-cat-0/charm/venv/ops/framework.py", line 355, in emit
    framework._emit(event)  # noqa
  File "/var/lib/juju/agents/unit-cat-0/charm/venv/ops/framework.py", line 824, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-cat-0/charm/venv/ops/framework.py", line 899, in _reemit
    custom_handler(event)
  File "./src/charm.py", line 78, in _on_catalogue_pebble_ready
    container.autostart()
  File "/var/lib/juju/agents/unit-cat-0/charm/venv/ops/model.py", line 1824, in autostart
    self._pebble.autostart_services()
  File "/var/lib/juju/agents/unit-cat-0/charm/venv/ops/pebble.py", line 1547, in autostart_services
    return self._services_action('autostart', [], timeout, delay)
  File "/var/lib/juju/agents/unit-cat-0/charm/venv/ops/pebble.py", line 1646, in _services_action
    raise ChangeError(change.err, change)
ops.pebble.ChangeError: cannot perform the following tasks:
- Start service "catalogue" (cannot start service: exited quickly with code 0)
----- Logs from task 0 -----
2023-09-07T15:36:47Z INFO Most recent service output:
    
2023-09-07T15:36:47Z ERROR cannot start service: exited quickly with code 0
-----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants