[GeoNode-users] problems connect refused when upload shapefiles in geonode

Simone Dalmasso simone.dalmasso at gmail.com
Tue Feb 20 13:56:39 PST 2018


Hi Silvia,

this means your geoserver is down or unreachable for some reasons. Make
sure it responds to yourip:8080/geoserver. You may find more info on why is
down in the geoserver logs.

Hope this helps

2018-02-20 22:16 GMT+01:00 SILVIA GAMERO <gamerinsky at gmail.com>:

> Good afternoon everyone, I currently have problems when I try to upload
> layers in geonode, a CONNECT REFUSED message appears.
> I'm working with Geonode 2.6x on centos7.
>
>
>
> [image: Imágenes integradas 1]
>
> In the geonode log the following appears:
> [Errno 111] Connection refused
> Traceback (most recent call last):
>   File "/opt/apps/geonode/geonode/geonode/layers/views.py", line 168, in
> layer_upload
>     metadata_uploaded_preserve=form.cleaned_data["metadata_
> uploaded_preserve"]
>   File "/opt/apps/geonode/geonode/geonode/layers/utils.py", line 499, in
> file_upload
>     defaults=defaults
>   File "/usr/lib/python2.7/site-packages/django/db/models/manager.py",
> line 127, in manager_method
>     return getattr(self.get_queryset(), name)(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/modeltranslation/manager.py",
> line 389, in get_or_create
>     return super(MultilingualQuerySet, self).get_or_create(**kwargs)
>   File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line
> 407, in get_or_create
>     return self._create_object_from_params(lookup, params)
>   File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line
> 439, in _create_object_from_params
>     obj = self.create(**params)
>   File "/usr/lib/python2.7/site-packages/modeltranslation/manager.py",
> line 381, in create
>     return super(MultilingualQuerySet, self).create(**kwargs)
>   File "/usr/lib/python2.7/site-packages/django/db/models/query.py", line
> 348, in create
>     obj.save(force_insert=True, using=self.db)
>   File "/usr/lib/python2.7/site-packages/polymorphic/models.py", line 90,
> in save
>     return super(PolymorphicModel, self).save(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line
> 734, in save
>     force_update=force_update, update_fields=update_fields)
>   File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line
> 758, in save_base
>     update_fields=update_fields)
>   File "/usr/lib/python2.7/site-packages/django/dispatch/dispatcher.py",
> line 189, in send
>     response = receiver(signal=self, sender=sender, **named)
>   File "/opt/apps/geonode/geonode/geonode/geoserver/signals.py", line 93,
> in geoserver_pre_save
>     charset=instance.charset)
>   File "/opt/apps/geonode/geonode/geonode/geoserver/helpers.py", line
> 1059, in geoserver_upload
>     workspace = cat.get_default_workspace()
>   File "/usr/lib/python2.7/site-packages/geoserver/catalog.py", line 875,
> in get_default_workspace
>     ws.fetch()
>   File "/usr/lib/python2.7/site-packages/geoserver/support.py", line 176,
> in fetch
>     self.dom = self.catalog.get_xml(self.href)
>   File "/usr/lib/python2.7/site-packages/geoserver/catalog.py", line 211,
> in get_xml
>     response, content = self.http.request(rest_url)
>   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line
> 1609, in request
>     (response, content) = self._request(conn, authority, uri, request_uri,
> method, body, headers, redirections, cachekey)
>   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line
> 1351, in _request
>     (response, content) = self._conn_request(conn, request_uri, method,
> body, headers)
>   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line
> 1272, in _conn_request
>     conn.connect()
>   File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 928,
> in connect
>     raise socket.error, msg
> error: [Errno 111] Connection refused
> "POST /layers/upload HTTP/1.1" 400 3357
>
> I do not know if I have to modify the settings.py file where references to
> localhost appear and not to the ip of the server where it is installed.
>
> If someone could tell me how I can prove that geonode connects to postgis
> to verify the connection, because geoserver connects very well to postgres.
>
> Thanks
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>


-- 
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180220/a3fe0e97/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 57332 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180220/a3fe0e97/attachment-0001.png>


More information about the geonode-users mailing list