[Spce-user] mr6.5.4 proxy still starts before redis
Andrew Pogrebennyk
apogrebennyk at sipwise.com
Mon May 13 09:43:20 EDT 2019
Hi,
you are right indeed, we have fixed it starting with mr7.2
We are going to backport this to mr6.5 this week. Internal ticket #58692
As a workaround now you can create an overrides customtt file on your
system like:
> root at spce:~# cat
> /etc/ngcp-config/templates/etc/systemd/system/kamailio-lb.service.d/override.conf.customtt.tt2
> [Service]
> # Amount of shared memory to allocate for the running Kamailio server
> (in Mb)
> Environment="SHM_MEMORY=[% kamailio.lb.shm_mem %]"
> # Amount of private memory for each Kamailio process (in Mb)
> Environment="PKG_MEMORY=[% kamailio.lb.pkg_mem %]"
>
> [Unit]
> After=redis-server.service
Same for the kamailio-proxy.service.d. But remove the customtt after
eventual update is in place.
Thank you for your bugreport.
Andrew
On 5/11/19 11:24 AM, Henk wrote:
>
> Hi,
>
> After upgrading to mr6.5.4 and applying the latest patches,
> kamailio-proxy still starts with this error and stops:
>
> May 11 11:06:36 spce proxy[1840]: ERROR: db_redis
> [redis_connection.c:124]: db_redis_connect(): cannot open connection
> to redis://localhost:6379/23: Connection refused
> May 11 11:06:36 spce proxy[1840]: ERROR: db_redis
> [redis_connection.c:226]: db_redis_new_connection(): Failed to connect
> to redis db
> May 11 11:06:36 spce proxy[1840]: ERROR: <core> [db.c:319]:
> db_do_init2(): could not add connection to the pool
> May 11 11:06:36 spce proxy[1840]: ERROR: dialog
> [dlg_db_handler.c:146]: init_dlg_db(): Unable to connect to the database
> May 11 11:06:36 spce proxy[1840]: ERROR: dialog [dialog.c:688]:
> mod_init(): failed to initialize the DB support
> May 11 11:06:36 spce proxy[1840]: ERROR: <core>
> [core/sr_module.c:990]: init_mod(): Error while initializing module
> dialog (/usr/lib/x86_64-linux-gnu/kamailio/modules/dialog.so)
>
> It looks like dependencies on redis are still not all defined in systemd.
> As I search through the configuration only SEMS and prosody seems to
> have a defined dependency
>
> Regards,
>
> Henk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20190513/449d15ae/attachment-0001.html>
More information about the Spce-user
mailing list