[{"data":1,"prerenderedAt":357},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2022\u002F06\u002F01\u002Freconnecting-a-usg-pro-router-to-the-network-controller\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":341,"date":342,"description":213,"embedImage":341,"extension":343,"image":220,"intro":344,"meta":345,"navigation":346,"path":347,"seo":348,"series":341,"sitemap":349,"stem":350,"tags":351,"__hash__":356},"content\u002F2022\u002F06\u002F01\u002Freconnecting-a-usg-pro-router-to-the-network-controller.md","Reconnecting a USG Pro router to the network controller",{"type":208,"value":209,"toc":339},"minimark",[210,214,221,235,238,241,252,255,258,261,267,270,273,279,282,289,292,298,301,329,332,335],[211,212,213],"p",{},"In the Unifi controller\u002Fnetwork application - the router was showing as \"offline\".",[211,215,216],{},[217,218],"img",{"alt":219,"src":220},"Unifi Network Application - router showing offline","\u002Fimages\u002Fposts\u002F2022\u002F06\u002Funifi.png",[211,222,223,224,234],{},"It was also not available via Ubiquiti's ",[225,226,233],"a",{"href":227,"rel":228,"target":232},"https:\u002F\u002Funifi.ui.com\u002F",[229,230,231],"nofollow","noopener","noreferer","_blank","online proxy"," - so something was not working well.",[211,236,237],{},"However - since it was routing just fine - and the network was in use - was it possible to get things sorted without a restart and loss of connectivity?",[211,239,240],{},"First step was to ssh to the router and run the info command:",[242,243,249],"pre",{"className":244,"code":246,"language":247,"meta":248},[245],"language-text","admin@MainRouter:~$ info\nModel: UniFi-Gateway-4\nVersion: 4.4.55.5377109\nMAC Address: xx:xx:xx:xx:xx:xx\nIP Address: xx.xx.xx.xx\nHostname: MainRouter\nUptime: 30865255 seconds\nStatus: Connected (http:\u002F\u002F192.168.1.x:8080\u002Finform)\n","text","",[250,251,246],"code",{"__ignoreMap":248},[211,253,254],{},"Note that it does have a non-standard inform url set - but this was correct for this installation. Also - the status showed \"Connected\".",[211,256,257],{},"So - first steps were to try to trigger a re-connect via setting the inform url (set-inform ...).",[211,259,260],{},"However - no combination worked - set-inform to the current url - no change. Set to the hostname for that IP - no change. Set to a non-answering and then set back - no change. In all cases it just said:",[242,262,265],{"className":263,"code":264,"language":247,"meta":248},[245],"Adoption request sent to 'http:\u002F\u002FHOSTNAME:8080\u002Finform'.  Use the controller to complete the adopt process.\n",[250,266,264],{"__ignoreMap":248},[211,268,269],{},"So - something was stuck.",[211,271,272],{},"A check of \u002Fvar\u002Flog\u002Fmessages showed a bunch of these:",[242,274,277],{"className":275,"code":276,"language":247,"meta":248},[245],"MainRouter mcad: mcad[PID]: ace_reporter.reporter_fail(): Unknown[11] (http:\u002F\u002FHOSTNAME:8080\u002Finform)\n",[250,278,276],{"__ignoreMap":248},[211,280,281],{},"Most googling suggested that this was solved by a restart - but I still wanted to see if we could fix it without that first.",[211,283,284,285,288],{},"It looks like the process controlling this is mcad. Was it running - ",[250,286,287],{},"ps"," said yes.",[211,290,291],{},"OK - how is it started?",[211,293,294,295],{},"By ",[250,296,297],{},"\u002Fetc\u002Finit.d\u002Funifi-init",[211,299,300],{},"So - a simple restart - first a sudo su just to see if I had permission (logged in as the user configured from the network application as ssh user - so I hoped I did - and it turned out I did) - then a restart:",[242,302,306],{"className":303,"code":304,"language":305,"meta":248,"style":248},"language-shell shiki shiki-themes github-dark","sudo su\n\u002Fetc\u002Finit.d\u002Funifi-init restart\n","shell",[250,307,308,321],{"__ignoreMap":248},[309,310,313,317],"span",{"class":311,"line":312},"line",1,[309,314,316],{"class":315},"svObZ","sudo",[309,318,320],{"class":319},"sU2Wk"," su\n",[309,322,324,326],{"class":311,"line":323},2,[309,325,297],{"class":315},[309,327,328],{"class":319}," restart\n",[211,330,331],{},"Suddenly the controller was showing the router as \"Adopting\", then \"Getting Ready\" and finally \"Online\".",[211,333,334],{},"Success :)",[336,337,338],"style",{},"html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":248,"searchDepth":323,"depth":323,"links":340},[],null,"2022-06-01 08:37 +0200","md","Unifi gateway (USG-Pro-4) was showing as disconnected in the network application\u002Fcontroller - but had a fully functioning inform url. However it was routing correctly - was it possible to fix this without a restart?",{},true,"\u002F2022\u002F06\u002F01\u002Freconnecting-a-usg-pro-router-to-the-network-controller",{"title":206,"description":213},{"loc":347},"2022\u002F06\u002F01\u002Freconnecting-a-usg-pro-router-to-the-network-controller",[352,353,354,355],"unifi","unifi controller","ubiquiti","unifi gateway","Yo3_r5n7enXnl-zkfcDaTiw1w7bf7PwgWkuvtQxicOY",1775293005723]