PostGIS data stores are lost on Upgrade 2.2 to 2.7

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

PostGIS data stores are lost on Upgrade 2.2 to 2.7

Jäger, Frank (KRZ)
Hi,
we're using GeoServer 2.2 (Java 6) for a long time. We use it for WFS only and mostly on PostGIS Database.
Our Client is Mapbender 2.7.

I plan to Upgrade to actual stable GeoServer 2.7 (Java 7).
 
When GeoServer 2.7 starts first time with the external data-directory from GeoServer 2.2 it throws some exceptions.
>From "/data/workspaces/MyWorkspace/MyDataStore/MyLayer/" most of "MyDataStore"s disappear. Also "MyLayer"s depending on it are lost.
Only 1 data store survives, which has Shapefiles and not PostGIS as source.

Theres a lot of logging but mostly not usefull for a Non-Java-Programmer. Maybe this helps:

<log>
WARN [org.geoserver] - Failed to load data store 'adressen'
com.thoughtworks.xstream.converters.ConversionException: null : null
---- Debugging information ----
cause-exception     : org.jasypt.exceptions.EncryptionOperationNotPossibleException
cause-message       : null
</log>

It seems that from 2.2 to 2.7 the range is too wide.

Will it be usefull to upgrade whith a step between to get it compatible? Which Version?
Can I prepare the XML-Files in "/data/workspaces/MyWorkspace/" to be compatible? (For Example delete encrypted Password-Tag and set it new by gui?)

It seems to be easyer to confirurate all WFS new then to Upgrade step by step for all (main?-)releases.

Best regards

Frank Jäger


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

_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: PostGIS data stores are lost on Upgrade 2.2 to 2.7

geowolf
Hum... looks like an issue with database encrypted passwords.
I thought that was going to be supported automatically, but apparently not on such a long jump.

Christian, cc'ed,  worked on password encryption, he might have a clue

Cheers
Andrea


On Tue, Aug 25, 2015 at 9:38 AM, Jäger, Frank (KRZ) <[hidden email]> wrote:
Hi,
we're using GeoServer 2.2 (Java 6) for a long time. We use it for WFS only and mostly on PostGIS Database.
Our Client is Mapbender 2.7.

I plan to Upgrade to actual stable GeoServer 2.7 (Java 7).

When GeoServer 2.7 starts first time with the external data-directory from GeoServer 2.2 it throws some exceptions.
>From "/data/workspaces/MyWorkspace/MyDataStore/MyLayer/" most of "MyDataStore"s disappear. Also "MyLayer"s depending on it are lost.
Only 1 data store survives, which has Shapefiles and not PostGIS as source.

Theres a lot of logging but mostly not usefull for a Non-Java-Programmer. Maybe this helps:

<log>
WARN [org.geoserver] - Failed to load data store 'adressen'
com.thoughtworks.xstream.converters.ConversionException: null : null
---- Debugging information ----
cause-exception     : org.jasypt.exceptions.EncryptionOperationNotPossibleException
cause-message       : null
</log>

It seems that from 2.2 to 2.7 the range is too wide.

Will it be usefull to upgrade whith a step between to get it compatible? Which Version?
Can I prepare the XML-Files in "/data/workspaces/MyWorkspace/" to be compatible? (For Example delete encrypted Password-Tag and set it new by gui?)

It seems to be easyer to confirurate all WFS new then to Upgrade step by step for all (main?-)releases.

Best regards

Frank Jäger


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

_______________________________________________
Geoserver-users mailing list
[hidden email]
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


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-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: PostGIS data stores are lost on Upgrade 2.2 to 2.7

Jäger, Frank (KRZ)
Hi,
I found this work-around:

- Delete the line "<entry key="passwd">crypt2: ..." in all files  _/data/workspaces/MyWorkspace/MyDatastore/datastore.xml
- Start Geoserver
- The datastores will be disabled
- Enable and configure database-password in GUI
- This will write a line " key="passwd">crypt1:"

Frank


Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Andrea Aime
Gesendet: Dienstag, 25. August 2015 10:13
An: Jäger, Frank (KRZ); Christian Mueller
Cc: [hidden email]
Betreff: Re: [Geoserver-users] PostGIS data stores are lost on Upgrade 2.2 to 2.7

Hum... looks like an issue with database encrypted passwords.


Cheers
Andrea

On Tue, Aug 25, 2015 at 9:38 AM, Jäger, Frank (KRZ) <[hidden email]> wrote:
Hi,
we're using GeoServer 2.2 (Java 6) for a long time.

I plan to Upgrade to actual stable GeoServer 2.7 (Java 7).
...  most of "MyDataStore"s disappear.
 …
<log>
..
com.thoughtworks.xstream.converters.ConversionException: null : null
..</log>




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

_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

smime.p7s (5K) Download Attachment