Remote access issue to new Web Server on 2022.2

Posted on
Sat Feb 25, 2023 7:49 pm
TimH offline
Posts: 20
Joined: Mar 06, 2008
Location: Los Gatos, CA

Remote access issue to new Web Server on 2022.2

I can log into the web server (note I override the port to 8081) on the local machine using the LAN IP address and user name and password.
If I do the same from a remote IP, I get an access error and the pages gets stuck "LOADING..."
Is there some config for the new web server to allow remote connections? I don't use reflector.
Indigo Touch works as expected with the same IP address and user/password.

Feb 26, 2023 at 1:35:10 AM
Web Server Warning access denied for request /v2/api/ws/log-feed from 47.152.254.203
Web Server Warning access denied for request /v2/api/ws/action-feed from 47.152.254.203
Web Server Warning access denied for request /v2/api/ws/device-feed from 47.152.254.203
Web Server Warning access denied for request /v2/api/ws/page-feed from 47.152.254.203
Web Server Warning access denied for request /v2/api/ws/variable-feed from 47.152.254.203

Posted on
Sun Feb 26, 2023 2:37 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Remote access issue to new Web Server on 2022.2

Are you using a proxy server to route the traffic to Indigo's web server (for HTTPS access maybe)? If so it needs to be configured to allow websockets.

Image

Posted on
Sun Feb 26, 2023 5:21 pm
TimH offline
Posts: 20
Joined: Mar 06, 2008
Location: Los Gatos, CA

Re: Remote access issue to new Web Server on 2022.2

No, proxy. I am using port forwarding from the public address to the Mac mini Indigo runs on, but it just maps 8081 to 8081 on the server and it's working as it clearly sees the request to refuse it. As I mentioned, I am using 8081 as an override in the web server start up dialog.

Posted on
Sun Feb 26, 2023 6:01 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Remote access issue to new Web Server on 2022.2

Are you prompted for authentication by the browser?

Try restarting the browser, and clearing any cookies related to that IP address. Also try a different browser to see if it is browser specific.

Image

Posted on
Mon Feb 27, 2023 10:06 am
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Re: Remote access issue to new Web Server on 2022.2

Hey Matt

I'm having similar issues with web browsers. I'm using Safari as my main browser, but also have Brave installed as well. I've got a FQDN that points to the IP address at home, and my router has port 8176(changed from default) forwarded to the LAN ip address of my Indigo Server. Prior to this update, everything worked fine, and I could access the Indigo web server by 2 methods:

192.168.6.102:8176 ( this goes to the ip address of my Indigo server, and this method works fine across all browsers)

The other method is mydomainname.com:8176, and this one does NOT work on any browsers. I've emptied the cache, cleared the cookies, but when I try to go to the server, I am asked for user and PW info, fill that out then get to the pic below and it stops. I've even downloaded a new browser, Vivaldi, and have the same issue. I can get to the server on the LAN, just not thru my domain name.

Are more ports needed now for web access? I can PM you my info if you like.
Attachments
Screenshot 2023-02-27 at 9.51.46 AM.png
Screenshot 2023-02-27 at 9.51.46 AM.png (33.38 KiB) Viewed 2458 times

Posted on
Mon Feb 27, 2023 10:23 am
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Remote access issue to new Web Server on 2022.2

Can you open the JavaScript console in Safari and reload the page to see what if any errors you see written to the console log?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Feb 27, 2023 10:34 am
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Re: Remote access issue to new Web Server on 2022.2

