Jump to content

unraid 重启后炸了


Go to solution Solved by paysen,

Recommended Posts

官方文档答非所问。。

 

wrong csrf_token - CSRF tokens are randomly generated at every boot of unRaid.  You will see this error if you have one browser tab pointed at a page in unRaid and on another tab you initiate a restart of unRaid.  Note that the browser in question can also be on any device on your network.  This includes other computers, tablets, phones, etc.  IE: Close the other browser tabs.  This error can also be caused by mobile apps such as ControlR checking the status of unRaid but the server has been rebooted after the app was started.  Restart the application to fix.

 

说是有其他浏览器在访问。。

我都把unraid 重启了,就算我之前有其他设备打开页面未关闭。。 但重启后至少也需要点登录才会卡吧

 

Sep  7 13:35:44 611 root: error: /webGui/include/Notify.php: wrong csrf_token
Sep  7 13:35:44 611 root: error: /webGui/include/Report.php: wrong csrf_token
Sep  7 13:36:11 611 root: error: /webGui/include/Notify.php: wrong csrf_token
Sep  7 13:36:11 611 root: error: /webGui/include/InitCharts.php: wrong csrf_token
Sep  7 13:36:11 611 root: error: /webGui/include/Report.php: wrong csrf_token
Sep  7 13:36:11 611 root: error: /webGui/include/DashboardApps.php: wrong csrf_token
Sep  7 13:36:17 611 root: error: /webGui/include/Report.php: wrong csrf_token
Sep  7 13:36:21 611 root: error: /webGui/include/InitCharts.php: wrong csrf_token

 

 

image.thumb.png.036e52ea8bb8f0ba6573e0b90e91f0b8.png

 

我今天将unraid 关机之后,插上了m.2 转sata的阵列卡, 再加了一个 pciex1 的网卡

 

m.2 阵列卡还未连接硬盘,只是插了sata线。  pcie x1网卡也还没连接网线

 

然后本身运作的磁盘都提示无法挂载了

Link to comment
Quote

说是有其他浏览器在访问。。

我都把unraid 重启了,就算我之前有其他设备打开页面未关闭。。 但重启后至少也需要点登录才会卡吧

 

那你在关闭其他的浏览器页面之后还会有这个 wrong csrf_token 么,或者换一个浏览器测试看看。

 

官方对 wrong csrf_token 的说明我也看了,csrf token 的产生是为了安全方面的问题(跨站请求伪造 Cross-Site Request Forgery,CSRF )。unRAID 在每一次重启之后会随机生成一个 csrf token,因此如果你在浏览器的一个标签页面中重启了 unraid ,而另一个同样打开了 unraid 页面的标签页没有关闭(或者手机浏览器之类的),那么 unraid 重启好后其他的页面可能还处在 unraid 重启前的页面,此时前后 csrf token 不一致就有可能出现这个问题。所以官方的建议就是检查你的插件是否没有更新,以及将所有其他已经打开的网页标签页面都给关掉。

 

我看了你的 WRONG CSRF_TOKEN AND OTHERS 帖子,日志里面很关于 csrf token 的报错,所以我觉可能还是没有关闭浏览器标签的问题。

 

Sep  7 13:29:31 611 root: error: /webGui/include/Notify.php: wrong csrf_token
Sep  7 13:29:31 611 root: error: /webGui/include/Report.php: wrong csrf_token
Sep  7 13:29:31 611 root: error: /webGui/include/InitCharts.php: wrong csrf_token
Sep  7 13:29:31 611 root: error: /webGui/include/DashboardApps.php: wrong csrf_token

 

 

3 hours ago, whole-gentlewoman7216 said:

我今天将unraid 关机之后,插上了m.2 转sata的阵列卡, 再加了一个 pciex1 的网卡

 

m.2 阵列卡还未连接硬盘,只是插了sata线。  pcie x1网卡也还没连接网线

 

然后本身运作的磁盘都提示无法挂载了

 

这个得看日志。

 

 

 

 

Edited by JackieWu
  • Like 1
Link to comment
  • Solution
20 hours ago, whole-gentlewoman7216 said:

是有其他浏览器在访问。

16 hours ago, JackieWu said:

那你在关闭其他的浏览器页面之后还会有这个 wrong csrf_token 么,或者换一个浏览器测试看看。

 

官方对 wrong csrf_token 的说明我也看了,csrf token 的产生是为了安全方面的问题(跨站请求伪造 Cross-Site Request Forgery,CSRF )。unRAID 在每一次重启之后会随机生成一个 csrf token,因此如果你在浏览器的一个标签页面中重启了 unraid ,而另一个同样打开了 unraid 页面的标签页没有关闭(或者手机浏览器之类的),那么 unraid 重启好后其他的页面可能还处在 unraid 重启前的页面,此时前后 csrf token 不一致就有可能出现这个问题。所以官方的建议就是检查你的插件是否没有更新,以及将所有其他已经打开的网页标签页面都给关掉。

 

我看了你的 WRONG CSRF_TOKEN AND OTHERS 帖子,日志里面很关于 csrf token 的报错,所以我觉可能还是没有关闭浏览器标签的问题。

已经解决了,后面发现是 go 文件里面加入了 proxy 代理之后会变成这样。

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...