Discussion:
[Geoserver-users] Geoserver reload issue
Thomas
2017-03-22 14:07:24 UTC
Permalink
Hello,

i've got a strange issue that i can't figure out by myself :

I've got a geoserver instance feed with netcdf raster files (one for
current and one for waves). Those netcdf files are push daily to geoserver
with some scripts by REST api. This script purge existing
storage/layer/layer group/etc... then recreate it with new data then reload
geoserver.

Randomly and without any error in logs, when it reload via REST api the
current netcdf become unavailable to see. It is created and enable in
geoserver storage, layers and group also but when going to layer preview
there is nothing.

To fix this i have to reload multiple time (sometimes one or two, sometimes
five or six) geoserver via web GUI then it works again.

I've tried multiple geoserver version (from 2.9.4 to 2.10.2) without
change, my current version is 2.9.4. I tried different Linux OS (ubuntu
16.04, centos 7), different machines and every time the same issue.

Does anyone got an idea ?

Regards
P O'Toole
2017-03-22 22:08:27 UTC
Permalink
Thomas -
Post by Thomas
current netcdf become unavailable to see. It is created and enable in
geoserver storage, layers and group also but when going to layer preview
there is nothing.
I have not had great experience with Geoserver's layer-previews reliably working in general. Sometimes it seems they refuse to work, even though the services themselves are perfectly fine. If you can provide the essential REST-config commands you're sending to Geoserver to add a new layer/store/etc. and share a (sample) netcdf-file that fails to preview after adding it that way, that may be useful to maintainers so that they can make fixes.

In the meantime if it's difficult to know in your script if layer-previews aren't going to work, you might just have the same scripts that create the netcdf-files issue a series of WMS-requests after creating the new services in Geoserver, and save PNG-images or something so they can be examined by a human.

- Patrick O'Toole

Application Developer
Wyoming Natural Diversity Database
UW Berry Biodiversity Conservation Center
Department 3381, 1000 E. University Av.
Laramie, WY 82071
P: 307-766-3018
Andrea Aime
2017-03-23 07:41:34 UTC
Permalink
Hi Patrick,
we use the preview daily without particular problems, if you can pinpoint
exactly what does not
work as expected please do open tickets at
https://osgeo-org.atlassian.net/projects/GEOS/summary

Best tickets provide a way to reproduce the issue, with eventual sample
data and the like

Cheers
Andrea
Post by P O'Toole
Thomas -
Post by Thomas
current netcdf become unavailable to see. It is created and enable in
geoserver storage, layers and group also but when going to layer preview
there is nothing.
I have not had great experience with Geoserver's layer-previews reliably
working in general. Sometimes it seems they refuse to work, even though the
services themselves are perfectly fine. If you can provide the essential
REST-config commands you're sending to Geoserver to add a new
layer/store/etc. and share a (sample) netcdf-file that fails to preview
after adding it that way, that may be useful to maintainers so that they
can make fixes.
In the meantime if it's difficult to know in your script if layer-previews
aren't going to work, you might just have the same scripts that create the
netcdf-files issue a series of WMS-requests after creating the new services
in Geoserver, and save PNG-images or something so they can be examined by a
human.
- Patrick O'Toole
Application Developer
Wyoming Natural Diversity Database
UW Berry Biodiversity Conservation Center
Department 3381, 1000 E. University Av.
Laramie, WY 82071
P: 307-766-3018
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo Ú consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
P O'Toole
2017-04-24 23:50:31 UTC
Permalink
Andrea –

Just to briefly follow up on this, a colleague figured out recently that our issues with broken layer-previews in Geoserver (or layer-previews that were not always working) were due to either having an invalid/missing style or having no default style for a couple of layers. This didn't seem to mess with ordinary requests from outside applications, just the layer-previews from within Geoserver's web-console. Perhaps that's because other platforms consuming WMS were doing GetCapabilities to find styles and/or leaving out the &styles= argument from the URL entirely.

Cheers,
- Patrick

