core icon indicating copy to clipboard operation
core copied to clipboard

Loxone webapp does not connect

Open jurajs5 opened this issue 9 months ago • 19 comments

I have issue with loxone web app system is stuck on "retrieving data....".

  • mobile app is OK, there is no issue
  • restart services or server dont change anything - still same issue
Image Image

jurajs5 avatar Feb 24 '26 10:02 jurajs5

Open the Loxone web app in Chrome or Edge. Press F12 to open Developer Tools. Go to the Network tab. Enable Preserve log. Press Ctrl+R to reload the page. Wait until it gets stuck on “retrieving data…”. Export the log as HAR. Share the .har file.

Also helpful: Go to the Console tab. Send a screenshot of the errors (if there are any).

rudyberends avatar Feb 24 '26 10:02 rudyberends

Please note that all music server functions of the Loxone apps only work on the local network, meaning either directly within your home network or via a VPN connection. I just tested it, and the web app works with the current Loxone firmware. You might need an update on your Miniserver. I'm currently showing version 16.2.0.

Holzmusik avatar Feb 24 '26 10:02 Holzmusik

Archive.zip

log

jurajs5 avatar Feb 24 '26 12:02 jurajs5

For me it the opposite problem. On my Mac it works, iPhone and iPad saying "receiving data".

alexknig41 avatar Feb 24 '26 13:02 alexknig41

For me it the opposite problem. On my Mac it works, iPhone and iPad saying "receiving data".

Are you using the Loxone app or a browser?

