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.

I get constantly disconnected from the Unraid API, what can I do?

Featured Replies

Like said in the title, I dont know what to do anymore, no matter if I have plugins installed or not the issue remains the same and I have no idea why its disconnecting me the whole time...

 

Best Regards

 

Looki

Solved by ljm42

What version of the plugin ?

What version of Unraid ?

 

Your diagnostics catched after the issue could help the team identify the issue.

The server will only show as Online in the My Servers dashboard:

  https://forums.unraid.net/my-servers/

when the My Servers plugin is installed, so if it is uninstalled it will definitely be Offline.

 

 

Can you show a screenshot of what you mean by "disconnected"?

 

When you are in this state, does it reconnect on its own, or are you having to take some action?

 

 

With the plugin installed, please open a web terminal and run:

unraid-api restart

then wait 120 seconds and run:

unraid-api report -v

 

Also, please upload your diagnostics (from Tools -> Diagnostics

 

thanks! I really appreciate the help tracking this down

  • 3 weeks later...
  • Author
On 6/8/2022 at 7:22 PM, ljm42 said:

The server will only show as Online in the My Servers dashboard:

  https://forums.unraid.net/my-servers/

when the My Servers plugin is installed, so if it is uninstalled it will definitely be Offline.

 

 

Can you show a screenshot of what you mean by "disconnected"?

 

When you are in this state, does it reconnect on its own, or are you having to take some action?

 

 

With the plugin installed, please open a web terminal and run:

unraid-api restart

then wait 120 seconds and run:

unraid-api report -v

 

Also, please upload your diagnostics (from Tools -> Diagnostics

 

thanks! I really appreciate the help tracking this down

 

For the topic of my Problem:

in https://forums.unraid.net/my-servers/ it says "Online"

attached an screenshot of what I mean by "Disconnected" (its just so annoying because I cant edit any of my array e. g. when I am disconnected)

attached an screenshot of what happens when I use the "unraid-api report -v" command. I feel like the command "unraid-api restart" command does nothing else as the button "Reestart unraid-api" below the disconnected info on the screenshot.

attached my diagnostics.

 

It does reconnect on its own, but it takes like ages and it will disconnect on its own in after like 10 seconds of working.

 

My feelings with UNRAID currently:

I am using the trial version of UNRAID and as much as I like everything I just cant get myself to buy UNRAID because its for experts and I am by far not one at all. I of course googled like everything I didnt know but that didnt help me fixing any of my problems. All I wanted to do did not work out for me (wanted an own nextcloud server but mariadb seems to not work for some reason, because Nextcloud cant access it? And yes I changed the ports to an unused one etc.) and I followed the Tutorials step-by-step and now I feel dumb because I am a noob. I might give it up after the trial is over. I dont want to buy a product which is making me more headaches then actually working. I like the UI but the API is constantly gone. I like the structure but the only two Apps I want to use dont work out for some reason... And since people (5 People in 5 different Tutorials) are doing the same as I am doing I dont get why its not working for me.

 

thank you both for taking time for me.

 

Best Regards

 

Looki

scABrye.png

rs51xdJ.png

looki-server-diagnostics-20220626-1558.zip

Edited by Looki

  • Solution

The unraid-api is running fine, but the browser isn't able to connect to it for some reason.


What url are you using to access the server? It needs to be one of the ALLOWED_ORIGINS shown in your screenshot.

 

Do you have any kind of ad blocker or privacy settings that could be preventing this connection? Try using a different browser in private/incognito mode (as that disables most browser extensions that could be getting in the way)

 

3 hours ago, Looki said:

its just so annoying because I cant edit any of my array e. g. when I am disconnected

 

What do you mean by this? It sounds like another symptom of an ad blocker or extreme privacy settings preventing the browser from communicating with unraid.

On 6/26/2022 at 2:01 PM, ljm42 said:

The unraid-api is running fine, but the browser isn't able to connect to it for some reason.


What url are you using to access the server? It needs to be one of the ALLOWED_ORIGINS shown in your screenshot.

 

Do you have any kind of ad blocker or privacy settings that could be preventing this connection? Try using a different browser in private/incognito mode (as that disables most browser extensions that could be getting in the way)

 

 

What do you mean by this? It sounds like another symptom of an ad blocker or extreme privacy settings preventing the browser from communicating with unraid.

Not OP, but I also have a similar annoyance. I have the API disconnect error as well. Going off what you're saying about the ALLOWED_ORIGINS, I access my server via nas.domain.com, but without any port forwarding so it's only accessible internally.

Is there a way to add nas.domain.com to the ALLOWED_ORIGINS property, or is that a security hazard because technically domain.com is routable?

On 7/2/2022 at 1:00 AM, joshbgosh10592 said:

Going off what you're saying about the ALLOWED_ORIGINS, I access my server via nas.domain.com, but without any port forwarding so it's only accessible internally.

Is there a way to add nas.domain.com to the ALLOWED_ORIGINS property, or is that a security hazard because technically domain.com is routable?

 

If you want to use the URL nas.domain.com:

1) ensure you have DNS setup that points nas.domain.com to the server's IP address.

2) go to Settings -> Identification and set the Server Name to "nas"

3) go to Settings -> Management Access and set Local TLD to "domain.com"

 

Now the server will know that its URL is nas.domain.com and it will be added to the list of ALLOWED_ORIGINS.

 

If you ever want to add SSL, see https://wiki.unraid.net/Manual/Security#Securing_webGui_connections_.28SSL.29 

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.