Comments (4)
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.
Certainly reproducible:
https://github.com/canonical/cos-lite-bundle/actions/runs/6125002368/job/16626112341?pr=80#step:5:615
from prometheus-k8s-operator.
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.
the first update-status clears it.
from prometheus-k8s-operator.
Related Issues (20)
- Inconsistent scrape interval in Prometheus and Grafana breaks graphs with `$__rate_interval`
- hardcoded scape_interval=1m is causing more issues than solving problems HOT 4
- The charm size got 10x bigger due to cygrpc.cpython-38-x86_64-linux-gnu.so with debug symbols HOT 2
- Non-functional deployment with latest/edge - /cos-prometheus-0: 404 Not Found HOT 3
- After removing the relation with scrape-inteval-config old alert rules are still in Prometheus HOT 5
- Alert rules from different sources can overwrite each other HOT 13
- Broken scrape jobs can get past our checks
- Stuck on BlockedStatus even after `maximum_retention_size` config option changed to valid
- Out of order sample from remote write HOT 3
- [MetricsEndpointAggregator] Group name should be rendered using unit name, not app name HOT 1
- Topology labels are overridden in MetricsEndpointProvider HOT 1
- "certificates-relation-changed" hook failed during deployment HOT 3
- Set external URL as a Grafana Data Source HOT 4
- cannot stop service: promtail service does not exist HOT 1
- Internal url is rendered as the "source" in alerts
- Charm reports permission denied when setting relation data HOT 2
- Remove the check `if alert_rules_as_dict` in `MetricsEndpointProvider`
- chore: update libraries to new major versions
- `prometheus_scrape` relation should block charm for cross-model relations
- charm tracing fails over tls
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus-k8s-operator.