Page 1 of 1

zypper up today breaks jansson

PostPosted: Thu Mar 18, 2021 6:48 am
by carpenox
/usr/sbin/asterisk: symbol lookup error: /usr/sbin/asterisk: undefined symbol: json_vsprintf


asterisk can not run after this.....


matt?

Re: zypper up today breaks jansson

PostPosted: Thu Mar 18, 2021 7:15 am
by mflorell
I'm not the VICIbox guy, that's Kumba, but I do know that you should not run "zypper up" every day, you should only run it when you need to perform an upgrade on your server OS, and even then only during scheduled maintenance periods(like over the weekend) where you have the time to deal with issues like this. I will send this to Kumba for him to look at.

Re: zypper up today breaks jansson

PostPosted: Thu Mar 18, 2021 8:05 am
by carpenox
ok so it seems libjansson-devel will fix the issue

for anyone else having this problem today:

Code: Select all
rpm -i https://download.opensuse.org/repositories/home:/vicidial/openSUSE_Leap_15.1/x86_64/libjansson-devel-2.13.1-lp151.29.1.x86_64.rpm --force
rpm -i https://download.opensuse.org/repositories/home:/vicidial/openSUSE_Leap_15.1/x86_64/libjansson4-2.13.1-lp151.29.1.x86_64.rpm --force


For anyone who does update, make sure you run these commands first which will lock these packages: zypper al libjansson-devel libjansson

before you do any further updates...

Re: zypper up today breaks jansson

PostPosted: Thu Mar 18, 2021 8:12 am
by Kumba
So the issue stems from ViciBox 10 with Asterisk 16 which requires libjansson v.2.12 or higher. The default libjansson in OpenSuSE is v.2.9. When you did your upgrade it didn't install the newer version of jansson because that requires a vendor change. There's two way to do this.

The nuclear option is to run "zypper dup" and let it do all kinds of package swaps and updates. Currently doing this causes voicesync to complain about the kernel which is a separate issue. I'd probably recommend uninstalling the voicesync driver unless you have the voicesync hardware. This also results in a large portion of the python packages reverting back to the standard OpenSuSE repsoitory because the Python specific repo has been killed off by some over-zealous admins. The python package changes are likely less of a concern unless you have your own python code written on the server. Most of that was for certbot which is broken anyways.

The more precise method is to tell zypper to install just this package update. That can be done witht he following command: zypper in openSUSE-Leap-15.1-ViciDial:libjansson4

Zypper will show that it's doing a vendor change of the package. Once it's done asterisk should start with no issue.

Re: zypper up today breaks jansson

PostPosted: Thu Mar 18, 2021 8:14 am
by carpenox
perfect, thanks kumba