<div dir="ltr">Hi Jean<div><br></div><div>Thanks, you've solved my problem.</div><div><br></div><div>Reference:</div><div><span id="gmail-docs-internal-guid-bfd9b8d3-7fff-e9e0-bbd4-05dfb8554b80"><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1342733" style="text-decoration-line:none"><span style="font-family:Arial;background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;text-decoration-line:underline;vertical-align:baseline;white-space:pre-wrap">https://bugzilla.redhat.com/show_bug.cgi?id=1342733</span></a></span> </div><span id="gmail-docs-internal-guid-5b3fee14-7fff-4e22-cbc8-0c5274e2caea"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap"><br></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">Solution:</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">semanage fcontext -a -t asterisk_var_lib_t /var/lib/asterisk/</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">restorecon -v /var/lib/asterisk/</span></p></span><br class="gmail-Apple-interchange-newline"><div>Regards </div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr"><div style="font-size:12.8px"><div><div dir="ltr"><div><table style="font-family:"Times New Roman""><tbody><tr><td rowspan="3"></td><td><span style="font-family:"Trebuchet MS",Trebuchet,sans-serif;font-size:22px;font-weight:bold">Rafael S. Saraiva</span></td></tr><tr><td><span style="font-family:"Trebuchet MS",Trebuchet,sans-serif">Porto Alegre - RS | Mobile: (51) 981-747-956</span></td></tr><tr><td><a href="http://br.linkedin.com/pub/rafael-saraiva/52/aab/230" style="color:rgb(17,85,204)" target="_blank"><img src="https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png" border="0" width="160" height="25" title="View Rafael Saraiva's profile on LinkedIn"></a> <br><br></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Em seg, 3 de dez de 2018 às 05:51, Jean Aunis <<a href="mailto:jean.aunis@prescom.fr">jean.aunis@prescom.fr</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>I haven't tried but this post probably gives a solution :</p>
    <p><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1342733" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1342733</a></p>
    <p>Regards</p>
    <p>Jean Aunis<br>
    </p>
    <div class="m_-7358505422669865023moz-cite-prefix">Le 30/11/2018 à 19:24, Rafael dos
      Santos Saraiva a écrit :<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">Hi
                  <div><br>
                  </div>
                  <div>I'm trying to use Asterisk running as non-root
                    user and selinux enabled. Asterisk is running ok,
                    but astdb not works. When i try to put in astdb,
                    console shows this message:</div>
                  <div><br>
                  </div>
                  <div>WARNING[1853]: db.c:350 ast_db_put: Couldn't
                    execute statment: SQL logic error or missing
                    database<br clear="all">
                    <div>
                      <div dir="ltr" class="m_-7358505422669865023gmail_signature">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div dir="ltr"><br>
                            </div>
                            <div>CentOS 7.5.1804</div>
                            <div>Asterisk certified/13.21-cert3</div>
                            <div><br>
                            </div>
                            <div>
                              <div>[root@sv03 asterisk]# ls -lahZ
                                /var/lib/asterisk/astdb.sqlite3</div>
                              <div>-rw-r-----. asterisk asterisk
                                unconfined_u:object_r:asterisk_var_lib_t:s0
                                /var/lib/asterisk/astdb.sqlite3</div>
                            </div>
                            <div><br>
                            </div>
                            <div><br>
                            </div>
                            <div>Can anyone help?</div>
                            <div><br>
                            </div>
                            <div>Thanks.</div>
                            <div><br>
                            </div>
                            <div><br>
                            </div>
                            <div><br>
                            </div>
                            <div dir="ltr">
                              <div style="font-size:12.8px">
                                <div>
                                  <div dir="ltr">
                                    <div>
                                      <table>
                                        <tbody>
                                          <tr>
                                            <td rowspan="3"><br>
                                            </td>
                                            <td><span>Rafael S.
                                                Saraiva</span></td>
                                          </tr>
                                          <tr>
                                            <td><br>
                                            </td>
                                          </tr>
                                          <tr>
                                            <td><a href="http://br.linkedin.com/pub/rafael-saraiva/52/aab/230" style="color:rgb(17,85,204)" target="_blank"><img src="https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png" title="View Rafael
                                                  Saraiva's profile on
                                                  LinkedIn" width="160" height="25" border="0"></a> <br>
                                              <br>
                                            </td>
                                          </tr>
                                        </tbody>
                                      </table>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="m_-7358505422669865023mimeAttachmentHeader"></fieldset>
    </blockquote>
  </div>

-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>