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

Upgrade to Grafana 11 #10

Open
arlake228 opened this issue Sep 4, 2024 · 3 comments
Open

Upgrade to Grafana 11 #10

arlake228 opened this issue Sep 4, 2024 · 3 comments
Assignees

Comments

@arlake228
Copy link
Contributor

No description provided.

@arlake228 arlake228 self-assigned this Sep 4, 2024
@github-project-automation github-project-automation bot moved this to Ready in perfSONAR Sep 4, 2024
@laeti-tia
Copy link
Member

I tried Grafana 11.2.0 and it has an issue with the grafana.ini file that generates this error with our scripts:

Setting up perfsonar-grafana-toolkit (5.2.0~a1.0~20240917075609-1) ...
Traceback (most recent call last):
  File "/usr/lib/perfsonar/grafana/grafana_folder_permissions.py", line 39, in <module>
    grafana_ini.read(GRAFANA_INI_FILE)
  File "/usr/lib/python3.12/configparser.py", line 684, in read
    self._read(fp, filename)
  File "/usr/lib/python3.12/configparser.py", line 1049, in _read
    raise DuplicateSectionError(sectname, fpname,
configparser.DuplicateSectionError: While reading from '/etc/grafana/grafana.ini' [line 1350]: section 'unified_alerting.reserved_labels' already exists
dpkg: error processing package perfsonar-grafana-toolkit (--configure):

11.1.5 doesn't generate errors at installation time.

@laeti-tia
Copy link
Member

Grafana 11.2.3 shows the same error as 11.2.0 described above. I guess we need to change something to our scripts.

Setting up perfsonar-grafana (5.2.0~a1.0~20241106165044-1) ...
Synchronizing state of grafana-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable grafana-server
Created symlink /etc/systemd/system/multi-user.target.wants/grafana-server.service → /lib/systemd/system/grafana-server.service.
apache2_invoke: Enable site default-ssl
apache2_invoke: Enable configuration apache-grafana
apache2_invoke: Enable module ssl
apache2_invoke: Enable module proxy
apache2_invoke: Enable module proxy_http
Traceback (most recent call last):
  File "/usr/lib/perfsonar/grafana/grafana_config.py", line 14, in <module>
    grafana_ini.read(GRAFANA_INI_FILE)
  File "/usr/lib/python3.8/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/usr/lib/python3.8/configparser.py", line 1067, in _read
    raise DuplicateSectionError(sectname, fpname,
configparser.DuplicateSectionError: While reading from '/etc/grafana/grafana.ini' [line 1353]: section 'unified_alerting.reserved_labels' already exists
Setting up perfsonar-grafana-toolkit (5.2.0~a1.0~20241106165044-1) ...
Traceback (most recent call last):
  File "/usr/lib/perfsonar/grafana/grafana_folder_permissions.py", line 39, in <module>
    grafana_ini.read(GRAFANA_INI_FILE)
  File "/usr/lib/python3.8/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/usr/lib/python3.8/configparser.py", line 1067, in _read
    raise DuplicateSectionError(sectname, fpname,
configparser.DuplicateSectionError: While reading from '/etc/grafana/grafana.ini' [line 1353]: section 'unified_alerting.reserved_labels' already exists
dpkg: error processing package perfsonar-grafana-toolkit (--configure):
 installed perfsonar-grafana-toolkit package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (245.4-4ubuntu3.24) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.16) ...
Errors were encountered while processing:
 perfsonar-grafana-toolkit
E: Sub-process /usr/bin/dpkg returned an error code (1)
make: *** [unibuild/unibuild-deb.make:264: install] Error 123
make: Leaving directory '/Users/laeti/Jobs/GÉANT/Code/github/grafana/perfsonar-grafana'

@laeti-tia
Copy link
Member

Yes, we're hitting this bug: grafana/grafana#94330

@arlake228 arlake228 moved this from Ready to In Review in perfSONAR Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

No branches or pull requests

2 participants