Remote HTTPS server login failed

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
fabry91
Posts: 67
Joined: Sunday 09 December 2018 16:52
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Italy
Contact:

Remote HTTPS server login failed

Post by fabry91 »

Hello everyone,

I have problems login from Domoticz Mobile App (Android).

I have created a new user (Domoticz v2022.2 (build 14713), checked the Website Protection and is set to "Login Page", we have a ddns that generate a url, with a HTTPS port configured to our IP.

With the admin user no problem at all, with the new users no luck, always messagess in the log events:

Code: Select all

2023-08-07 21:48:31.087 Error: Failed login attempt from 37.xxx.xxx.xx for user 'elia' !
If I try to connect local with the new user created no problem at all.

Where can be the problem? Someone is having this problem with this version?

Thank you in advanced
User avatar
waltervl
Posts: 5714
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Remote HTTPS server login failed

Post by waltervl »

Did you check wiki page https://www.domoticz.com/wiki/WebServer_Proxy

It would help others if you explain how you setup remote access. I am no expert on this at all so this is all I got ;)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
fabry91
Posts: 67
Joined: Sunday 09 December 2018 16:52
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Italy
Contact:

Re: Remote HTTPS server login failed

Post by fabry91 »

Hello Walter and thank you first for your reply.

So the remote setup is configured like this:

- Syonology nas create the external DDNS
- HTTPS port of Domoticz is forwarded through my router
- Domoticz server is configured to the Domoticz mobile app with the ddns address and https port

Login is okay with the admin account, but any users we create the result is the same, error with the login.
User avatar
waltervl
Posts: 5714
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Remote HTTPS server login failed

Post by waltervl »

What I remember of other discussion about remote access is that "X-Forwarded-For" or "X-Real-IP" values should be configured correctly on your proxy.
Check the wiki page again.
See also this topic: viewtopic.php?t=36378
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
fabry91
Posts: 67
Joined: Sunday 09 December 2018 16:52
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Italy
Contact:

Re: Remote HTTPS server login failed

Post by fabry91 »

We never needed to have a reverse proxy to get it works, only a DDNS that forward the internal lan IP of Domoticz to an external address like it is right now with the Synology ddns service (see screenshot).

So maybe something is changed about the security level of the new users created?

UPDATE: If we setup a simple password for the new users, like "test" we are able to login and have access to Domoticz, I can't understand where is the problem :oops:
Attachments
Untitled.jpg
Untitled.jpg (59.92 KiB) Viewed 1524 times
User avatar
waltervl
Posts: 5714
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Remote HTTPS server login failed

Post by waltervl »

OK, you are using an old version were al the new security settings are not in place.
You say you have issues with the App with user login.
What happens if you directly login from the browser (in private/incognito mode) from the same Android device?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
fabry91
Posts: 67
Joined: Sunday 09 December 2018 16:52
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Italy
Contact:

Re: Remote HTTPS server login failed

Post by fabry91 »

It happens the same problem, incorrect username/password, but if I set a simple password for the user like "test" it works and have access to Domoticz :shock:
User avatar
waltervl
Posts: 5714
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Remote HTTPS server login failed

Post by waltervl »

That looks to be a URL Encode issue.
Or a long password without special characters is also not working?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
fabry91
Posts: 67
Joined: Sunday 09 December 2018 16:52
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Italy
Contact:

Re: Remote HTTPS server login failed

Post by fabry91 »

Nope, it appears to work only with "test" password :o
Or it works with users already registered from the past
User avatar
fabry91
Posts: 67
Joined: Sunday 09 December 2018 16:52
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Italy
Contact:

Re: Remote HTTPS server login failed

Post by fabry91 »

Found the problem and the solution.

The only one way to get logged in with a new created user is to stop and restart the Docker container of Domoticz running on my Synology, maybe there is some problem with the Domoticz database that is not saving inside the docker information.
stevediaz
Posts: 3
Joined: Wednesday 10 January 2024 9:11
Target OS: -
Domoticz version:
Location: US
Contact:

Re: Remote HTTPS server login failed

Post by stevediaz »

Experiencing login issues with new users on the Domoticz Mobile App (Android). Ensure correct user permissions, check HTTPS configuration on DDNS, update Domoticz to the latest version, verify firewall settings, review IP whitelisting, confirm Mobile App is updated, check DDNS settings, and contact Domoticz support if issues persist.memberlist.php?mode=teamclick here

thank you
wvries
Posts: 31
Joined: Sunday 05 March 2017 11:49
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Lo Santiago, Murcia, Spain
Contact:

Re: Remote HTTPS server login failed

Post by wvries »

fabry91 wrote: Tuesday 08 August 2023 16:36 Found the problem and the solution.

The only one way to get logged in with a new created user is to stop and restart the Docker container of Domoticz running on my Synology, maybe there is some problem with the Domoticz database that is not saving inside the docker information.
Have the same problems (with controlicz and geofence app on phone.)
when creating a new user in the Domoticz User section, no remote access possible (works with a current login password earlier created in Dz).
After restart of the container, new user login and password also works.
Running Dz in Docker on a RPi5 with Ubuntu 23.10.
User avatar
fabry91
Posts: 67
Joined: Sunday 09 December 2018 16:52
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Italy
Contact:

Re: Remote HTTPS server login failed

Post by fabry91 »

wvries wrote: Tuesday 12 March 2024 16:30
fabry91 wrote: Tuesday 08 August 2023 16:36 Found the problem and the solution.

The only one way to get logged in with a new created user is to stop and restart the Docker container of Domoticz running on my Synology, maybe there is some problem with the Domoticz database that is not saving inside the docker information.
Have the same problems (with controlicz and geofence app on phone.)
when creating a new user in the Domoticz User section, no remote access possible (works with a current login password earlier created in Dz).
After restart of the container, new user login and password also works.
Running Dz in Docker on a RPi5 with Ubuntu 23.10.
Exactly, right now it seems to be the only one solution to get it work back on
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest