Page 1 of 1
Remote HTTPS server login failed
Posted: Monday 07 August 2023 21:50
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
Re: Remote HTTPS server login failed
Posted: Tuesday 08 August 2023 9:39
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

Re: Remote HTTPS server login failed
Posted: Tuesday 08 August 2023 10:19
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.
Re: Remote HTTPS server login failed
Posted: Tuesday 08 August 2023 14:15
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
Re: Remote HTTPS server login failed
Posted: Tuesday 08 August 2023 15:35
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

Re: Remote HTTPS server login failed
Posted: Tuesday 08 August 2023 15:59
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?
Re: Remote HTTPS server login failed
Posted: Tuesday 08 August 2023 16:01
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

Re: Remote HTTPS server login failed
Posted: Tuesday 08 August 2023 16:10
by waltervl
That looks to be a URL Encode issue.
Or a long password without special characters is also not working?
Re: Remote HTTPS server login failed
Posted: Tuesday 08 August 2023 16:16
by fabry91
Nope, it appears to work only with "test" password

Or it works with users already registered from the past
Re: Remote HTTPS server login failed
Posted: Tuesday 08 August 2023 16:36
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.
Re: Remote HTTPS server login failed
Posted: Tuesday 23 January 2024 18:19
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
Re: Remote HTTPS server login failed
Posted: Tuesday 12 March 2024 16:30
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.
Re: Remote HTTPS server login failed
Posted: Wednesday 13 March 2024 0:02
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