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

Federico Gianoli alpacagis at gmail.com
Tue May 23 08:45:54 PDT 2017


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
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170523/5ff92ca9/attachment-0001.html>


More information about the geonode-users mailing list