So I'm going to paste the whole Java stuff... got no idea what any of it means BUT... I CAN access the server thru the Reflector. Don't know if that helps much, but at the very least, it is a solution I can use. Java log below:
Code: Select all
[Info] 2023-02-27T10:31:57.902Z   INFO   websocket url base: ws://jlthla.com:8176 (index.js, line 62)
[Info] 2023-02-27T10:31:57.934Z   INFO   Opening websocket for indigo.Device instances at: ws://jlthla.com:8176/v2/api/ws/device-feed (index.js, line 62)
[Info] 2023-02-27T10:31:57.935Z   INFO   Opening websocket for indigo.ActionGroup instances at: ws://jlthla.com:8176/v2/api/ws/action-feed (index.js, line 62)
[Info] 2023-02-27T10:31:57.935Z   INFO   Opening websocket for indigo.Variable instances at: ws://jlthla.com:8176/v2/api/ws/variable-feed (index.js, line 62)
[Info] 2023-02-27T10:31:57.935Z   INFO   Opening websocket for indigo.ControlPage instances at: ws://jlthla.com:8176/v2/api/ws/page-feed (index.js, line 62)
[Info] 2023-02-27T10:31:57.936Z   INFO   Opening log websocket at: ws://jlthla.com:8176/v2/api/ws/log-feed (index.js, line 62)
[Info] 2023-02-27T10:31:57.963Z   INFO   'device' websocket opened (index.js, line 62)
[Info] 2023-02-27T10:31:57.982Z   INFO   'action' websocket opened (index.js, line 62)
[Info] 2023-02-27T10:31:57.983Z   INFO   'page' websocket opened (index.js, line 62)
[Info] 2023-02-27T10:31:57.983Z   INFO   'variable' websocket opened (index.js, line 62)
[Error] WebSocket connection to 'ws://jlthla.com:8176/v2/api/ws/device-feed' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 100 - Protocol error)
[Error] 2023-02-27T10:31:57.991Z   ERROR   'device' websocket error:
   Ce (index.js:62:124771)
   Yl (index.js:67:14093)
   Yl
[Error] 2023-02-27T10:31:57.991Z   ERROR   {"isTrusted":true}
   Ce (index.js:62:124771)
   Yl (index.js:67:14146)
   Yl
[Warning] 2023-02-27T10:31:57.991Z   WARNING   'device' websocket closed (index.js, line 62)
[Error] WebSocket connection to 'ws://jlthla.com:8176/v2/api/ws/variable-feed' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 100 - Protocol error)
[Error] 2023-02-27T10:31:58.003Z   ERROR   'variable' websocket error:
   Ce (index.js:62:124771)
   Yl (index.js:67:14093)
   Yl
[Error] 2023-02-27T10:31:58.003Z   ERROR   {"isTrusted":true}
   Ce (index.js:62:124771)
   Yl (index.js:67:14146)
   Yl
[Warning] 2023-02-27T10:31:58.003Z   WARNING   'variable' websocket closed (index.js, line 62)
[Error] WebSocket connection to 'ws://jlthla.com:8176/v2/api/ws/log-feed' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 100 - Protocol error)
[Error] 2023-02-27T10:31:58.026Z   ERROR   2023-02-27T10:31:58.026Z   WEBSOCKET error:
   Ce (index.js:62:124771)
   (anonymous function) (index.js:141:14331)
[Error] 2023-02-27T10:31:58.026Z   ERROR   {"isTrusted":true}
   Ce (index.js:62:124771)
   (anonymous function) (index.js:141:14367)
[Info] 2023-02-27T10:31:58.026Z   INFO   2023-02-27T10:31:58.026Z   WEBSOCKET closed (index.js, line 62)
[Error] WebSocket connection to 'ws://jlthla.com:8176/v2/api/ws/page-feed' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 100 - Protocol error)
[Error] 2023-02-27T10:31:58.057Z   ERROR   'page' websocket error:
   Ce (index.js:62:124771)
   Yl (index.js:67:14093)
   Yl
[Error] 2023-02-27T10:31:58.057Z   ERROR   {"isTrusted":true}
   Ce (index.js:62:124771)
   Yl (index.js:67:14146)
   Yl
[Warning] 2023-02-27T10:31:58.057Z   WARNING   'page' websocket closed (index.js, line 62)
[Error] WebSocket connection to 'ws://jlthla.com:8176/v2/api/ws/action-feed' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 100 - Protocol error)
[Error] 2023-02-27T10:31:58.091Z   ERROR   'action' websocket error:
   Ce (index.js:62:124771)
   Yl (index.js:67:14093)
   Yl
[Error] 2023-02-27T10:31:58.091Z   ERROR   {"isTrusted":true}
   Ce (index.js:62:124771)
   Yl (index.js:67:14146)
   Yl
[Warning] 2023-02-27T10:31:58.091Z   WARNING   'action' websocket closed (index.js, line 62)

Posted on
Mon Feb 27, 2023 11:06 am
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Remote access issue to new Web Server on 2022.2

Can you turn on Indigo's web server debug logging checkbox (inside main Prefs dialog, General panel), and try the connection again? Copy/paste the Event Log window results so we can see what the server side is doing.

Image

Posted on
Mon Feb 27, 2023 11:25 am
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Re: Remote access issue to new Web Server on 2022.2

Matt

Here you go.

there are a whole bunch of "authenticate password -- access denied" lines of code as soon as I hit enter in the browsers before I 'm asked for credentials... but I suspect you are more interested in the api lines of code:

Code: Select all
 Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /index.html from 209.205.130.31 (user indigo)
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /web/js/index.js from 209.205.130.31 (user indigo)
   Web Server Debug                authenticate password failed to match"
   Web Server Warning              access denied for request /web/css/index.css from 209.205.130.31 (user indigo)
   Web Server Warning              access denied for request /v2/api/ws/device-feed from 209.205.130.31
   Web Server Warning              access denied for request /v2/api/ws/action-feed from 209.205.130.31
   Web Server Warning              access denied for request /v2/api/ws/variable-feed from 209.205.130.31
   Web Server Warning              access denied for request /v2/api/ws/page-feed from 209.205.130.31
   Web Server Warning              access denied for request /v2/api/ws/log-feed from 209.205.130.31
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Airfoil Pro Warning             Trying to restart airfoil device 'AF-K-100 Kitchen Airfoil Music' - will continue to try silently
   Airfoil Pro Warning             Trying to restart airfoil device 'AF-S-200 Studio Airfoil Music' - will continue to try silently
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'

Posted on
Mon Feb 27, 2023 11:29 am
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Remote access issue to new Web Server on 2022.2

Can you try it again in an incognito/private browsing window so that it doesn't use saved credentials or cookies?

Image

Posted on
Mon Feb 27, 2023 11:40 am
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Re: Remote access issue to new Web Server on 2022.2

Ok so I went to a Private Window in Safari, go to my URL, asked for username and PW, but still get the same set of error messages in the web log, and end up with the "Loading" page.

Also changed the port in Indigo, to force entering credentials again, but still have the same results. Log in seems successful, but I end up at the "Loading" page...

And Reflector access continues to work as designed.


Code: Select all
  Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Warning              access denied for request /v2/api/ws/device-feed from 209.205.130.31
   Web Server Warning              access denied for request /v2/api/ws/action-feed from 209.205.130.31
   Web Server Warning              access denied for request /v2/api/ws/variable-feed from 209.205.130.31
   Web Server Warning              access denied for request /v2/api/ws/page-feed from 209.205.130.31
   Web Server Warning              access denied for request /v2/api/ws/log-feed from 209.205.130.31
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'
   Web Server Debug                Queue 'patch' message for a 'indigo.Device'

Posted on
Mon Feb 27, 2023 4:38 pm
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Re: Remote access issue to new Web Server on 2022.2

and not sure if this helps or not, but I use Locative for GPS enter/exiting triggers. They use the Reflector, not my personal URL, and they are not workin now either.

Posted on
Mon Feb 27, 2023 7:22 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Remote access issue to new Web Server on 2022.2

jltnol wrote:
and not sure if this helps or not, but I use Locative for GPS enter/exiting triggers. They use the Reflector, not my personal URL, and they are not workin now either.

I think that is an unrelated issue. If it is using the old RESTful API, then it needs to be updated to the new API. See the blog announcement (about mid-way down) for a discussion and some links that might help.

Image

Posted on
Tue Feb 28, 2023 3:22 pm
TimH offline
Posts: 20
Joined: Mar 06, 2008
Location: Los Gatos, CA

Re: Remote access issue to new Web Server on 2022.2

Matt, please also note that you potentially are logging a lot of data (with Debug not enabled) in /Library/Application Support/Perceptive Automation/Indigo 2022.2/Logs/indigoplugin.webserver/plugin.log. Every time a variable changes you are logging the before and after values. If someone has a really big variable they are using and it changes frequently, it will fill their disk pretty quickly. Yes, I had a daily temperature list that that was missing code to reset it each day - impressive that Indigo can handle a 15MB variable ;-)

Posted on
Wed Apr 19, 2023 2:04 pm
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Re: Remote access issue to new Web Server on 2022.2

So FYI, this issue still persists.

I still can't access the Indigo Web Pages using

http://mydomain.com:8177

But can using

http://myreflector.indigodomo.net

As I recall, this stopped working with the 2022.1 update and continues into the 2022.2 update. Kind of an easy work-around but am still curious why this doesn't work, anymore. The domain points to my home IP address and port 8177 is forwarded to the Indigo Server on my LAN on my router. Is it possible the web server has been moved to a different port?

Who is online

Users browsing this forum: No registered users and 2 guests