<div dir="ltr"><div><div>Hi Arni,<br><br><br></div>when you defined the database connection, did you opt for "Saving the password"? If not, this might be the error, as you will likely not pe prompted for the password again  (happened to me when trying to add rasters to the canvas).<br><br><br></div>Best! Christian<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 8, 2016 at 12:16 PM, Árni Geirsson <span dir="ltr"><<a href="mailto:arni@alta.is" target="_blank">arni@alta.is</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<div>When I connect to PostGIS, the connection gets closed after a while if there is no activity. The problem is that the connection is not reestablished successfully. If I try to load a PostGIS layer with DB Manager after what looks like a reconnect, QGIS complains that the layer is invalid, even though it loaded successfully when the connection was properly alive. The only way I have found is to close QGIS and open it again, reconnect to the database and then everything is fine - meanwhile nothing has changed in the project or the data. Closing DB Manager and opening it again makes no difference.</div><div>Can anyone shed some light on this?</div><div><br></div><div>Arni</div><div><div><div class="m_-8894402381321596569gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font color="#666666"><br></font></div><div><font color="#666666"><br></font></div></div></div></div></div></div></div></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>