Git Product home page Git Product logo

Comments (4)

sed-i avatar sed-i commented on June 27, 2024

error msg="Unable to validate web configuration file" err="failed to load X509KeyPair: open /etc/prometheus/server.cert: no such file or directory"

Duplicates #506. Partial fix in #509 (?)

from prometheus-k8s-operator.

sed-i avatar sed-i commented on June 27, 2024

Certainly reproducible:
https://github.com/canonical/cos-lite-bundle/actions/runs/6125002368/job/16626112341?pr=80#step:5:615

from prometheus-k8s-operator.

PietroPasotti avatar PietroPasotti commented on June 27, 2024

Just got this right after deploy bundle (with tls overlay):

unit-loki-0: 16:15:22 ERROR unit.loki/0.juju-log Uncaught exception while in charm code:                                                                 
Traceback (most recent call last):                                                                                                                       
  File "/var/lib/juju/agents/unit-loki-0/charm/venv/ops/model.py", line 2792, in _run                                                                    
    result = subprocess.run(args, **kwargs)  # type: ignore                                                                                              
  File "/usr/lib/python3.8/subprocess.py", line 516, in run                                                                                              
    raise CalledProcessError(retcode, process.args,                                                                                                      
subprocess.CalledProcessError: Command '('/var/lib/juju/tools/unit-loki-0/relation-get', '-r', '3', '-', 'loki/0', '--format=json')' returned non-zero ex
it status 1.                                                                                                                                             
                                                                                                                                                         
During handling of the above exception, another exception occurred:                                                                                      
                                                                                                                                                         
Traceback (most recent call last):                                                                                                                       
  File "./src/charm.py", line 523, in <module>                                                                                                           
    main(LokiOperatorCharm, use_juju_for_storage=True)                                                                                                   
  File "/var/lib/juju/agents/unit-loki-0/charm/venv/ops/main.py", line 429, in main                                                                      
    charm = charm_class(framework)                                                                                                                       
  File "./src/charm.py", line 118, in __init__                                                                                                           
    source_url=self._external_url,                                                                                                                       
  File "./src/charm.py", line 249, in _external_url                                                                                                      
    scheme = "https" if self.server_cert.cert else "http"                                                                                                
  File "/var/lib/juju/agents/unit-loki-0/charm/lib/charms/observability_libs/v0/cert_handler.py", line 323, in cert                                      
    return self._server_cert                                                                                                                             
  File "/var/lib/juju/agents/unit-loki-0/charm/lib/charms/observability_libs/v0/cert_handler.py", line 333, in _server_cert                              
    return self._peer_relation.data[self.charm.unit].get("certificate", None)                                                                            
  File "/usr/lib/python3.8/_collections_abc.py", line 660, in get                                                                                        
    return self[key]                                                                                                                                     
  File "/var/lib/juju/agents/unit-loki-0/charm/venv/ops/model.py", line 1582, in __getitem__                                                             
    return super().__getitem__(key)                                                                                                                      
  File "/var/lib/juju/agents/unit-loki-0/charm/venv/ops/model.py", line 686, in __getitem__                                                              
    return self._data[key]                                                                                                                               
  File "/var/lib/juju/agents/unit-loki-0/charm/venv/ops/model.py", line 670, in _data                                                                    
    data = self._lazy_data = self._load()                                                                                                                
  File "/var/lib/juju/agents/unit-loki-0/charm/venv/ops/model.py", line 1466, in _load                                                                   
    return self._backend.relation_get(self.relation.id, self._entity.name, self._is_app)                                                                 
  File "/var/lib/juju/agents/unit-loki-0/charm/venv/ops/model.py", line 2873, in relation_get                                                            
    raw_data_content = self._run(*args, return_output=True, use_json=True)                                                                               
  File "/var/lib/juju/agents/unit-loki-0/charm/venv/ops/model.py", line 2794, in _run                                                                    
    raise ModelError(e.stderr)                                                                                                                           
ops.model.ModelError: ERROR permission denied                                                                                                            
                                                                                                                                                         
unit-loki-0: 16:15:22 ERROR juju.worker.uniter.operation hook "loki-chunks-storage-detaching" (via hook dispatching script: dispatch) failed: exit status
 1                                                                                                                                                       

from prometheus-k8s-operator.

PietroPasotti avatar PietroPasotti commented on June 27, 2024

the first update-status clears it.

from prometheus-k8s-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.