[GeoNode-users] backup error, geonode 2.6 => backup.py=> import error: no moduled named simplejson
Federico Gianoli
alpacagis at gmail.com
Tue May 23 03:23:12 PDT 2017
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.rest.BackupResource.runBackup(BackupResource.java:172)*
* at
org.geoserver.backuprestore.rest.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/bac
>>>>>>> kup_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
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170523/1229f226/attachment-0001.html>
More information about the geonode-users
mailing list