Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error trying to use shared profile information #179

Closed
rrevels-bw opened this issue Mar 15, 2014 · 5 comments
Closed

Getting error trying to use shared profile information #179

rrevels-bw opened this issue Mar 15, 2014 · 5 comments
Assignees
Labels
Milestone

Comments

@rrevels-bw
Copy link

I am getting an error on startup after defining a cache url for dialog profiles:

Mar 15 14:42:41 registrar-1-/usr/local/opensips/sbin/opensips[8828]: INFO:dialog:mod_init: Dialog module - initializing
Mar 15 14:42:41 registrar-1-/usr/local/opensips/sbin/opensips[8828]: ERROR:core:cachedb_bind_mod: failed to bind to [cassandra] module. Is it loaded ?
Mar 15 14:42:41 registrar-1-/usr/local/opensips/sbin/opensips[8828]: ERROR:dialog:init_cachedb_utils: cannot bind functions for cachedb_url cassandra://localhost:9160/Opensips_Profiles_counters
Mar 15 14:42:41 registrar-1-/usr/local/opensips/sbin/opensips[8828]: ERROR:dialog:mod_init: cannot init cachedb utils
Mar 15 14:42:41 registrar-1-/usr/local/opensips/sbin/opensips[8828]: ERROR:core:init_mod: failed to initialize module dialog
Mar 15 14:42:41 registrar-1-/usr/local/opensips/sbin/opensips[8828]: ERROR:core:main: error while initializing modules

I am able to use cassandra for storing other values without issue.

@bogdan-iancu bogdan-iancu added this to the 1.11 milestone Mar 16, 2014
@bogdan-iancu
Copy link
Member

Stupid question, but are you sure you loaded the cachedb_cassandra module ?

@rrevels-bw
Copy link
Author

: >

Don't think I didn't ask myself that same question several times before
opening the tracker. However, I am storing and retrieving values from the
cassandra cache using the cache_store and fetch functions. Yep. I'm
loading it.

Richard

On Sun, Mar 16, 2014 at 4:45 PM, Bogdan Andrei IANCU <
notifications@github.com> wrote:

Stupid question, but are you sure you loaded the cachedb_cassandra module ?

Reply to this email directly or view it on GitHubhttps://github.com//issues/179#issuecomment-37769987
.

@vladpaiu
Copy link
Member

Hello,

Which version of OpenSIPS are you using ? Latest trunk ?
I just ran a quick test against trunk :

loadmodule "cachedb_cassandra.so"
loadmodule "dialog.so"
modparam("dialog","cachedb_url","cassandra://127.0.0.1:9160/A_B_C")

and connections was good :

Mar 19 17:58:11 [4455] INFO:dialog:mod_init: Dialog module - initializing
Mar 19 17:58:11 [4455] INFO:cachedb_cassandra:cassandra_init_connection: Keyspace = [A]. ColumnFamily = [B]. CounterFamily = [C]

Can you help in replicating this ?

Best Regards,
Vlad

@rrevels-bw
Copy link
Author

loadmodule order is significant. I don't think I ever realized that
before. So, Bogdan's original question as to whether cassandra was loaded
or not is the answer to my problem. After changing the order of the
loadmodule statements Opensips loads just fine.

Thank you both for responding and thank you Vlad for the sample. Seeing it
caused me to question if load order could be the problem.

Richard

On Wed, Mar 19, 2014 at 12:19 PM, vladpaiu notifications@github.com wrote:

Hello,

Which version of OpenSIPS are you using ? Latest trunk ?
I just ran a quick test against trunk :

loadmodule "cachedb_cassandra.so"
loadmodule "dialog.so"
modparam("dialog","cachedb_url","cassandra://127.0.0.1:9160/A_B_C")

and connections was good :

Mar 19 17:58:11 [4455] INFO:dialog:mod_init: Dialog module - initializing
Mar 19 17:58:11 [4455] INFO:cachedb_cassandra:cassandra_init_connection:
Keyspace = [A]. ColumnFamily = [B]. CounterFamily = [C]

Can you help in replicating this ?

Best Regards,
Vlad

Reply to this email directly or view it on GitHubhttps://github.com//issues/179#issuecomment-38071603
.

@vladpaiu
Copy link
Member

Hello Richard,

Welcome !

Yes, module load order is significant for cachedb_* modules, in the same sense in which load order was significant for db_* modules - so if the dialog module needs to use db_mysql and cachedb_cassandra, both these modules have to be loaded before dialog.so.

Closing.

Best Regards,
Vlad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants