[Geoserver-users] Geoserver migration

Hi list,

We are planning to migrate our Geoserver instance from the 2.0.2 version to the latest release version 2.2.4. I've looking at the documentation and I haven't found a topic on that type of migration. The closest thing I've found is http://docs.geoserver.org/latest/en/user/datadirectory/migrating.html#migrating-between-geoserver-2-1-x-and-2-2-x. Here it says that there have been some changes in the security directory and I'm a bit worried about that. So my question is... Do I have to migrate geoserver just changing the version and then pointing it to the new data directory? Is that enough? Are there some other considerations I must take into account?

Thanks in advance.

Regards,

David Alda Fernández de Lezea

INFORMAZIO ETA TEKNOLOGIA UNITATEA / UNIDAD DE INFORMACIÓN Y TECNOLOGÍA

Granja Modelo s/n

01192 Arkaute Araba
T 945 003 295 F 945 003 290

dalda@anonymised.com <blocked::mailto:correo_electronico@anonymised.com> | www.hazi.es <blocked::http://www.hazi.es/&gt;

<file://C:\Documents and Settings\u0899dal\Datos de programa\Microsoft\Signatures\HAZI Consultoria_archivos\image001.jpg>

<blocked::http://www.hazi.es/&gt;

********************* LEGE OHARRA ******************* AVISO LEGAL ******************* DISCLAIMER ******************

Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.

Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.

This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.

On Mon, Feb 25, 2013 at 8:02 AM, David Alda Fernandez de Lezea <dalda@anonymised.com29…> wrote:

Hi list,

We are planning to migrate our Geoserver instance from the 2.0.2 version to the latest release version 2.2.4. I’ve looking at the documentation and I haven’t found a topic on that type of migration. The closest thing I’ve found is http://docs.geoserver.org/latest/en/user/datadirectory/migrating.html#migrating-between-geoserver-2-1-x-and-2-2-x. Here it says that there have been some changes in the security directory and I’m a bit worried about that. So my question is… Do I have to migrate geoserver just changing the version and then pointing it to the new data directory? Is that enough? Are there some other considerations I must take into account?

There are no upgrade instructions because normally the upgrade does not require any particular step,
GeoServer upgrades the data dir structure automatically.
However, the data directory structure as you say changes, so if by any chance you need to go back
to 2.0.2 that is going to be problematic.
As a result, better do a backup of the data directory before letting 2.2.4 modify its structure

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it 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


Andrea,

Thanks for your response.

Ok so the most problematic scenario would be to reverse back to my old version. Well, so far I've been doing backups so that wouldn't be a problem at all.

Thanks!!

Regards.

David Alda Fernández de Lezea

INFORMAZIO ETA TEKNOLOGIA UNITATEA / UNIDAD DE INFORMACIÓN Y TECNOLOGÍA

Granja Modelo s/n

01192 Arkaute Araba
T 945 003 295 F 945 003 290

dalda@anonymised.com <blocked::mailto:correo_electronico@anonymised.com> | www.hazi.es <blocked::http://www.hazi.es/&gt;

<file://C:\Documents and Settings\u0899dal\Datos de programa\Microsoft\Signatures\HAZI Consultoria_archivos\image001.jpg>

<blocked::http://www.hazi.es/&gt;

********************* LEGE OHARRA ******************* AVISO LEGAL ******************* DISCLAIMER ******************

Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.

Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.

This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.

________________________________

De: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] En nombre de Andrea Aime
Enviado el: lunes, 25 de febrero de 2013 9:55
Para: David Alda Fernandez de Lezea
CC: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] Geoserver migration

On Mon, Feb 25, 2013 at 8:02 AM, David Alda Fernandez de Lezea <dalda@anonymised.com29...> wrote:

  Hi list,
  
  We are planning to migrate our Geoserver instance from the 2.0.2 version to the latest release version 2.2.4. I've looking at the documentation and I haven't found a topic on that type of migration. The closest thing I've found is http://docs.geoserver.org/latest/en/user/datadirectory/migrating.html#migrating-between-geoserver-2-1-x-and-2-2-x. Here it says that there have been some changes in the security directory and I'm a bit worried about that. So my question is... Do I have to migrate geoserver just changing the version and then pointing it to the new data directory? Is that enough? Are there some other considerations I must take into account?
  
There are no upgrade instructions because normally the upgrade does not require any particular step,
GeoServer upgrades the data dir structure automatically.
However, the data directory structure as you say changes, so if by any chance you need to go back
to 2.0.2 that is going to be problematic.
As a result, better do a backup of the data directory before letting 2.2.4 modify its structure

Cheers
Andrea

--

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it 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

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

Hi again,

After installing and checking that everything is alright I'm trying to preview some layers but I'm getting thise error constantly:

