> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://helpdesk.ggcircuit.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Grafana在Debian更新后无法工作

### **问题**

Debian OS 更新后，Grafana 统计显示 N/A 或"错误更新选项：不允许源"。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15861211/image-png-Apr-22-2022-04-36-53-41-PM.png?version=1&modificationDate=1743386360706&cacheVersion=1&api=v2)

### 解决方案 1

1. 通过直接连接、SSH 或 Debian 控制面板访问服务器控制台。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15861211/undefined-Apr-22-2022-04-42-59-87-PM.png?version=2&modificationDate=1743386358003&cacheVersion=1&api=v2)

2. 使用 root 用户或系统上的其他管理员用户登录。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15861211/undefined-Apr-22-2022-04-43-00-06-PM.png?version=2&modificationDate=1743386360718&cacheVersion=1&api=v2)

3. 备份 ggRock nginx 配置文件：

```
cp /etc/nginx/conf.d/ggrock.conf /etc/nginx/conf.d/ggrock.conf.bak
```

4. 在文本编辑器中打开 ggRock nginx 配置文件：

```
nano /etc/nginx/conf.d/ggrock.conf
```

5. 使用键盘上的箭头键向下导航到 grafana 配置部分
6. 添加包含以下内容的新行：

```
proxy_set_header Host $http_host;
```

修改文件后，所需的部分应如以下屏幕截图所示：

7. 按键盘上的 <CTRL> + 'X' 保存并写入文件，按 'Y' 键确认并保存更改。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15861211/sjPM6JP.png?version=1&modificationDate=1743386358011&cacheVersion=1&api=v2)

8. 使用以下命令重启 nginx 代理服务：

```
systemctl restart nginx.service
```

9. 等待 10-20 秒进行服务重启，然后刷新 Grafana 网页界面以显示统计数据。

****** 感谢 Fortress Melbourne 的朋友提供此解决方案！

### **解决方案 2**

1. 通过直接连接、SSH 或 Debian 控制面板访问服务器控制台。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15861211/undefined-Apr-22-2022-04-42-59-87-PM.png?version=2&modificationDate=1743386358003&cacheVersion=1&api=v2)

2. 使用 root 用户或系统上的其他管理员用户登录。

![](https://ggcircuit.atlassian.net/wiki/download/attachments/15861211/undefined-Apr-22-2022-04-43-00-06-PM.png?version=2&modificationDate=1743386360718&cacheVersion=1&api=v2)

3. 发出以下两个命令以安装已知良好版本的 grafana：

```
wget [https://dl.grafana.com/enterprise/release/grafana-enterprise_8.3.3_amd64.deb](https://dl.grafana.com/enterprise/release/grafana-enterprise_8.3.3_amd64.deb)
dpkg -i grafana-enterprise_8.3.3_amd64.deb
```

4. 重启服务器并访问 Grafana 网页界面以显示统计数据。