From: ***@gmail.com [mailto:***@gmail.com] On Behalf Of Andrea Aime
Sent: Thursday, March 23, 2017 1:42 AM
To: P O'Toole <***@uwyo.edu>
Cc: geoserver-***@lists.sourceforge.net; ***@gmail.com
Subject: Re: [Geoserver-users] Geoserver reload issue

Hi Patrick,
we use the preview daily without particular problems, if you can pinpoint exactly what does not
work as expected please do open tickets at https://osgeo-org.atlassian.net/projects/GEOS/summary

Best tickets provide a way to reproduce the issue, with eventual sample data and the like

Cheers
Andrea


On Wed, Mar 22, 2017 at 11:08 PM, P O'Toole <***@uwyo.edu<mailto:***@uwyo.edu>> wrote:
Thomas -
Post by Thomas
current netcdf become unavailable to see. It is created and enable in
geoserver storage, layers and group also but when going to layer preview
there is nothing.
I have not had great experience with Geoserver's layer-previews reliably working in general. Sometimes it seems they refuse to work, even though the services themselves are perfectly fine. If you can provide the essential REST-config commands you're sending to Geoserver to add a new layer/store/etc. and share a (sample) netcdf-file that fails to preview after adding it that way, that may be useful to maintainers so that they can make fixes.

In the meantime if it's difficult to know in your script if layer-previews aren't going to work, you might just have the same scripts that create the netcdf-files issue a series of WMS-requests after creating the new services in Geoserver, and save PNG-images or something so they can be examined by a human.

- Patrick O'Toole

Application Developer
Wyoming Natural Diversity Database
UW Berry Biodiversity Conservation Center
Department 3381, 1000 E. University Av.
Laramie, WY 82071
P: 307-766-3018<tel:307-766-3018>



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Geoserver-***@lists.sourceforge.net<mailto:Geoserver-***@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

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


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo Ú consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

-------------------------------------------------------
Andrea Aime
2017-04-25 09:32:18 UTC
Permalink
Hi Patrick,
this is useful. What happens when a layer points to a missing style, or has
no style?
Is the specific preview not working, or the entire page not displaying?

Also, do you have any idea of how you got there? The UI and REST API should
both
perform validations and disallow setting null as a layer style, and removal
of a style
should replace it with a default built-in style.

Cheers
Andrea
Post by P O'Toole
Andrea –
Just to briefly follow up on this, a colleague figured out recently that
our issues with broken layer-previews in Geoserver (or layer-previews that
were not always working) were due to either having an invalid/missing style
or having no default style for a couple of layers. This didn't seem to mess
with ordinary requests from outside applications, just the layer-previews
from within Geoserver's web-console. Perhaps that's because other platforms
consuming WMS were doing GetCapabilities to find styles and/or leaving out
the &styles= argument from the URL entirely.
Cheers,
- Patrick
Of *Andrea Aime
*Sent:* Thursday, March 23, 2017 1:42 AM
*Subject:* Re: [Geoserver-users] Geoserver reload issue
Hi Patrick,
we use the preview daily without particular problems, if you can pinpoint
exactly what does not
work as expected please do open tickets at https://osgeo-org.
atlassian.net/projects/GEOS/summary
Best tickets provide a way to reproduce the issue, with eventual sample data and the like
Cheers
Andrea
Thomas -
Post by Thomas
current netcdf become unavailable to see. It is created and enable in
geoserver storage, layers and group also but when going to layer preview
there is nothing.
I have not had great experience with Geoserver's layer-previews reliably
working in general. Sometimes it seems they refuse to work, even though the
services themselves are perfectly fine. If you can provide the essential
REST-config commands you're sending to Geoserver to add a new
layer/store/etc. and share a (sample) netcdf-file that fails to preview
after adding it that way, that may be useful to maintainers so that they
can make fixes.
In the meantime if it's difficult to know in your script if layer-previews
aren't going to work, you might just have the same scripts that create the
netcdf-files issue a series of WMS-requests after creating the new services
in Geoserver, and save PNG-images or something so they can be examined by a
human.
- Patrick O'Toole
Application Developer
Wyoming Natural Diversity Database
UW Berry Biodiversity Conservation Center
Department 3381, 1000 E. University Av.
Laramie, WY 82071
P: 307-766-3018
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313 <+39%200584%20962313>
fax: +39 0584 1660272 <+39%200584%20166%200272>
mob: +39 339 8844549 <+39%20339%20884%204549>
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo Ú consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
-------------------------------------------------------
--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo Ú consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
Thomas
2017-03-23 15:22:29 UTC
Permalink
Hello,

