Cannot "Connect to Mothership" after cert upgrade....


Recommended Posts

I just upgraded my cert as requested by "Fix Common Problems". Seems to have gone well. But now I cannot seem to connect using the "My Server" plugin. I attach a few command line actions and my settings Zip. My router does not have DNS Rebinding enabled.

 

[email protected]:~# unraid-api restart
Stopping 1 unraid-api process(es)...
Process(es) stopped!
Starting [email protected]
[email protected]:~# ls -al /boot/config/plugins/dynamix.my.servers/
total 34864
drwx------  4 root root     8192 Nov 29 15:42 .
drwx------ 45 root root     8192 Dec 22 09:23 ..
-rw-------  1 root root        9 Nov 29 15:42 .gitignore
drwx------  2 root root     8192 Sep 19  2021 data
-rw-------  1 root root    38364 Nov 29 16:12 dynamix.unraid.net.txz
-rw-------  1 root root       17 Dec 22 09:23 env
-rw-------  1 root root      584 Dec 22 09:35 myservers.cfg
-rw-------  1 root root 35596649 Nov 29 16:12 unraid-api.tgz
drwx------  2 root root     8192 Dec 22 09:23 webComps
[email protected]:~# unraid-api report -v

<-----UNRAID-API-REPORT----->
SERVER_NAME: Zack-unRAID
ENVIRONMENT: production
UNRAID_VERSION: 6.11.5
UNRAID_API_VERSION: 2.54.0
UNRAID_API_STATUS: running
API_KEY: valid
MY_SERVERS: authenticated
MY_SERVERS_USERNAME: TexasDave
CLOUD: 
        STATUS: [ok] 
        IP: [52.40.54.163] 
RELAY: 
        STATUS: [connected]  
MINI-GRAPH: 
        STATUS: [connected]
SERVERS:
        ONLINE: Zack-unRAID[owner="TexasDave"]
        OFFLINE: 
ALLOWED_ORIGINS: http://localhost, http://IPV4ADDRESS, https://IPV4ADDRESS, http://zack-unraid, https://zack-unraid, http://zack-unraid.local, https://zack-unraid.local, https://IPV4ADDRESS.HASH.myunraid.net
NCHAN_MODE: nchan
</----UNRAID-API-REPORT----->

 

zack-unraid-diagnostics-20221222-1000.zip

Edited by TexasDave
Link to comment
  • TexasDave changed the title to Cannot "Connect to Mothership" after cert upgrade....

Getting the same exact thing after update. I tried re-starting api, signing out and in again. Reboots, no dice.

 


<-----UNRAID-API-REPORT----->
SERVER_NAME: ZEUS
ENVIRONMENT: production
UNRAID_VERSION: 6.11.5
UNRAID_API_VERSION: 2.54.0
UNRAID_API_STATUS: running
API_KEY: valid
MY_SERVERS: authenticated
MY_SERVERS_USERNAME: ***
CLOUD:
        STATUS: [ok]
        IP: [5**.***.***]
RELAY:
        STATUS: [disconnected]
        ERROR: [API disconnected itself]
MINI-GRAPH:
        STATUS: [disconnected]
SERVERS:
        ONLINE:
        OFFLINE: ZEUS[owner="***"]
ALLOWED_ORIGINS: http://localhost, http://IPV4ADDRESS, https://IPV4ADDRESS, http://zeus, https://zeus, http://zeus.local, https://zeus.local, https://IPV4ADDRES                      S.HASH.myunraid.net
NCHAN_MODE: nchan
</----UNRAID-API-REPORT----->
root@ZEUS:/mnt/user/Backups/URBackup#

 

Edited by dja
Link to comment

@dja, have you tried signing out from the My Servers plugin itself and not from the main Unraid menu?

 

image.thumb.png.04d8b7e7d0c02c8c0dcbcf516550e9e1.png

 

Also, are you allowing Remote Access? If so, have you clicked "Check" to confirm that it says My Servers is reachable from the internet? And (not that it should be a requirement), have you tried uninstalling and reinstalling the My Servers plugin? Mine is working, so it doesn't appear to be down across the board.

Link to comment
11 hours ago, IFireflyl said:

@dja, have you tried signing out from the My Servers plugin itself and not from the main Unraid menu?

 

image.thumb.png.04d8b7e7d0c02c8c0dcbcf516550e9e1.png

 

