[GeoNode-users] Issue when performing a backup
Alessio Fabiani
alessio.fabiani at geo-solutions.it
Tue May 16 07:04:00 PDT 2017
It is possible that the backup script tries to get this form the settings.
Maybe just put a try catch around that code and print it just as a warning.
Basically what backup / restore commands want to do, is to package and
restore also static filed and templates. This is possible only by actually
zipping the static folders.
Best Regards,
Alessio Fabiani.
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Ing. Alessio Fabiani
@alfa7691
github <https://github.com/afabiani?tab=overview>
Founder/Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 331 6233686
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
---------------------------------------------------------------------
On Tue, May 16, 2017 at 1:27 PM, Enrique Cerrillo Cuenca <cerrillo at uevora.pt
> wrote:
> Hi everyone,
>
> I’m trying to perform of backup of my geonode data following the procedure
> here described: http://docs.geonode.org/en/latest/tutorials/admin/backup_
> restore/index.html
>
> Everything seems to work perfectly. However, I’m getting this error when I
> run backup.py:
>
> Reactivating GeoNode Signals...
> ...done!
> 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/backup.py", line
> 196, in handle
> helpers.copy_tree(static_root, static_folder)
> File "/usr/src/app/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/src/app/geonode/static_
> root’
>
> Indeed the static_root directory is missing in geonode, although “static”
> directory do exist. In which file should I change the link?
>
> Thanks in advance,
>
> Enrique
>
>
>
>
> _______________________________________________
> 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/20170516/ce1027c5/attachment-0001.html>
More information about the geonode-users
mailing list