Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

unraid connect showing offline, CSRF Token error

Featured Replies

May 29 10:05:53	DerFLIX	webGUI:	error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token	Error
May 29 10:05:51	DerFLIX	webGUI:	error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token	Error
May 29 10:05:48	DerFLIX	webGUI:	error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token	Error
May 29 10:05:45	DerFLIX	webGUI:	error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token	Error


At a loss here. I noticed my Unraid Connect hasnt been connected for some time but unclear when it went offline.

I tried uninstalling the UnRAID Connect plugin a few times and de-registering the server. I havent been able to register the server now.

When I try to sign in on the server, it says error something went wrong cannot sign-in. Unraid connect shows the server registered but offline.

The unraid-api seems to start, then stop running with the error above. Any help would be appreciated.

derflix-diagnostics-20260529-1011.zip

Solved by derbo

  • Community Expert

Please post a screenshot of the error you see when trying to sign in.

  • Author

Attached.

Screenshot 2026-05-29 at 10.31.50 AM.png

Screenshot 2026-05-29 at 10.35.33 AM.png

  • Community Expert

Open a terminal window and type

unraid-api stop

unraid-api restart

Then try again to register from the dropdown

  • Author

No dice, it just hangs and goes to that error.

The unraid connect button was missing after that.
I ran the plugin command you mention in other posts to see it. I also tried signing out of unraid.net to before trying the dropdown with no luck.

unraid-api plugins install unraid-api-plugin-connect
  • Author
  • Solution

After some debugging.

Deleted the Unraid Connect Plugin, rebooted.
Installed Unraid Connect Plugin from CA.

Ran this command from terminal:
unraid-api plugins install unraid-api-plugin-connect

Was able to sign in and get it going again. How odd!

  • 2 weeks later...

Just a few things to add here.

I did it in the same order as you, but had to be fast after api restart with registering the server.

The error message

Jun 11 11:16:51 Unraid webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token

still gets generated when viewing api status in web-gui, which is also shown as stopped after 2minutes or so.

unraid-api stop

unraid-api restart

Those commands helped with keeping the server online in Unraid Connect dashboard.

I have the same issue:

I have a simular issue. Syslog: grep -i "csrf" /mnt/user/Data/syslog-RSCloud.log | tail -20
Jun 14 17:15:48 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 17:16:33 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 17:30:04 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 17:30:52 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 17:32:00 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 17:48:33 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 17:55:17 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 17:59:34 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 18:01:41 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 18:02:04 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 20:47:43 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 20:49:00 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 20:52:42 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 20:52:51 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 20:57:27 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 20:57:38 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 20:59:54 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 21:00:06 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 21:03:06 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token
Jun 14 21:14:00 RSCloud webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token


API Status:

root@RSCloud:~# unraid-api status
+--- unraid-api
namespace : default
version : 4.35.0+264ddf00
pid : 19088
pm2 id : 0
status : online
mode : fork
restarted : 1
uptime : 20m
memory usage : 197.1mb
error log : /var/log/graphql-api.log
watching : no
PID file : /var/log/.pm2/pids/unraid-api-0.pid

GUI :
2026-06-14 21_24_49-Greenshot.png

  • 4 weeks later...

I still get this error when I go to Settings → Management Access.

I don't have any problems signing in, and my server appears to be connected.

I also removed the Connect plugin and restarted the server, but I still get the same error message when I open Settings → Management Access.

  • Author
1 hour ago, unRaiderX said:

I still get this error when I go to Settings → Management Access.

I don't have any problems signing in, and my server appears to be connected.

I also removed the Connect plugin and restarted the server, but I still get the same error message when I open Settings → Management Access.

I noticed I've been getting the error message now. I get this after the latest 7.3.2 update. It started 2 days ago when I updated. Only this time around , i am able to still access it from Connect.

Edited by derbo

  • Author

i ran this command again and its working fine for the past 6hours.

unraid-api plugins install unraid-api-plugin-connect

4 hours ago, derbo said:

i ran this command again and its working fine for the past 6hours.

unraid-api plugins install unraid-api-plugin-connect

So, just to confirm, you don't see this error in the log when you go to Settings → Management Access?

I also removed the Connect plugin and rebooted the server, but I still get the same error message:

Jul 11 10:36:18 Tower webGUI: error: /plugins/dynamix.my.servers/include/unraid-api.php - wrong csrf_token

Even with the Connect plugin removed, this error still appears whenever I open Settings → Management Access.

My API service don't even running.

image.png

Edited by unRaiderX

EDIT:
I found that this issue only occurs when using Google Chrome, Brave, or Microsoft Edge.

When I use Firefox, the error does not appear, and the API Service Status shows Running.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.