[Geoserver-users] Migrating 2.1.0 to 2.2.3

Hi all,

I’ve recently installed a 2.2.3 on our webserver and need to migrate all the stores/workspaces/layers/styles from the older geoserver (2.1.0). I tried to copy/paste data_dir from the older to the new one, but that doesn’t seem to work. What are the steps that have to be taken in order to make it work? I have a lot of data and I can’t import them manually. Thank you.


Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz

Hi Michal,
I’ve not done it myself, but remembered seeing this page in the docs:
http://docs.geoserver.org/stable/en/user/installation/upgrade.html

Specifically this part may be of particular use:
http://docs.geoserver.org/stable/en/user/datadirectory/migrating.html#migrating-between-geoserver-2-1-x-and-2-2-x

Jonathan

On 18 January 2013 12:49, Michal Zimmermann <zimmicz@anonymised.com> wrote:

Hi all,

I’ve recently installed a 2.2.3 on our webserver and need to migrate all the stores/workspaces/layers/styles from the older geoserver (2.1.0). I tried to copy/paste data_dir from the older to the new one, but that doesn’t seem to work. What are the steps that have to be taken in order to make it work? I have a lot of data and I can’t import them manually. Thank you.


Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz


Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only – learn more at:
[http://p.sf.net/sfu/learnmore_122812](http://p.sf.net/sfu/learnmore
_122812)


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

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

Hi,

I’ve followed the instructions on that page (though there are not really a lot of them) with no success. I’ve left security folder unchanged and just uploaded the data, with no success.

···

On Fri, Jan 18, 2013 at 2:10 PM, Jonathan Moules <jonathanmoules@anonymised.com…> wrote:

Hi Michal,
I’ve not done it myself, but remembered seeing this page in the docs:
http://docs.geoserver.org/stable/en/user/installation/upgrade.html

Specifically this part may be of particular use:
http://docs.geoserver.org/stable/en/user/datadirectory/migrating.html#migrating-between-geoserver-2-1-x-and-2-2-x

Jonathan

On 18 January 2013 12:49, Michal Zimmermann <zimmicz@anonymised.com> wrote:

Hi all,

I’ve recently installed a 2.2.3 on our webserver and need to migrate all the stores/workspaces/layers/styles from the older geoserver (2.1.0). I tried to copy/paste data_dir from the older to the new one, but that doesn’t seem to work. What are the steps that have to be taken in order to make it work? I have a lot of data and I can’t import them manually. Thank you.


Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz


Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only – learn more at:
http://p.sf.net/sfu/learnmore_122812


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

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.


Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz

