we had a problem with the running horde container on a domain master twice in the last few weeks. Users were not able to login and after some digging we realized that the machine password is not correctly reflected to /etc/horde/horde/conf.d/10-ucs.php after a machine password change. We have to manually run ucr commit /etc/horde/horde/conf.d/10-ucs.php in this case.
How should the change be triggered usually? Machine password changes seem to work correctly on a second domain backup server.
this is a very interesting case. For machine password changes there are a bunch of scripts in /usr/lib/univention-server/server_password_change.d which take care of executing ucr commit for all known files the machine secret is used in. In my Horde container there is no file in that directory that does so for the file youāve mentioned.
However, it gets even stranger. On my Horde container the content of /etc/machine.secret matches the LDAP password in ā¦/10-ucs.php. So how can that be? Well, looking at the modification timestamps for both files shows that they havenāt been modified since August, which is likely when I first installed the app.
How can that be? Well, the interval between server password changes can be configured via the UCR variable server/password/interval which is set to 21 for me ā meaning the server password should have been changed several times by now.
The server password change is triggered via a cron job. And thatās when I noticed that the cron daemon isnāt running in my Horde container ā no cron jobs were executed at all. In fact, cron isnāt even installed.
So my question to you is ā did you modify your Horde Docker container somehow?
systemctl is-active would be more interesting (enabled = is supposed to be started, active = is actually started). However, I donāt know enough about the inner workings of the UCS Horde app to say how this is all supposed to work (meaning if cron should be installed & running ā my gut feeling says ādefinitely, yesā as things such as log file rotation wouldnāt work without cron).
Can you tell me the version of your Horde app? See univention-app info
Next, please show me the output of the following commands from inside your Horde container:
dpkg -l|grep -i cron
ls /usr/lib/univention-server/server_password_change.d
You should be able to work around the problem by disabling the automatic server password change inside the Horde container:
ucr set server/password/change=false
Note that the variable seems to be undocumented, but it is used in the corresponding script, /usr/lib/univention-server/server_password_change.
Thatās very strange. My appās version is the same as yours, but cron isnāt installed.
I donāt see any script in your server password change directory that could take care of rebuilding the 10-ucs.php file either, meaning I donāt think this will ever work for you. Like I said above you should probably disable the server password change mechanism in the container.
Additionally itād be good to file a bug report for this.
Addendum: Iāve just finished running univention-upgrade on the host running the Horde container. Now I have cron installed in the container, too. Iāll probably start experiencing the same issues you are soon.
Thank you very much for filing the report. I was about to do the same today, but you beat me to it.
And yes, it happens to me now, too. Today /etc/machine.secret was updated whereas /etc/horde/horde/conf.d/10-ucs.php wasnāt. Clearly a bug.
My gut feeling is that this is simply an edge case. During development the cron daemon simply wasnāt running (meaning it wasnāt present in the minimal installation used for the Docker images). Due to certain package dependencies it was sucked in during upgrades, but that only started to happen recently, and therefore the developers never stumbled across this situation.
Itās really easy enough to fix; just include a server password change script that ucr commits 10-ucs.php after a successful change.
Thanks for filing this bug. This problem has been affecting me and now I know why. Iāve been fixing it by going into the horde app settings on the web gui and just saving the settings without making any changes. That must be running the script you mentioned.
Anyway, Iām about ready to ditch horde and just use the calendar and webmail app in next cloud. I am finding horde to be more trouble than itās worth. The only thing I think I would be missing in nextcloud is activesync, but I think that can be installed with zpush. Not sure if itās worth installing it or not though. Iām not sure what would happen with minor updates. Might have to reinstall it or something.
Had this happen again on the latest horde update 5.2.17-3. Went into settings and hit the apply button and users can login again. Anyone else have the issue in the latest version? Maybe I should try uninstalling and reinstalling if itās just me.
Same here. Yesterday updated a customers server to latest UCS release and horde to its last release.
After 0.00 nightly no login possible. The hours before all was running well. Also opened the app-settings in the portal, changed NOTHING and after applying the settings all was running well again!
What job is running ad midnight which can cause this problem?
Please post your experience and information (such as relevant version numbers) in the corresponding bug. Yes, itās marked as closed, but if the supposed fix isnāt working for you, the devs should need to hear about it.
Please do not add additional comments to already closed bugs. If the issue occurs again, use the āClone This Bugā link at the bottom of the bug website.
I donāt have a lot of info on this as I usually find out about it when someone needs it, so I do the quick fix of applying the settings again and move on. If thereās any more information someone has on what I should be looking at to find the source of the problem let me know and Iāll try to collect what info I can the next time it happens.
I believe they have made an update available (5.2.17-4) just in the past couple of days that is supposed to fix it. Not sure if it does yet or not. I just ran it on a customers server. It usually takes 2-3 weeks for someone to have a need to log in via webmail, so if they donāt have any login issues after a few weeks Iāll be pretty confident that itās finally been resolved.