Also, are you allowing Remote Access? If so, have you clicked "Check" to confirm that it says My Servers is reachable from the internet? And (not that it should be a requirement), have you tried uninstalling and reinstalling the My Servers plugin? Mine is working, so it doesn't appear to be down across the board.

I had tried all of those except to remove the plugin. I just tried that with the same result.  The web app does eventually show 'online' but it seems to drop every so often and then come back.  I am using a non standard (443) WAN port, perhaps that has something to do with it.  (pfSense)

 

Edited by dja
Link to comment
20 minutes ago, dja said:

I had tried all of those except to remove the plugin. I just tried that with the same result.  The web app does eventually show 'online' but it seems to drop every so often and then come back.  I am using a non standard (443) WAN port, perhaps that has something to do with it.  (pfSense)

 

 

In my previous image you can see a remark that says to port forward whatever you set your WAN port to to IPV4ADD:PORT. For example, mine told me to forward it to port 192.168.XXX.XXX:5443. Did you do that on your router? This is what my port forwarding looks like on my router (although your router settings may be different):

 

image.thumb.png.ea0ae63f2313283f73ec95656acbdbae.png

 

The first circled section (the External Port) was my WAN Port in my previous screenshot, and the second circled section (the Internal Port) is the port that the remark in the previous screenshot told me to forward it to. Once you have done this (if you haven't already), try hitting the Check button from my original screenshot to see if you get this pop-up message:

 

image.thumb.png.a556764fbe1770bf60fe9d197390715d.png

Link to comment
2 minutes ago, IFireflyl said:

 

In my previous image you can see a remark that says to port forward whatever you set your WAN port to to IPV4ADD:PORT. For example, mine told me to forward it to port 192.168.XXX.XXX:5443. Did you do that on your router? This is what my port forwarding looks like on my router (although your router settings may be different):

 

 

 

The first circled section (the External Port) was my WAN Port in my previous screenshot, and the second circled section (the Internal Port) is the port that the remark in the previous screenshot told me to forward it to. Once you have done this (if you haven't already), try hitting the Check button from my original screenshot to see if you get this pop-up message:

 

 

Yes, I have done that and it is reachable according to the GUI.

Link to comment

@dja, have you tried going into Settings>Management Access, and from there renewing the certificate, or deleting it entirely to start over with a new certificate?

 

EDIT: And have you tried adding unraid.net to the Domain Override section of pfSense?

Edited by IFireflyl
Follow-up question.
Link to comment
1 hour ago, IFireflyl said:

@dja, have you tried going into Settings>Management Access, and from there renewing the certificate, or deleting it entirely to start over with a new certificate?

 

EDIT: And have you tried adding unraid.net to the Domain Override section of pfSense?

I have 'DNS rebind' disabled completely in pfSense.  I just added the brand new cert maybe a week ago. I guess I can remove it and re-add, but this seems a bit overboard. If I am having this much trouble and it WAS working previously, something must be off/broken outside of my config. 

Edited by dja
Link to comment

Sorry for the trouble. Are you sure the new certificate is working properly? Try restarting your browser or using a different browser and see if there are warnings you have to accept.

 

If the certificate is working properly I wouldn't expect the URL change to cause issues with the Unraid API, particularly after you've restarted it. That implies the issue is not related to the certificate change. We are working on some pretty big internal changes for the API that will hopefully resolve this for folks.

  • Like 1
Link to comment
On 12/29/2022 at 2:50 AM, nametaken_thisonetoo said:

I am also having the same issues. Successuly followed the Settings → Management Access →  Upgrade Cert process in your documentation and am now no longer connected to the mothership. Occasionally on the MyServers page at Unraid.net the connection momentarily shows as connected, but is otherwise as pictured below.

 

Exactly what I am seeing after doing the same upgrade.

I have rebooted, removed the plugin, signed out/in. I checked Edge, FireFox, Chrome and Brave and all are behaving the same.  Connects every so often than it dies.

 

I followed the directions to add the new cert. (I think!?) I seem to have two listed, maybe that is related? I don't know how to remove either of them to start over. The delete option is greyed out.

image.thumb.png.ff115474b3784512eb32d0d9679fcd9b.png

 

Thanks @ljm42 for the heads up.  I'll consider this 'on hold' I guess :) Not a show stopper by any means.

Edited by dja
Link to comment