java.lang.OutOfMemoryError: PermGen space
  oracle.jdbc.oracore.OracleTypeADT.getNextTypeObject(OracleTypeADT.java:1309)
  oracle.jdbc.oracore.OracleTypeADT.parseTDSrec(OracleTypeADT.java:818)
  oracle.jdbc.oracore.OracleTypeADT.parseTDS(OracleTypeADT.java:752)
  oracle.jdbc.oracore.OracleTypeADT.init(OracleTypeADT.java:380)
  oracle.jdbc.oracore.OracleTypeADT.init(OracleTypeADT.java:363)
  oracle.sql.TypeDescriptor.getTypeDescriptor(TypeDescriptor.java:362)
  oracle.jdbc.driver.NamedTypeAccessor.otypeFromName(NamedTypeAccessor.java:68)
  oracle.jdbc.driver.TypeAccessor.initMetadata(TypeAccessor.java:76)
  oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:818)
  oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1037)
  oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:830)
  oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1132)
  oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1272)
  org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
  org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
  org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
  org.geotools.data.oracle.OracleDialect.canAccessUserViews(OracleDialect.java:186)
  org.geotools.data.oracle.OracleDialect.lookupGeometryClassOnUserIndex(OracleDialect.java:294)
  org.geotools.data.oracle.OracleDialect.getMapping(OracleDialect.java:220)
  org.geotools.jdbc.JDBCFeatureSource.getColumnMetadata(JDBCFeatureSource.java:720)
  org.geotools.jdbc.JDBCFeatureSource.buildFeatureType(JDBCFeatureSource.java:204)
  org.geotools.jdbc.JDBCDataStore.createFeatureSource(JDBCDataStore.java:796)
  org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:387)
  org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:352)
  org.geotools.data.store.ContentDataStore.getSchema(ContentDataStore.java:336)
  org.geotools.data.store.ContentDataStore.getSchema(ContentDataStore.java:678)
  org.geotools.data.store.ContentDataStore.getSchema(ContentDataStore.java:104)
  org.geoserver.catalog.ResourcePool.getFeatureType(ResourcePool.java:663)
  org.geoserver.catalog.ResourcePool.getFeatureType(ResourcePool.java:620)
  org.geoserver.catalog.impl.FeatureTypeInfoImpl.getFeatureType(FeatureTypeInfoImpl.java:86)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

Another one

[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/geoserver].[dispatcher]] - Servlet.service() for servlet dispatcher threw exception
java.lang.OutOfMemoryError: PermGen space
  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClassCond(Unknown Source)
  at java.lang.ClassLoader.defineClass(Unknown Source)
  at java.security.SecureClassLoader.defineClass(Unknown Source)
  at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1960)
  at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:933)
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1405)
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
  at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313)
  at org.geotools.data.oracle.OracleDialect.isGeodeticSrid(OracleDialect.java:970)
  at org.geotools.data.oracle.OracleDialect.postCreateAttribute(OracleDialect.java:1043)
  at org.geotools.jdbc.JDBCFeatureSource.buildFeatureType(JDBCFeatureSource.java:330)
  at org.geotools.jdbc.JDBCDataStore.createFeatureSource(JDBCDataStore.java:796)
  at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:387)
  at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:352)
  at org.geotools.data.store.ContentDataStore.getSchema(ContentDataStore.java:336)
  at org.geotools.data.store.ContentDataStore.getSchema(ContentDataStore.java:678)
  at org.geotools.data.store.ContentDataStore.getSchema(ContentDataStore.java:104)
  at org.geoserver.catalog.ResourcePool.getFeatureType(ResourcePool.java:663)
  at org.geoserver.catalog.ResourcePool.getFeatureType(ResourcePool.java:620)
  at org.geoserver.catalog.impl.FeatureTypeInfoImpl.getFeatureType(FeatureTypeInfoImpl.java:86)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.geoserver.catalog.impl.ModificationProxy.invoke(ModificationProxy.java:144)
  at $Proxy10.getFeatureType(Unknown Source)
  at org.geoserver.web.CatalogIconFactory.getSpecificLayerIcon(CatalogIconFactory.java:119)
  at org.geoserver.web.demo.PreviewLayer.getIcon(PreviewLayer.java:74)
  at org.geoserver.web.demo.MapPreviewPage$1.getComponentForProperty(MapPreviewPage.java:72)
  at org.geoserver.web.wicket.GeoServerTablePanel$2$1.populateItem(GeoServerTablePanel.java:162)
  at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:562)

I've added these values in the Tomcat Monitor Java Options section but I'm not sure if I've used them properly. So far I didn't have any extra paramameters configured. I know this is a very common error, but I can't find the solution. I've tried different values, but without success.

Any ideas?

-Xms1536m-Xmx1536m-XX:PermSize=256m-XX:MaxPermSize=256m

David Alda Fernández de Lezea

INFORMAZIO ETA TEKNOLOGIA UNITATEA / UNIDAD DE INFORMACIÓN Y TECNOLOGÍA

