<div dir="ltr"><div>Still the same issue</div><div><br></div><div>2019-06-13 11:20:13 spce: /var has no support of .services<br>2019-06-13 11:20:13 spce: Executing sync-db:<br>                     DBI connect('database=provisioning;host=localhost;port=3306','sipwise',...) failed: Access denied for user 'sipwise'@'localhost' (using password: YES) atgcp-ngcpcfg/helper//sync-db line 79.<br>                     Error: Could not connect to database 'provisioning' at 'localhost:3306' as 'sipwise': Access denied for user 'sipwise'@'localhost' (using password: YES)<br></div><div><br>2019-06-13 11:20:13 spce: OK:   nothing to commit.<br>2019-06-13 11:20:13 spce: Synchronizing MySQL grants/credentials<br></div><div><br></div><div><br></div><div>version 6.5.4.1+0~mr6.5.4.1-<br></div><div><br></div><div>also a quick note: when i rest the dababase using "ngcp-reset-db"  then i run "ngcpcfg apply" - I get the same error as above</div><div><br></div><div>-----------------</div>root@spce:~# source /etc/mysql/sipwise.cnf && mysql -usipwise -p"${SIPWISE_DB_PASSWORD}" -hlocalhost -P3306 provisioning<br>Reading table information for completion of table and column names<br>You can turn off this feature to get a quicker startup with -A<br><br>Welcome to the MariaDB monitor.  Commands end with ; or \g.<br>Your MariaDB connection id is 4356<br>Server version: 10.1.38-MariaDB-0+deb9u1 Debian 9.8<br><br>Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.<br><br>Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.<div><br></div><div>---------------------</div><div><br></div><div>root@spce:~# source /etc/mysql/sipwise.cnf && mysql -usipwise -p"${SIPWISE_DB_PASSWORD}" provisioning<br>Reading table information for completion of table and column names<br>You can turn off this feature to get a quicker startup with -A<br><br>Welcome to the MariaDB monitor.  Commands end with ; or \g.<br>Your MariaDB connection id is 4387<br>Server version: 10.1.38-MariaDB-0+deb9u1 Debian 9.8<br><br>Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.<br><br>Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.<br><br><br></div><div><br></div><div>after running ngcpcfg apply</div><div> more /var/log/mysql/mysqld.err<br></div><div>2019-06-13  4:56:13 140274934056704 [Note] /usr/sbin/mysqld: Normal shutdown<br>2019-06-13  4:56:13 140274934056704 [Note] Event Scheduler: Purging the queue. 0 events<br>2019-06-13  4:56:13 140269622109952 [Note] InnoDB: FTS optimize thread exiting.<br>2019-06-13  4:56:13 140274934056704 [Note] InnoDB: Starting shutdown...<br>2019-06-13  4:56:14 140274934056704 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool<br>2019-06-13  4:56:16 140274934056704 [Note] InnoDB: Shutdown completed; log sequence number 8665897760<br>2019-06-13  4:56:16 140274934056704 [Note] /usr/sbin/mysqld: Shutdown complete<br><br>2019-06-13  4:56:35 140471483144192 [Note] InnoDB: Using mutexes to ref count buffer pool pages<br>2019-06-13  4:56:35 140471483144192 [Note] InnoDB: The InnoDB memory heap is disabled<br>2019-06-13  4:56:35 140471483144192 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins<br>2019-06-13  4:56:35 140471483144192 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier<br>2019-06-13  4:56:35 140471483144192 [Note] InnoDB: Compressed tables use zlib 1.2.8<br>2019-06-13  4:56:35 140471483144192 [Note] InnoDB: Using Linux native AIO<br>2019-06-13  4:56:35 140471483144192 [Note] InnoDB: Using SSE crc32 instructions<br>2019-06-13  4:56:35 140471483144192 [Note] InnoDB: Initializing buffer pool, size = 4.0G<br>2019-06-13  4:56:36 140471483144192 [Note] InnoDB: Completed initialization of buffer pool<br>2019-06-13  4:56:39 140471483144192 [Note] InnoDB: Highest supported file format is Barracuda.<br>2019-06-13  4:56:56 140471483144192 [Note] InnoDB: 128 rollback segment(s) are active.<br>2019-06-13  4:56:56 140471483144192 [Note] InnoDB: Waiting for purge to start<br>2019-06-13  4:56:56 140471483144192 [Note] InnoDB:  Percona XtraDB (<a href="http://www.percona.com">http://www.percona.com</a>) 5.6.42-84.2 started; log sequence number 8665897760<br>2019-06-13  4:56:56 140466041349888 [Note] InnoDB: Dumping buffer pool(s) not yet started<br>2019-06-13  4:56:56 140471483144192 [Note] Plugin 'FEEDBACK' is disabled.<br>2019-06-13  4:56:56 140471483144192 [Note] Server socket created on IP: '127.0.0.1'.<br>2019-06-13  4:56:57 140471483144192 [Note] /usr/sbin/mysqld: ready for connections.<br>Version: '10.1.38-MariaDB-0+deb9u1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Debian 9.8<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 13, 2019 at 6:00 AM Alex Lutay <<a href="mailto:alutay@sipwise.com">alutay@sipwise.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Please always reply to spce-user@ mailing list.<br>
Sipwise doesn't provide direct support for CE user.<br>
<br>
JFYI, ngcp-backup component is available for PRO/Carrier platforms only.<br>
There you can perform everything out of the box in several "clicks".<br>
<br>
The message means user 'sipwise@localhost' should exist in mysql now:<br>
<br>
> [defaults.sipwise.localhost]<br>
> flush privileges<br>
>   revoke all from: sipwise@localhost<br>
>   grant all privileges on *.* to sipwise@localhost with grant option<br>
>   drop: soap@localhost<br>
>   flush privileges<br>
<br>
Can you re-check this locally?<br>
<br>
Also try to connect manually:<br>
<br>
> source /etc/mysql/sipwise.cnf && \<br>
> mysql -usipwise -p"${SIPWISE_DB_PASSWORD}" -hlocalhost -P3306 provisioning<br>
<br>
Also try to use mysql socket directly (mysql client connect the server<br>
using socket /var/run/mysqld/mysqld.sock instead of TCP connection if<br>
host is 'localhost'):<br>
<br>
> source /etc/mysql/sipwise.cnf && \<br>
> mysql -usipwise -p"${SIPWISE_DB_PASSWORD}" provisioning<br>
<br>
Check mysql error log file /var/log/mysql/mysqld.err for the reason of<br>
rejects here.<br>
<br>
BTW, what is the release number?<br>
<br>
Tnx!<br>
<br>
On 6/13/19 2:36 PM, Andy Clark wrote:<br>
> Hi Alex,<br>
> Still getting the same error after    > ngcp-sync-constants -root<br>
> ngcp-sync-constants -verbose -root<br>
> ngcpcfg apply<br>
><br>
[...removed...]<br>
<br>
-- <br>
Alex Lutay<br>
_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
<a href="https://lists.sipwise.com/listinfo/spce-user" rel="noreferrer" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
</blockquote></div>