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

Enrique Cerrillo Cuenca cerrillo at uevora.pt
Tue May 23 12:04:29 PDT 2017


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.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.
uevora.pt/geoserver/]' into '/tmp/restore/2017-05-17_
045850/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 <(331)%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.zipBefore
> 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 machineWARNING: The restore will overwrite
> ALL GeoNode data. You want to proceed? [n]|y: yTraceback (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-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 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-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/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 <(331)%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/9COMPLETED - 9/9Traceback (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 <(331)%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 <(331)%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 <(331)%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 <(331)%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/geonode/blob/2.6.x/geonode/base/m
>>>>>>>>>>>>> anagement/commands/restore.py#L28
>>>>>>>>>>>>> https://github.com/GeoNode/geonode/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/mailman/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
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170523/13f94b53/attachment-0001.html>


More information about the geonode-users mailing list