11 lines
8.8 KiB
JavaScript
11 lines
8.8 KiB
JavaScript
import{_ as e,o as a,c as s,R as o}from"./chunks/framework.44fd0451.js";const y=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en_US/guide/dashboardq.md","filePath":"en_US/guide/dashboardq.md","lastUpdated":1715640788000}'),t={name:"en_US/guide/dashboardq.md"},n=o(`<h2 id="why-is-the-ip-displayed-in-the-admin-panel-different-from-the-actual-agent-ip" tabindex="-1">Why is the IP Displayed in the Admin Panel Different from the Actual Agent IP? <a class="header-anchor" href="#why-is-the-ip-displayed-in-the-admin-panel-different-from-the-actual-agent-ip" aria-label="Permalink to "Why is the IP Displayed in the Admin Panel Different from the Actual Agent IP?""></a></h2><p>First, let's explain how the IP displayed in the Admin panel is obtained: The Agent periodically requests IP-API to get IP information and reports it to the Dashboard. The currently used IP-API can be viewed here: <a href="https://github.com/nezhahq/agent/blob/main/pkg/monitor/myip.go" target="_blank" rel="noreferrer">myip.go</a>.<br> If you find that the IP displayed in the Admin panel is different from the IP provided by your service provider, it is most likely that the service provider has given you an <strong>entry IP</strong>, but the Agent is testing your <strong>exit IP</strong>. This issue can also occur with multi-line servers and IPLC private lines.</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>For example, a common scenario is that the service provider gives you a high-defense server. To meet both high defense and low network interruption rate goals, the IP provided may be a mapped high-defense IP rather than your server's real exit IP.</p></div><p>You can also test the exit IP on the Agent server by running the following commands:</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">curl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">https://ipapi.co/ip/</span></span>
|
||
<span class="line"><span style="color:#FFCB6B;">curl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">ip.sb</span></span>
|
||
<span class="line"><span style="color:#FFCB6B;">curl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">ip-api.com</span></span></code></pre></div><h2 id="forgot-or-deleted-viewing-password" tabindex="-1">Forgot or Deleted Viewing Password <a class="header-anchor" href="#forgot-or-deleted-viewing-password" aria-label="Permalink to "Forgot or Deleted Viewing Password""></a></h2><p>Please view or edit the <code>/opt/nezha/dashboard/data/config.yaml</code> file.<br> The password is located under the <code>site-viewpassword</code> item.</p><h2 id="dashboard-installation-restart-update-failure-iptables" tabindex="-1">Dashboard Installation/Restart/Update Failure: iptables ...... <a class="header-anchor" href="#dashboard-installation-restart-update-failure-iptables" aria-label="Permalink to "Dashboard Installation/Restart/Update Failure: iptables ......""></a></h2><p>First, try restarting Docker before proceeding:</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">systemctl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">status</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">docker</span></span>
|
||
<span class="line"><span style="color:#FFCB6B;">systemctl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">restart</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">docker</span></span>
|
||
<span class="line"><span style="color:#FFCB6B;">systemctl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">status</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">docker</span></span></code></pre></div><p>After restarting, try reinstalling the Dashboard.<br> If iptables errors persist, consider disabling or removing iptables.<br> This issue might also be related to the kernel, so switching to the official kernel can be another solution.</p><h2 id="dashboard-restart-failure-invalid-hostport-nz-site-port" tabindex="-1">Dashboard Restart Failure: Invalid hostPort: nz_site_port <a class="header-anchor" href="#dashboard-restart-failure-invalid-hostport-nz-site-port" aria-label="Permalink to "Dashboard Restart Failure: Invalid hostPort: nz_site_port""></a></h2><p>If this issue occurs, you can modify the configuration via the installation script or directly edit the <code>/opt/nezha/dashboard/docker-compose.yaml</code> file.</p><h2 id="dashboard-layout-error-css-resources-not-loading" tabindex="-1">Dashboard Layout Error, CSS Resources Not Loading <a class="header-anchor" href="#dashboard-layout-error-css-resources-not-loading" aria-label="Permalink to "Dashboard Layout Error, CSS Resources Not Loading""></a></h2><p>If the Dashboard page layout is incorrect, it's usually due to missing or inaccessible CSS files.<br> To resolve this, try <code>restarting and updating the Dashboard</code> first.<br> If the problem persists after updating, the issue may be due to inappropriate configurations in your vhost file. You can edit the Nginx vhost file or use the aaPanel to:</p><ol><li><p>Find the site configured during Dashboard installation in <code>Websites</code> and click <code>Settings</code> on the right.</p></li><li><p>Select <code>Configuration File</code> and remove the following lines:</p><div class="language-nginx"><button title="Copy Code" class="copy"></button><span class="lang">nginx</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">location</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">~</span><span style="color:#A6ACCD;"> .*\\.(js|css)?$</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">{</span></span>
|
||
<span class="line"><span style="color:#F07178;"> </span><span style="color:#89DDFF;"> expires </span><span style="color:#F07178;"> </span><span style="color:#F78C6C;">12h</span><span style="color:#89DDFF;">;</span></span>
|
||
<span class="line"><span style="color:#F07178;"> </span><span style="color:#89DDFF;"> error_log </span><span style="color:#F07178;">/dev/null</span><span style="color:#89DDFF;">;</span></span>
|
||
<span class="line"><span style="color:#F07178;"> </span><span style="color:#89DDFF;"> access_log </span><span style="color:#F07178;">/dev/null</span><span style="color:#89DDFF;">;</span></span>
|
||
<span class="line"><span style="color:#F07178;"> }</span></span></code></pre></div></li><li><p>Save the configuration, clear the browser, Nginx, and CDN caches, and refresh the page to see if it returns to normal.</p></li></ol><h2 id="dashboard-cannot-start-panic-unable-to-find-the-configured-ddns-provider" tabindex="-1">Dashboard Cannot Start: panic: Unable to find the configured DDNS provider... <a class="header-anchor" href="#dashboard-cannot-start-panic-unable-to-find-the-configured-ddns-provider" aria-label="Permalink to "Dashboard Cannot Start: panic: Unable to find the configured DDNS provider...""></a></h2><p>The value entered for the DDNS provider is incorrect. Currently, only <code>webhook</code>, <code>cloudflare</code>, <code>tencentcloud</code>, and <code>dummy</code> are supported.</p><h2 id="dashboard-ddns-update-crash-panic-interface-conversion-interface-is-nil-not-interface" tabindex="-1">Dashboard DDNS Update Crash: panic: interface conversion: interface {} is nil, not []interface {} <a class="header-anchor" href="#dashboard-ddns-update-crash-panic-interface-conversion-interface-is-nil-not-interface" aria-label="Permalink to "Dashboard DDNS Update Crash: panic: interface conversion: interface {} is nil, not []interface {}""></a></h2><p>The entered DDNS <code>AccessID</code> or <code>AccessSecret</code> is incorrect.</p><h2 id="network-monitoring-page-shows-server-monitor-history-not-found" tabindex="-1">Network Monitoring Page Shows: server monitor history not found <a class="header-anchor" href="#network-monitoring-page-shows-server-monitor-history-not-found" aria-label="Permalink to "Network Monitoring Page Shows: server monitor history not found""></a></h2><p>This error indicates that no TCP-Ping or ICMP-Ping type monitoring has been set in the services page or monitoring data has not yet been generated.<br> If it has been set up, wait for some time and then check again.</p>`,22),r=[n];function i(l,p,d,c,h,u){return a(),s("div",null,r)}const f=e(t,[["render",i]]);export{y as __pageData,f as default};
|