How are you connecting to the Miniserver — via an internal IP (e.g. http://192.168.x.x) or an external hostname over HTTPS?

My suspicion is mixed content. For example: • Miniserver loaded over https • Audio Server websocket connecting over plain ws

Modern browsers will block this and report mixed content. The Loxone apps are also just web apps (Electron-based) and are generally less strict, which is why behavior can differ between devices.

However, to properly troubleshoot this I need more context. “Receiving data” by itself is not actionable. I know what triggers that state internally, but since this is not a general issue, it must be something very specific in your setup. Please provide: • Exact client used (app + version or browser + version) • How the Miniserver is accessed (full URL format) (v1 or v2 miniserver) • Whether MiniServer is running behind a proxy/reverse proxy • A debug log from connection attempt if possible

Without that, it is not possible to determine the root cause.

rudyberends avatar Feb 24 '26 14:02 rudyberends

Archive.zip

log

This is not the har log, however I can already see mixed content messages. Could you provide the har logs? Also, could you give exact details as in the above request? If you are using a dns name in the browser, could you try with http://internal-ip?

rudyberends avatar Feb 24 '26 14:02 rudyberends

I tried local IP, however loxone server redirects this immediately to external hostname. Any idea how to fix this?

jurajs5 avatar Feb 24 '26 14:02 jurajs5

Using https? You have a v2 miniserver right?

If it works with the original audioserver then we can also make it work with our setup. However, I still need those logs to see what is going on. I know there is some sort of proxy server in there for the connection and we might need to specifically support this. If we cannot get it from the logs, we might need a trace with an original audioserver.

First let's try it with the logs. There should be an export to har. Use the steps as detailed before.

Image

rudyberends avatar Feb 24 '26 14:02 rudyberends

My Loxone app automatically switches between internal and external addresses depending on the network I'm connected to. Locally and via VPN, the app uses the internal address. When I'm connected via mobile data, it uses the external address. The fact that the music module only works to a limited extent from external networks isn't new; this was the case even before Lox-Audioserver.

Holzmusik avatar Feb 24 '26 14:02 Holzmusik

My Loxone app automatically switches between internal and external addresses depending on the network I'm connected to. Locally and via VPN, the app uses the internal address. When I'm connected via mobile data, it uses the external address. The fact that the music module only works to a limited extent from external networks isn't new; this was the case even before Lox-Audioserver.

Not necessarily true. Those Loxone demo setups give you full control over the Audioserver using a remote connection. Loxone does this by letting the miniserver proxy the ws connection to the internal components. (Audioserver/intercom etc) it might not work with lox-audioserver right now. I have never tried. That doesn't mean we can't get it to work.

rudyberends avatar Feb 24 '26 14:02 rudyberends

ye, I am using mini server V2 and original audio server.

log is here

192-168-1-50.504f94a10814.dyndns.loxonecloud.com.har.zip

jurajs5 avatar Feb 24 '26 15:02 jurajs5

I tested the solution on an RPi,

data recovery message in the iPhone app, also via the browser, works on the Windows app

ultra-spark avatar Feb 25 '26 11:02 ultra-spark

I tested the solution on an RPi,

data recovery message in the iPhone app, also via the browser, works on the Windows app

Are the phone apps on the same network? Do you use the same server hostname / ip? You are probably also using a v2 miniserver right?

It's probably related to the other issue, where an external hostname is used to connect to the miniserver. The miniserver (v2) will then try to proxy the connection to the audioserver instead of a direct client connection to the audioserver

rudyberends avatar Feb 26 '26 19:02 rudyberends

@jurajs5 what is the current situation?

If you still have the same problem, please provide this informations:

  1. Loxone Miniserver version: App 17.0.1 (15948) - Public Beta
  2. Network connection log of the browser (see https://github.com/lox-audioserver/lox-audioserver/issues/186#issuecomment-3950748448)
  3. Spam log of the Lox AudioServer

Very likely this is a Loxone config/app bug. I already reported it to the developers.

mr-manuel avatar Apr 28 '26 13:04 mr-manuel

Hello @mr-manuel @rudyberends, same issue here. I get an infinite "retrieving data....". I get this message for all zones in the webbrowser (Chrome) and in the Android App.

Like @jurajs5 described, I am also automatically redirected to the loxone-dns. If I type the local IP-Adress (192.168.10.15) of the miniserver in the browser, I redirects me to https://192-168-10-15.504x94x27xxx.dyndns.loxonecloud.com/. However a ping to 192.168.10.15 in the local network works.

As you asked for more details, this hopefully helps:

  1. My miniserver is running version 17.0.3.31.
  2. Network log of the browser: 192-168-10-15.504f94a27594.dyndns.loxonecloud.com.zip
  3. Spam log from lox-audioserver: lox-audioserver-logs-2026-05-09T12-51-18-303Z.txt

Have a good weekend!

Ja-Ju avatar May 09 '26 12:05 Ja-Ju

Hello @rudyberends,

I took the LoxAPP3.json from here: https://192-168-10-15.504x94x27xxx.dyndns.loxonecloud.com/data/LoxAPP3.json. This is the snipped about the mediaserver:

"mediaServer": {
    "1fd67dbf-0001-7fbe-ffff45ed98a09dd9": {
        "name": "lox-audioserver",
        "type": 2,
        "subType": 0,
        "host": "192.168.10.11:7091",
        "mac": "D83ADDBAF45B",
        "deviceType": "Audioserver",
        "uuidAction": "1fd67dbf-0001-7fbe-ffff45ed98a09dd9",
        "useTriggerCard": true,
        "internal": false,
        "states": {
            "audioEvents": "1fd67dbf-0001-7fb7-ffff7c3aaff329b3",
            "apiVersion": "1fd67dbf-0001-7fb8-ffff7c3aaff329b3",
            "serverState": "1fd67dbf-0001-7fb9-ffff7c3aaff329b3",
            "grouping": "1fd67dbf-0001-7fba-ffff7c3aaff329b3",
            "connState": "1fd67dbf-0001-7fbb-ffff7c3aaff329b3",
            "certificateValid": "1fd67dbf-0001-7fbc-ffff7c3aaff329b3",
            "host": "1fd67dbf-0001-7fbd-ffff7c3aaff329b3"
        }
    }
},

Here the tcpdump: as.zip

Ja-Ju avatar May 09 '26 14:05 Ja-Ju

Your tcpdump nailed it — thanks for that.

The Miniserver's first packet to lox-audioserver is a TLS ClientHello (16 03 01 …). lox-audioserver was only listening plain HTTP, so it answered with HTTP/1.1 400 Bad Request and closed; the Miniserver then sent a TLS Alert and reset the connection. Five identical retries in your capture, explaining the "retrieving data…" hang.

So a v2 Miniserver — at least when the inbound side comes in over the cloud-DNS HTTPS path — proxies upstream over TLS, even on the LAN.

I just landed a fix on the dev branch (commit e355237): port 7091 / 7095 now accept both plain HTTP and TLS on the same port (first-byte demux). On startup the audioserver generates a self-signed certificate under data/loxone/ if it doesn't have one yet. Plain clients keep working unchanged; the v2 Miniserver should now complete its TLS handshake and proxy traffic through.

If you can give the latest dev build a try and report back, that'd be great. You can either checkout the dev branch here, or use the latest prebuilt dev container. (dev-latest)

Two outcomes I expect:

  1. It works — TLS handshake succeeds, web app loads, we close this. A self-signed cert is enough.
  2. Still hanging — the Miniserver does pin or otherwise validate the cert chain. In that case the tcpdump will tell us (you'll see TLS handshake start but get rejected partway, instead of going straight to a TLS alert). Re-run the same tcpdump command and share if so.

Either way we'll know quickly.

rudyberends avatar May 09 '26 14:05 rudyberends

Hello! We are one step further, great! I switched to the dev branch. I previously added YouTube Music as provider, so my playlists and favorites are shown now in the loxone app and also in the web app.

Unfortunately, when I select a track, I get "Playback error: ytmusic stream unavailable". Also if I select a radio station from Paradise Radio, it looks like the playback is started, but the speaker keeps quiet. I connected my Google Home via Sendspin. The bell worked until now like this and is now also quiet. What would you need? I can give it another try tomorrow evening and come back with more logs.

Ja-Ju avatar May 09 '26 20:05 Ja-Ju

Great that it is working. Your tcpdump was very useful.

If you have other issues, please create separate issues, or check if there already is a similar issue reported, so we can work on it there. Create a separate issue for each problem you encounter and supply a full spam log that contains the timeframe you reproduced the error.

Let's keep this one specifically for the "retrieving data...." issue.

@jurajs5, @alexknig41, @ultra-spark : Can you also confirm the issue is resolved?

Code for this fix is available on beta11

rudyberends avatar May 10 '26 06:05 rudyberends