[GeoNode-devel] Migrating custom app from 2.4 to 2.8 returns IOError at /wfpdocs/test_layer/ [Errno 71] Protocol Error

Dimitris Kar dkarakostis at gmail.com
Mon Jan 14 03:20:54 PST 2019


I also see now that when I try to access the table from inside the admin
panel, I get the bellow error message:

Exception Type: NotRegistered
Exception Value:

The model "WFPDocument" is not registered for translation


On Mon, Jan 14, 2019 at 12:03 PM Dimitris Kar <dkarakostis at gmail.com> wrote:

> Hello all,
>
> I am trying to migrate an application from our GeoNode 2.4 to a
> geonode-project, which uses the latest stable release (2.8 - dev env). I
> use a vagrant machine with an Ubuntu 16.04.
> The application has a very similar logic to the Documents app. I am able
> to access the templates (e.g. file upload map) and I also can see the
> tables in the sqllite file. Everything seems to work fine but when I try to
> upload a file I get the below error. I've noticed that file is being
> actually uploaded cause I can see it under the uploaded/documents/. I
> thought this might be related with permissions issues of the files but I
> have checked them and they all use the same permission levels. It seems
> like the error takes place after the file is uploaded and when I am
> redirected in the "detail" page of the app. But then again searching a bit
> online about the "Errno 71", I see that this could be related to the
> virtual environment and vagrant? (
> https://pythondata.com/vagrant-on-windows/)
>
>  Has anyone seen something like that before:
>
> IOError at /wfpdocs/dsfsdfsd/ [Errno 71]
> Protocol error: '/vagrant/wfp_geonode/wfp_geonode/templates/{\'resource\':
> <WFPDocument: dsfsdfsd>, \'perms_list\': [u\'add_resourcebase\',
> u\'change_resourcebase\', u\'change_resourcebase_metadata\',
> u\'change_resourcebase_permissions\', u\'delete_resourcebase\',
> u\'download_resourcebase\', u\'publish_resourcebase\',
> u\'view_resourcebase\'], \'social_links\': [{\'url\': u\'mailto:?subject=dsfsdfsd&body=http:/localhost:8000/wfpdocs/dsfsdfsd/\',
> \'css_class\': \'email\', \'label\': \'Email\'}, {\'url\': u\'http:/
> www.facebook.com/sharer.php?u=http:/localhost:8000/wfpdocs/dsfsdfsd/\
> <http://www.facebook.com/sharer.php?u=http:/localhost:8000/wfpdocs/dsfsdfsd/%5C>',
> \'css_class\': \'fb\', \'label\': \'Facebook\'}, {\'url\': u\'https:/
> twitter.com/share?url=http:/localhost:8000/wfpdocs/dsfsdfsd/&hashtags=geonode\
> <http://twitter.com/share?url=http:/localhost:8000/wfpdocs/dsfsdfsd/&hashtags=geonode%5C>',
> \'css_class\': \'tw\', \'label\': \'Twitter\'}, {\'url\': u\'https:/
> plus.google.com/share?url=http:/localhost:8000/wfpdocs/dsfsdfsd/\
> <http://plus.google.com/share?url=http:/localhost:8000/wfpdocs/dsfsdfsd/%5C>',
> \'css_class\': \'gp\', \'label\': \'Google +\'}], \'imgtypes\': [\'jpg\',
> \'jpeg\', \'tif\', \'tiff\', \'png\', \'gif\'], \'related\': \'\',
> \'permissions_json\': \'{"users": {"admin": ["view_resourcebase",
> "download_resourcebase", "change_resourcebase_metadata",
> "change_resourcebase", "delete_resourcebase",
> "change_resourcebase_permissions", "publish_resourcebase"],
> "AnonymousUser": ["view_resourcebase", "download_resourcebase"]}, "groups":
> {"anonymous": ["view_resourcebase", "download_resourcebase"]}}\',
> \'metadata\': <QuerySet []>}'
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20190114/636eb773/attachment.html>


More information about the geonode-devel mailing list