Kopano-search nightly build 05-09-2019 fails to start
-
hi all,
Kopano-search fails to start on the latest build on Debian Buster. see error below:
kopano-search.service - Kopa no Groupware Core Search Daemon Loaded: loaded (/lib/systemd/system/kopano-search.service; enabled; vendor preset: enabled) Active: failed (Result: exi t-code) since Thu 2019-09-05 16:09:35 CEST; 30s ago Docs: man:kopano-search(8) man:kopano-search.cfg(5) Process: 83 ExecStart=/usr/sbin/kopano-search -F (code=exited, status=1/ FAILURE) Main PID: 83 (code=exited, status=1/FAILURE) Sep 05 16:09:35 mail.ckruijntjens.nl kopano-search[83]: from . import table as table Sep 05 16:09:35 mail.ckruijntjens.nl kopano-search[83]: File “/usr/lib/python3/dist-packages/kopano/table.py”, line 25, in <module> Sep 05 16:09:35 mail.ckruijntjens.nl kopano-search[83]: from . import property as prop Sep 05 16:09:35 mail.ckruijntjens.nl kopano-search[83]: File "/usr/lib/python3/dist-packages/kopano/property.py", line 48, in <module> Sep 05 16:09:35 mail.ckruijntjens.nl kopano-search[83]: from . import timezone as _timezone Sep 05 16:09:35 mail.ckruijntjens.nl kopano-search[83]: File “/usr/lib/python3/dist-packages/kopano/timezone.py”, line 24, in <module> Sep 05 16:09:35 mail.ckruijntjens.nl kopano-search[83]: import tzlocal Sep 05 16:09:35 mail.ckruijntjens.nl kopano-search[83]: ModuleNotFoundError: No module named ‘tzlocal’ Sep 05 16:09:35 mail.ckruijntjens.nl systemd[1]: kopano-se arch.service: Main process exited, code=exited, status=1/FAILURE Sep 05 16:09:35 mail.ckruijntjens.nl systemd[1]: kopano-se arch.service: Failed with result ‘exit-code’.
-
Hai,
The fix is very simple,
apt install python3-tzlocal
@fbartels This is a missing dependecy for package kopano-search in buster.
And most probely other distro’s.@ckruijntjens How i know this. in the last 15 min i upgrade my kopano and had the same problem.
This might help you in the future.
From you output above :/usr/lib/python3/dist-packages/kopano/property.py
So its python3 related.
File “/usr/lib/python3/dist-packages/kopano/timezone.py”, line 24, in <module>
its a python3 modules for kopano its modules calledtimezone.py
Later on you see :kopano-search[83]: import tzlocal
So your looking for a python module called : tzlocal
and then you do an :
apt-cache search python3 |grep timezone
orapt-cache search python3 |grep tzlocal
results in 3 options with the first search to install. i choose the close one to what the error it telling. ( tzlocal )
python3-django-timezone-field - database and form fields for pytz objects (Python3 version)
python3-tz - Python3 version of the Olson timezone database
python3-tzlocal - tzinfo object for the local timezone (Python 3 version)And only one in the last search.
Now, this is not always that easy, then i suggest, go here : https://packages.debian.org/
And use the different search options to find the missing module.Greetz,
-
yes you are right. Problem is resolved thank you.
-
apt install python3-tzlocal
solved this for me, thank you ckruijntjens!