Granja Modelo s/n
01192 Arkaute Araba
T 945 003 295 F 945 003 290
dalda@anonymised.com | www.hazi.es

********************* LEGE OHARRA ******************* AVISO LEGAL ******************* DISCLAIMER ******************
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.

-----Mensaje original-----
De: David Alda Fernandez de Lezea [mailto:dalda@anonymised.com]
Enviado el: lunes, 25 de febrero de 2013 10:09
Para: Andrea Aime
CC: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] Geoserver migration

Andrea,

Thanks for your response.

Ok so the most problematic scenario would be to reverse back to my old version. Well, so far I've been doing backups so that wouldn't be a problem at all.

Thanks!!

Regards.

David Alda Fernández de Lezea

INFORMAZIO ETA TEKNOLOGIA UNITATEA / UNIDAD DE INFORMACIÓN Y TECNOLOGÍA

Granja Modelo s/n

01192 Arkaute Araba
T 945 003 295 F 945 003 290

dalda@anonymised.com <blocked::mailto:correo_electronico@anonymised.com> | www.hazi.es <blocked::http://www.hazi.es/&gt;

<file://C:\Documents and Settings\u0899dal\Datos de programa\Microsoft\Signatures\HAZI Consultoria_archivos\image001.jpg>

<blocked::http://www.hazi.es/&gt;

********************* LEGE OHARRA ******************* AVISO LEGAL ******************* DISCLAIMER ******************

Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.

Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.

This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.

________________________________

De: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] En nombre de Andrea Aime Enviado el: lunes, 25 de febrero de 2013 9:55
Para: David Alda Fernandez de Lezea
CC: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] Geoserver migration

On Mon, Feb 25, 2013 at 8:02 AM, David Alda Fernandez de Lezea <dalda@anonymised.com29...> wrote:

  Hi list,
  
  We are planning to migrate our Geoserver instance from the 2.0.2 version to the latest release version 2.2.4. I've looking at the documentation and I haven't found a topic on that type of migration. The closest thing I've found is http://docs.geoserver.org/latest/en/user/datadirectory/migrating.html#migrating-between-geoserver-2-1-x-and-2-2-x. Here it says that there have been some changes in the security directory and I'm a bit worried about that. So my question is... Do I have to migrate geoserver just changing the version and then pointing it to the new data directory? Is that enough? Are there some other considerations I must take into account?
  
There are no upgrade instructions because normally the upgrade does not require any particular step, GeoServer upgrades the data dir structure automatically.
However, the data directory structure as you say changes, so if by any chance you need to go back to 2.0.2 that is going to be problematic.
As a result, better do a backup of the data directory before letting 2.2.4 modify its structure

Cheers
Andrea

--

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it 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

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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Mon, Feb 25, 2013 at 12:14 PM, David Alda Fernandez de Lezea <dalda@anonymised.com.4629…> wrote:

-Xms1536m-Xmx1536m-XX:PermSize=256m-XX:MaxPermSize=256m

Hmm… these values look good, but there should be spaces among the values.
How you’re running GeoServer matters too, for example on Windows as a service
there is a command to run in order to install the new values (but not using Windows
normally, I don’t remember it by heart)

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it 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


Hi,

I finally solved this issue. It worked with the following parameters.

-Xmx1024M
-Xms1024M
-XX:MaxPermSize=256M

Thanks.

David Alda Fernández de Lezea

INFORMAZIO ETA TEKNOLOGIA UNITATEA / UNIDAD DE INFORMACIÓN Y TECNOLOGÍA

Granja Modelo s/n

01192 Arkaute Araba
T 945 003 295 F 945 003 290

dalda@anonymised.com <blocked::mailto:correo_electronico@anonymised.com> | www.hazi.es <blocked::http://www.hazi.es/&gt;

<file://C:\Documents and Settings\u0899dal\Datos de programa\Microsoft\Signatures\HAZI Consultoria_archivos\image001.jpg>

<blocked::http://www.hazi.es/&gt;

********************* LEGE OHARRA ******************* AVISO LEGAL ******************* DISCLAIMER ******************

Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.

Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.

This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.

________________________________

De: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] En nombre de Andrea Aime
Enviado el: lunes, 25 de febrero de 2013 17:07
Para: David Alda Fernandez de Lezea
CC: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] Geoserver migration

On Mon, Feb 25, 2013 at 12:14 PM, David Alda Fernandez de Lezea <dalda@anonymised.com629...> wrote:

  -Xms1536m-Xmx1536m-XX:PermSize=256m-XX:MaxPermSize=256m
  
Hmm... these values look good, but there should be spaces among the values.
How you're running GeoServer matters too, for example on Windows as a service
there is a command to run in order to install the new values (but not using Windows
normally, I don't remember it by heart)

Cheers
Andrea

--

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it 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

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