[GeoNode-users] Geoserver data directory lost

Paolo Corti pcorti at gmail.com
Tue Apr 19 12:51:10 PDT 2016


You can recover all of the lost SLD from the layers_styles table in
the database.

For each layer in the layers_layer table you can find all of the associated
SLD styles, in the layers_styles table (sld_text
field). For each layer you can detect the default style from the
default_style field in the layers_layer table.

Basically you will need to create an sld for each of that styles in
GeoServer and associate the default one to the GeoServer layer.

You could use the gsconfig library to accomplish this task, or the
GeoServer REST API directly.
Or by hand (sigh)

p

On Tue, Apr 19, 2016 at 2:14 PM, Israel López <asralf at gmail.com> wrote:
> Could you tell me how to do it Paolo?? Because I had to remade it one by one
> again...
>
> El abr. 18, 2016 9:44, "Paolo Corti" <pcorti at gmail.com> escribió:
>>
>> I would add that also SLD files are synced with the GeoNode database,
>> so in case you need to restore styles you should be able to do it.
>> p
>>
>>
>> On Thu, Apr 14, 2016 at 1:46 AM, Simone Dalmasso
>> <simone.dalmasso at gmail.com> wrote:
>> > hi Israel,
>> >
>> > you probably cannot recover geoserver but somehow rebuild it, as all the
>> > vector layers are in the db you can connect back a fresh geoserver
>> > manually
>> > creating the store. For raster data check if you have a copy in var www
>> > geonode uploaded layer, and you can re upload them.
>> >
>> > hope it helps
>> >
>> > 2016-04-14 4:37 GMT+02:00 Israel López <asralf at gmail.com>:
>> >>
>> >> Hi devs, well I'm in trouble... Accidentally delete the directory
>> >> geoserver
>> >> at tomcat7 webapps,.. In fact, It was deleted the geoserver.war and
>> >> then
>> >> the geoserver directory.
>> >>
>> >> Do you know some way to recover my geoserver???
>> >>
>> >> The databases are ok
>> >>
>> >> I would appreciate any ideas, thanks.
>> >>
>> >> _______________________________________________
>> >> geonode-users mailing list
>> >> geonode-users at lists.osgeo.org
>> >> http://lists.osgeo.org/mailman/listinfo/geonode-users
>> >>
>> >
>> >
>> >
>> > --
>> > Simone
>> >
>> > _______________________________________________
>> > geonode-users mailing list
>> > geonode-users at lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/geonode-users
>> >
>>
>>
>>
>> --
>> Paolo Corti
>> Geospatial software developer
>> web: http://www.paolocorti.net
>> twitter: @capooti
>> skype: capooti



-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti


More information about the geonode-users mailing list