<div dir="ltr">
<div bgcolor="#FFFFFF">
<p>Hello,</p>
<p>Yes that would be insteresting ! <br></p><p>Today I realized that I cannot upload shapefiles. The error seems to be related with Postgis:<br></p><p>An exception occurred loading data to PostGIS- java.io.IOException<br>[Thu Feb 02 10:56:05.899620 2017] [:error] [pid 28766:tid 139806268286720] Traceback (most recent call last):<br>[Thu Feb 02 10:56:05.899625 2017] [:error] [pid 28766:tid 139806268286720] File "/usr/local/lib/python2.7/dist-packages/geonode/layers/views.py", line 160, in layer_upload<br>[Thu Feb 02 10:56:05.899631 2017] [:error] [pid 28766:tid 139806268286720] title=form.cleaned_data["layer_title"],<br>[Thu Feb 02 10:56:05.899635 2017] [:error] [pid 28766:tid 139806268286720] File "/usr/local/lib/python2.7/dist-packages/geonode/layers/utils.py", line 470, in file_upload<br>[Thu Feb 02 10:56:05.899640 2017] [:error] [pid 28766:tid 139806268286720] defaults=defaults<br>[Thu Feb 02 10:56:05.899644 2017] [:error] [pid 28766:tid 139806268286720] File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 154, in get_or_create<br>[Thu Feb 02 10:56:05.899649 2017] [:error] [pid 28766:tid 139806268286720] return self.get_queryset().get_or_create(**kwargs)<br>[Thu Feb 02 10:56:05.899653 2017] [:error] [pid 28766:tid 139806268286720] File "/usr/lib/python2.7/dist-packages/modeltranslation/manager.py", line 341, in get_or_create<br>[Thu Feb 02 10:56:05.899658 2017] [:error] [pid 28766:tid 139806268286720] return super(MultilingualQuerySet, self).get_or_create(**kwargs)<br>[Thu Feb 02 10:56:05.899662 2017] [:error] [pid 28766:tid 139806268286720] File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 383, in get_or_create<br>[Thu Feb 02 10:56:05.899667 2017] [:error] [pid 28766:tid 139806268286720] obj.save(force_insert=True, using=self.db)<br>[Thu Feb 02 10:56:05.899671 2017] [:error] [pid 28766:tid 139806268286720] File "/usr/lib/python2.7/dist-packages/polymorphic/polymorphic_model.py", line 90, in save<br>[Thu Feb 02 10:56:05.899676 2017] [:error] [pid 28766:tid 139806268286720] return super(PolymorphicModel, self).save(*args, **kwargs)<br>[Thu Feb 02 10:56:05.899680 2017] [:error] [pid 28766:tid 139806268286720] File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 545, in save<br>[Thu Feb 02 10:56:05.899685 2017] [:error] [pid 28766:tid 139806268286720] force_update=force_update, update_fields=update_fields)<br>[Thu Feb 02 10:56:05.899689 2017] [:error] [pid 28766:tid 139806268286720] File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 569, in save_base<br>[Thu Feb 02 10:56:05.899693 2017] [:error] [pid 28766:tid 139806268286720] update_fields=update_fields)<br>[Thu Feb 02 10:56:05.899697 2017] [:error] [pid 28766:tid 139806268286720] File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 185, in send<br>[Thu Feb 02 10:56:05.899702 2017] [:error] [pid 28766:tid 139806268286720] response = receiver(signal=self, sender=sender, **named)<br>[Thu Feb 02 10:56:05.899707 2017] [:error] [pid 28766:tid 139806268286720] File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/signals.py", line 74, in geoserver_pre_save<br>[Thu Feb 02 10:56:05.899711 2017] [:error] [pid 28766:tid 139806268286720] charset=instance.charset)<br>[Thu Feb 02 10:56:05.899715 2017] [:error] [pid 28766:tid 139806268286720] File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 1121, in geoserver_upload<br>[Thu Feb 02 10:56:05.899720 2017] [:error] [pid 28766:tid 139806268286720] workspace=workspace)<br>[Thu Feb 02 10:56:05.899724 2017] [:error] [pid 28766:tid 139806268286720] File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 998, in _create_db_featurestore<br>[Thu Feb 02 10:56:05.899729 2017] [:error] [pid 28766:tid 139806268286720] raise GeoNodeException(msg)<br>[Thu Feb 02 10:56:05.899733 2017] [:error] [pid 28766:tid 139806268286720] GeoNodeException: An exception occurred loading data to PostGIS- java.io.IOException</p><p><br></p><p>Best regards !</p><p>George<br>
</p><div class="gmail-m_8825523420097407555moz-cite-prefix">On 01/02/2017 05:11 μμ, Simone Dalmasso
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi, this is interesting. I would be curious to see
what the original error is, it should appear in the terminal
during the geonode installation.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-02-01 16:06 GMT+01:00 Gi Petrak <span dir="ltr"><<a href="mailto:gkpetrak@gmail.com" target="_blank">gkpetrak@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">I 'd like to post an issue that I had with
apt-get Installation of GeoNode 2.4 <br>
and I fixed with the hope of helping someone else with the
same problem.<br>
After creating a clean and fresh Ubuntu 14.04 remote VM, I
installed geonode with apt-get:<br>
<br>
sudo add-apt-repository ppa:geonode/stable<br>
sudo apt-get update<br>
sudo apt-get install geonode<br>
<br>
But when I executed the following commands:<br>
geonode createsuperuser<br>
sudo geonode-updateip 127.0.0.1<br>
<br>
I had errors like:<br>
2017-01-31 22:15:58 EET FATAL: password authentication
failed for user "geonode"<br>
2017-01-31 22:15:58 EET DETAIL: Connection matched
pg_hba.conf line 94: "host <br>
2017-01-31 22:54:31 EET FATAL: role "user" does not exist<br>
2017-01-31 22:54:49 EET FATAL: database "geonode" does
not exist<br>
<br>
So, I realized that geonode user and database didn't
exist. Thus, I followed the custom procedure of creating
GeoNode DB:<br>
<a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/create_geonode_db.html" target="_blank">http://docs.geonode.org/en/mas<wbr>ter/tutorials/install_and_admi<wbr>n/geonode_install/create_geono<wbr>de_db.html</a><br>
<br>
and finally I ran: sudo python manage.py syncdb -noinput<br>
<br>
After these steps, problem solved.<br>
<br>
<br>
<br>
<br>
</div>
<br>
______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/geonode-users</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail-m_8825523420097407555gmail_signature">Simone </div>
</div>
</blockquote>
<br>
</div>
</div>