I don't think it's a openlayers problem, i'm making a little leaflet apps
to show the geoserver data and it's the same. If i look at the result of
the WMS query it's an empty png.

Here the curls i use :
****************************************************
*** DELETE LAYER ****
****************************************************
Removing layergroup
=============
curl -u login:password -XDELETE "
http://ip:8080/geoserver/rest/workspaces/TEST/layergroups/waves_201603.xml"

Removing a NetCDF table
================
curl -u login:password -XDELETE "
http://ip:8080/geoserver/rest/workspaces/TEST/coveragestores/waves?recurse=true&purge=all
"

Removing styles
==========
curl -u login:password -XDELETE "
http://ip:8080/geoserver/rest/styles/raster_waves.sld"


Reload geoserver
===========
curl -v -u login:password -XPOST http://ip:8080/geoserver/rest/reload

****************************************************
*** ADD LAYER ****
****************************************************
Adding a netcdf store
==============
curl -u login:password -v -POST -H "Content-type:text/xml" -d
"<coverageStore><name>waves</name><workspace>TEST</workspace><enabled>true</enabled><type>NetCDF</type><url>file:workspaces/TEST/waves.netcdf</url></coverageStore>"
"http://ip:8080/geoserver/rest/workspaces/TEST/coveragestores?configure=all"

Adding a raster layer
=============
curl -u login:password -XPUT -H "Content-type:application/netcdf"
--data-binary @//home/local/TEST_WAVES_GIS.nc
http://ip:8080/geoserver/rest/workspaces/TEST/coveragestores/waves/file.netcdf

Change layer name
============
curl -u login:password -XPUT -H "Content-type:text/xml" -d
"<coverage><name>waves_hs</name><enabled>true</enabled></coverage>" "
http://ip:8080/geoserver/rest/workspaces/TEST/coveragestores/waves/coverages/magnitude
"

Adding a SLD (Styled Layer Description) for layers
===============================
curl -u login:password -XPUT -H "Content-type:text/xml" -d
"<layer><defaultStyle><name>raster_waves</name></defaultStyle><enabled>true</enabled></layer>"
http://ip:8080/geoserver/rest/layers/waves_hs'

Adding time dimension and interpolation methods
===============================
curl -u login:password -XPUT -H "Content-type:text/xml" -d
"<coverage><name>waves_hs</name><enabled>true</enabled><defaultInterpolationMethod>bilinear</defaultInterpolationMethod><metadata><entry
key='time'><dimensionInfo><enabled>true</enabled><presentation>LIST</presentation><units>ISO8601</units></dimensionInfo></entry></metadata></coverage>"
"
http://ip:8080/geoserver/rest/workspaces/TEST/coveragestores/waves/coverages/waves_hs
"

Create layer group : waves_201603.xml
============
<layerGroup>
<name>waves_201603</name>
<layers>
<layer>waves_dp</layer>
<layer>waves_tp</layer>
<layer>waves_hs</layer>
<layer>waves_direction_vector</layer>
</layers>
<styles>
<style>raster_invisible</style>
<style>raster_invisible</style>
<style>raster_waves</style>
<style>direction_arrow</style>
</styles>
</layerGroup>

Adding a layer group
=============
curl -u login:password -XPOST -d @//home/local/waves_201603.xml -H
"Content-type: text/xml"
http://ip:8080/geoserver/rest/workspaces/TEST/layergroups

Reload geoserver
===========
curl -v -u login:password -XPOST http://ip:8080/geoserver/rest/reload

