<div dir="ltr"><div>hehehe, glad you found it...</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 24, 2019 at 5:07 AM Gulyás Attila <<a href="mailto:toraritte@gmail.com">toraritte@gmail.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">Found the solution in the Debian 9 installation guide<br>
(<a href="https://freeswitch.org/confluence/display/FREESWITCH/Debian+9+Stretch" rel="noreferrer" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Debian+9+Stretch</a>)<br>
while I was rebuilding a new VM. Basically I inadvertently upgraded<br>
FreeSWITCH 1.8 to 1.10, and needed to load `mod_pgsql` (see the<br>
excerpt below).<br>
<br>
1.10 incompatible change<br>
====================<br>
because now Fs1.10 packages are installed even if you still use the<br>
1.8 repo, you better aware of an incompatible change:<br>
pgsql is no more in core, but in aptly named mod_pgsql.<br>
You MUST NOT load mod_pgsql in modules.conf.xml (do not work), but in<br>
a special additional xml file, in same "autoload_configs" directory.<br>
<br>
Filename: pre_load_modules.conf.xml<br>
pre_load_modules.conf.xml<br>
<configuration name="pre_load_modules.conf" description="Modules"><br>
  <modules><br>
    <!-- Databases --><br>
    <!-- <load module="mod_mariadb"/> --><br>
    <load module="mod_pgsql"/><br>
  </modules><br>
</configuration><br>
<br>
On Fri, Aug 23, 2019 at 3:49 AM Gulyás Attila <<a href="mailto:toraritte@gmail.com" target="_blank">toraritte@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> When I try to connect to a remote PostgreSQL server, I get<br>
><br>
>     2019-08-23 10:19:05.793364 [ERR] switch_core_db.c:223 SQL ERR [unable to open database file]<br>
><br>
> when using the Lua API<br>
><br>
>    freeswitch.Dbh("pgsql://hostaddr=1.2.3.4 dbname=mydb user=postgres password=postgres options='-c client_min_messages=NOTICE' application_name='freeswitch'")<br>
><br>
> (as recommended in the docs at: <a href="https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases" rel="noreferrer" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Databases</a> )<br>
><br>
> It has been working flawlessly, even across FreeSWITCH service restarts, then I foolishly did a `sudo apt update && sudo apt upgrade` on Debian 9, and that was it.<br>
><br>
> Would you recommend some steps on how I could troubleshoot this further? The error message is too generic.<br>
><br>
> What I did so far:<br>
><br>
> 0. Server reboot, call to server connects, Lua script works as intended, but fails at the DB part.<br>
><br>
> 1. Checked the database on the remote server, it works fine.<br>
><br>
> 2. Checked whether port is still open on remote server from the freeswitch server with `nc -zv 1.2.3.4 5432` and it is.<br>
><br>
> Thank you for any suggestions!<br>
><br>
> Appreciatively,<br>
> Attila<br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Sincerely,<br><br>Giovanni Maruzzelli<br>OpenTelecom.IT<br>cell: +39 347 266 56 18<br><br></div>