<div dir="ltr">Hi Silvia,<div><br></div><div>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.</div><div><br></div><div>Hope this helps</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-20 22:16 GMT+01:00 SILVIA GAMERO <span dir="ltr"><<a href="mailto:gamerinsky@gmail.com" target="_blank">gamerinsky@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Good afternoon everyone, I currently have problems when I try to upload layers in geonode, a CONNECT REFUSED message appears.</div><div>I'm working with Geonode 2.6x on centos7.</div><div><br></div><div><br></div><div><br></div><div><img src="cid:ii_161b513014e61b06" alt="Imágenes integradas 1" width="544" height="408"><br></div><div><div><br></div><div>In the geonode log the following appears:<br></div><div>[Errno 111] Connection refused</div><div>Traceback (most recent call last):</div><div> File "/opt/apps/geonode/geonode/<wbr>geonode/layers/views.py", line 168, in layer_upload</div><div> metadata_uploaded_preserve=<wbr>form.cleaned_data["metadata_<wbr>uploaded_preserve"]</div><div> File "/opt/apps/geonode/geonode/<wbr>geonode/layers/utils.py", line 499, in file_upload</div><div> defaults=defaults</div><div> File "/usr/lib/python2.7/site-<wbr>packages/django/db/models/<wbr>manager.py", line 127, in manager_method</div><div> return getattr(self.get_queryset(), name)(*args, **kwargs)</div><div> File "/usr/lib/python2.7/site-<wbr>packages/modeltranslation/<wbr>manager.py", line 389, in get_or_create</div><div> return super(MultilingualQuerySet, self).get_or_create(**kwargs)</div><div> File "/usr/lib/python2.7/site-<wbr>packages/django/db/models/<wbr>query.py", line 407, in get_or_create</div><div> return self._create_object_from_<wbr>params(lookup, params)</div><div> File "/usr/lib/python2.7/site-<wbr>packages/django/db/models/<wbr>query.py", line 439, in _create_object_from_params</div><div> obj = self.create(**params)</div><div> File "/usr/lib/python2.7/site-<wbr>packages/modeltranslation/<wbr>manager.py", line 381, in create</div><div> return super(MultilingualQuerySet, self).create(**kwargs)</div><div> File "/usr/lib/python2.7/site-<wbr>packages/django/db/models/<wbr>query.py", line 348, in create</div><div> obj.save(force_insert=True, using=self.db)</div><div> File "/usr/lib/python2.7/site-<wbr>packages/polymorphic/models.<wbr>py", line 90, in save</div><div> return super(PolymorphicModel, self).save(*args, **kwargs)</div><div> File "/usr/lib/python2.7/site-<wbr>packages/django/db/models/<wbr>base.py", line 734, in save</div><div> force_update=force_update, update_fields=update_fields)</div><div> File "/usr/lib/python2.7/site-<wbr>packages/django/db/models/<wbr>base.py", line 758, in save_base</div><div> update_fields=update_fields)</div><div> File "/usr/lib/python2.7/site-<wbr>packages/django/dispatch/<wbr>dispatcher.py", line 189, in send</div><div> response = receiver(signal=self, sender=sender, **named)</div><div> File "/opt/apps/geonode/geonode/<wbr>geonode/geoserver/signals.py", line 93, in geoserver_pre_save</div><div> charset=instance.charset)</div><div> File "/opt/apps/geonode/geonode/<wbr>geonode/geoserver/helpers.py", line 1059, in geoserver_upload</div><div> workspace = cat.get_default_workspace()</div><div> File "/usr/lib/python2.7/site-<wbr>packages/geoserver/catalog.py"<wbr>, line 875, in get_default_workspace</div><div> ws.fetch()</div><div> File "/usr/lib/python2.7/site-<wbr>packages/geoserver/support.py"<wbr>, line 176, in fetch</div><div> self.dom = self.catalog.get_xml(self.<wbr>href)</div><div> File "/usr/lib/python2.7/site-<wbr>packages/geoserver/catalog.py"<wbr>, line 211, in get_xml</div><div> response, content = self.http.request(rest_url)</div><div> File "/usr/lib/python2.7/site-<wbr>packages/httplib2/__init__.py"<wbr>, line 1609, in request</div><div> (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)</div><div> File "/usr/lib/python2.7/site-<wbr>packages/httplib2/__init__.py"<wbr>, line 1351, in _request</div><div> (response, content) = self._conn_request(conn, request_uri, method, body, headers)</div><div> File "/usr/lib/python2.7/site-<wbr>packages/httplib2/__init__.py"<wbr>, line 1272, in _conn_request</div><div> conn.connect()</div><div> File "/usr/lib/python2.7/site-<wbr>packages/httplib2/__init__.py"<wbr>, line 928, in connect</div><div> raise socket.error, msg</div><div>error: [Errno 111] Connection refused</div><div>"POST /layers/upload HTTP/1.1" 400 3357</div></div><div><br></div><div>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.<br></div><div><br></div><div>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.</div><div><br></div><div>Thanks</div></div>
<br>______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">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/<wbr>mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>