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

error on start #393

Open
PietroPasotti opened this issue Aug 21, 2024 · 1 comment
Open

error on start #393

PietroPasotti opened this issue Aug 21, 2024 · 1 comment

Comments

@PietroPasotti
Copy link
Contributor

PietroPasotti commented Aug 21, 2024

Bug Description

traefik errors out on 'start'

To Reproduce

juju deploy traefik-k8s on a bogged-down machine

Environment

was deploying on:

  • multipass
    • openstack
      • microk8s

on my laptop. So probably a race of some sort we don't usually get.

Relevant log output

return callable(*args, **kwargs)  # type: ignore                                                               
  File "./src/charm.py", line 609, in _process_status_and_configurations                                           
    self._update_ingress_configurations()                                                                          
  File "/var/lib/juju/agents/unit-traefik-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 544, in wrapped_f
unction                                                                                                            
    return callable(*args, **kwargs)  # type: ignore                                                               
  File "./src/charm.py", line 624, in _update_ingress_configurations                                               
    self._clear_all_configs_and_restart_traefik()                                                                  
  File "/var/lib/juju/agents/unit-traefik-0/charm/lib/charms/tempo_k8s/v1/charm_tracing.py", line 544, in wrapped_f
unction                                                                                                            
    return callable(*args, **kwargs)  # type: ignore                                                               
  File "./src/charm.py", line 514, in _clear_all_configs_and_restart_traefik                                       
    self.traefik.delete_dynamic_configs()                                                                          
  File "/var/lib/juju/agents/unit-traefik-0/charm/src/traefik.py", line 640, in delete_dynamic_configs             
    self._container.exec(["find", DYNAMIC_CONFIG_DIR, "-name", "*.yaml", "-delete"])                               
  File "/var/lib/juju/agents/unit-traefik-0/charm/venv/ops/model.py", line 2865, in exec                           
    return self._pebble.exec(                                                                                      
  File "/var/lib/juju/agents/unit-traefik-0/charm/venv/ops/pebble.py", line 2763, in exec                          
    raise ChangeError(change.err, change) from e                                                                   
ops.pebble.ChangeError: cannot perform the following tasks:                                                        
- Execute command "find" (exec 22: timeout waiting for websocket connections: context deadline exceeded)           
----- Logs from task 0 -----                                                                                       
2024-08-21T11:37:55Z ERROR exec 22: timeout waiting for websocket connections: context deadline exceeded

Additional context

happened shortly after I opened a new ssh session into the vm.
A bunch of containers were lost and a few other charms were in error too.
status resolved itself after a few minutes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants