My Servers Early Access Plugin


jonp

Recommended Posts

Our power went out in the house today for a couple of minutes.  After power was restored, I checked my unraid server, and it was offline.  I rebooted it expecting it to come back online.  Unfortunately, it remained offline.  I could login to the console, and from other computers on my network I could ping it.  I could see clearly that it was connected to my router.  When I checked on the Mothership (forums.unraid.net - My Servers) it showed my server as being available.  However when I attempted to connect to it, I get connection refused. I checked to see if my Plex server was at least running, and nothing.  My Nextcloud server is also unreachable.  I restored my flash drive from the backup I did yesterday, and booted from that with no luck.  I'm running unraid 6.9.2.  

 

When I boot unraid in safe mode I am able to login.

 

I tried running the command unraid-api restart and I get the message output shown below: 


root@Olympia:~# unraid-api restart
Sending process 2522 SIGTERM.
Starting unraid-api in "production" mode.
Value "invalid" is not no/yes.


This is where it stops and never completes.

 

I ran diagnostics and uploaded the log file.

 

Thanks for any suggestions - they would be greatly welcomed.

 

olympia-diagnostics-20210417-2014.zip

Edited by dius
Link to comment

I see a message in the syslog about too many devices connected and as a result the array non being started - you do not by any chance have a removable USB device plugged in?

 

