No login on http://openhabian:8080/ after upgrade to OH4

I upgraded to OH4 and it looked successful at the first glance. openhabian:8080 opened and showed my sensors.

I tried to click on the lower left button to log in as administrator. Nothing happens.

When I log in to the Raspberry there is the message: sed: can’t read /var/lib/openhab2/etc/version.properties: No such file or directory

Indeed this directory does not exist.

Is there anything I need to do to be able to login as administrator on the browser page?

Kind regards,
Günther

From which version did you upgrade ?
I think in your history of openhab you had an openhabian instalation that once was based on openhab2.
So you either upgraded from 2.x to 4.x or the route via 2.x to 3.x and then to 4.x.
The openhabian account you use has a shell script that is being source while you login.
The script still uses code that is base on the openhab 2 instance and thus uses the path openhab2 instead of openhab.
This can be fixed in the scripts in files of that account.

Did you initially create an administrator account ?

Thank you for the quick answer.

The route is from OH2 to OH3 and then to OH4. Yes, I have an administrator account. Which script need to be fixed?

Have a look into the file .bash_profile
I newer versions it has a row:

if openhab2_is_installed; then OHPKG="openhab2"; else OHPKG="openhab"; fi

in code further down it uses $OHPKG like:

OHVERSION="$(sed -n 's/openhab-distro\s*: //p' /var/lib/${OHPKG}/etc/version.properties)"
OHBUILD="$(sed -n 's/build-no\s*: //p' /var/lib/${OHPKG}/etc/version.properties)"
echo -e "\\n$(sed -e 's|$OHVERSION|'"${OHVERSION}"'|g' -e 's|$OHBUILD|'"${OHBUILD}"'|g' -e 's|${HOSTNAME}|'"${HOSTNAME}"'|g' /opt/openhabian/includes/${OHPKG}logo)\\n"

Thank you for this information. The message

sed: can’t read /var/lib/openhab2/etc/version.properties: No such file or directory

does not appear anymore.

The problem still exists that if I open on firefox http://openhabian:8080 the icon on the lower left side (Unlock administration) does not work. Any suggestion what I can do?

Kind regards,
Günther

Use the browsers web developer console to check
a) if by clicking on the lock symbol network traffic is generated
b) if there is any error message shown in the web console

Possibly a problem with Firefox’ cache?
Have you tried CTRL+F5? - or better IP:8080.

Thanks a lot for the support. While working on this issue it dissappeared. Maybe a Firefox update played a role.

It now works fine.

Kind regards,
Günther