[GeoNode-users] Upload error for layers in geonode 2.6

admire addloe at gmail.com
Fri May 19 00:17:53 PDT 2017


Hi

I have just installed geonode 2.6 using docker but when I try to upload 
a layer an error connection refused. And the logs show this.

geonode_1        | 172.18.0.6 - admin [18/May/2017:14:40:20 +0000] "GET 
/geoserver/rest/layers/colin_schoeman.xml HTTP/1.1" 200 327 "-" 
"Python-httplib2/0.9.2 (gzip)" "-"
django_1         | [Errno 111] Connection refused
django_1         | Traceback (most recent call last):
django_1         |   File "/usr/src/app/geonode/layers/views.py", line 
168, in layer_upload
django_1         | 
metadata_uploaded_preserve=form.cleaned_data["metadata_uploaded_preserve"]
django_1         |   File "/usr/src/app/geonode/layers/utils.py", line 
499, in file_upload
django_1         |     defaults=defaults
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/django/db/models/manager.py", 
line 127, in manager_method
django_1         |     return getattr(self.get_queryset(), name)(*args, 
**kwargs)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/modeltranslation/manager.py", 
line 389, in get_or_create
django_1         |     return super(MultilingualQuerySet, 
self).get_or_create(**kwargs)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 
407, in get_or_create
django_1         |     return self._create_object_from_params(lookup, 
params)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 
439, in _create_object_from_params
django_1         |     obj = self.create(**params)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/modeltranslation/manager.py", 
line 381, in create
django_1         |     return super(MultilingualQuerySet, 
self).create(**kwargs)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 
348, in create
django_1         |     obj.save(force_insert=True, using=self.db)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/polymorphic/models.py", line 90, 
in save
django_1         |     return super(PolymorphicModel, self).save(*args, 
**kwargs)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 
734, in save
django_1         |     force_update=force_update, 
update_fields=update_fields)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 
758, in save_base
django_1         |     update_fields=update_fields)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", 
line 189, in send
django_1         |     response = receiver(signal=self, sender=sender, 
**named)
django_1         |   File "/usr/src/app/geonode/geoserver/signals.py", 
line 93, in geoserver_pre_save
django_1         |     charset=instance.charset)
django_1         |   File "/usr/src/app/geonode/geoserver/helpers.py", 
line 1197, in geoserver_upload
django_1         |     sld = get_sld_for(cat, publishing)
django_1         |   File "/usr/src/app/geonode/geoserver/helpers.py", 
line 190, in get_sld_for
django_1         |     if layer.default_style is None:
geonode_1        | 172.18.0.1 - - [18/May/2017:14:40:20 +0000] "POST 
/layers/upload HTTP/1.0" 400 3728 "http://localhost/layers/upload" 
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 
Firefox/53.0" "-"
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/geoserver/layer.py", line 127, 
in _get_default_style
django_1         |     return self._resolve_style(element) if element is 
not None else None
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/geoserver/layer.py", line 135, 
in _resolve_style
django_1         |     return 
self.catalog.get_style_by_url(style_workspace_url)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/geoserver/catalog.py", line 797, 
in get_style_by_url
django_1         |     dom = self.get_xml(style_workspace_url)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/geoserver/catalog.py", line 211, 
in get_xml
django_1         |     response, content = self.http.request(rest_url)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/httplib2/__init__.py", line 
1609, in request
django_1         |     (response, content) = self._request(conn, 
authority, uri, request_uri, method, body, headers, redirections, cachekey)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/httplib2/__init__.py", line 
1351, in _request
django_1         |     (response, content) = self._conn_request(conn, 
request_uri, method, body, headers)
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/httplib2/__init__.py", line 
1272, in _conn_request
django_1         |     conn.connect()
django_1         |   File 
"/usr/local/lib/python2.7/site-packages/httplib2/__init__.py", line 928, 
in connect
django_1         |     raise socket.error, msg
django_1         | error: [Errno 111] Connection refused
django_1         | [18/May/2017 09:40:20] "POST /layers/upload HTTP/1.0" 
400 3728

Regards



More information about the geonode-users mailing list