Instead of copying the entire data directory try copying only the following
directories from 2.1:
coverages (If you're storing the data in the data dir)
data (If you're storing the data in the data dir)
gwc
layergroups (if you have any)
styles
workspaces

This usually works...
Another approach is using the REST API to configure all the layers.

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Migrating-2-1-0-to-2-2-3-tp5028334p5028344.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi

You cannot left the security folder unchanged, this will not work. Did you try
to start 2.2.3 using the data directory from 2.1.0 (make a backup first!!!).
There is a lot of migration code in 2.2.x

Christian

Zitat von Michal Zimmermann <zimmicz@anonymised.com>:

Hi,
I've followed the instructions on that page (though there are not really a
lot of them) with no success. I've left security folder unchanged and just
uploaded the data, with no success.

On Fri, Jan 18, 2013 at 2:10 PM, Jonathan Moules <
jonathanmoules@anonymised.com> wrote:

Hi Michal,
I've not done it myself, but remembered seeing this page in the docs:
http://docs.geoserver.org/stable/en/user/installation/upgrade.html

Specifically this part may be of particular use:

http://docs.geoserver.org/stable/en/user/datadirectory/migrating.html#migrating-between-geoserver-2-1-x-and-2-2-x

Jonathan

On 18 January 2013 12:49, Michal Zimmermann <zimmicz@anonymised.com> wrote:

Hi all,
I've recently installed a 2.2.3 on our webserver and need to migrate all
the stores/workspaces/layers/styles from the older geoserver (2.1.0). I
tried to copy/paste data_dir from the older to the new one, but that
doesn't seem to work. What are the steps that have to be taken in order to
make it work? I have a lot of data and I can't import them manually. Thank
you.

--
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
________________________ _______________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it, or
disclose it to anyone else. If you have received this transmission in error
please notify the sender immediately. All email traffic sent to or from us,
including without limitation all GCSX traffic, may be subject to recording
and/or monitoring in accordance with relevant legislation.

--
Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Hi,

I have the whole data_dir directory from 2.1.x geoserver backed up and the clean installation of 2.2.3. What should I do? I would like to try with just a piece of my data if it works, so I decided to upload one directory of shapefiles from data_dir/data.

···

On Fri, Jan 18, 2013 at 3:44 PM, <christian.mueller@anonymised.com> wrote:

Hi

You cannot left the security folder unchanged, this will not work. Did you try
to start 2.2.3 using the data directory from 2.1.0 (make a backup first!!!).
There is a lot of migration code in 2.2.x

Christian

Zitat von Michal Zimmermann <zimmicz@anonymised.com>:

Hi,
I’ve followed the instructions on that page (though there are not really a
lot of them) with no success. I’ve left security folder unchanged and just
uploaded the data, with no success.

On Fri, Jan 18, 2013 at 2:10 PM, Jonathan Moules <
jonathanmoules@anonymised.comgov.uk> wrote:

Hi Michal,
I’ve not done it myself, but remembered seeing this page in the docs:
http://docs.geoserver.org/stable/en/user/installation/upgrade.html

Specifically this part may be of particular use:

http://docs.geoserver.org/stable/en/user/datadirectory/migrating.html#migrating-between-geoserver-2-1-x-and-2-2-x

Jonathan

On 18 January 2013 12:49, Michal Zimmermann <zimmicz@anonymised.com> wrote:

Hi all,
I’ve recently installed a 2.2.3 on our webserver and need to migrate all
the stores/workspaces/layers/styles from the older geoserver (2.1.0). I
tried to copy/paste data_dir from the older to the new one, but that
doesn’t seem to work. What are the steps that have to be taken in order to
make it work? I have a lot of data and I can’t import them manually. Thank
you.


Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz


Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only – learn more at:
http://p.sf.net/sfu/learnmore_122812


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

This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it, or
disclose it to anyone else. If you have received this transmission in error
please notify the sender immediately. All email traffic sent to or from us,
including without limitation all GCSX traffic, may be subject to recording
and/or monitoring in accordance with relevant legislation.


Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz


This message was sent using IMP, the Internet Messaging Program.


Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz

On Fri, Jan 18, 2013 at 3:58 PM, Michal Zimmermann <zimmicz@anonymised.com> wrote:

Hi,

I have the whole data_dir directory from 2.1.x geoserver backed up and the clean installation of 2.2.3. What should I do? I would like to try with just a piece of my data if it works, so I decided to upload one directory of shapefiles from data_dir/data.

Hmm… we don’t have specific procedures to try “just a bit”, the normal approach is to
give the entire data dir to the newer GeoServer.
Normally some parts of the configuration get updated, but I cannot remember of cases
in which the data itself was touched, nor I remember of code that would do such an
operation.

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,

never mind, it seems to start working :-).

···

On Fri, Jan 18, 2013 at 10:07 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Fri, Jan 18, 2013 at 3:58 PM, Michal Zimmermann <zimmicz@anonymised.com> wrote:

Hi,

I have the whole data_dir directory from 2.1.x geoserver backed up and the clean installation of 2.2.3. What should I do? I would like to try with just a piece of my data if it works, so I decided to upload one directory of shapefiles from data_dir/data.

Hmm… we don’t have specific procedures to try “just a bit”, the normal approach is to
give the entire data dir to the newer GeoServer.
Normally some parts of the configuration get updated, but I cannot remember of cases
in which the data itself was touched, nor I remember of code that would do such an
operation.

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



Michal Zimmermann (zimmi)
WWW: http://www.zimmi.cz