Regards
Post by P O'Toole
Thomas -
Post by Thomas
current netcdf become unavailable to see. It is created and enable in
geoserver storage, layers and group also but when going to layer preview
there is nothing.
I have not had great experience with Geoserver's layer-previews reliably
working in general. Sometimes it seems they refuse to work, even though the
services themselves are perfectly fine. If you can provide the essential
REST-config commands you're sending to Geoserver to add a new
layer/store/etc. and share a (sample) netcdf-file that fails to preview
after adding it that way, that may be useful to maintainers so that they
can make fixes.
In the meantime if it's difficult to know in your script if layer-previews
aren't going to work, you might just have the same scripts that create the
netcdf-files issue a series of WMS-requests after creating the new services
in Geoserver, and save PNG-images or something so they can be examined by a
human.
- Patrick O'Toole
Application Developer
Wyoming Natural Diversity Database
UW Berry Biodiversity Conservation Center
Department 3381, 1000 E. University Av.
Laramie, WY 82071
P: 307-766-3018
Thomas
2017-03-23 14:31:08 UTC
Permalink
---------- Forwarded message ----------
From: Thomas <***@gmail.com>
Date: 2017-03-23 15:21 GMT+01:00
Subject: Re: [Geoserver-users] Geoserver reload issue
To: Daniel Araujo Miranda <***@dpf.gov.br>


Hello and thanks for your quick reply.

There is no time to wait, my script usually run at night and i figure out
it doesn't work hours later and it will not work until i reload it. The
change are visible right away in the GetCapabilities.

Yes i've tried to restart tomcat instead of reloading geoserver and the
problem still there randomly.

Thomas
Hi Thomas, I have a few thoughts, but to narrow down the possibilites I
How long does it take for you to be able to see the changes? Is it a
constant time or it depends on the number of reloads? If you wait 10
minutes, for example, do you still have to reload multiple times?
Are the changes visible on a GetCapabilities request right away or that
too takes some time?
Have you tried restarting tomcat after the REST API calls? If you did, did
the raster files show right away or you still had to reload the web
interface multiple times?
Best,
Daniel
Post by Thomas
Hello,
I've got a geoserver instance feed with netcdf raster files (one for
current and one for waves). Those netcdf files are push daily to geoserver
with some scripts by REST api. This script purge existing
storage/layer/layer group/etc... then recreate it with new data then reload
geoserver.
Randomly and without any error in logs, when it reload via REST api the
current netcdf become unavailable to see. It is created and enable in
geoserver storage, layers and group also but when going to layer preview
there is nothing.
To fix this i have to reload multiple time (sometimes one or two,
sometimes five or six) geoserver via web GUI then it works again.
I've tried multiple geoserver version (from 2.9.4 to 2.10.2) without
change, my current version is 2.9.4. I tried different Linux OS (ubuntu
16.04, centos 7), different machines and every time the same issue.
Does anyone got an idea ?
Regards
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Daniel Araujo Miranda
2017-03-23 15:14:39 UTC
Permalink
Hi Thomas,
If you can gather enough information to reproduce the problem and
open a ticket, Andrea Aime gave good advice on how to proceed.

Getting the GetCapabilities correct right away got me thinking that
your browser might be caching something it shouldn't (especially after a
reload). However in that case I would expect to see the old layer/store
configuration, not an empty one.
Clear the browser cache even before accessing the GeoServer web
interface in the morning, using more than one browser just to make sure
the problem is not a cached page.

I also suggest you test if the application that consumes the actual
WMS/WCS service is working correctly in the morning, before you do any
reloads. Since GetCapabilities is working, I would expect the services
to be too.

