[Geoserver-users] Geoserver Services Stopped Unexpectedly

Hi all,

I’m developing WebGIS based to visualise spatial planning data, I have 50+ layers which primary store in PostGIS. I made connection from Geoserver to PostGIS and served all the layers as Web Map Services(WMS), openlayers been used as the webmap library to render all the layers and tools.

I developed the whole app (postgresql, geoserver, and web) on VPS which running on Ubuntu 14.04, 2 GB of RAM and 40Gb of HDD. The problem is geoserver services often suddenly stopped, I try to increase the java heap to 512Mb, turned off unused services like WFS, WCS but the problem still occurred, why the services often stopped?

Need advice from all of you guys who might have experiencing the same problem with me.

Thank you
Best

--
Muhammad Iqnaul Haq
Cartography and Remote Sensing
Faculty of Geography
Universitas Gadjah Mada
Yogyakarta

"I'm a slow walker but I never walk backwards" -Abraham Lincoln

Sent from Mail 6.5 Apple Inc.

Hi,
what you’re reporting is not normal, but it’s impossible to tell unless you provide
more information.

What do you mean by services “stopped”? Do you have any interesting error in the
geoserver.log file?

Cheers
Andrea

···

On Sat, Oct 17, 2015 at 3:42 PM, Muhammad Iqnaul Haq <iqnaulhaq@anonymised.com> wrote:

Hi all,

I’m developing WebGIS based to visualise spatial planning data, I have 50+ layers which primary store in PostGIS. I made connection from Geoserver to PostGIS and served all the layers as Web Map Services(WMS), openlayers been used as the webmap library to render all the layers and tools.

I developed the whole app (postgresql, geoserver, and web) on VPS which running on Ubuntu 14.04, 2 GB of RAM and 40Gb of HDD. The problem is geoserver services often suddenly stopped, I try to increase the java heap to 512Mb, turned off unused services like WFS, WCS but the problem still occurred, why the services often stopped?

Need advice from all of you guys who might have experiencing the same problem with me.

Thank you
Best


Muhammad Iqnaul Haq
Cartography and Remote Sensing
Faculty of Geography
Universitas Gadjah Mada
Yogyakarta

“I’m a slow walker but I never walk backwards” -Abraham Lincoln

Sent from Mail 6.5 Apple Inc.



Geoserver-users mailing list
Geoserver-users@anonymised.comsts.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 Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.


Hi Andrea,

The Geoserver cannot be accessed at all, I need to restart the service again. I only see the error about failed to access one of data store connections which has not been used anymore, is it caused the services to stop? I put the error on dropbox Geoserver Logs 2015-10-17 and the full geoserver log in here. I am glad if you can take a look at the logs, because perhaps there may another activity/error that looks weird to you.

Thank you
Best

Muhammad Iqnaul Haq
Cartography and Remote Sensing
Faculty of Geography
Universitas Gadjah Mada
Yogyakarta

“I’m a slow walker but I never walk backwards” -Abraham Lincoln

Sent from Mail 6.5 Apple Inc.

On Oct 17, 2015, at 8:51 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi,
what you’re reporting is not normal, but it’s impossible to tell unless you provide
more information.

What do you mean by services “stopped”? Do you have any interesting error in the
geoserver.log file?

Cheers
Andrea

On Sat, Oct 17, 2015 at 4:26 PM, Muhammad Iqnaul Haq <iqnaulhaq@anonymised.com>
wrote:

Hi Andrea,

The Geoserver cannot be accessed at all, I need to restart the service
again. I only see the error about failed to access one of data store
connections which has not been used anymore, is it caused the services to
stop? I put the error on dropbox
<https://www.dropbox.com/s/n1wgct365ne404i/geoserverlog-20151017.txt?dl=0&gt;
G
<https://www.dropbox.com/s/n1wgct365ne404i/geoserverlog-20151017.txt?dl=0&gt;eoserver
Logs 2015-10-17 and the full geoserver log in here
<https://drive.google.com/file/d/0B0cf6-pryRRldkp3aTFsMVJjNHM/view?usp=sharing&gt;\.
I am glad if you can take a look at the logs, because perhaps there may
another activity/error that looks weird to you.

Had a quick look in the short logs, and see this inability to decrypt a
password:

Caused by: org.jasypt.exceptions.EncryptionOperationNotPossibleException
at
org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:981)
at
org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:717)
at
org.geoserver.security.password.GeoServerPBEPasswordEncoder.decode(GeoServerPBEPasswordEncoder.java:177)
at
org.geoserver.security.password.ConfigurationPasswordEncryptionHelper.decode(ConfigurationPasswordEncryptionHelper.java:174)
at
org.geoserver.security.password.ConfigurationPasswordEncryptionHelper.decode(ConfigurationPasswordEncryptionHelper.java:154)
at
org.geoserver.config.util.XStreamPersister$StoreInfoConverter.doUnmarshal(XStreamPersister.java:1591)
at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)

A situation that could cause this problem could be that:
* You had installed the strong encryption support in your JDK (to get rid
of the warning message in the GeoServer home page)
* The JDK got updated automatically, and the strong encryption support was
lost, causing the inability to decrypt the passwords.

However the above should make the server return errors when you try to
access the layers, but not "cannot be accessed at all"
like you describe, which I would interpret as no HTTP response at all

Cheers
Andrea

--

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 Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.

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

I am using JRE 1.7.0 downloaded from oracle (not openjdk) is it caused the geoserver become unstable? There is no error logs that describe why the services suddenly stopped, isn’t it?

Best

Muhammad Iqnaul Haq
Cartography and Remote Sensing
Faculty of Geography
Universitas Gadjah Mada
Yogyakarta

“I’m a slow walker but I never walk backwards” -Abraham Lincoln

Sent from Mail 6.5 Apple Inc.

On Oct 17, 2015, at 9:33 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Had a quick look in the short logs, and see this inability to decrypt a password:

Caused by: org.jasypt.exceptions.EncryptionOperationNotPossibleException
at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:981)
at org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:717)
at org.geoserver.security.password.GeoServerPBEPasswordEncoder.decode(GeoServerPBEPasswordEncoder.java:177)
at org.geoserver.security.password.ConfigurationPasswordEncryptionHelper.decode(ConfigurationPasswordEncryptionHelper.java:174)
at org.geoserver.security.password.ConfigurationPasswordEncryptionHelper.decode(ConfigurationPasswordEncryptionHelper.java:154)
at org.geoserver.config.util.XStreamPersister$StoreInfoConverter.doUnmarshal(XStreamPersister.java:1591)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)

A situation that could cause this problem could be that:

  • You had installed the strong encryption support in your JDK (to get rid of the warning message in the GeoServer home page)
  • The JDK got updated automatically, and the strong encryption support was lost, causing the inability to decrypt the passwords.

However the above should make the server return errors when you try to access the layers, but not “cannot be accessed at all”
like you describe, which I would interpret as no HTTP response at all

Cheers
Andrea

On Sat, Oct 17, 2015 at 4:45 PM, Muhammad Iqnaul Haq <iqnaulhaq@anonymised.com>
wrote:

I am using JRE 1.7.0 downloaded from oracle (not openjdk) is it caused the
geoserver become unstable? There is no error logs that describe why the
services suddenly stopped, isn’t it?

None. You can check on the GeoServer UI, status panel, and see if that's
what you're actually running.

Also, can you clarify what you mean by stopped? Are you getting back
service exceptions or just no response at all?

Cheers
Andrea

--

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 Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.

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

Stopped means The geoserver process suddenly disappear without any error logged on my server. I cannot access the geoserver from http, the map showed nothing all of my layers unable to load because it cannot find the geoserver services, the service needs to be started so that geoserver can run again. I put my geoserver status screenshot here
I already remove all unnecessary workspace, database connections, and services (WCS and WFS).

Best

Muhammad Iqnaul Haq
Cartography and Remote Sensing
Faculty of Geography
Universitas Gadjah Mada
Yogyakarta

“I’m a slow walker but I never walk backwards” -Abraham Lincoln

···

On Sat, Oct 17, 2015 at 4:45 PM, Muhammad Iqnaul Haq <iqnaulhaq@anonymised.com> wrote:

I am using JRE 1.7.0 downloaded from oracle (not openjdk) is it caused the geoserver become unstable? There is no error logs that describe why the services suddenly stopped, isn’t it?

None. You can check on the GeoServer UI, status panel, and see if that’s what you’re actually running.

Also, can you clarify what you mean by stopped? Are you getting back service exceptions or just no response at all?

Cheers
Andrea

==
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 Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.


On Sat, Oct 17, 2015 at 5:05 PM, Muhammad Iqnaul Haq <iqnaulhaq@anonymised.com>
wrote:

Stopped means The geoserver process suddenly disappear without any error
logged on my server.

Oh ok, that means it's a hard JVM crash (could be a segmentation fault or
other problem).
You should find files named "hs_err_pid<numberHere>.log" in your file
system,
they normally are in the directory where the java virtual machine was
launched, which can provide
some information about it.

Cheers
Andrea

--

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 Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.

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

On 18/10/15 04:08, Andrea Aime wrote:

On Sat, Oct 17, 2015 at 5:05 PM, Muhammad Iqnaul Haq <iqnaulhaq@anonymised.com>
wrote:

Stopped means The geoserver process suddenly disappear without any error
logged on my server.

Oh ok, that means it's a hard JVM crash (could be a segmentation fault or
other problem).
You should find files named "hs_err_pid<numberHere>.log" in your file
system,
they normally are in the directory where the java virtual machine was
launched, which can provide
some information about it.

On Ubuntu you should be able to find these files using (as root):

updatedb
locate hs_err_pid

You will need to examine the times on the files to identify the one corresponding to the crash. Please email this file to the list.

It is possible to have multiple Java implementation installed. It would be most useful to confirm the JVM version both in GeoServer and at the command line with:

ps -fwwC java

java -version

You can find all the installed java versions with:

update-java-alternatives -l

dpkg -l "openjdk*" "oracle-java*" | cat

Kind regards,

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand