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

PostgreSQL - ERROR: no module 'database' loaded #76

Open
zi-l opened this issue Jan 4, 2021 · 1 comment
Open

PostgreSQL - ERROR: no module 'database' loaded #76

zi-l opened this issue Jan 4, 2021 · 1 comment

Comments

@zi-l
Copy link

zi-l commented Jan 4, 2021

issue

opensips-cli -x database create command is always skipping module 'database'

  • without ~/.opensips-cli.cfg
~$ opensips-cli -d -x database create
DEBUG: no config file found in any of /home/bl/.opensips-cli.cfg, /etc/opensips-cli.cfg, /etc/opensips/opensips-cli.cfg
INFO: no config file used!
DEBUG: Skipping module 'database' - excluded on purpose
DEBUG: Loaded module 'diagnose'
DEBUG: Loaded module 'instance'
DEBUG: Loaded module 'mi'
DEBUG: sent command ':opensips_fifo_reply_2771:{"jsonrpc": "2.0", "id": "22399", "method": "which", "params": []}'
DEBUG: Loaded module 'tls'
DEBUG: Loaded module 'trace'
DEBUG: Loaded module 'trap'
DEBUG: Skipping module 'user' - excluded on purpose
DEBUG: running in non-interactive mode '['database', 'create']'
ERROR: no module 'database' loaded
  • with~/.opensips-cli.cfg
    image

I've installed

sudo apt install python3 python3-pip python3-dev gcc default-libmysqlclient-dev \
                 python3-mysqldb python3-sqlalchemy python3-sqlalchemy-utils \
                 python3-openssl

sudo apt-get install opensips-postgres-module
sudo apt-get install python3-psycopg2

and according to db_postgres.html#dependencies

sudo apt-get install libpq5 libpq-dev

the schema path /usr/share/opensips:
image

env

os: ubuntu 18.04
opensips: 3.1.1 (x86_64/linux)
opensips-cli: 0.1.0
postgresql:  13+223.pgdg18.04+1
@zi-l zi-l changed the title PostgresQL - ERROR: no module 'database' loaded PostgreSQL - ERROR: no module 'database' loaded Jan 5, 2021
@crrazyman
Copy link

Hello,

I'm having the exact same issue, please help us

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

No branches or pull requests

2 participants