Any idea what is going on? Frequently updating to the latest snapshot - like today from xx80 to xx82 (the latest). But after upgrading i cannot open my classic UI and PaperUI, Habmin works…
I see the following message in the browser:
HTTP ERROR 404
Problem accessing /login. Reason:
Not Found
It’s due to the authentication features that only got partially integrated. See also:
I hope it’s fixed when @Kai triggers a new build. With the authentication features in place it’ll prompt for credentials which are the same as you use on the Karaf console.
You’re right - by default if authentication failure is not handled - there is redirect to /login which is left empty. Once you have esh-io-transport-http-basic there is a basic challenge sent which covers “authentication failure”.
Got the new build and the prompt for credentials but it doesn’t accept my Karaf console user name / password combo. The only thing in the log is:
2018-10-09 23:31:48.310 [INFO ] [home.core.auth.AuthenticationManager] - Failed to authenticate using credentials openhab:*******
Any other ideas?
Thanks!
EDIT: I seem to be locked out of everything now. I can’t control any of my devices via Alexa, the openhab app or myopenhab.org. They are all asking for authentication. Well Alexa isn’t she just says "Hmm, item name is not responding.
we need a kill switch for the auth. I tried multiple options in runtime.cfg but they didn’t work (org.eclipse.smarthome.core.auth:authentication.enabled=false etc)
set these new features to disabled by default and then allow us to enable them
yes please. via switch and disabled by default. after OH2 had no authentication for some time now i switched to VPN and will not go back to basic authentication anymore. thanks
Same here with #1386. Although that latest build is supposed to disable authentication by default, it does not.
And yes, we need this to get enabled/disabled based on some runtime config option and not by default.
And to issue a warning and point to Karaf auth docs would have been nice.
I’ve been using SSH authentication in Karaf. Now that’s difficult to enter in a basic auth window in a browser so I’m locked out, too.
Same problem here, I’m running the #1386 snapshot and the login window continues popping up, but I don’t know which is the correct username/password combination. “openhab:habopen” doesn’t seem to work
Many thanks for all your work and efforts and best regards,
Yes same on my system with #1386. Short idea, is there a file that stores the credentials. If so it is maybe a solution to creat such a file with some standard credentials and offer it for download-
I had the same issue. After several tries I also installed the openhab2-addons package along with the downgraded version (make sure you use the version of the same day of your downgrade version) and then the addons and UIs loaded just fine.
Thanks for the tip, that makes absolute sense. I did the downgrade but this time I chose #1383 it brought back my UI’s but they still suffer from that 404 can’t find /login error. However, I can access them from myopenhab for now so at least I have a running system. Here’s what I did:
apt-get update (to make sure I had all the builds available)
apt-get install openhab2=2.4.0~20181010032256-1
apt-get install openhab2-addons=2.4.0~20181010032256-1
systemctl stop openhab2
openhab-cli clean-cache
systemctl start openhab2
This at least gives me a working installation albeit I cannot access the basicUI.