[GeoNode-users] backup error, geonode 2.6 => backup.py=> import error: no moduled named simplejson

Alessio Fabiani alessio.fabiani at geo-solutions.it
Mon May 29 03:06:07 PDT 2017


Hi Federico,
thanks for reporting.

We scheduled a debug session and issues fixing of the Backup and Restore
procedures. From the logs it may be possible the the restore did not taken
the fixtures in the correct order. Also I noticed the the Restore on
GeoServer printed a FAILED 8/9, is it possible to recover the stack-trace
of GeoServer also?

I'll let you know as soon as we have some news and/or improvements for the
B/R stuff.



Best Regards,
Alessio Fabiani.

==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==

Ing. Alessio Fabiani
@alfa7691
github <https://github.com/afabiani?tab=overview>
Founder/Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39 331 6233686

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 Mon, May 29, 2017 at 11:59 AM, Federico Gianoli <alpacagis at gmail.com>
wrote:

> Hi Alessio,
>
> I still have some issues with restore command.
>
> The backup command works fine, however, in the zip file, are present some
> file that I had delete.
> Looking for these files, I noted that they are present on Geoserver
> datastore but not in Geonode layer list.
>
> Anyway, I am able to create the zip file with the backup of the sistem
> (the name of the file is 2017-05-26_051407 <051%20407>.zip), but when I
> try to restore geonode on another server (geonde 2.6 stable) I have this
> errors:
>
>  OSError: [Errno 2] No such file or directory: '/tmp/restore/2017-05-26_
> 051407 <051%20407>/static_dirs/media'
> (here the complete error log: https://pastebin.com/ZE7r5s5a )
>
> So, I have created manually the missing folder, but then the error was
> this: https://pastebin.com/kBAPkEyd
> At the end, Geonode says that the restore was completed, but it's not
> true.
>
> Furthermore, at the end of this restore, I am not more able to enter in
> geonode with my user and password, I was closed out from my geonode istance
> and I had to reinstall Geonode.
>
>
> Thanks a lot
>
> Federico
>
>
>
> 2017-05-25 11:58 GMT+02:00 Enrique Cerrillo Cuenca <cerrillo at uevora.pt>:
>
>> Thanks a lot Alessio!
>>
>> I have taken my time to try your suggestions, but I still don't get
>> geoserver_catalog.zip copied into backup zip file.
>>
>> However, the log of backup.py seems to work correctly. Please pay
>> attention to the last line. Backup.py seems to get the data from
>> "geoserver_data/data/data". "data" folder is repeated in the path, and that
>> only happens when I set "/geoserver_data/data" in geoserver data dir in
>> settings.ini.
>>
>> Dumping 'GeoServer Catalog [http://-----]' into
>> '/var/opt/geonode/backups/2017-05-25_043616 <0436%2016>/geoserver_catalo
>> g.zip'.
>> STARTED - 1/9
>> COMPLETED - 9/9
>> Dumped GeoServer Uploaded Data from '/geoserver_data/data/data/geonode'.
>>
>> Anyway, I still can't get copied "geoserver_catalog.zip".
>>
>> Best regards,
>>
>> Enrique
>>
>>
>>
>> El 24-05-2017 a las 11:52, Alessio Fabiani escribió:
>>
>> Hmm,
>> yes, it is clear that there's something corrupted on your GeoServer
>> configuration.
>> Of course it is not easy to understand what's going on from those
>> screenshots.
>>
>> From that interface try to enter Settings > Global
>>
>> [image: Inline image 1]
>>
>> edit and save. Also try to reload the catalog from
>>
>> [image: Inline image 2]
>>
>>
>> finally if backup still does not work, try to restart Tomcat (be
>> carefull, your GeoServer may not restart correctly given that error above).
>>
>> In any case your GeoServer Data Dis *must* be set to ->
>> /geoserver_data/data
>>
>>
>> Best Regards,
>> Alessio Fabiani.
>>
>> ==
>> GeoServer Professional Services from the experts!
>> Visit http://goo.gl/it488V for more information.
>> ==
>>
>> Ing. Alessio Fabiani
>> @alfa7691
>> github <https://github.com/afabiani?tab=overview>
>> Founder/Technical Lead
>>
>> GeoSolutions S.A.S.
>> Via di Montramito 3/A
>> 55054  Massarosa (LU)
>> Italy
>> phone: +39 0584 962313 <+39%200584%20962313>
>> fax:     +39 0584 1660272 <+39%200584%20166%200272>
>> mob:   +39 331 6233686
>>
>> 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 Wed, May 24, 2017 at 12:42 PM, Enrique Cerrillo Cuenca <
>> cerrillo at uevora.pt> wrote:
>>
>>> Thanks again, Alessio. There is not such a zip file inside the zipped
>>> backup file.
>>>
>>> Here is a screenshot from the Geoserver status:
>>>
>>> [image: Imágenes integradas 1]
>>>
>>> If I try to perform a backup I get the following java-related error:
>>>
>>> [image: Imágenes integradas 2]
>>>
>>> Thanks
>>>
>>> 2017-05-24 11:30 GMT+01:00 Alessio Fabiani <
>>> alessio.fabiani at geo-solutions.it>:
>>>
>>>> Enrique,
>>>> can you please unzip this file /var/opt/geonode/backups/2017-05-24_
>>>> 041950 <041%20950>.zip and see if there is a geoserver_catalog.zip
>>>> inside?
>>>>
>>>> Can you also unzip that one too?
>>>>
>>>> Also, to be fully sure you are setting the correct GeoServer Data Dir
>>>> into settings.ini, go to the GeoServer Admin GUI and check this option
>>>>
>>>>
>>>> [image: Inline image 1]
>>>>
>>>>
>>>> From here you can also test your GeoServer backup and restore
>>>> functionality through this interface
>>>>
>>>> [image: Inline image 2]
>>>>
>>>> You can test the "geoserver_catalog.zip" file throught a DRY-RUN
>>>> restore here also.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Best Regards,
>>>> Alessio Fabiani.
>>>>
>>>> ==
>>>> GeoServer Professional Services from the experts!
>>>> Visit http://goo.gl/it488V for more information.
>>>> ==
>>>>
>>>> Ing. Alessio Fabiani
>>>> @alfa7691
>>>> github <https://github.com/afabiani?tab=overview>
>>>> Founder/Technical Lead
>>>>
>>>> GeoSolutions S.A.S.
>>>> Via di Montramito 3/A
>>>> 55054  Massarosa (LU)
>>>> Italy
>>>> phone: +39 0584 962313 <+39%200584%20962313>
>>>> fax:     +39 0584 1660272 <+39%200584%20166%200272>
>>>> mob:   +39 331 6233686 <%28331%29%20623-3686>
>>>>
>>>> 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 Wed, May 24, 2017 at 11:41 AM, Enrique Cerrillo Cuenca <
>>>> cerrillo at uevora.pt> wrote:
>>>>
>>>>> I forgot to mention that the settings.ini file is as follows:
>>>>>
>>>>> [geoserver]
>>>>>
>>>>> datadir = /geoserver_data/
>>>>>
>>>>> dumpvectordata = yes
>>>>>
>>>>> dumprasterdata = yes
>>>>>
>>>>>
>>>>> If I set "datadir" to /geoserver_data/data/ I got errors.
>>>>>
>>>>> 2017-05-24 10:29 GMT+01:00 Enrique Cerrillo Cuenca <cerrillo at uevora.pt
>>>>> >:
>>>>>
>>>>>> Thanks Alessio for all your help. I expect to help you finding the
>>>>>> bugs. Things are not working here. I do get the "COMPLETE[9/9]” message,
>>>>>> but I get an error when trying to restore the backup file.
>>>>>>
>>>>>> Best regards,
>>>>>>
>>>>>> Enrique
>>>>>>
>>>>>>
>>>>>> manage.py backup --backup-dir=/var/opt/geonode/backups
>>>>>> System check identified some issues:
>>>>>>
>>>>>> WARNINGS:
>>>>>> *base.ResourceBase.tkeywords: (fields.W340) null has no effect on
>>>>>> ManyToManyField.*
>>>>>> Before proceeding with the Backup, please ensure that:
>>>>>>  1. The backend (DB or whatever) is accessible and you have rights
>>>>>>  2. The GeoServer is up and running and reachable from this machine
>>>>>> Dumping 'GeoServer Catalog [http:----]' into
>>>>>> '//var/opt/geonode/backups/2017-05-24_041950 <041%20950>
>>>>>> /geoserver_catalog.zip'.
>>>>>> STARTED - 1/9
>>>>>> COMPLETED - 9/9
>>>>>> Dumped GeoServer Uploaded Data from '/geoserver_data/data/geonode'.
>>>>>> Deactivating GeoNode Signals...
>>>>>> ...done!
>>>>>> Dumping 'people' into 'people.json'.
>>>>>> Dumping 'account' into 'accounts.json'.
>>>>>> Dumping 'avatar.avatar' into 'avatars.json'.
>>>>>> Dumping 'base.backup' into 'backups.json'.
>>>>>> Dumping 'base.license' into 'licenses.json'.
>>>>>> Dumping 'base.topiccategory' into 'topiccategories.json'.
>>>>>> Dumping 'base.region' into 'regions.json'.
>>>>>> Dumping 'base.resourcebase' into 'resourcebases.json'.
>>>>>> Dumping 'base.contactrole' into 'contactroles.json'.
>>>>>> Dumping 'base.link' into 'links.json'.
>>>>>> Dumping 'base.restrictioncodetype' into 'restrictioncodetypes.json'.
>>>>>> Dumping 'base.spatialrepresentationtype' into
>>>>>> 'spatialrepresentationtypes.json'.
>>>>>> Dumping 'guardian.userobjectpermission' into 'useropermissions.json'.
>>>>>> Dumping 'guardian.groupobjectpermission' into
>>>>>> 'groupopermissions.json'.
>>>>>> Dumping 'layers.uploadsession' into 'uploadsessions.json'.
>>>>>> Dumping 'layers.style' into 'styles.json'.
>>>>>> Dumping 'layers.layer' into 'layers.json'.
>>>>>> Dumping 'layers.attribute' into 'attributes.json'.
>>>>>> Dumping 'layers.layerfile' into 'layerfiles.json'.
>>>>>> Dumping 'maps.map' into 'maps.json'.
>>>>>> Dumping 'maps.maplayer' into 'maplayers.json'.
>>>>>> Dumping 'maps.mapsnapshot' into 'mapsnapshots.json'.
>>>>>> Dumping 'documents.document' into 'documents.json'.
>>>>>> Dumping 'taggit' into 'tags.json'.
>>>>>> Saved Media Files from '/var/opt/geonode/backups/geonode/uploaded'.
>>>>>> Saved Static Root from '/var/opt/geonode/backups/static_root'.
>>>>>> Saved Static Files from '/var/opt/geonode/backups/geonode/static'.
>>>>>> Saved Locale Files from '/var/opt/geonode/backups/geonode/locale'.
>>>>>> Backup Finished. Archive generated.
>>>>>> Reactivating GeoNode Signals...
>>>>>> ...done!
>>>>>> /var/opt/geonode/backups/2017-05-24_041950 <041%20950>.zip
>>>>>>
>>>>>>
>>>>>> manage.py restore --backup-file=/var/opt/geonode/backups/2017-05-24_
>>>>>> 041950 <041%20950>.zip
>>>>>> System check identified some issues:
>>>>>>
>>>>>> WARNINGS:
>>>>>> *base.ResourceBase.tkeywords: (fields.W340) null has no effect on
>>>>>> ManyToManyField.*
>>>>>> Before proceeding with the Restore, please ensure that:
>>>>>>  1. The backend (DB or whatever) is accessible and you have rights
>>>>>>  2. The GeoServer is up and running and reachable from this machine
>>>>>> WARNING: The restore will overwrite ALL GeoNode data. You want to
>>>>>> proceed? [n]|y: y
>>>>>> Restoring 'GeoServer Catalog [http://------]' into
>>>>>> '/tmp/restore/2017-05-24_041950/geoserver_catalog.zip'.
>>>>>> Traceback (most recent call last):
>>>>>>   File "manage.py", line 29, in <module>
>>>>>>     execute_from_command_line(sys.argv)
>>>>>>   File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>>>>> line 354, in execute_from_command_line
>>>>>>     utility.execute()
>>>>>>   File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>>>>> line 346, in execute
>>>>>>     self.fetch_command(subcommand).run_from_argv(self.argv)
>>>>>>   File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py",
>>>>>> line 394, in run_from_argv
>>>>>>     self.execute(*args, **cmd_options)
>>>>>>   File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py",
>>>>>> line 445, in execute
>>>>>>     output = self.handle(*args, **options)
>>>>>>   File "/usr/src/app/geonode/base/management/commands/restore.py",
>>>>>> line 97, in handle
>>>>>>     raise ValueError('Could not find GeoServer Backup file [' +
>>>>>> geoserver_bk_file + ']')
>>>>>> ValueError: Could not find GeoServer Backup file
>>>>>> [/tmp/restore/2017-05-24_041950/geoserver_catalog.zip]
>>>>>>
>>>>>> El 24 may 2017, a las 8:43, Alessio Fabiani <
>>>>>> alessio.fabiani at geo-solutions.it> escribió:
>>>>>>
>>>>>> Those error are due to settings issues I guess.
>>>>>> There are open issues to let backup/restore command more resilient
>>>>>> and more stable. We need to find some time to improve it soon.
>>>>>>
>>>>>> @Enrique, your error is caused by GeoServer backup. Basically for
>>>>>> some reason it is not able to complete the backup of the catalog. Until you
>>>>>> see a message "COMPLETE[9/9]" the backup of GeoServer is not fully done.
>>>>>> You should take a look at the GeoServer logs in order to see why it is
>>>>>> failing. Usually this depends on some wrong configuration of datastores.
>>>>>>
>>>>>> Best Regards,
>>>>>> Alessio Fabiani.
>>>>>>
>>>>>> ==
>>>>>> GeoServer Professional Services from the experts!
>>>>>> Visit http://goo.gl/it488V for more information.
>>>>>> ==
>>>>>>
>>>>>> Ing. Alessio Fabiani
>>>>>> @alfa7691
>>>>>> github <https://github.com/afabiani?tab=overview>
>>>>>> Founder/Technical Lead
>>>>>>
>>>>>> GeoSolutions S.A.S.
>>>>>> Via di Montramito 3/A
>>>>>> 55054  Massarosa (LU)
>>>>>> Italy
>>>>>> phone: +39 0584 962313 <+39%200584%20962313>
>>>>>> fax:     +39 0584 1660272 <+39%200584%20166%200272>
>>>>>> mob:   +39 331 6233686 <%28331%29%20623-3686>
>>>>>>
>>>>>> 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 Tue, May 23, 2017 at 10:32 PM, Federico Gianoli <
>>>>>> alpacagis at gmail.com> wrote:
>>>>>>
>>>>>>> Finally it works!
>>>>>>>
>>>>>>> Thanks Alessio for your help. Tomorrow morning I'll try to migrate
>>>>>>> data.
>>>>>>>
>>>>>>> Creating manually the folder */home/federico/gn_fede/gn_fede/locale* it
>>>>>>> works.
>>>>>>>
>>>>>>> but using restore command without Sudo I have this error
>>>>>>>
>>>>>>>
>>>>>>> *$ python manage.py restore
>>>>>>> --backup-file=/tmp/backup/2017-05-23_132655.zip*
>>>>>>> *Before proceeding with the Restore, please ensure that:*
>>>>>>> * 1. The backend (DB or whatever) is accessible and you have rights*
>>>>>>> * 2. The GeoServer is up and running and reachable from this machine*
>>>>>>> *WARNING: The restore will overwrite ALL GeoNode data. You want to
>>>>>>> proceed? [n]|y: y*
>>>>>>> *Traceback (most recent call last):*
>>>>>>> *  File "manage.py", line 11, in <module>*
>>>>>>> *    execute_from_command_line(sys.argv)*
>>>>>>> *  File
>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>> 354, in execute_from_command_line*
>>>>>>> *    utility.execute()*
>>>>>>> *  File
>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>> 346, in execute*
>>>>>>> *    self.fetch_command(subcommand).run_from_argv(self.argv)*
>>>>>>> *  File
>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
>>>>>>> 394, in run_from_argv*
>>>>>>> *    self.execute(*args, **cmd_options)*
>>>>>>> *  File
>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
>>>>>>> 445, in execute*
>>>>>>> *    output = self.handle(*args, **options)*
>>>>>>> *  File
>>>>>>> "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py",
>>>>>>> line 87, in handle*
>>>>>>> *    target_folder = helpers.unzip_file(backup_file, restore_folder)*
>>>>>>> *  File
>>>>>>> "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/helpers.py",
>>>>>>> line 224, in unzip_file*
>>>>>>> *    os.makedirs(target_folder)*
>>>>>>> *  File "/usr/lib/python2.7/os.py", line 157, in makedirs*
>>>>>>> *    mkdir(name, mode)*
>>>>>>> *OSError: [Errno 13] Permission denied:
>>>>>>> '/tmp/restore/2017-05-23_132655'*
>>>>>>>
>>>>>>> *with sudo command I have the error later:*
>>>>>>>
>>>>>>> *$ sudo python manage.py restore
>>>>>>> --backup-file=/tmp/backup/2017-05-23_132655.zip*
>>>>>>> *[sudo] password for federico:*
>>>>>>> *Before proceeding with the Restore, please ensure that:*
>>>>>>> * 1. The backend (DB or whatever) is accessible and you have rights*
>>>>>>> * 2. The GeoServer is up and running and reachable from this machine*
>>>>>>> *WARNING: The restore will overwrite ALL GeoNode data. You want to
>>>>>>> proceed? [n]|y: y*
>>>>>>> *Restoring 'GeoServer Catalog [http://212.237.232.12/geoserver/
>>>>>>> <http://212.237.232.12/geoserver/>]' into
>>>>>>> '/tmp/restore/2017-05-23_132655/geoserver_catalog.zip'.*
>>>>>>> *STARTED - 3/9*
>>>>>>> *FAILED - 8/9*
>>>>>>> *Cleaned out old GeoServer Data Dir:
>>>>>>> /usr/share/geoserver/data/data/geonode*
>>>>>>> *GeoServer Uploaded Data Restored to
>>>>>>> '/usr/share/geoserver/data/data/geonode'.*
>>>>>>> *Cleaned out old GeoServer GWC Layers Config:
>>>>>>> /usr/share/geoserver/data/gwc-layers*
>>>>>>> *Restoring GeoServer Vectorial Data : popolazione_veneto*
>>>>>>> *Restoring GeoServer Vectorial Data : gcgw_wells_tayarat*
>>>>>>> *Restoring GeoServer Vectorial Data : main_groundwater_flow*
>>>>>>> *Restoring GeoServer Vectorial Data : swl_asl*
>>>>>>> *Restoring GeoServer Vectorial Data : contour_lines*
>>>>>>> *Restoring GeoServer Vectorial Data : swl_asl_map_area*
>>>>>>> *Restoring GeoServer Vectorial Data : springs_perennial_no_data*
>>>>>>> *Restoring GeoServer Vectorial Data : c0506121_ccs2012s*
>>>>>>> *Restoring GeoServer Vectorial Data : tectonic_structures*
>>>>>>> *Restoring GeoServer Vectorial Data : springs_perennial*
>>>>>>> *Restoring GeoServer Vectorial Data : springs_temporary*
>>>>>>> *Operations to perform:*
>>>>>>> *  Synchronize unmigrated apps: tasks, modeltranslation,
>>>>>>> django_extensions, polymorphic, treebeard, gis,
>>>>>>> pinax_theme_bootstrap_account, django_forms_bootstrap, catalogue, humanize,
>>>>>>> geoserver, storages, mptt, friendlytagloader, staticfiles, geoexplorer,
>>>>>>> gn_fede, sitemaps, proxy, pinax_theme_bootstrap, pagination,
>>>>>>> autocomplete_light, messages, leaflet, api, avatar, social, security*
>>>>>>> *  Apply all migrations: dialogos, people, tastypie, agon_ratings,
>>>>>>> documents, actstream, sites, maps, contenttypes, announcements,
>>>>>>> user_messages, layers, sessions, guardian, auth, base, groups, services,
>>>>>>> oauth2_provider, account, admin, djcelery, upload, taggit*
>>>>>>> *Synchronizing apps without migrations:*
>>>>>>> *  Creating tables...*
>>>>>>> *    Running deferred SQL...*
>>>>>>> *  Installing custom SQL...*
>>>>>>> *Running migrations:*
>>>>>>> *  No migrations to apply.*
>>>>>>> *  Your models have changes that are not yet reflected in a
>>>>>>> migration, and so won't be applied.*
>>>>>>> *  Run 'manage.py makemigrations' to make new migrations, and then
>>>>>>> re-run 'manage.py migrate' to apply them.*
>>>>>>> *Deactivating GeoNode Signals...*
>>>>>>> *...done!*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/people.json*
>>>>>>> *Installed 2 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/accounts.json*
>>>>>>> *Installed 3 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/avatars.json*
>>>>>>> *Installed 0 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/backups.json*
>>>>>>> *Installed 2 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/licenses.json*
>>>>>>> *Installed 7 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/topiccategories.json*
>>>>>>> *Installed 20 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/regions.json*
>>>>>>> *Installed 259 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/resourcebases.json*
>>>>>>> *Installed 13 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/contactroles.json*
>>>>>>> *Installed 26 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/links.json*
>>>>>>> *Installed 296 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing
>>>>>>> /tmp/restore/2017-05-23_132655/restrictioncodetypes.json*
>>>>>>> *Installed 8 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing
>>>>>>> /tmp/restore/2017-05-23_132655/spatialrepresentationtypes.json*
>>>>>>> *Installed 6 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/useropermissions.json*
>>>>>>> *Installed 141 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/groupopermissions.json*
>>>>>>> *Installed 26 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/uploadsessions.json*
>>>>>>> *Installed 18 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/styles.json*
>>>>>>> *Installed 12 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/layers.json*
>>>>>>> *Installed 12 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/attributes.json*
>>>>>>> *Installed 122 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/layerfiles.json*
>>>>>>> *Installed 104 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/maps.json*
>>>>>>> *Installed 0 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/maplayers.json*
>>>>>>> *Installed 0 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/mapsnapshots.json*
>>>>>>> *Installed 0 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/documents.json*
>>>>>>> *Installed 1 object(s) from 1 fixture(s)*
>>>>>>> *Deserializing /tmp/restore/2017-05-23_132655/tags.json*
>>>>>>> *Installed 0 object(s) from 1 fixture(s)*
>>>>>>> *Media Files Restored into '/var/www/geonode/uploaded'.*
>>>>>>> *Static Root Restored into '/var/www/geonode/static/'.*
>>>>>>> *Static Root Restored into '/var/www/geonode/static/'.*
>>>>>>> *Reactivating GeoNode Signals...*
>>>>>>> *...done!*
>>>>>>> *Traceback (most recent call last):*
>>>>>>> *  File "manage.py", line 11, in <module>*
>>>>>>> *    execute_from_command_line(sys.argv)*
>>>>>>> *  File
>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>> 354, in execute_from_command_line*
>>>>>>> *    utility.execute()*
>>>>>>> *  File
>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>> 346, in execute*
>>>>>>> *    self.fetch_command(subcommand).run_from_argv(self.argv)*
>>>>>>> *  File
>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
>>>>>>> 394, in run_from_argv*
>>>>>>> *    self.execute(*args, **cmd_options)*
>>>>>>> *  File
>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
>>>>>>> 445, in execute*
>>>>>>> *    output = self.handle(*args, **options)*
>>>>>>> *  File
>>>>>>> "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py",
>>>>>>> line 290, in handle*
>>>>>>> *    static_files_folder)*
>>>>>>> *  File
>>>>>>> "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/helpers.py",
>>>>>>> line 203, in copy_tree*
>>>>>>> *    for item in os.listdir(src):*
>>>>>>> *OSError: [Errno 2] No such file or directory:
>>>>>>> '/tmp/restore/2017-05-23_132655/static_dirs/media'*
>>>>>>>
>>>>>>> *Creating manually the folder:
>>>>>>>  /tmp/restore/2017-05-23_132655/static_dirs/media everythings works
>>>>>>> correctly.*
>>>>>>> *Tomorrow morning I'll try again, but I hope to have solved the
>>>>>>> issue, thanks again Alessio for your help.*
>>>>>>>
>>>>>>> *Good night*
>>>>>>>
>>>>>>> *Federico*
>>>>>>>
>>>>>>> 2017-05-23 21:04 GMT+02:00 Enrique Cerrillo Cuenca <
>>>>>>> cerrillo at uevora.pt>:
>>>>>>>
>>>>>>>> I tried to do that yesterday. The file do exist in the path and it
>>>>>>>> was allegedly created with no errors. However I’m getting this error:
>>>>>>>>
>>>>>>>> python manage.py restore --backup-file=backup/2017-05-17_045850
>>>>>>>> <045%20850>.zip
>>>>>>>> System check identified some issues:
>>>>>>>>
>>>>>>>> WARNINGS:
>>>>>>>> *base.ResourceBase.tkeywords: (fields.W340) null has no effect on
>>>>>>>> ManyToManyField.*
>>>>>>>> Before proceeding with the Restore, please ensure that:
>>>>>>>>  1. The backend (DB or whatever) is accessible and you have rights
>>>>>>>>  2. The GeoServer is up and running and reachable from this machine
>>>>>>>> WARNING: The restore will overwrite ALL GeoNode data. You want to
>>>>>>>> proceed? [n]|y: y
>>>>>>>> Restoring 'GeoServer Catalog [http://atlas.cidehusdigital.u
>>>>>>>> evora.pt/geoserver/]' into '/tmp/restore/2017-05-17_04585
>>>>>>>> 0/geoserver_catalog.zip'.
>>>>>>>> Traceback (most recent call last):
>>>>>>>>   File "manage.py", line 29, in <module>
>>>>>>>>     execute_from_command_line(sys.argv)
>>>>>>>>   File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>>>>>>> line 354, in execute_from_command_line
>>>>>>>>     utility.execute()
>>>>>>>>   File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>>>>>>> line 346, in execute
>>>>>>>>     self.fetch_command(subcommand).run_from_argv(self.argv)
>>>>>>>>   File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py",
>>>>>>>> line 394, in run_from_argv
>>>>>>>>     self.execute(*args, **cmd_options)
>>>>>>>>   File "/usr/local/lib/python2.7/site-packages/django/core/management/base.py",
>>>>>>>> line 445, in execute
>>>>>>>>     output = self.handle(*args, **options)
>>>>>>>>   File "/usr/src/app/geonode/base/management/commands/restore.py",
>>>>>>>> line 97, in handle
>>>>>>>>     raise ValueError('Could not find GeoServer Backup file [' +
>>>>>>>> geoserver_bk_file + ']')
>>>>>>>> ValueError: Could not find GeoServer Backup file
>>>>>>>> [/tmp/restore/2017-05-17_045850/geoserver_catalog.zip]
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>>
>>>>>>>> Enrique
>>>>>>>>
>>>>>>>> El 23 may 2017, a las 19:12, Alessio Fabiani <
>>>>>>>> alessio.fabiani at geo-solutions.it> escribió:
>>>>>>>>
>>>>>>>> Except for the latest issue, which should be a warning (I will need
>>>>>>>> to double check this), you should not restore the geoserver_catalog.zip but
>>>>>>>> the geonode backup file which should be something like
>>>>>>>>
>>>>>>>> *$ python manage.py restore
>>>>>>>> --backup-file=/tmp/backup/2017-05-23_120201.zip*
>>>>>>>>
>>>>>>>> If it does not exists that means that the latest warning prevents
>>>>>>>> you to finalize the backup.
>>>>>>>>
>>>>>>>> A quick and dirty workaround is to create the folder
>>>>>>>> */home/federico/gn_fede/gn_fede/locale'*
>>>>>>>>
>>>>>>>>
>>>>>>>> Best Regards,
>>>>>>>> Alessio Fabiani.
>>>>>>>>
>>>>>>>> ==
>>>>>>>> GeoServer Professional Services from the experts!
>>>>>>>> Visit http://goo.gl/it488V for more information.
>>>>>>>> ==
>>>>>>>>
>>>>>>>> Ing. Alessio Fabiani
>>>>>>>> @alfa7691
>>>>>>>> github <https://github.com/afabiani?tab=overview>
>>>>>>>> Founder/Technical Lead
>>>>>>>>
>>>>>>>> GeoSolutions S.A.S.
>>>>>>>> Via di Montramito 3/A
>>>>>>>> 55054  Massarosa (LU)
>>>>>>>> Italy
>>>>>>>> phone: +39 0584 962313 <+39%200584%20962313>
>>>>>>>> fax:     +39 0584 1660272 <+39%200584%20166%200272>
>>>>>>>> mob:   +39 331 6233686 <%28331%29%20623-3686>
>>>>>>>>
>>>>>>>> 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 Tue, May 23, 2017 at 7:39 PM, Federico Gianoli <
>>>>>>>> alpacagis at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Thanks a lot Alessio and Enrique,
>>>>>>>>>
>>>>>>>>> I think we are on the right way to solve the issue... but I still
>>>>>>>>> have some errors.
>>>>>>>>> I really thank you for your precious help.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> *$ python manage.py backup --backup-dir=/tmp/backup/*
>>>>>>>>>
>>>>>>>>> *Before proceeding with the Backup, please ensure that:*
>>>>>>>>> * 1. The backend (DB or whatever) is accessible and you have
>>>>>>>>> rights*
>>>>>>>>> * 2. The GeoServer is up and running and reachable from this
>>>>>>>>> machine*
>>>>>>>>> *You want to proceed? [n]|y: y*
>>>>>>>>> *Dumping 'GeoServer Catalog [http://212.237.232.12/geoserver/
>>>>>>>>> <http://212.237.232.12/geoserver/>]' into
>>>>>>>>> '/tmp/backup/2017-05-23_120201/geoserver_catalog.zip'.*
>>>>>>>>> *STARTED - 1/9*
>>>>>>>>> *COMPLETED - 9/9*
>>>>>>>>> *Dumped GeoServer Uploaded Data from
>>>>>>>>> '/usr/share/geoserver/data/data/geonode'.*
>>>>>>>>> *Dumping GeoServer Vectorial Data : swl_asl*
>>>>>>>>> *Dumping GeoServer Vectorial Data : c0506121_ccs2012s*
>>>>>>>>> *Dumping GeoServer Vectorial Data : popolazione_veneto*
>>>>>>>>> *Dumping GeoServer Vectorial Data : swl_asl_map_area*
>>>>>>>>> *Dumping GeoServer Vectorial Data : contour_lines*
>>>>>>>>> *Dumping GeoServer Vectorial Data : tectonic_structures*
>>>>>>>>> *Dumping GeoServer Vectorial Data : gcgw_wells_tayarat*
>>>>>>>>> *Dumping GeoServer Vectorial Data : main_groundwater_flow*
>>>>>>>>> *Dumping GeoServer Vectorial Data : springs_perennial*
>>>>>>>>> *Dumping GeoServer Vectorial Data : springs_perennial_no_data*
>>>>>>>>> *Dumping GeoServer Vectorial Data : springs_temporary*
>>>>>>>>> *Deactivating GeoNode Signals...*
>>>>>>>>> *...done!*
>>>>>>>>> *Dumping 'people' into 'people.json'.*
>>>>>>>>> *Dumping 'account' into 'accounts.json'.*
>>>>>>>>> *Dumping 'avatar.avatar' into 'avatars.json'.*
>>>>>>>>> *Dumping 'base.backup' into 'backups.json'.*
>>>>>>>>> *Dumping 'base.license' into 'licenses.json'.*
>>>>>>>>> *Dumping 'base.topiccategory' into 'topiccategories.json'.*
>>>>>>>>> *Dumping 'base.region' into 'regions.json'.*
>>>>>>>>> *Dumping 'base.resourcebase' into 'resourcebases.json'.*
>>>>>>>>> *Dumping 'base.contactrole' into 'contactroles.json'.*
>>>>>>>>> *Dumping 'base.link' into 'links.json'.*
>>>>>>>>> *Dumping 'base.restrictioncodetype' into
>>>>>>>>> 'restrictioncodetypes.json'.*
>>>>>>>>> *Dumping 'base.spatialrepresentationtype' into
>>>>>>>>> 'spatialrepresentationtypes.json'.*
>>>>>>>>> *Dumping 'guardian.userobjectpermission' into
>>>>>>>>> 'useropermissions.json'.*
>>>>>>>>> *Dumping 'guardian.groupobjectpermission' into
>>>>>>>>> 'groupopermissions.json'.*
>>>>>>>>> *Dumping 'layers.uploadsession' into 'uploadsessions.json'.*
>>>>>>>>> *Dumping 'layers.style' into 'styles.json'.*
>>>>>>>>> *Dumping 'layers.layer' into 'layers.json'.*
>>>>>>>>> *Dumping 'layers.attribute' into 'attributes.json'.*
>>>>>>>>> *Dumping 'layers.layerfile' into 'layerfiles.json'.*
>>>>>>>>> *Dumping 'maps.map' into 'maps.json'.*
>>>>>>>>> *Dumping 'maps.maplayer' into 'maplayers.json'.*
>>>>>>>>> *Dumping 'maps.mapsnapshot' into 'mapsnapshots.json'.*
>>>>>>>>> *Dumping 'documents.document' into 'documents.json'.*
>>>>>>>>> *Dumping 'taggit' into 'tags.json'.*
>>>>>>>>> *Saved Media Files from '/var/www/geonode/uploaded'.*
>>>>>>>>> *Saved Static Root from '/var/www/geonode/static/'.*
>>>>>>>>> *Saved Static Files from '/etc/geonode/media'.*
>>>>>>>>> *Saved Static Files from
>>>>>>>>> '/usr/local/lib/python2.7/dist-packages/geonode/static'.*
>>>>>>>>> *Saved Static Files from '/home/federico/gn_fede/gn_fede/static'.*
>>>>>>>>> *Saved Template Files from '/etc/geonode/templates'.*
>>>>>>>>> *Saved Template Files from
>>>>>>>>> '/usr/local/lib/python2.7/dist-packages/geonode/templates'.*
>>>>>>>>> *Reactivating GeoNode Signals...*
>>>>>>>>> *...done!*
>>>>>>>>> *Traceback (most recent call last):*
>>>>>>>>> *  File "manage.py", line 11, in <module>*
>>>>>>>>> *    execute_from_command_line(sys.argv)*
>>>>>>>>> *  File
>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>>>> 354, in execute_from_command_line*
>>>>>>>>> *    utility.execute()*
>>>>>>>>> *  File
>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>>>> 346, in execute*
>>>>>>>>> *    self.fetch_command(subcommand).run_from_argv(self.argv)*
>>>>>>>>> *  File
>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
>>>>>>>>> 394, in run_from_argv*
>>>>>>>>> *    self.execute(*args, **cmd_options)*
>>>>>>>>> *  File
>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
>>>>>>>>> 445, in execute*
>>>>>>>>> *    output = self.handle(*args, **options)*
>>>>>>>>> *  File
>>>>>>>>> "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/backup.py",
>>>>>>>>> line 243, in handle*
>>>>>>>>> *    helpers.copy_tree(locale_files_folder, locale_folder)*
>>>>>>>>> *  File
>>>>>>>>> "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/helpers.py",
>>>>>>>>> line 203, in copy_tree*
>>>>>>>>> *    for item in os.listdir(src):*
>>>>>>>>> *OSError: [Errno 2] No such file or directory:
>>>>>>>>> '/home/federico/gn_fede/gn_fede/locale'*
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> *The restore issue:*
>>>>>>>>>
>>>>>>>>> * $ python manage.py restore
>>>>>>>>> --backup-file=/tmp/backup/2017-05-23_120201/geoserver_catalog.zip Before
>>>>>>>>> proceeding with the Restore, please ensure that:  1. The backend (DB or
>>>>>>>>> whatever) is accessible and you have rights  2. The GeoServer is up and
>>>>>>>>> running and reachable from this machine WARNING: The restore will overwrite
>>>>>>>>> ALL GeoNode data. You want to proceed? [n]|y: y Traceback (most recent call
>>>>>>>>> last):   File "manage.py", line 11, in <module>
>>>>>>>>> execute_from_command_line(sys.argv)   File
>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>>>> 354, in execute_from_command_line     utility.execute()   File
>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>>>> 346, in execute     self.fetch_command(subcommand).run_from_argv(self.argv)
>>>>>>>>>   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py",
>>>>>>>>> line 394, in run_from_argv     self.execute(*args, **cmd_options)   File
>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
>>>>>>>>> 445, in execute     output = self.handle(*args, **options)   File
>>>>>>>>> "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py",
>>>>>>>>> line 87, in handle     target_folder = helpers.unzip_file(backup_file,
>>>>>>>>> restore_folder)   File
>>>>>>>>> "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/helpers.py",
>>>>>>>>> line 227, in unzip_file     z.extractall(target_folder)   File
>>>>>>>>> "/usr/lib/python2.7/zipfile.py", line 1040, in extractall
>>>>>>>>> self.extract(zipinfo, path, pwd)   File "/usr/lib/python2.7/zipfile.py",
>>>>>>>>> line 1028, in extract     return self._extract_member(member, path, pwd)
>>>>>>>>> File "/usr/lib/python2.7/zipfile.py", line 1083, in _extract_member
>>>>>>>>> file(targetpath, "wb") as target: IOError: [Errno 13] Permission denied:
>>>>>>>>> u'/tmp/restore/geoserver_catalog/store.dat.1' *
>>>>>>>>>
>>>>>>>>> * Usuìing SUDO command, the error is different:*
>>>>>>>>>
>>>>>>>>> $ sudo python manage.py restore --backup-file=/tmp/backup/2017
>>>>>>>>> -05-23_120201/geoserver_catalog.zip
>>>>>>>>> Before proceeding with the Restore, please ensure that:
>>>>>>>>>  1. The backend (DB or whatever) is accessible and you have rights
>>>>>>>>>  2. The GeoServer is up and running and reachable from this machine
>>>>>>>>> WARNING: The restore will overwrite ALL GeoNode data. You want to
>>>>>>>>> proceed? [n]|y: y
>>>>>>>>> Restoring 'GeoServer Catalog [http://212.237.232.12/geoserver/]'
>>>>>>>>> into '/tmp/restore/geoserver_catalog/geoserver_catalog.zip'.
>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>   File "manage.py", line 11, in <module>
>>>>>>>>>     execute_from_command_line(sys.argv)
>>>>>>>>>   File "/usr/lib/python2.7/dist-packa
>>>>>>>>> ges/django/core/management/__init__.py", line 354, in
>>>>>>>>> execute_from_command_line
>>>>>>>>>     utility.execute()
>>>>>>>>>   File "/usr/lib/python2.7/dist-packa
>>>>>>>>> ges/django/core/management/__init__.py", line 346, in execute
>>>>>>>>>     self.fetch_command(subcommand).run_from_argv(self.argv)
>>>>>>>>>   File "/usr/lib/python2.7/dist-packa
>>>>>>>>> ges/django/core/management/base.py", line 394, in run_from_argv
>>>>>>>>>     self.execute(*args, **cmd_options)
>>>>>>>>>   File "/usr/lib/python2.7/dist-packa
>>>>>>>>> ges/django/core/management/base.py", line 445, in execute
>>>>>>>>>     output = self.handle(*args, **options)
>>>>>>>>>   File "/usr/local/lib/python2.7/dist
>>>>>>>>> -packages/geonode/base/management/commands/restore.py", line 97,
>>>>>>>>> in handle
>>>>>>>>>     raise ValueError('Could not find GeoServer Backup file [' +
>>>>>>>>> geoserver_bk_file + ']')
>>>>>>>>> ValueError: Could not find GeoServer Backup file
>>>>>>>>> [/tmp/restore/geoserver_catalog/geoserver_catalog.zip]
>>>>>>>>>
>>>>>>>>> *Anyway, using Enrique suggestion, the system doesn't work and I
>>>>>>>>> have this error:*
>>>>>>>>>
>>>>>>>>> $ python manage.py backup --backup-dir=/tmp/backup/
>>>>>>>>> Before proceeding with the Backup, please ensure that:
>>>>>>>>>  1. The backend (DB or whatever) is accessible and you have rights
>>>>>>>>>  2. The GeoServer is up and running and reachable from this machine
>>>>>>>>> You want to proceed? [n]|y: y
>>>>>>>>> Dumping 'GeoServer Catalog [http://212.237.232.12/geoserver/]'
>>>>>>>>> into '/tmp/backup/2017-05-23_122247/geoserver_catalog.zip'.
>>>>>>>>> STARTED - 1/9
>>>>>>>>> COMPLETED - 9/9
>>>>>>>>> Traceback (most recent call last):
>>>>>>>>>   File "manage.py", line 11, in <module>
>>>>>>>>>     execute_from_command_line(sys.argv)
>>>>>>>>>   File "/usr/lib/python2.7/dist-packa
>>>>>>>>> ges/django/core/management/__init__.py", line 354, in
>>>>>>>>> execute_from_command_line
>>>>>>>>>     utility.execute()
>>>>>>>>>   File "/usr/lib/python2.7/dist-packa
>>>>>>>>> ges/django/core/management/__init__.py", line 346, in execute
>>>>>>>>>     self.fetch_command(subcommand).run_from_argv(self.argv)
>>>>>>>>>   File "/usr/lib/python2.7/dist-packa
>>>>>>>>> ges/django/core/management/base.py", line 394, in run_from_argv
>>>>>>>>>     self.execute(*args, **cmd_options)
>>>>>>>>>   File "/usr/lib/python2.7/dist-packa
>>>>>>>>> ges/django/core/management/base.py", line 445, in execute
>>>>>>>>>     output = self.handle(*args, **options)
>>>>>>>>>   File "/usr/local/lib/python2.7/dist
>>>>>>>>> -packages/geonode/base/management/commands/backup.py", line 150,
>>>>>>>>> in handle
>>>>>>>>>     helpers.copy_tree(gs_data_root, gs_data_folder)
>>>>>>>>>   File "/usr/local/lib/python2.7/dist
>>>>>>>>> -packages/geonode/base/management/commands/helpers.py", line 203,
>>>>>>>>> in copy_tree
>>>>>>>>>     for item in os.listdir(src):
>>>>>>>>> OSError: [Errno 2] No such file or directory:
>>>>>>>>> '/usr/local/lib/python2.7/dist-packages/geonode/../geoserver
>>>>>>>>> /data/geonode'
>>>>>>>>>
>>>>>>>>> 2017-05-23 18:16 GMT+02:00 Enrique Cerrillo Cuenca <
>>>>>>>>> cerrillo at uevora.pt>:
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> I have the same problem that Federico. A few days ago, I made
>>>>>>>>>> that change, “datadir = geoserver/data”, and the backup also failed.
>>>>>>>>>> However, when i set “datadir” to “geoserver/“ it works, although
>>>>>>>>>> “geoserver_catalog” is not included in the backup zip file.
>>>>>>>>>>
>>>>>>>>>> Best regards,
>>>>>>>>>>
>>>>>>>>>> Enrique
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> El 23 may 2017, a las 16:52, Alessio Fabiani <
>>>>>>>>>> alessio.fabiani at geo-solutions.it> escribió:
>>>>>>>>>>
>>>>>>>>>> Ok, so, the GeoServer backup has been done "COMPLETED - 9/9" but
>>>>>>>>>> there's an error on the backup settings.
>>>>>>>>>>
>>>>>>>>>> It looks like it cannot find the GeoServer Data Dir path on the
>>>>>>>>>> local server.
>>>>>>>>>>
>>>>>>>>>> Edit this file
>>>>>>>>>>
>>>>>>>>>> geonode/base/management/commands/settings.ini
>>>>>>>>>>
>>>>>>>>>> and be sure to change this "datadir = *geoserver/data*" with the
>>>>>>>>>> absolute path to the GEOSERVER_DATA_DIR
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Best Regards,
>>>>>>>>>> Alessio Fabiani.
>>>>>>>>>>
>>>>>>>>>> ==
>>>>>>>>>> GeoServer Professional Services from the experts!
>>>>>>>>>> Visit http://goo.gl/it488V for more information.
>>>>>>>>>> ==
>>>>>>>>>>
>>>>>>>>>> Ing. Alessio Fabiani
>>>>>>>>>> @alfa7691
>>>>>>>>>> github <https://github.com/afabiani?tab=overview>
>>>>>>>>>> Founder/Technical Lead
>>>>>>>>>>
>>>>>>>>>> GeoSolutions S.A.S.
>>>>>>>>>> Via di Montramito 3/A
>>>>>>>>>> 55054  Massarosa (LU)
>>>>>>>>>> Italy
>>>>>>>>>> phone: +39 0584 962313 <+39%200584%20962313>
>>>>>>>>>> fax:     +39 0584 1660272 <+39%200584%20166%200272>
>>>>>>>>>> mob:   +39 331 6233686 <%28331%29%20623-3686>
>>>>>>>>>>
>>>>>>>>>> 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 Tue, May 23, 2017 at 5:45 PM, Federico Gianoli <
>>>>>>>>>> alpacagis at gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi Alessio,
>>>>>>>>>>>
>>>>>>>>>>> This is the result of these commands:
>>>>>>>>>>>
>>>>>>>>>>> *$ python manage.py backup --backup-dir=/tmp/backup/*
>>>>>>>>>>> * Before proceeding with the Backup, please ensure that:  1. The
>>>>>>>>>>> backend (DB or whatever) is accessible and you have rights  2. The
>>>>>>>>>>> GeoServer is up and running and reachable from this machine *
>>>>>>>>>>> *You want to proceed? [n]|y: y*
>>>>>>>>>>> *Dumping 'GeoServer Catalog [http://212.237.232.12/geoserver/
>>>>>>>>>>> <http://212.237.232.12/geoserver/>]' into
>>>>>>>>>>> '/tmp/backup/2017-05-23_103754/geoserver_catalog.zip'.*
>>>>>>>>>>> * STARTED - 1/9 COMPLETED - 9/9 Traceback (most recent call
>>>>>>>>>>> last):   File "manage.py", line 11, in <module>
>>>>>>>>>>> execute_from_command_line(sys.argv)   File
>>>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>>>>>> 354, in execute_from_command_line     utility.execute()   File
>>>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>>>>>> 346, in execute     self.fetch_command(subcommand).run_from_argv(self.argv)
>>>>>>>>>>>   File "/usr/lib/python2.7/dist-packages/django/core/management/base.py",
>>>>>>>>>>> line 394, in run_from_argv     self.execute(*args, **cmd_options)   File
>>>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
>>>>>>>>>>> 445, in execute     output = self.handle(*args, **options)   File
>>>>>>>>>>> "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/backup.py",
>>>>>>>>>>> line 150, in handle     helpers.copy_tree(gs_data_root, gs_data_folder)
>>>>>>>>>>> File
>>>>>>>>>>> "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/helpers.py",
>>>>>>>>>>> line 203, in copy_tree     for item in os.listdir(src): OSError: [Errno 2]
>>>>>>>>>>> No such file or directory:
>>>>>>>>>>> '/usr/local/lib/python2.7/dist-packages/geonode/../geoserver/data/data/geonode'
>>>>>>>>>>> *
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> The backup is created but with the error (*OSError: [Errno 2]
>>>>>>>>>>> No such file or directory:
>>>>>>>>>>> '/usr/local/lib/python2.7/dist-packages/geonode/../geoserver/data/data/geonode'*
>>>>>>>>>>> ), and the restore command doesn't work
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> *$ python manage.py restore
>>>>>>>>>>> --backup-file=/tmp/backup/2017-05-23_103754/geoserver_catalog.zip*
>>>>>>>>>>> *Before proceeding with the Restore, please ensure that:*
>>>>>>>>>>> * 1. The backend (DB or whatever) is accessible and you have
>>>>>>>>>>> rights*
>>>>>>>>>>> * 2. The GeoServer is up and running and reachable from this
>>>>>>>>>>> machine*
>>>>>>>>>>> *WARNING: The restore will overwrite ALL GeoNode data. You want
>>>>>>>>>>> to proceed? [n]|y: y*
>>>>>>>>>>> *Traceback (most recent call last):*
>>>>>>>>>>> *  File "manage.py", line 11, in <module>*
>>>>>>>>>>> *    execute_from_command_line(sys.argv)*
>>>>>>>>>>> *  File
>>>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>>>>>> 354, in execute_from_command_line*
>>>>>>>>>>> *    utility.execute()*
>>>>>>>>>>> *  File
>>>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>>>>>> 346, in execute*
>>>>>>>>>>> *    self.fetch_command(subcommand).run_from_argv(self.argv)*
>>>>>>>>>>> *  File
>>>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
>>>>>>>>>>> 394, in run_from_argv*
>>>>>>>>>>> *    self.execute(*args, **cmd_options)*
>>>>>>>>>>> *  File
>>>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
>>>>>>>>>>> 445, in execute*
>>>>>>>>>>> *    output = self.handle(*args, **options)*
>>>>>>>>>>> *  File
>>>>>>>>>>> "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/restore.py",
>>>>>>>>>>> line 87, in handle*
>>>>>>>>>>> *    target_folder = helpers.unzip_file(backup_file,
>>>>>>>>>>> restore_folder)*
>>>>>>>>>>> *  File
>>>>>>>>>>> "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/helpers.py",
>>>>>>>>>>> line 227, in unzip_file*
>>>>>>>>>>> *    z.extractall(target_folder)*
>>>>>>>>>>> *  File "/usr/lib/python2.7/zipfile.py", line 1040, in
>>>>>>>>>>> extractall*
>>>>>>>>>>> *    self.extract(zipinfo, path, pwd)*
>>>>>>>>>>> *  File "/usr/lib/python2.7/zipfile.py", line 1028, in extract*
>>>>>>>>>>> *    return self._extract_member(member, path, pwd)*
>>>>>>>>>>> *  File "/usr/lib/python2.7/zipfile.py", line 1083, in
>>>>>>>>>>> _extract_member*
>>>>>>>>>>> *    file(targetpath, "wb") as target:*
>>>>>>>>>>> *IOError: [Errno 13] Permission denied:
>>>>>>>>>>> u'/tmp/restore/geoserver_catalog/store.dat.1'*
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Thanks for your help
>>>>>>>>>>>
>>>>>>>>>>> Federico
>>>>>>>>>>>
>>>>>>>>>>> 2017-05-23 17:33 GMT+02:00 Alessio Fabiani <
>>>>>>>>>>> alessio.fabiani at geo-solutions.it>:
>>>>>>>>>>>
>>>>>>>>>>>> Federico, before doing anything, can you try to do this test?
>>>>>>>>>>>>
>>>>>>>>>>>> sudo mkdir /tmp/backup
>>>>>>>>>>>> sudo chmod -Rf 777 /tmp/backup
>>>>>>>>>>>> python manage.py backup --backup-dir=/tmp/backup
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Best Regards,
>>>>>>>>>>>> Alessio Fabiani.
>>>>>>>>>>>>
>>>>>>>>>>>> ==
>>>>>>>>>>>> GeoServer Professional Services from the experts!
>>>>>>>>>>>> Visit http://goo.gl/it488V for more information.
>>>>>>>>>>>> ==
>>>>>>>>>>>>
>>>>>>>>>>>> Ing. Alessio Fabiani
>>>>>>>>>>>> @alfa7691
>>>>>>>>>>>> github <https://github.com/afabiani?tab=overview>
>>>>>>>>>>>> Founder/Technical Lead
>>>>>>>>>>>>
>>>>>>>>>>>> GeoSolutions S.A.S.
>>>>>>>>>>>> Via di Montramito 3/A
>>>>>>>>>>>> 55054  Massarosa (LU)
>>>>>>>>>>>> Italy
>>>>>>>>>>>> phone: +39 0584 962313 <+39%200584%20962313>
>>>>>>>>>>>> fax:     +39 0584 1660272 <+39%200584%20166%200272>
>>>>>>>>>>>> mob:   +39 331 6233686 <%28331%29%20623-3686>
>>>>>>>>>>>>
>>>>>>>>>>>> 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 Tue, May 23, 2017 at 5:24 PM, Federico Gianoli <
>>>>>>>>>>>> alpacagis at gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Alessio,
>>>>>>>>>>>>>
>>>>>>>>>>>>> thanks for your quick answer,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I have checked, but I have not the files 2 and 3 on my geonode
>>>>>>>>>>>>> instance. How is it possible? I have installed geonode via ppa.
>>>>>>>>>>>>> I have overwritten all "commands" folder, in order to be sure
>>>>>>>>>>>>> to have the latest files, bu it is still not working.
>>>>>>>>>>>>>
>>>>>>>>>>>>> There is another way to do the backup?
>>>>>>>>>>>>>
>>>>>>>>>>>>> In your opinion, if I upgrade my version of geonode (2.6rc) to
>>>>>>>>>>>>> the last stable (sudo apt-get upgrade   right?), this issue will be solved?
>>>>>>>>>>>>> How dangerous could be for my data?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks a lot
>>>>>>>>>>>>>
>>>>>>>>>>>>> Fede
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> 2017-05-23 12:38 GMT+02:00 Alessio Fabiani <
>>>>>>>>>>>>> alessio.fabiani at geo-solutions.it>:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Digging to the source code of both GeoNode management command
>>>>>>>>>>>>>> [1] and GeoServer Backup Plugin [2] and [3], seems like that GeoServer
>>>>>>>>>>>>>> can't access the "${target_folder}/geoserver_catalog.zip"
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> The ${target_folder} should be composed by the join of ${backup_dir}
>>>>>>>>>>>>>> and ${dir_time_suffix}, something like ${backup_dir}/<time_stamp>
>>>>>>>>>>>>>> where ${backup_dir} is the parameter provided when running
>>>>>>>>>>>>>> the backup command from GeoNode.
>>>>>>>>>>>>>> Now, the latest GeoNode code [4] tries to set chmod(777) to
>>>>>>>>>>>>>> this temporary folder, which will be deleted at the end, in order to allow
>>>>>>>>>>>>>> to GeoServer to write the file.
>>>>>>>>>>>>>> That means that most probably the user running GeoNode must
>>>>>>>>>>>>>> have full rights on the ${backup_dir} folder.
>>>>>>>>>>>>>> Can you maybe try to double check this?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> [1] https://github.com/GeoNode/geonode/blob/master/geonode/b
>>>>>>>>>>>>>> ase/management/commands/backup.py#L92
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> [2] https://github.com/geoserver/geoserver/blob/2.9.x/src/co
>>>>>>>>>>>>>> mmunity/backup-restore/rest/src/main/java/org/geoserver/back
>>>>>>>>>>>>>> uprestore/rest/BackupResource.java#L155
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> [3] https://github.com/geoserver/geoserver/blob/2.9.x/src/co
>>>>>>>>>>>>>> mmunity/backup-restore/core/src/main/java/org/geoserver/back
>>>>>>>>>>>>>> uprestore/Backup.java#L328
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> [4] https://github.com/GeoNode/geonode/blob/master/geonode/b
>>>>>>>>>>>>>> ase/management/commands/backup.py#L86
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Best Regards,
>>>>>>>>>>>>>> Alessio Fabiani.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ==
>>>>>>>>>>>>>> GeoServer Professional Services from the experts!
>>>>>>>>>>>>>> Visit http://goo.gl/it488V for more information.
>>>>>>>>>>>>>> ==
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Ing. Alessio Fabiani
>>>>>>>>>>>>>> @alfa7691
>>>>>>>>>>>>>> github <https://github.com/afabiani?tab=overview>
>>>>>>>>>>>>>> Founder/Technical Lead
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> GeoSolutions S.A.S.
>>>>>>>>>>>>>> Via di Montramito 3/A
>>>>>>>>>>>>>> 55054  Massarosa (LU)
>>>>>>>>>>>>>> Italy
>>>>>>>>>>>>>> phone: +39 0584 962313 <+39%200584%20962313>
>>>>>>>>>>>>>> fax:     +39 0584 1660272 <+39%200584%20166%200272>
>>>>>>>>>>>>>> mob:   +39 331 6233686 <%28331%29%20623-3686>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 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 Tue, May 23, 2017 at 12:23 PM, Federico Gianoli <
>>>>>>>>>>>>>> alpacagis at gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hi Alessio,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I have checked the Geoserver Log, and here you can find the
>>>>>>>>>>>>>>> complete geoserver log: https://pastebin.com/c9JeR1NU
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The error that I have noted on the log is this one:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> *2017-05-23 04:49:10,598 ERROR [geoserver.rest] - Unable to
>>>>>>>>>>>>>>> perform backup: :Could not create file.*
>>>>>>>>>>>>>>> *2017-05-23 04:49:10,598 DEBUG [geoserver.filters] -
>>>>>>>>>>>>>>> Compressing output for mimetype: text/plain*
>>>>>>>>>>>>>>> *2017-05-23 04:49:10,598 ERROR [geoserver.rest] - *
>>>>>>>>>>>>>>> *org.geoserver.rest.RestletException:
>>>>>>>>>>>>>>> java.lang.IllegalStateException: Could not create file.*
>>>>>>>>>>>>>>> * at org.geoserver.backuprestore.re
>>>>>>>>>>>>>>> <http://org.geoserver.backuprestore.re/>st.BackupResource.runBackup(BackupResource.java:172)*
>>>>>>>>>>>>>>> * at org.geoserver.backuprestore.re
>>>>>>>>>>>>>>> <http://org.geoserver.backuprestore.re/>st.BackupResource.handlePost(BackupResource.java:108)*
>>>>>>>>>>>>>>> *        ....*
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The rights of  /usr/share/geoserver/data are these:
>>>>>>>>>>>>>>> drwxr-xr-x  21 tomcat7 tomcat7      4096 May 23 04:49 data
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I have also changed the folder rights adding user: tomcat7
>>>>>>>>>>>>>>> and user:user, but without any result.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thanks a lot for your help and your patience
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Federico
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> 2017-05-22 16:49 GMT+02:00 Alessio Fabiani <
>>>>>>>>>>>>>>> alessio.fabiani at geo-solutions.it>:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> It is possible that GeoServer cannot write to the target
>>>>>>>>>>>>>>>> folder. Take a look at the GeoServer logs. Also try to rise up the log
>>>>>>>>>>>>>>>> level if you don't find anything useful.
>>>>>>>>>>>>>>>> This can be done from the GeoServer admin gui.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Best Regards,
>>>>>>>>>>>>>>>> Alessio Fabiani.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ==
>>>>>>>>>>>>>>>> GeoServer Professional Services from the experts!
>>>>>>>>>>>>>>>> Visit http://goo.gl/it488V for more information.
>>>>>>>>>>>>>>>> ==
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Ing. Alessio Fabiani
>>>>>>>>>>>>>>>> @alfa7691
>>>>>>>>>>>>>>>> github <https://github.com/afabiani?tab=overview>
>>>>>>>>>>>>>>>> Founder/Technical Lead
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> GeoSolutions S.A.S.
>>>>>>>>>>>>>>>> Via di Montramito 3/A
>>>>>>>>>>>>>>>> 55054  Massarosa (LU)
>>>>>>>>>>>>>>>> Italy
>>>>>>>>>>>>>>>> phone: +39 0584 962313 <+39%200584%20962313>
>>>>>>>>>>>>>>>> fax:     +39 0584 1660272 <+39%200584%20166%200272>
>>>>>>>>>>>>>>>> mob:   +39 331 6233686 <%28331%29%20623-3686>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> 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 Mon, May 22, 2017 at 4:47 PM, Alessio Fabiani <
>>>>>>>>>>>>>>>> alessio.fabiani at geo-solutions.it> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>>>>> which version of GeoServer are you using?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Best Regards,
>>>>>>>>>>>>>>>>> Alessio Fabiani.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> ==
>>>>>>>>>>>>>>>>> GeoServer Professional Services from the experts!
>>>>>>>>>>>>>>>>> Visit http://goo.gl/it488V for more information.
>>>>>>>>>>>>>>>>> ==
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Ing. Alessio Fabiani
>>>>>>>>>>>>>>>>> @alfa7691
>>>>>>>>>>>>>>>>> github <https://github.com/afabiani?tab=overview>
>>>>>>>>>>>>>>>>> Founder/Technical Lead
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> GeoSolutions S.A.S.
>>>>>>>>>>>>>>>>> Via di Montramito 3/A
>>>>>>>>>>>>>>>>> 55054  Massarosa (LU)
>>>>>>>>>>>>>>>>> Italy
>>>>>>>>>>>>>>>>> phone: +39 0584 962313 <0584%20962313>
>>>>>>>>>>>>>>>>> fax:     +39 0584 1660272 <0584%20166%200272>
>>>>>>>>>>>>>>>>> mob:   +39 331 6233686 <331%20623%203686>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> 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 Fri, May 19, 2017 at 1:08 PM, Federico Gianoli <
>>>>>>>>>>>>>>>>> alpacagis at gmail.com> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Thanks a lot Alessio,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I have changed the files according to your suggestions,
>>>>>>>>>>>>>>>>>> but now I have this error:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> *$ sudo python manage.py backup --backup-dir=backup/*
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> *Before proceeding with the Backup, please ensure that:*
>>>>>>>>>>>>>>>>>> * 1. The backend (DB or whatever) is accessible and you
>>>>>>>>>>>>>>>>>> have rights*
>>>>>>>>>>>>>>>>>> * 2. The GeoServer is up and running and reachable from
>>>>>>>>>>>>>>>>>> this machine*
>>>>>>>>>>>>>>>>>> *You want to proceed? [n]|y: y*
>>>>>>>>>>>>>>>>>> *Dumping 'GeoServer Catalog
>>>>>>>>>>>>>>>>>> [http://212.237.232.12/geoserver/ <http://212.237.232.12/geoserver/>]' into
>>>>>>>>>>>>>>>>>> 'backup/2017-05-19_050730 <050%20730>/geoserver_catalog.zip'.*
>>>>>>>>>>>>>>>>>> *Traceback (most recent call last):*
>>>>>>>>>>>>>>>>>> *  File "manage.py", line 11, in <module>*
>>>>>>>>>>>>>>>>>> *    execute_from_command_line(sys.argv)*
>>>>>>>>>>>>>>>>>> *  File
>>>>>>>>>>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>>>>>>>>>>>>> 354, in execute_from_command_line*
>>>>>>>>>>>>>>>>>> *    utility.execute()*
>>>>>>>>>>>>>>>>>> *  File
>>>>>>>>>>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
>>>>>>>>>>>>>>>>>> 346, in execute*
>>>>>>>>>>>>>>>>>> *
>>>>>>>>>>>>>>>>>> self.fetch_command(subcommand).run_from_argv(self.argv)*
>>>>>>>>>>>>>>>>>> *  File
>>>>>>>>>>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
>>>>>>>>>>>>>>>>>> 394, in run_from_argv*
>>>>>>>>>>>>>>>>>> *    self.execute(*args, **cmd_options)*
>>>>>>>>>>>>>>>>>> *  File
>>>>>>>>>>>>>>>>>> "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
>>>>>>>>>>>>>>>>>> 445, in execute*
>>>>>>>>>>>>>>>>>> *    output = self.handle(*args, **options)*
>>>>>>>>>>>>>>>>>> *  File
>>>>>>>>>>>>>>>>>> "/usr/local/lib/python2.7/dist-packages/geonode/base/management/commands/backup.py",
>>>>>>>>>>>>>>>>>> line 101, in handle*
>>>>>>>>>>>>>>>>>> *    gs_backup = r.json()*
>>>>>>>>>>>>>>>>>> *  File
>>>>>>>>>>>>>>>>>> "/usr/lib/python2.7/dist-packages/requests/models.py", line 808, in json*
>>>>>>>>>>>>>>>>>> *    return complexjson.loads(self.text, **kwargs)*
>>>>>>>>>>>>>>>>>> *  File "/usr/lib/python2.7/json/__init__.py", line 339,
>>>>>>>>>>>>>>>>>> in loads*
>>>>>>>>>>>>>>>>>> *    return _default_decoder.decode(s)*
>>>>>>>>>>>>>>>>>> *  File "/usr/lib/python2.7/json/decoder.py", line 364,
>>>>>>>>>>>>>>>>>> in decode*
>>>>>>>>>>>>>>>>>> *    obj, end = self.raw_decode(s, idx=_w(s, 0).end())*
>>>>>>>>>>>>>>>>>> *  File "/usr/lib/python2.7/json/decoder.py", line 382,
>>>>>>>>>>>>>>>>>> in raw_decode*
>>>>>>>>>>>>>>>>>> *    raise ValueError("No JSON object could be decoded")*
>>>>>>>>>>>>>>>>>> *ValueError: No JSON object could be decoded*
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> *Thanks a lot for your help*
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> *Fede*
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> 2017-05-05 16:41 GMT+02:00 Alessio Fabiani <
>>>>>>>>>>>>>>>>>> alessio.fabiani at geo-solutions.it>:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> PR here
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> https://github.com/GeoNode/geonode/pull/3031
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Best Regards,
>>>>>>>>>>>>>>>>>>> Alessio Fabiani.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> ==
>>>>>>>>>>>>>>>>>>> GeoServer Professional Services from the experts!
>>>>>>>>>>>>>>>>>>> Visit http://goo.gl/it488V for more information.
>>>>>>>>>>>>>>>>>>> ==
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Ing. Alessio Fabiani
>>>>>>>>>>>>>>>>>>> @alfa7691
>>>>>>>>>>>>>>>>>>> github <https://github.com/afabiani?tab=overview>
>>>>>>>>>>>>>>>>>>> Founder/Technical Lead
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> GeoSolutions S.A.S.
>>>>>>>>>>>>>>>>>>> Via di Montramito 3/A
>>>>>>>>>>>>>>>>>>> 55054  Massarosa (LU)
>>>>>>>>>>>>>>>>>>> Italy
>>>>>>>>>>>>>>>>>>> phone: +39 0584 962313 <+39%200584%20962313>
>>>>>>>>>>>>>>>>>>> fax:     +39 0584 1660272 <+39%200584%20166%200272>
>>>>>>>>>>>>>>>>>>> mob:   +39 331 6233686 <%28331%29%20623-3686>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> 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 Thu, Apr 27, 2017 at 2:09 PM, Alessio Fabiani <
>>>>>>>>>>>>>>>>>>> alessio.fabiani at geo-solutions.it> wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Dear all,
>>>>>>>>>>>>>>>>>>>> currently the backup and restore utility should be
>>>>>>>>>>>>>>>>>>>> aligned with latest updates I guess. There are also several issues /
>>>>>>>>>>>>>>>>>>>> improvements we are working on to improve this tool.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> We will find some spare time soon to devote to those
>>>>>>>>>>>>>>>>>>>> tasks. We will send updates as soon as possible.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Best Regards,
>>>>>>>>>>>>>>>>>>>> Alessio Fabiani.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> ==
>>>>>>>>>>>>>>>>>>>> GeoServer Professional Services from the experts!
>>>>>>>>>>>>>>>>>>>> Visit http://goo.gl/it488V for more information.
>>>>>>>>>>>>>>>>>>>> ==
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Ing. Alessio Fabiani
>>>>>>>>>>>>>>>>>>>> @alfa7691
>>>>>>>>>>>>>>>>>>>> github <https://github.com/afabiani?tab=overview>
>>>>>>>>>>>>>>>>>>>> Founder/Technical Lead
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> GeoSolutions S.A.S.
>>>>>>>>>>>>>>>>>>>> Via di Montramito 3/A
>>>>>>>>>>>>>>>>>>>> 55054  Massarosa (LU)
>>>>>>>>>>>>>>>>>>>> Italy
>>>>>>>>>>>>>>>>>>>> phone: +39 0584 962313 <0584%20962313>
>>>>>>>>>>>>>>>>>>>> fax:     +39 0584 1660272 <0584%20166%200272>
>>>>>>>>>>>>>>>>>>>> mob:   +39 331 6233686 <331%20623%203686>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> 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 Thu, Apr 27, 2017 at 1:50 PM, Simone Dalmasso <
>>>>>>>>>>>>>>>>>>>> simone.dalmasso at gmail.com> wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Hi Federico,
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> there seems to be an issue in the commands, simplejson
>>>>>>>>>>>>>>>>>>>>> is not available anymore, json has to be used. we should fix it.
>>>>>>>>>>>>>>>>>>>>> @afabiani, is that correct?
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> https://github.com/GeoNode/geo
>>>>>>>>>>>>>>>>>>>>> node/blob/2.6.x/geonode/base/m
>>>>>>>>>>>>>>>>>>>>> anagement/commands/restore.py#L28
>>>>>>>>>>>>>>>>>>>>> https://github.com/GeoNode/geo
>>>>>>>>>>>>>>>>>>>>> node/blob/2.6.x/geonode/base/m
>>>>>>>>>>>>>>>>>>>>> anagement/commands/backup.py#L26
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> 2017-04-27 12:11 GMT+02:00 Federico Gianoli <
>>>>>>>>>>>>>>>>>>>>> alpacagis at gmail.com>:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Dear all,
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> I would like to create a backup of my geonode project
>>>>>>>>>>>>>>>>>>>>>> and I am using this guide: http://docs.geonode.org
>>>>>>>>>>>>>>>>>>>>>> /en/master/tutorials/admin/backup_restore/
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> From my django admin page (Base => backups) I tried
>>>>>>>>>>>>>>>>>>>>>> to do a backup, but, when I run the backup, on a fully writable folder
>>>>>>>>>>>>>>>>>>>>>> (777), there is this server error:
>>>>>>>>>>>>>>>>>>>>>> Internal Server Error
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> The server encountered an internal error or
>>>>>>>>>>>>>>>>>>>>>> misconfiguration and was unable to complete your request.
>>>>>>>>>>>>>>>>>>>>>> I have double checked the settings.ini file, and I
>>>>>>>>>>>>>>>>>>>>>> have noted that the configuration file is not yet update for the 2.6
>>>>>>>>>>>>>>>>>>>>>> version, it has these lines:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> #Migrate from GN 2.4 to GN 2.4
>>>>>>>>>>>>>>>>>>>>>> migrations = base.resourcebase,layers.layer
>>>>>>>>>>>>>>>>>>>>>> ,layers.attribute,maps.map,maps.maplayer
>>>>>>>>>>>>>>>>>>>>>> manglers   = gn24_to_24.ResourceBaseMangler
>>>>>>>>>>>>>>>>>>>>>> ,gn24_to_24.LayerMangler,gn24_
>>>>>>>>>>>>>>>>>>>>>> to_24.LayerAttributesMangler,g
>>>>>>>>>>>>>>>>>>>>>> n24_to_24.DefaultMangler,gn24_to_24.MapLayersMangler
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Is it correct? Have I to change these lines
>>>>>>>>>>>>>>>>>>>>>> accordingly to the 2.6 version? (e.g. gn26_to_26.ResourceBaseMangler ...)?
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> When I try to run the backup from command line there
>>>>>>>>>>>>>>>>>>>>>> is the following error about the file backup.py
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> import error: no moduled named simplejson
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> How can I solved this issue?
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Tanks a lot
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Federico
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>>>>>>> geonode-users mailing list
>>>>>>>>>>>>>>>>>>>>>> geonode-users at lists.osgeo.org
>>>>>>>>>>>>>>>>>>>>>> https://lists.osgeo.org/mailma
>>>>>>>>>>>>>>>>>>>>>> n/listinfo/geonode-users
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>>>> Simone
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>>>>>> geonode-users mailing list
>>>>>>>>>>>>>>>>>>>>> geonode-users at lists.osgeo.org
>>>>>>>>>>>>>>>>>>>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> geonode-users mailing list
>>>>>>>>>>>>>>> geonode-users at lists.osgeo.org
>>>>>>>>>>>>>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> geonode-users mailing list
>>>>>>>>>> geonode-users at lists.osgeo.org
>>>>>>>>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> geonode-users mailing list
>>>>> geonode-users at lists.osgeo.org
>>>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>>
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> geonode-users mailing list
>>> geonode-users at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>
>>>
>>
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>
>>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170529/e1615025/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 62218 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170529/e1615025/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 22124 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170529/e1615025/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 81310 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170529/e1615025/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 94043 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170529/e1615025/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 70177 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170529/e1615025/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 29427 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170529/e1615025/attachment-0011.png>


More information about the geonode-users mailing list