<div dir="ltr">Hello,<br><br>I'm attempting to use opensips-cli to create the initial databases for OpenSIPS 3.1 with opensips-cli 0.1~20200901~524c020-1 installed from 3.1-nightly.  The database is MariaDB 10.3.23-0+deb10u1 installed from the 'default-mysql-server' package.  The system is Debian 10 on a container created with 'lxc-create', which installs very few packages by default.  I wonder if I'm experiencing a problem a stock Debian 10 install might not be because I'm missing something that's normally there.<div><br></div><div>opensips-cli creates the `opensips` database successfully, but then fails to populate any of the tables.  I see the following exception:<div><font size="1"><br></font></div><div><span style="font-family:monospace"><font size="1"><span style="color:rgb(0,0,0)">root@opensips:~# opensips-cli -x database create
</span><br>Password for admin MySQL user (root):  <br>Traceback (most recent call last):
<br>  File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 2228, in _wrap_pool_connect
<br>    return fn()
<br>  File "/usr/lib/python3/dist-packages/sqlalchemy/pool.py", line 365, in unique_connection
<br>    return _ConnectionFairy._checkout(self)
<br>  File "/usr/lib/python3/dist-packages/sqlalchemy/pool.py", line 822, in _checkout
<br>    fairy = _ConnectionRecord.checkout(pool)
<br>  File "/usr/lib/python3/dist-packages/sqlalchemy/pool.py", line 554, in checkout
<br>    rec = pool._do_get()
<br>  File "/usr/lib/python3/dist-packages/sqlalchemy/pool.py", line 1250, in _do_get
<br>    self._dec_overflow()
<br>  File "/usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py", line 67, in __exit__
<br>    compat.reraise(exc_type, exc_value, exc_tb)
<br>  File "/usr/lib/python3/dist-packages/sqlalchemy/util/compat.py", line 277, in reraise
<br>    raise value
<br>  File "/usr/lib/python3/dist-packages/sqlalchemy/pool.py", line 1247, in _do_get
<br>    return self._create_connection()
<br>  File "/usr/lib/python3/dist-packages/sqlalchemy/pool.py", line 370, in _create_connection
<br>    return _ConnectionRecord(self)
<br>  File "/usr/lib/python3/dist-packages/sqlalchemy/pool.py", line 499, in __init__
<br>    self.__connect(first_connect_check=True)
<br>  File "/usr/lib/python3/dist-packages/sqlalchemy/pool.py", line 701, in __connect
<br>    connection = pool._invoke_creator(self)
<br>  File "/usr/lib/python3/dist-packages/sqlalchemy/engine/strategies.py", line 114, in connect
<br>    return dialect.connect(*cargs, **cparams)
<br>  File "/usr/lib/python3/dist-packages/sqlalchemy/engine/default.py", line 437, in connect
<br>    return self.dbapi.connect(*cargs, **cparams)
<br>  File "/usr/lib/python3/dist-packages/MySQLdb/__init__.py", line 86, in Connect
<br>    return Connection(*args, **kwargs)
<br>  File "/usr/lib/python3/dist-packages/MySQLdb/connections.py", line 204, in __init__
<br>    super(Connection, self).__init__(*args, **kwargs2)
<br>_mysql_exceptions.OperationalError: (1698, "Access denied for user 'opensips'@'localhost'")</font><br></span></div><div><span style="font-family:monospace"><br></span></div><div>There are a few more exceptions after this but I think the key is the last line in this one.  I checked the mysql.user table and there is no 'opensips' user, so if anything, that's failing to be created and everything dies afterwards.<span style="font-family:monospace"><br></span></div></div><div><br></div><div>The database gets created but there are no tables in it.  I can run 'opensips-cli -x database drop' and that works alright.  I've got to be missing something simple.</div><div><br></div><div><br></div><div>- Jeff</div><div><br></div></div>