[solved] Suse Leap 15 install of 1.30.4 not (yet) successful: DBI connect failed

Forum for questions and support relating to the 1.30.x releases only.
Locked
carverknut
Posts: 20
Joined: Sun Jan 15, 2017 9:16 am

[solved] Suse Leap 15 install of 1.30.4 not (yet) successful: DBI connect failed

Post by carverknut »

Hello,
I have setup a brand new machine with Suse Leap 15 and intend to run Zoneminder on it.

So I ran the instructions given here:
https://wiki.zoneminder.com/Installing_ ... s_for_SuSE

I installed the repositories and also the python script
python3-zm_database_init - A script for ZoneMinder database initialization and upgrade
as the installation of Zoneminder 1.30 requires this script in versions >2.10 (I installed Zoneminder without the python script being included and installed it separately afterwards). Went successfully.

So I ran all the instructions from the installation for Suse (above link).

All is running (MariaDB and all other parts), but starting up with
systemctl start zm.service

produces the output:
Job for zm.service failed because the control process exited with error code.
See "systemctl status zm.service" and "journalctl -xe" for details.

journalctl -xe reads:
Nov 10 09:24:34 linuxwohnzimmer systemd[1]: Starting ZoneMinder Video Surveillance System...
-- Subject: Unit zm.service has begun start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/l ... temd-devel
--
-- Unit zm.service has begun starting up.
Nov 10 09:24:34 linuxwohnzimmer zmpkg.pl[8021]: DBI connect('database=zm;host=localhost','zm_admin',...) failed: Unknown database 'zm' at /usr/lib/perl5/vendor_perl/5.26.1/ZoneMinder/Config.>
Nov 10 09:24:34 linuxwohnzimmer zmpkg.pl[8021]: Can't connect to db at /usr/lib/perl5/vendor_perl/5.26.1/ZoneMinder/Config.pm line 236.
Nov 10 09:24:34 linuxwohnzimmer zmpkg.pl[8021]: BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.26.1/ZoneMinder/Config.pm line 236.
Nov 10 09:24:34 linuxwohnzimmer zmpkg.pl[8021]: Compilation failed in require at /usr/lib/perl5/vendor_perl/5.26.1/ZoneMinder.pm line 33.
Nov 10 09:24:34 linuxwohnzimmer zmpkg.pl[8021]: BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.26.1/ZoneMinder.pm line 33.
Nov 10 09:24:34 linuxwohnzimmer zmpkg.pl[8021]: Compilation failed in require at /usr/bin/zmpkg.pl line 48.
Nov 10 09:24:34 linuxwohnzimmer zmpkg.pl[8021]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 48.
Nov 10 09:24:34 linuxwohnzimmer systemd[1]: zm.service: Control process exited, code=exited status=255
Nov 10 09:24:34 linuxwohnzimmer systemd[1]: Failed to start ZoneMinder Video Surveillance System.
-- Subject: Unit zm.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/l ... temd-devel
--
-- Unit zm.service has failed.
--
-- The result is failed.
Nov 10 09:24:34 linuxwohnzimmer systemd[1]: zm.service: Unit entered failed state.
Nov 10 09:24:34 linuxwohnzimmer systemd[1]: zm.service: Failed with result 'exit-code'.

So, sorry for the lengthy introduction, but what am I making wrong?

I have read the post
viewtopic.php?f=36&t=27597&p=107491&hil ... ed#p107491

but this one has a different error feedback.

Any help is most welcome!
Best,
Knut
carverknut
Posts: 20
Joined: Sun Jan 15, 2017 9:16 am

Re: [solved] Suse Leap 15 install of 1.30.4 not (yet) successful: DBI connect failed

Post by carverknut »

after trying out step 5 mentioned here:
https://zoneminder.readthedocs.io/en/st ... ight=mysql

it is working :-)

maybe this helps for any other's try to get zm running on Suse Leap 15.

Best,
Knut
Locked