Not sure about your connection issue :( Maybe the

 Value "invalid" is not no/yes.

indicates there is an error introduced in the MyServers support? Have you tried connecting directly via IP using http://192.168.1.44

 

It also looks like you do not have a password set for the root user - this will stop you being able to make SSH connections on the latest unRaid releases due to tightened security.

  • Like 1
Link to comment
9 hours ago, itimpi said:

I see a message in the syslog about too many devices connected and as a result the array non being started - you do not by any chance have a removable USB device plugged in?

 

Not sure about your connection issue :( Maybe the


 Value "invalid" is not no/yes.

indicates there is an error introduced in the MyServers support? Have you tried connecting directly via IP using http://192.168.1.44

 

It also looks like you do not have a password set for the root user - this will stop you being able to make SSH connections on the latest unRaid releases due to tightened security.

Thank you so much!  You're absolutely correct.  I had a small usb drive plugged in for a while and never got around to removing it. I don't use it as part of my array so it never occurred to me that it could be the cause of my problem.  Now that I know better, it won't happen again.

 

My server is up and doing a parity check now.  I love unraid!  When I don't mess things up, it just works.  I'm very impressed!

Link to comment
On 4/17/2021 at 6:46 PM, dius said:

Value "invalid" is not no/yes.

 

Thanks for reporting this and for uploading your diagnostics! We were able to pinpoint the problem, it will be fixed in the next version of the plugin so nobody else will run into it.

  • Like 1
Link to comment

Quick request/ suggestion:

 

Would it be possible to securely host the keyfile used to unlock encrypted Arrays on My Servers? Then if a users unRAID server was stolen they could delete the keyfile on My Servers to stop anyone gaining access to the files.

 

Cheers.

 

 

Link to comment

I currently have a My Servers Error, it says Graphql is offline. I have tried rebooting my server, the plugin says i am activated and up to date.  I have tried to Reinitialize also.... nothing seems to fix it.

Link to comment

EDIT: Failed flash drive - Thanks ljm42 for verifying.

I've recently gotten this error message and now I am unable to access my server at all since it defaults from my local IP to the unraid-provided https IP. 

Has anyone else had a similar error it? 

 

Otherwise the plugin works perfectly and is great.

1492335389_2021-04-2220_34_57-DServerMain_Dashboardand2morepages-Personal-MicrosoftEdge.png.88da1a9e9dee5bf85b41f88b4f222cd1.png

Edited by doblez
Link to comment

Everything is working as intended on my end, but my setup probably wasn't accounted for:

 

I have two WAN links/ public IPs, a fast link with a dynamic IP I'm unable to forward ports through (say 1.1.1.1), another slightly slower with a static IP I'm using as failover for the first link and to forward ports through (say 2.2.2.2), the plugin probably tested the default link to get my external IP and associate it (1.1.1.1) to my www.hash.unraid.com subdomain, except that's not the one I'm forwarding from.

Is there any way I can manually override the external IP to set my inbound link (2.2.2.2 in my example) or more complex but probably more flexible, a list of IPs assigned in order to www./www1./www2. etc?

Edited by kyis
Link to comment

How can I remove a machine linked to my servers?
When I go to my servers section of unraid forums, I have there all my servers, which connected to my account. I want to remove one unraid server from my servers, Sign-out on the machine did not do the trick. It seems the feature to remove a server is not yet implemented.

Link to comment
7 hours ago, Maor said:

How can I remove a machine linked to my servers?
When I go to my servers section of unraid forums, I have there all my servers, which connected to my account. I want to remove one unraid server from my servers, Sign-out on the machine did not do the trick. It seems the feature to remove a server is not yet implemented.

 

Signing out is a good first step. In the future we will have the ability to hide servers. If you have a need to actually remove it, then from the Unraid.net Sign In page of the affected server, click the "Troubleshoot" link and let us know what is up.

Link to comment
18 hours ago, kyis said:

Everything is working as intended on my end, but my setup probably wasn't accounted for:

 

I have two WAN links/ public IPs, a fast link with a dynamic IP I'm unable to forward ports through (say 1.1.1.1), another slightly slower with a static IP I'm using as failover for the first link and to forward ports through (say 2.2.2.2), the plugin probably tested the default link to get my external IP and associate it (1.1.1.1) to my www.hash.unraid.com subdomain, except that's not the one I'm forwarding from.

Is there any way I can manually override the external IP to set my inbound link (2.2.2.2 in my example) or more complex but probably more flexible, a list of IPs assigned in order to www./www1./www2. etc?

 

We grab whatever IP address was used to contact our server. If you want to use our Remote Access service you'll need to adjust your network so that outgoing traffic from Unraid uses the Internet connection you want associated with www.yourpersonalhash.unraid.net

Link to comment
22 hours ago, doblez said:

 

1492335389_2021-04-2220_34_57-DServerMain_Dashboardand2morepages-Personal-MicrosoftEdge.png.88da1a9e9dee5bf85b41f88b4f222cd1.png

 

Your flash drive is failing and needs to be replaced. If you setup the Unraid.net flash backup you can follow the steps here: https://wiki.unraid.net/My_Servers#Restoring_Flash_Backup

 

22 hours ago, doblez said:

now I am unable to access my server at all since it defaults from my local IP to the unraid-provided https IP. 

 

It sounds like you have setup local SSL access, which means http://ipaddress redirects to https://yourpersonalhash.unraid.net . If that isn't working for some reason (probably related to the flash drive issues) then try https://ipaddress and ignore any browser warnings.

 

 

  • Like 1
Link to comment

Removing this plugin somehow messed up my themes? Every saved theme in theme manager suddenly looks the same. White header, black main background. Was immediate after the refresh on plugin removal.

 

As expected, a reboot fixed it, but still very strange behaviour.

Edited by ionred
Link to comment

For some reason I'm having issue with the remote access, I've gone through certification, forwarding my port. and on unraid setting it says "Your Unraid Server is reachable from the internet".

Yet on my servers, it says "local access", and can't login remotely. 

not working is fine, but the biggest issue when I try to go to the server, it automatically goes to hash.unraid.net, and when I'm using vpn, I can't even go to my server even if I'm on local network, and rerouting from IP to hash.unraid.net won't get turned off even if I turn off the remote access.

 

is there anyways to fix this? it's super annoying

Link to comment
1 hour ago, takkkkkkk said:

For some reason I'm having issue with the remote access, I've gone through certification, forwarding my port. and on unraid setting it says "Your Unraid Server is reachable from the internet".

Yet on my servers, it says "local access", and can't login remotely. 

not working is fine, but the biggest issue when I try to go to the server, it automatically goes to hash.unraid.net, and when I'm using vpn, I can't even go to my server even if I'm on local network, and rerouting from IP to hash.unraid.net won't get turned off even if I turn off the remote access.

 

is there anyways to fix this? it's super annoying

Turn off your VPN off network and the page will change to remote access instead of local

Link to comment
2 hours ago, takkkkkkk said:

For some reason I'm having issue with the remote access, I've gone through certification, forwarding my port. and on unraid setting it says "Your Unraid Server is reachable from the internet".

Yet on my servers, it says "local access", and can't login remotely. 

not working is fine, but the biggest issue when I try to go to the server, it automatically goes to hash.unraid.net, and when I'm using vpn, I can't even go to my server even if I'm on local network, and rerouting from IP to hash.unraid.net won't get turned off even if I turn off the remote access.

 

is there anyways to fix this? it's super annoying

I don't fully understand the issue, but here are a few points that should help:

 

* The My Servers Dashboard displays the "Local access" url if your client computer's WAN IP is the same as the server's WAN IP (i.e. if the client is on the same network as the server.) That will change to the "Remote Access" url when your client is on a different network (i.e. your laptop is in a coffee shop and your server is at home)

 

* Enabling Local SSL access is a requirement for our Remote Access solution. This means that your local url changes from http://ipaddress to https://yourpersonalhash.unraid.net . This uses a fully valid certificate and an official DNS record so it should work fine over VPN.  If you want to disable Local SSL access for some reason go to Settings -> Management Access and set "Use SSL/TLS" to "no"

Link to comment
18 hours ago, ljm42 said:

I don't fully understand the issue, but here are a few points that should help:

 

* The My Servers Dashboard displays the "Local access" url if your client computer's WAN IP is the same as the server's WAN IP (i.e. if the client is on the same network as the server.) That will change to the "Remote Access" url when your client is on a different network (i.e. your laptop is in a coffee shop and your server is at home)

 

* Enabling Local SSL access is a requirement for our Remote Access solution. This means that your local url changes from http://ipaddress to https://yourpersonalhash.unraid.net . This uses a fully valid certificate and an official DNS record so it should work fine over VPN.  If you want to disable Local SSL access for some reason go to Settings -> Management Access and set "Use SSL/TLS" to "no"

 

I'm also not sure what the issue is, but when I use the browser VPN plugin, it tries to connect to https://personalhash.unraid.net even if I'm on the same physical network, and returns an error saying ERR_TUNNEL_CONNECTION_FAILED.

it works fine when I'm using non-browser VPN though. 

 

Link to comment
2 hours ago, takkkkkkk said:

I'm also not sure what the issue is, but when I use the browser VPN plugin, it tries to connect to https://personalhash.unraid.net even if I'm on the same physical network, and returns an error saying ERR_TUNNEL_CONNECTION_FAILED.

it works fine when I'm using non-browser VPN though. 

 

 

When you say "browser VPN plugin", are you referring to the WireGuard plugin for Unraid? 

Regarding "I'm on the same physical network"... you need to be on a different network in order to make a WireGuard connection. See the WireGuard Quickstart thread for more details: https://forums.unraid.net/topic/84226-wireguard-quickstart/ 

Note that the Local Access / Remote Access logic used on the My Servers Dashboard can get confused when you are connected via VPN. The logic is based on your WAN IP but with a VPN connection up you can use the Local Access url even though your WAN IP is different. The My Servers Dashboard has no way to detect that you are using a VPN connection, so in this case your best bet is to go to http://ipaddress and let it redirect you to the proper url

 

Link to comment
On 4/23/2021 at 6:54 PM, ljm42 said:

 

We grab whatever IP address was used to contact our server. If you want to use our Remote Access service you'll need to adjust your network so that outgoing traffic from Unraid uses the Internet connection you want associated with www.yourpersonalhash.unraid.net

Hi,

I have exactly the same issue as @kyis and will try to elaborate a bit further. I live in a area in France where ADSL connections are awfully slow (5Mbps DL / 0.7Mbps UL). So I have a 4G router (in bridge mode) with an external antenna as the main internet connection with very decent speeds (150Mbps DL/45Mbps UP), the ADSL ISP box is only used as a failover. An internal router manages the failover and routing for all internal devices.
The issue is that port forwarding is not available on the 4G connection, as often. The workaround I've found is to have a Wireguard tunnel over the 4G connection with a VPN provider which accepts port forwarding on a limited number of ports. That works great and I can have access to my LAN from outside without any problem, except for the Remote Access by Unraid.


I understand you get the IP used to contact your mothership server, in may case the public 4G address, which is not accessible from outside. Of course I could, as you suggest, implement policy-based-routing rules to force route the outgoing traffic from my Unraid server :

- through the ADSL connection, but then the speeds would be awful, and the remote access would be practically unusable, although available

- through the Wireguard tunnel, but then I would route all the traffic of the Unraid server through the VPN provider, and most of it (e.g. docker and plugin updates) doesn't really "deserve" it.

 

The best solution, imho, would be to have a setting in the plugin to indicate a fully qualified name (or a fixed public IP) for the remote access entry point, in specific cases like @kyis or me. Otherwise, the workaround would be to get a detailed view on the exchanges between the Unraid server and your server(s) so that I can try and implement a reasonable routing policy, limiting the use of the WG tunnel to the communication between the plugin and your server(s).

 

Thanks in advance for your attention.

Edited by Gnomuz
typo
Link to comment
On 4/26/2021 at 1:55 PM, ljm42 said:

 

When you say "browser VPN plugin", are you referring to the WireGuard plugin for Unraid? 

Regarding "I'm on the same physical network"... you need to be on a different network in order to make a WireGuard connection. See the WireGuard Quickstart thread for more details: https://forums.unraid.net/topic/84226-wireguard-quickstart/ 

Note that the Local Access / Remote Access logic used on the My Servers Dashboard can get confused when you are connected via VPN. The logic is based on your WAN IP but with a VPN connection up you can use the Local Access url even though your WAN IP is different. The My Servers Dashboard has no way to detect that you are using a VPN connection, so in this case your best bet is to go to http://ipaddress and let it redirect you to the proper url

 

When I said browser VPN plug-in, I meant PIA Chrome plugin that I have. I often user that browser VPN plugin. when I have that enabled, I cannot access unraid whetner I try the local IP or hash.unraid.net

Link to comment
29 minutes ago, takkkkkkk said:

When I said browser VPN plug-in, I meant PIA Chrome plugin that I have. I often user that browser VPN plugin. when I have that enabled, I cannot access unraid whetner I try the local IP or hash.unraid.net


It sounds like when you make the VPN connection to PIA they block access to your local network. That means neither the local IP nor hash.unraid.net will work.  Perhaps PIA has some settings you can adjust? I can't really help with that.

If you setup Remote Access, the www.hash.unraid.net url will likely work.

Link to comment
6 minutes ago, ljm42 said:


It sounds like when you make the VPN connection to PIA they block access to your local network. That means neither the local IP nor hash.unraid.net will work.  Perhaps PIA has some settings you can adjust? I can't really help with that.

If you setup Remote Access, the www.hash.unraid.net url will likely work.

what's interesting is that I can access all dockers fine even if I have PIA turned on, so I'm not sure if it's blocking accessing to my local network.

when I try to go to my unraid server, it attempts to open hash.unraid.net (even if I type the IP address), returns an error ERR_TUNNEL_CONNECTION_FAILED...

Link to comment
Guest
This topic is now closed to further replies.