[Geoserver-users] GDAL plugin not loading (Ubuntu)

Goodmorning,

I'm trying to install the GDAL plugin in Geoserver but even if I did the
steps reported here
<http://docs.geoserver.org/stable/en/user/data/raster/gdal.html&gt; (not so
clear in my opinion)

Tomcat still says in logs:
it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Failed to load the GDAL native libs. This is not a problem unless
you need to use the GDAL plugins: they won't be enabled.

My config is:
Ubuntu 12.04 LTS
Tomcat7
Geoserver as WAR

I was able to load the GDAL plugin about 1 month ago with v.2.4.5 but after
an update of the kernel it stopped working, now seams not working anymore
neither the v2.4.5 nor the v2.5.
Maybe I have messed up something but even on a fresh new ubuntu VM didn't
work.

Loking at the instructions they seams the same of 2.4.5 and still linked the
imageio-ext-1.1.7 here
<http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.7/&gt;
While the Official plugin
<http://sourceforge.net/projects/geoserver/files/GeoServer%20Extensions/2.5/geoserver-2.5-gdal-plugin.zip&gt;
includes now the v1.1.8

This creates a little bit of confusion in my opinion.
Thanks.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Alex,

···

On Fri, Apr 18, 2014 at 4:16 PM, Alex70 <mad4jsp@anonymised.com> wrote:

Goodmorning,

I’m trying to install the GDAL plugin in Geoserver but even if I did the
steps reported here
<http://docs.geoserver.org/stable/en/user/data/raster/gdal.html> (not so
clear in my opinion)

Feedbacks are very welcome to improve that. If you have any suggestion, please let us know.

Tomcat still says in logs:
it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Failed to load the GDAL native libs. This is not a problem unless
you need to use the GDAL plugins: they won’t be enabled.

My config is:
Ubuntu 12.04 LTS
Tomcat7
Geoserver as WAR

I was able to load the GDAL plugin about 1 month ago with v.2.4.5 but after
an update of the kernel it stopped working,

Probably that upgrade resulted into a native libs upgrade too (as stdlibc and other native dependencies).

now seams not working anymore
neither the v2.4.5 nor the v2.5.
Maybe I have messed up something but even on a fresh new ubuntu VM didn’t
work.

Could you try a “gcc --version” on your machine? (Wondering whether the current machine have a different set of core dynamic libraries).

Do you also have any chance to test the javainfo/gdalinfo.sh script?

(If you have any issue on your machine with the downloaded dynamic libraries, that script should show that, so we can focus on this before checking why geoserver doesn’t load them)

Please, let us know.

Loking at the instructions they seams the same of 2.4.5 and still linked the
imageio-ext-1.1.7 here
<http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.7/>
While the Official plugin
<http://sourceforge.net/projects/geoserver/files/GeoServer%20Extensions/2.5/geoserver-2.5-gdal-plugin.zip>
includes now the v1.1.8

We will fix that missmatch in the documentation.

Thanks for reporting that.

Cheers,
Daniele

This creates a little bit of confusion in my opinion.
Thanks.


View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Fri, Apr 18, 2014 at 4:57 PM, Daniele Romagnoli <
daniele.romagnoli@anonymised.com> wrote:

Hi Alex,

On Fri, Apr 18, 2014 at 4:16 PM, Alex70 <mad4jsp@anonymised.com> wrote:

Goodmorning,

I'm trying to install the GDAL plugin in Geoserver but even if I did the
steps reported here
<http://docs.geoserver.org/stable/en/user/data/raster/gdal.html&gt; (not
so
clear in my opinion)

Feedbacks are very welcome to improve that. If you have any suggestion,

please let us know.

Tomcat still says in logs:
it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Failed to load the GDAL native libs. This is not a problem unless
you need to use the GDAL plugins: they won't be enabled.

My config is:
Ubuntu 12.04 LTS
Tomcat7
Geoserver as WAR

I was able to load the GDAL plugin about 1 month ago with v.2.4.5 but
after
an update of the kernel it stopped working,