Best,
Daniel
Post by Thomas
---------- Forwarded message ----------
Date: 2017-03-23 15:21 GMT+01:00
Subject: Re: [Geoserver-users] Geoserver reload issue
Hello and thanks for your quick reply.
There is no time to wait, my script usually run at night and i figure
out it doesn't work hours later and it will not work until i reload
it. The change are visible right away in the GetCapabilities.
Yes i've tried to restart tomcat instead of reloading geoserver and
the problem still there randomly.
Thomas
2017-03-22 19:49 GMT+01:00 Daniel Araujo Miranda
Hi Thomas, I have a few thoughts, but to narrow down the
How long does it take for you to be able to see the changes? Is it
a constant time or it depends on the number of reloads? If you
wait 10 minutes, for example, do you still have to reload multiple
times?
Are the changes visible on a GetCapabilities request right away or
that too takes some time?
Have you tried restarting tomcat after the REST API calls? If you
did, did the raster files show right away or you still had to
reload the web interface multiple times?
Best,
Daniel
Hello,
I've got a geoserver instance feed with netcdf raster files
(one for current and one for waves). Those netcdf files are
push daily to geoserver with some scripts by REST api. This
script purge existing storage/layer/layer group/etc... then
recreate it with new data then reload geoserver.
Randomly and without any error in logs, when it reload via
REST api the current netcdf become unavailable to see. It is
created and enable in geoserver storage, layers and group also
but when going to layer preview there is nothing.
To fix this i have to reload multiple time (sometimes one or
two, sometimes five or six) geoserver via web GUI then it
works again.
I've tried multiple geoserver version (from 2.9.4 to 2.10.2)
without change, my current version is 2.9.4. I tried different
Linux OS (ubuntu 16.04, centos 7), different machines and
every time the same issue.
Does anyone got an idea ?
Regards
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
<https://lists.sourceforge.net/lists/listinfo/geoserver-users>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Thomas
2017-03-23 15:33:54 UTC
Permalink
Hello,

All cache system are already disable for debuging :)
- No geowebcache
- nginx configured to disable browser cache :
location /geoserver {
proxy_pass http://127.0.0.1:8080/geoserver;
expires -1;
add_header Cache-Control "no-cache";
}
- alway ctrl+R to reload pages on chrome or firefox, both configured to
don't cache file on disk (also try many times to delete cache, restart
browser, etc...)

The service which is leaflet also show empty png unfortunately.

Regards
Hi Thomas,
If you can gather enough information to reproduce the problem and open
a ticket, Andrea Aime gave good advice on how to proceed.
Getting the GetCapabilities correct right away got me thinking that
your browser might be caching something it shouldn't (especially after a
reload). However in that case I would expect to see the old layer/store
configuration, not an empty one.
Clear the browser cache even before accessing the GeoServer web
interface in the morning, using more than one browser just to make sure the
problem is not a cached page.
I also suggest you test if the application that consumes the actual
WMS/WCS service is working correctly in the morning, before you do any
reloads. Since GetCapabilities is working, I would expect the services to
be too.
Best,
Daniel
Post by Thomas
---------- Forwarded message ----------
Date: 2017-03-23 15:21 GMT+01:00
Subject: Re: [Geoserver-users] Geoserver reload issue
Hello and thanks for your quick reply.
There is no time to wait, my script usually run at night and i figure out
it doesn't work hours later and it will not work until i reload it. The
change are visible right away in the GetCapabilities.
Yes i've tried to restart tomcat instead of reloading geoserver and the
problem still there randomly.
Thomas
Hi Thomas, I have a few thoughts, but to narrow down the
How long does it take for you to be able to see the changes? Is it
a constant time or it depends on the number of reloads? If you
wait 10 minutes, for example, do you still have to reload multiple
times?
Are the changes visible on a GetCapabilities request right away or
that too takes some time?
Have you tried restarting tomcat after the REST API calls? If you
did, did the raster files show right away or you still had to
reload the web interface multiple times?
Best,
Daniel
Hello,
I've got a geoserver instance feed with netcdf raster files
(one for current and one for waves). Those netcdf files are
push daily to geoserver with some scripts by REST api. This
script purge existing storage/layer/layer group/etc... then
recreate it with new data then reload geoserver.
Randomly and without any error in logs, when it reload via
REST api the current netcdf become unavailable to see. It is
created and enable in geoserver storage, layers and group also
but when going to layer preview there is nothing.
To fix this i have to reload multiple time (sometimes one or
two, sometimes five or six) geoserver via web GUI then it
works again.
I've tried multiple geoserver version (from 2.9.4 to 2.10.2)
without change, my current version is 2.9.4. I tried different
Linux OS (ubuntu 16.04, centos 7), different machines and
every time the same issue.
Does anyone got an idea ?
Regards
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
<https://lists.sourceforge.net/lists/listinfo/geoserver-users>
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Loading...