 <?xml-stylesheet type="text/css" href="https://www.esdm.co.uk/Data/style/rss1.css" ?> <?xml-stylesheet type="text/xsl" href="https://www.esdm.co.uk/Data/style/rss1.xsl" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
  <channel>
    <title>The knowledge base blog</title>
    <link>https://www.esdm.co.uk/knowledge</link>
    <description />
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>mojoPortal Blog Module</generator>
    <language>en-GB</language>
    <ttl>120</ttl>
    <atom:link href="https://www.esdm.co.uk/Blog/RSS.aspx?p=138~108~5" rel="self" type="application/rss+xml" />
    <itunes:owner />
    <itunes:explicit>no</itunes:explicit>
    <item>
      <title>WMS/WFS down when a GeoServer store is disabled after Windows updates</title>
      <description><![CDATA[<p>Last night some of our servers restarted after scheduled updates, and we awoke to warning emails that some of our GIS web services were down. The affected WMS/WFS services were from <a href="http://geoserver.org/" target="_blank" title="GeoServer web site">GeoServer</a>, so we knew immediately what to look for as this has happened before… the “Store” representing the connection to the GIS data repository – in this case a PostGIS database - had switched itself off, or become disabled:</p>

<p><img alt="GeoServer store disabled after server restart" border="0" height="480" src="https://www.esdm.co.uk/Data/Sites/1/media/wlw/image_139.png" style="border: 0px currentColor; border-image: none; padding-top: 0px; padding-right: 0px; padding-left: 0px; display: inline; background-image: none;" title="GeoServer store disabled after server restart" width="469" /></p>

<p>Ticking the box and saving the Store fixed the problem.</p>

<p>Our hypothesis is that if the GeoServer service is re-started when the database server is not yet available, GeoServer automatically disables the affected Stores. [I later found <a href="http://osgeo-org.1560.x6.nabble.com/PostGIS-Store-disabled-on-server-reboot-td3789469.html" target="_blank">this discussion</a> in which one of the GroServer developers confirms that "the startup code checks if the stores are available, and if not, it<br />
disables them".</p>

<p>We will try to prevent this happening again by ensuring that the GIS server is restarted well after the database servers, but we’d welcome any other ideas.</p>
<br /><a href='https://www.esdm.co.uk/wmswfs-down-when-a-geoserver-store-is-disabled-after-windows-updates'>Crispin Flower</a>&nbsp;&nbsp;<a href='https://www.esdm.co.uk/wmswfs-down-when-a-geoserver-store-is-disabled-after-windows-updates'>...</a>]]></description>
      <link>https://www.esdm.co.uk/wmswfs-down-when-a-geoserver-store-is-disabled-after-windows-updates</link>
      <author>crispin.flower@idoxgroup.com (Crispin Flower)</author>
      <comments>https://www.esdm.co.uk/wmswfs-down-when-a-geoserver-store-is-disabled-after-windows-updates</comments>
      <guid isPermaLink="true">https://www.esdm.co.uk/wmswfs-down-when-a-geoserver-store-is-disabled-after-windows-updates</guid>
      <pubDate>Thu, 13 Nov 2014 09:31:00 GMT</pubDate>
    </item>
    <item>
      <title>Don't forget the PG tip</title>
      <description><![CDATA[<p>
	When opening a PostGIS datasource using the OGR C# wrapper in .Net, the connection string must have "PG:" prefix, as follows:</p>
<p>
	...</p>
<p>
	Imports OSGeo.OGR</p>
<p>
	...</p>
<p>
	Dim drv As OSGeo.OGR.Driver = OSGeo.OGR.Ogr.GetDriverByName("PostgreSQL")<br />
	Dim connStr as string = "<strong>PG:</strong>dbname='myDB' host='192.168.etc.etc' port='5433' user='foo' password='bar'"<br />
	Dim ds As OSGeo.OGR.DataSource&nbsp; = drv.Open(connStr, 0)</p>
<br /><a href='https://www.esdm.co.uk/dont-forget-the-pg'>Crispin Flower</a>&nbsp;&nbsp;<a href='https://www.esdm.co.uk/dont-forget-the-pg'>...</a>]]></description>
      <link>https://www.esdm.co.uk/dont-forget-the-pg</link>
      <author>crispin.flower@idoxgroup.com (Crispin Flower)</author>
      <comments>https://www.esdm.co.uk/dont-forget-the-pg</comments>
      <guid isPermaLink="true">https://www.esdm.co.uk/dont-forget-the-pg</guid>
      <pubDate>Tue, 15 Nov 2011 09:07:00 GMT</pubDate>
    </item>
    <item>
      <title>PostgreSQL simple backup and restore</title>
      <description><![CDATA[<p>To backup in verbose text format (from Windows/DOS command line):</p>

<p>pg_dump -C -f backupfile.sql -h&nbsp;localhost&nbsp;-p 5433 -U&nbsp;postgres databasename</p>

<p>To restore backup&nbsp;in verbose text format (from Windows/DOS command line):</p>

<p>psql -f backupfile.sql&nbsp;-U&nbsp;postgres -h localhost -p 5433</p>
<br /><a href='https://www.esdm.co.uk/postgresql-simple-backup-and-restore'>Crispin Flower</a>&nbsp;&nbsp;<a href='https://www.esdm.co.uk/postgresql-simple-backup-and-restore'>...</a>]]></description>
      <link>https://www.esdm.co.uk/postgresql-simple-backup-and-restore</link>
      <author>crispin.flower@idoxgroup.com (Crispin Flower)</author>
      <comments>https://www.esdm.co.uk/postgresql-simple-backup-and-restore</comments>
      <guid isPermaLink="true">https://www.esdm.co.uk/postgresql-simple-backup-and-restore</guid>
      <pubDate>Fri, 18 Dec 2009 15:50:41 GMT</pubDate>
    </item>
  </channel>
</rss>