Comments (1)
This seems to be the relevant part of the debug logs.
unit-grafana-0: 2022-09-26 16:01:05 ERROR unit.grafana/0.juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
File "/usr/lib/python3.8/urllib/request.py", line 1354, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/pebble.py", line 246, in connect
self.sock.connect(self.socket_path)
FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/pebble.py", line 1553, in _request_raw
response = self.opener.open(request, timeout=self.timeout)
File "/usr/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/pebble.py", line 260, in http_open
return self.do_open(_UnixSocketConnection, req, # type:ignore
File "/usr/lib/python3.8/urllib/request.py", line 1357, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 2] No such file or directory>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./src/charm.py", line 1142, in <module>
main(GrafanaCharm, use_juju_for_storage=True)
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/main.py", line 438, in main
_emit_charm_event(charm, dispatcher.event_name)
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/main.py", line 150, in _emit_charm_event
event_to_emit.emit(*args, **kwargs)
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/framework.py", line 355, in emit
framework._emit(event) # noqa
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/framework.py", line 848, in _emit
self._reemit(event_path)
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/framework.py", line 923, in _reemit
custom_handler(event)
File "./src/charm.py", line 234, in _on_config_changed
self._configure_replication()
File "./src/charm.py", line 280, in _configure_replication
self.containers["replication"].get_plan().services
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/model.py", line 1490, in get_plan
return self._pebble.get_plan()
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/pebble.py", line 1845, in get_plan
resp = self._request('GET', '/v1/plan', {'format': 'yaml'})
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/pebble.py", line 1515, in _request
response = self._request_raw(method, path, query, headers, data)
File "/var/lib/juju/agents/unit-grafana-0/charm/venv/ops/pebble.py", line 1566, in _request_raw
raise ConnectionError(e.reason)
ops.pebble.ConnectionError: [Errno 2] No such file or directory
Issue seems to be that we are trying to get the pebble plan before the can_connect
guard is evaluated.
grafana-k8s-operator/src/charm.py
Lines 279 to 295 in 62d96c2
from grafana-k8s-operator.
Related Issues (20)
- Add custom headers to Grafana Datasource
- Refactor some variable names in the grafana_source library
- parse error in grafana-k8s unit's `charm` container HOT 5
- Grafana-k8s not rendering new dashboard from grafana-agent-k8s when the relation in between stays joined HOT 2
- Can't access grafana dashboard without using `https` HOT 1
- Charm is happily "active/idle" even when workload cannot reach any datasources HOT 3
- `failed to verify` Let's Encrypt certificate HOT 3
- Unable to connect Grafana to Google for OAuth HOT 3
- Allow integration from multiple instances of the same charm without overwriting the first dashboard created HOT 3
- Dashboard forwarding from cos-configuration-k8s can be unreliable
- Recreating grafana pods leads to deleting non default organisation and users HOT 1
- New warning in edge: PromQL info: metric might not be a counter, name does not end in _total/_sum/_count/_bucket HOT 1
- COS is adding Juju topology filter into a panel instead of the top
- "HTTP Request Durations" panel in grafana-operator-overview has"No data" because of `$__interval` HOT 1
- Support integration with external identity providers HOT 3
- Adding config option for SMTP settings
- chore: update libraries to new major versions
- Grafana is inaccessible after removing all `:certificates` relations in the COS model HOT 4
- charm tracing fails over tls
- Allow adding datasources not managed by Juju via config variable
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 grafana-k8s-operator.