Probably that upgrade resulted into a native libs upgrade too (as stdlibc
and other native dependencies).

now seams not working anymore
neither the v2.4.5 nor the v2.5.
Maybe I have messed up something but even on a fresh new ubuntu VM didn't
work.

Could you try a "gcc --version" on your machine? (Wondering whether the
current machine have a different set of core dynamic libraries).
Do you also have any chance to test the javainfo/gdalinfo.sh script?

(I would have said the javainfo/gdalinfo.sh available within the downloaded
package).

(If you have any issue on your machine with the downloaded dynamic
libraries, that script should show that, so we can focus on this before
checking why geoserver doesn't load them)

Please, let us know.

Loking at the instructions they seams the same of 2.4.5 and still linked

the
imageio-ext-1.1.7 here
<
http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.7/
>
While the Official plugin
<
http://sourceforge.net/projects/geoserver/files/GeoServer%20Extensions/2.5/geoserver-2.5-gdal-plugin.zip
>
includes now the v1.1.8

We will fix that missmatch in the documentation.

Thanks for reporting that.

Cheers,
Daniele

This creates a little bit of confusion in my opinion.
Thanks.

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Alex,

On Fri, Apr 18, 2014 at 4:16 PM, Alex70 &lt;

mad4jsp@

&gt; wrote:

Goodmorning,

I'm trying to install the GDAL plugin in Geoserver but even if I did the
steps reported here
&lt;http://docs.geoserver.org/stable/en/user/data/raster/gdal.html&gt;
(not so
clear in my opinion)

Feedbacks are very welcome to improve that. If you have any suggestion,

please let us know.

When I will be able to load correctly the plugin maybe I will be more
precise on that.

Tomcat still says in logs:
it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Failed to load the GDAL native libs. This is not a problem
unless
you need to use the GDAL plugins: they won't be enabled.

My config is:
Ubuntu 12.04 LTS
Tomcat7
Geoserver as WAR

I was able to load the GDAL plugin about 1 month ago with v.2.4.5 but
after
an update of the kernel it stopped working,

Probably that upgrade resulted into a native libs upgrade too (as stdlibc
and other native dependencies).

now seams not working anymore
neither the v2.4.5 nor the v2.5.
Maybe I have messed up something but even on a fresh new ubuntu VM didn't
work.

Could you try a "gcc --version" on your machine? (Wondering whether the
current machine have a different set of core dynamic libraries).

root@anonymised.com:~# gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

Do you also have any chance to test the javainfo/gdalinfo.sh script?
(If you have any issue on your machine with the downloaded dynamic
libraries, that script should show that, so we can focus on this before
checking why geoserver doesn't load them)

root@anonymised.com:/var/lib/geoserver_gdal/gdal-ubuntu/javainfo# sh gdalinfo.sh
Usage: gdalinfo [--help-general] [-mm] [-stats] [-hist] [-nogcp] [-nomd]
               [-norat] [-noct] [-mdd domain]* [-checksum] datasetname

Please, let us know.

Loking at the instructions they seams the same of 2.4.5 and still linked
the

imageio-ext-1.1.7 here
<
http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.7/
>
While the Official plugin
<
http://sourceforge.net/projects/geoserver/files/GeoServer%20Extensions/2.5/geoserver-2.5-gdal-plugin.zip
>
includes now the v1.1.8

We will fix that missmatch in the documentation.

Thanks for reporting that.

Cheers,
Daniele

This creates a little bit of confusion in my opinion.
Thanks.

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list

Geoserver-users@anonymised.com

https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list

Geoserver-users@anonymised.com

https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5135911.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Fri, Apr 18, 2014 at 5:12 PM, Alex70 <mad4jsp@anonymised.com> wrote:

> Hi Alex,
>
> On Fri, Apr 18, 2014 at 4:16 PM, Alex70 &lt;

> mad4jsp@

> &gt; wrote:
>
>> Goodmorning,
>>
>> I'm trying to install the GDAL plugin in Geoserver but even if I did the
>> steps reported here
>> &lt;http://docs.geoserver.org/stable/en/user/data/raster/gdal.html&gt;
>> (not so
>> clear in my opinion)
>>
>> Feedbacks are very welcome to improve that. If you have any suggestion,
> please let us know.

When I will be able to load correctly the plugin maybe I will be more
precise on that.

>> Tomcat still says in logs:
>> it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
>> WARNING: Failed to load the GDAL native libs. This is not a problem
>> unless
>> you need to use the GDAL plugins: they won't be enabled.
>>
>> My config is:
>> Ubuntu 12.04 LTS
>> Tomcat7
>> Geoserver as WAR
>>
>> I was able to load the GDAL plugin about 1 month ago with v.2.4.5 but
>> after
>> an update of the kernel it stopped working,
>
> Probably that upgrade resulted into a native libs upgrade too (as stdlibc
> and other native dependencies).
>
>
>> now seams not working anymore
>> neither the v2.4.5 nor the v2.5.
>> Maybe I have messed up something but even on a fresh new ubuntu VM
didn't
>> work.
>>
>
> Could you try a "gcc --version" on your machine? (Wondering whether the
> current machine have a different set of core dynamic libraries).

root@anonymised.com:~# gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

> Do you also have any chance to test the javainfo/gdalinfo.sh script?
> (If you have any issue on your machine with the downloaded dynamic
> libraries, that script should show that, so we can focus on this before
> checking why geoserver doesn't load them)

root@anonymised.com:/var/lib/geoserver_gdal/gdal-ubuntu/javainfo# sh gdalinfo.sh
Usage: gdalinfo [--help-general] [-mm] [-stats] [-hist] [-nogcp] [-nomd]
               [-norat] [-noct] [-mdd domain]* [-checksum] datasetname

Ok. So that part seems working properly.

I would also run a "gdalinfo --version" and a "gdalinfo file" on some file
you want to serve with geoserver.
If each gdalinfo run works properly I think there are some configuration
issue on your machine.
You may probably have different GDAL versions on your system and some of
them are taking priority on loading.
Can you do a "locate libgdal" and check if you have GDAL available in
different paths?

Cheers,
Daniele

> Please, let us know.
>
> Loking at the instructions they seams the same of 2.4.5 and still linked
> the
>> imageio-ext-1.1.7 here
>> <
>>
http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.7/
>> >
>> While the Official plugin
>> <
>>
http://sourceforge.net/projects/geoserver/files/GeoServer%20Extensions/2.5/geoserver-2.5-gdal-plugin.zip
>> >
>> includes now the v1.1.8
>>
>> We will fix that missmatch in the documentation.
> Thanks for reporting that.
>
> Cheers,
> Daniele
>
>
>> This creates a little bit of confusion in my opinion.
>> Thanks.
>>
>>
>>
>> --
>> View this message in context:
>>
http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892.html
>> Sent from the GeoServer - User mailing list archive at Nabble.com.
>>
>>
>>
------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their
>> applications. Written by three acclaimed leaders in the field,
>> this first edition is now available. Download your free book today!
>> http://p.sf.net/sfu/NeoTech
>> _______________________________________________
>> Geoserver-users mailing list
>>

> Geoserver-users@anonymised.com

>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> Geoserver-users mailing list

> Geoserver-users@anonymised.com

> https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks.

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5135911.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Daniele Romagnoli-3 wrote

On Fri, Apr 18, 2014 at 5:12 PM, Alex70 &lt;

mad4jsp@

&gt; wrote:

> Hi Alex,
>
> On Fri, Apr 18, 2014 at 4:16 PM, Alex70 &lt;

> mad4jsp@

> &gt; wrote:
>
>> Goodmorning,
>>
>> I'm trying to install the GDAL plugin in Geoserver but even if I did
the
>> steps reported here
>> &lt;http://docs.geoserver.org/stable/en/user/data/raster/gdal.html&gt;
>> (not so
>> clear in my opinion)
>>
>> Feedbacks are very welcome to improve that. If you have any
suggestion,
> please let us know.

When I will be able to load correctly the plugin maybe I will be more
precise on that.

>> Tomcat still says in logs:
>> it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
>> WARNING: Failed to load the GDAL native libs. This is not a problem
>> unless
>> you need to use the GDAL plugins: they won't be enabled.
>>
>> My config is:
>> Ubuntu 12.04 LTS
>> Tomcat7
>> Geoserver as WAR
>>
>> I was able to load the GDAL plugin about 1 month ago with v.2.4.5 but
>> after
>> an update of the kernel it stopped working,
>
> Probably that upgrade resulted into a native libs upgrade too (as
stdlibc
> and other native dependencies).
>
>
>> now seams not working anymore
>> neither the v2.4.5 nor the v2.5.
>> Maybe I have messed up something but even on a fresh new ubuntu VM
didn't
>> work.
>>
>
> Could you try a "gcc --version" on your machine? (Wondering whether the
> current machine have a different set of core dynamic libraries).

root@anonymised.com:~# gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

> Do you also have any chance to test the javainfo/gdalinfo.sh script?
> (If you have any issue on your machine with the downloaded dynamic
> libraries, that script should show that, so we can focus on this before
> checking why geoserver doesn't load them)

root@anonymised.com:/var/lib/geoserver_gdal/gdal-ubuntu/javainfo# sh gdalinfo.sh
Usage: gdalinfo [--help-general] [-mm] [-stats] [-hist] [-nogcp] [-nomd]
               [-norat] [-noct] [-mdd domain]* [-checksum] datasetname

Ok. So that part seems working properly.

I would also run a "gdalinfo --version" and a "gdalinfo file" on some file
you want to serve with geoserver.

root@anonymised.com:/var/lib/geoserver_gdal/gdal-ubuntu/javainfo# sh gdalinfo.sh
--version
GDAL 1.9.2, released 2012/10/08

root@anonymised.com:/var/lib/geoserver_gdal/gdal-ubuntu/javainfo# sh gdalinfo.sh
/var/lib/geoserver_data/data/1_Abruzzo/Reproject/Orto_STATUS_2010_4326.ecw
Driver: ECW/ERDAS Compressed Wavelets (SDK 3.x)
Files:
/var/lib/geoserver_data/data/1_Abruzzo/Reproject/Orto_STATUS_2010_4326.ecw
Size is 371342, 111655
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        TOWGS84[0,0,0,0,0,0,0],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0,
        AUTHORITY["EPSG","8901"]],
    UNIT["degree",0.0174532925199433,
        AUTHORITY["EPSG","9108"]],
    AXIS["Lat",NORTH],
    AXIS["Long",EAST],
    AUTHORITY["EPSG","4326"]]
Origin = (13.371975294719464,42.79050472670984)
Pixel Size = (1.800855172693626E-6,-1.8008551726936243E-6)
Corner Coordinates:
Upper Left (13.371975294719464,42.79050472670984)
Lower Left (13.371975294719464,42.589430242402734)
Upper Right (14.04070845625786,42.79050472670984)
Lower Right (14.04070845625786,42.589430242402734)
Center (13.706341875488661,42.68996748455629)
Band 1 Block=371342x1 Type=Byte, ColorInterp=Red
  Overviews: 185671x55827, 92835x27913, 46417x13956, 23208x6978, 11604x3489,
5802x1744, 2901x872, 1450x436, 725x218
Band 2 Block=371342x1 Type=Byte, ColorInterp=Green
  Overviews: 185671x55827, 92835x27913, 46417x13956, 23208x6978, 11604x3489,
5802x1744, 2901x872, 1450x436, 725x218
Band 3 Block=371342x1 Type=Byte, ColorInterp=Blue
  Overviews: 185671x55827, 92835x27913, 46417x13956, 23208x6978, 11604x3489,
5802x1744, 2901x872, 1450x436, 725x218

If each gdalinfo run works properly I think there are some configuration
issue on your machine.
You may probably have different GDAL versions on your system and some of
them are taking priority on loading.
Can you do a "locate libgdal" and check if you have GDAL available in
different paths?

root@anonymised.com:~# locate libgdal
/var/cache/apt/archives/libgdal1_1.9.2-2~precise4_amd64.deb
/var/lib/dpkg/info/libgdal1.list
/var/lib/dpkg/info/libgdal1.postrm
/var/lib/geoserver_gdal/gdal-ubuntu/libgdal.so
/var/lib/geoserver_gdal/gdal-ubuntu/libgdal.so.1
/var/lib/geoserver_gdal/gdal-ubuntu/libgdal.so.1.16.2
/var/lib/geoserver_gdal/gdal-ubuntu/libgdalconstjni.so
/var/lib/geoserver_gdal/gdal-ubuntu/libgdaljni.so

Cheers,
Daniele

> Please, let us know.
>
> Loking at the instructions they seams the same of 2.4.5 and still
linked
> the
>> imageio-ext-1.1.7 here
>> <
>>
http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.7/
>> >
>> While the Official plugin
>> <
>>
http://sourceforge.net/projects/geoserver/files/GeoServer%20Extensions/2.5/geoserver-2.5-gdal-plugin.zip
>> >
>> includes now the v1.1.8
>>
>> We will fix that missmatch in the documentation.
> Thanks for reporting that.
>
> Cheers,
> Daniele
>
>
>> This creates a little bit of confusion in my opinion.
>> Thanks.
>>
>>
>>
>> --
>> View this message in context:
>>
http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892.html
>> Sent from the GeoServer - User mailing list archive at Nabble.com.
>>
>>
>>
------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their
>> applications. Written by three acclaimed leaders in the field,
>> this first edition is now available. Download your free book today!
>> http://p.sf.net/sfu/NeoTech
>> _______________________________________________
>> Geoserver-users mailing list
>>

> Geoserver-users@anonymised.com

>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> Geoserver-users mailing list

> Geoserver-users@anonymised.com

> https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks.

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5135911.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list

Geoserver-users@anonymised.com

https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list

Geoserver-users@anonymised.com

https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5135915.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Good morning,

any further suggestions about this tread?

Regards

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5136646.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Dear Alex,
Daniele is on vacation this week, so I would not expect an answer.

That said, I read the report quickly and I don't have much more to add.
If you are sure the java gdalinfo works fine, make sure the
LD_LIBRARY_PATH points correctly to the right gdal installation.

You can also try a fresh install of the GeoServer Bin based on jetty.

Regards,
Simone Giannecchini

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On Wed, Apr 23, 2014 at 10:39 AM, Alex70 <mad4jsp@anonymised.com> wrote:

Good morning,

any further suggestions about this tread?

Regards

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5136646.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Simone Giannecchini wrote

Dear Alex,
Daniele is on vacation this week, so I would not expect an answer.

That said, I read the report quickly and I don't have much more to add.
If you are sure the java gdalinfo works fine, make sure the
LD_LIBRARY_PATH points correctly to the right gdal installation.

You can also try a fresh install of the GeoServer Bin based on jetty.

Regards,
Simone Giannecchini

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On Wed, Apr 23, 2014 at 10:39 AM, Alex70 &lt;

mad4jsp@

&gt; wrote:

Good morning,

any further suggestions about this tread?

Regards

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5136646.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Geoserver-users mailing list

Geoserver-users@anonymised.com

https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Geoserver-users mailing list

Geoserver-users@anonymised.com

https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ah ok no problem I'll wait next week.

In the meantime here are the exported environment variables:

root@anonymised.com:~# echo $LD_LIBRARY_PATH
/var/lib/geoserver_gdal/gdal-ubuntu
root@anonymised.com:~# echo $GDAL_DATA
/var/lib/geoserver_gdal/gdal-data

Thanks,
Best Regards

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5136666.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Alex,

are you setting this LD_LIBRARY_PATH on your tomcat startup?

Could you try adding this to your tomcat setenv.sh script?

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/var/lib/geoserver_gdal/gdal-ubuntu

export JAVA_OPTS=“-Djava.library.path=/var/lib/geoserver_gdal/gdal-ubuntu”

Cheers,

Daniele

···

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Wed, Apr 23, 2014 at 11:42 AM, Alex70 <mad4jsp@anonymised.com> wrote:

Simone Giannecchini wrote

Dear Alex,
Daniele is on vacation this week, so I would not expect an answer.

That said, I read the report quickly and I don’t have much more to add.
If you are sure the java gdalinfo works fine, make sure the
LD_LIBRARY_PATH points correctly to the right gdal installation.

You can also try a fresh install of the GeoServer Bin based on jetty.

Regards,
Simone Giannecchini

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Wed, Apr 23, 2014 at 10:39 AM, Alex70 <

mad4jsp@

> wrote:

Good morning,

any further suggestions about this tread?

Regards


View this message in context:
http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5136646.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform


Geoserver-users mailing list

Geoserver-users@anonymised.com

https://lists.sourceforge.net/lists/listinfo/geoserver-users


Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform


Geoserver-users mailing list

Geoserver-users@anonymised.com

https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ah ok no problem I’ll wait next week.

In the meantime here are the exported environment variables:

root@anonymised.com:~# echo $LD_LIBRARY_PATH
/var/lib/geoserver_gdal/gdal-ubuntu
root@anonymised.com:~# echo $GDAL_DATA
/var/lib/geoserver_gdal/gdal-data

Thanks,
Best Regards


View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5136666.html

Sent from the GeoServer - User mailing list archive at Nabble.com.


Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi,

Yes actually now it works with your suggestion I have added to setenv.sh:

export GEOSERVER_DATA_DIR=/var/lib/geoserver_data
export GDAL_DATA=/var/lib/geoserver_gdal/gdal-data
export LD_LIBRARY_PATH=/var/lib/geoserver_gdal/gdal-ubuntu
export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=64m
-XX:MaxPermSize=256m"

I had previously exported these path in the /etc/profile and for some times
this works. Don't know way it stopped, as far as I know this file should be
loaded at start up.

So regarding the suggestions for the web page that explains how to install
this extension I would add a note explaining where export the environment
variable and if it is really necessary to export GDAL_DATA (it seams working
even without it).
Moreover I had to set all the fils and folders (inside and outside
geoserver) owned by tomcat7, which is not written in the documentation.
Also I suggest to add a note to optionally increase the -Xmx value in our
case the default heap limit was not sufficient.

Thanks for the help.
Best Regards.
Alex

Daniele Romagnoli-3 wrote

Hi Alex,
are you setting this LD_LIBRARY_PATH on your tomcat startup?

Could you try adding this to your tomcat setenv.sh script?

export
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/var/lib/geoserver_gdal/gdal-ubuntu
export JAVA_OPTS="-Djava.library.path=/var/lib/geoserver_gdal/gdal-ubuntu"

Cheers,
Daniele

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On Wed, Apr 23, 2014 at 11:42 AM, Alex70 &lt;

mad4jsp@

&gt; wrote:

Simone Giannecchini wrote
> Dear Alex,
> Daniele is on vacation this week, so I would not expect an answer.
>
> That said, I read the report quickly and I don't have much more to
add.
> If you are sure the java gdalinfo works fine, make sure the
> LD_LIBRARY_PATH points correctly to the right gdal installation.
>
> You can also try a fresh install of the GeoServer Bin based on jetty.
>
> Regards,
> Simone Giannecchini
> ==
> Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
> for more information.
> ==
>
> Ing. Simone Giannecchini
> @simogeo
> Founder/Director
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39 333 8128928
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
>
> On Wed, Apr 23, 2014 at 10:39 AM, Alex70 &lt;

> mad4jsp@

> &gt; wrote:
>> Good morning,
>>
>> any further suggestions about this tread?
>>
>> Regards
>>
>>
>>
>> --
>> View this message in context:
>>
http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5136646.html
>> Sent from the GeoServer - User mailing list archive at Nabble.com.
>>
>>
------------------------------------------------------------------------------
>> Start Your Social Network Today - Download eXo Platform
>> Build your Enterprise Intranet with eXo Platform Software
>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
>> Get Started Now And Turn Your Intranet Into A Collaboration Platform
>> http://p.sf.net/sfu/ExoPlatform
>> _______________________________________________
>> Geoserver-users mailing list
>>

> Geoserver-users@anonymised.com

>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform
> _______________________________________________
> Geoserver-users mailing list

> Geoserver-users@anonymised.com

> https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ah ok no problem I'll wait next week.

In the meantime here are the exported environment variables:

root@anonymised.com:~# echo $LD_LIBRARY_PATH
/var/lib/geoserver_gdal/gdal-ubuntu
root@anonymised.com:~# echo $GDAL_DATA
/var/lib/geoserver_gdal/gdal-data

Thanks,
Best Regards

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5136666.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Geoserver-users mailing list

Geoserver-users@anonymised.com

https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform
available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Geoserver-users mailing list

Geoserver-users@anonymised.com

https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5137570.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Mon, Apr 28, 2014 at 5:53 PM, Alex70 <mad4jsp@anonymised.com> wrote:

Hi,

Yes actually now it works

Good news :slight_smile:

with your suggestion I have added to setenv.sh:

export GEOSERVER_DATA_DIR=/var/lib/geoserver_data
export GDAL_DATA=/var/lib/geoserver_gdal/gdal-data
export LD_LIBRARY_PATH=/var/lib/geoserver_gdal/gdal-ubuntu
export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=64m
-XX:MaxPermSize=256m"

I had previously exported these path in the /etc/profile and for some times
this works. Don't know way it stopped, as far as I know this file should be
loaded at start up.

So regarding the suggestions for the web page that explains how to install
this extension I would add a note explaining where export the environment
variable

Some people uses tomcat, some other uses different containers, some other
uses services and so on, so we didn't added tomcat specific instructions.
I will add a tomcat subsection since Tomcat is commonly used.

and if it is really necessary to export GDAL_DATA (it seams working

even without it).

The GDAL_DATA contains Coordinate Referencing System definitions which are
used by some GDAL drivers (as ECW and some others). Depending on which
format you are using, they will be used or not.

Moreover I had to set all the fils and folders (inside and outside
geoserver) owned by tomcat7, which is not written in the documentation.

This is a user permissions topic. In case the Tomcat where GeoServer is
deployed is executed by a "tomcat" user and your data/config are into
folders with reduced permission settings (as an instance, "tomcat" is into
a different group, or no write access are allowed for group, other users)
is it possible that permission issues occur when the config files are
updated or mosaic are created since the user running GeoServer needs the
permissions to write them (note that this isn't a GDAL plugin specific
topic but a general one)

Also I suggest to add a note to optionally increase the -Xmx value in our

case the default heap limit was not sufficient.

There is another page in documentation for that:
http://docs.geoserver.org/latest/en/user/production/container.html#optimize-your-jvm

Thanks for the help.

No problem. Thanks for your feedbacks.
Best Regards,
Daniele

Best Regards.

Alex

Daniele Romagnoli-3 wrote
> Hi Alex,
> are you setting this LD_LIBRARY_PATH on your tomcat startup?
>
> Could you try adding this to your tomcat setenv.sh script?
>
> export
> LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/var/lib/geoserver_gdal/gdal-ubuntu
> export
JAVA_OPTS="-Djava.library.path=/var/lib/geoserver_gdal/gdal-ubuntu"
>
> Cheers,
> Daniele
>
>
> ==
> Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
> for more information.
> ==
> Ing. Daniele Romagnoli
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
>
> On Wed, Apr 23, 2014 at 11:42 AM, Alex70 &lt;

> mad4jsp@

> &gt; wrote:
>
>> Simone Giannecchini wrote
>> > Dear Alex,
>> > Daniele is on vacation this week, so I would not expect an answer.
>> >
>> > That said, I read the report quickly and I don't have much more to
>> add.
>> > If you are sure the java gdalinfo works fine, make sure the
>> > LD_LIBRARY_PATH points correctly to the right gdal installation.
>> >
>> > You can also try a fresh install of the GeoServer Bin based on jetty.
>> >
>> > Regards,
>> > Simone Giannecchini
>> > ==
>> > Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
>> > for more information.
>> > ==
>> >
>> > Ing. Simone Giannecchini
>> > @simogeo
>> > Founder/Director
>> >
>> > GeoSolutions S.A.S.
>> > Via Poggio alle Viti 1187
>> > 55054 Massarosa (LU)
>> > Italy
>> > phone: +39 0584 962313
>> > fax: +39 0584 1660272
>> > mob: +39 333 8128928
>> >
>> > http://www.geo-solutions.it
>> > http://twitter.com/geosolutions_it
>> >
>> > -------------------------------------------------------
>> >
>> >
>> > On Wed, Apr 23, 2014 at 10:39 AM, Alex70 &lt;
>>
>> > mad4jsp@
>>
>> > &gt; wrote:
>> >> Good morning,
>> >>
>> >> any further suggestions about this tread?
>> >>
>> >> Regards
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>>
http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5136646.html
>> >> Sent from the GeoServer - User mailing list archive at Nabble.com.
>> >>
>> >>
>>
------------------------------------------------------------------------------
>> >> Start Your Social Network Today - Download eXo Platform
>> >> Build your Enterprise Intranet with eXo Platform Software
>> >> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
>> >> Get Started Now And Turn Your Intranet Into A Collaboration Platform
>> >> http://p.sf.net/sfu/ExoPlatform
>> >> _______________________________________________
>> >> Geoserver-users mailing list
>> >>
>>
>> > Geoserver-users@anonymised.com
>>
>> >> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>> >
>> >
>>
------------------------------------------------------------------------------
>> > Start Your Social Network Today - Download eXo Platform
>> > Build your Enterprise Intranet with eXo Platform Software
>> > Java Based Open Source Intranet - Social, Extensible, Cloud Ready
>> > Get Started Now And Turn Your Intranet Into A Collaboration Platform
>> > http://p.sf.net/sfu/ExoPlatform
>> > _______________________________________________
>> > Geoserver-users mailing list
>>
>> > Geoserver-users@anonymised.com
>>
>> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>> Ah ok no problem I'll wait next week.
>>
>> In the meantime here are the exported environment variables:
>>
>> root@anonymised.com:~# echo $LD_LIBRARY_PATH
>> /var/lib/geoserver_gdal/gdal-ubuntu
>> root@anonymised.com:~# echo $GDAL_DATA
>> /var/lib/geoserver_gdal/gdal-data
>>
>> Thanks,
>> Best Regards
>>
>>
>>
>> --
>> View this message in context:
>>
http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5136666.html
>> Sent from the GeoServer - User mailing list archive at Nabble.com.
>>
>>
>>
------------------------------------------------------------------------------
>> Start Your Social Network Today - Download eXo Platform
>> Build your Enterprise Intranet with eXo Platform Software
>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
>> Get Started Now And Turn Your Intranet Into A Collaboration Platform
>> http://p.sf.net/sfu/ExoPlatform
>> _______________________________________________
>> Geoserver-users mailing list
>>

> Geoserver-users@anonymised.com

>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos. Get
> unparalleled scalability from the best Selenium testing platform
> available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Geoserver-users mailing list

> Geoserver-users@anonymised.com

> https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/GDAL-plugin-not-loading-Ubuntu-tp5135892p5137570.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users