Opened 10 years ago

Closed 7 years ago

#1442 closed defect (fixed)

GeoNode fails to load demo vector layers

Reported by: kalxas Owned by: kalxas
Priority: major Milestone: OSGeoLive11.0
Component: OSGeoLive Keywords:
Cc: live-demo@…

Description

GeoNode reports "No Layers" and "No Maps" on first page.

Change History (15)

comment:1 by darkblueb, 10 years ago

svn build 12115

===============================================================
Starting "install_geonode.sh" ...
===============================================================
Starting GeoNode installation
gpg: keyring `/tmp/tmp8fu9j7ed/secring.gpg' created
gpg: keyring `/tmp/tmp8fu9j7ed/pubring.gpg' created
gpg: requesting key 9FBF90A1 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp8fu9j7ed/trustdb.gpg: trustdb created
gpg: key 9FBF90A1: public key "Launchpad PPA for geonode" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
...
Creating table announcements_dismissal
Installing custom SQL ...
Installing indexes ...
Installed 298 object(s) from 1 fixture(s)
Superuser created successfully.
Installed 1 object(s) from 1 fixture(s)
Done
Starting GeoServer to update layers in the geonode db
./install_geonode.sh: 150: ./install_geonode.sh: /usr/local/lib/geoserver-2.5/bin/shutdown.sh: not found
./install_geonode.sh: 152: ./install_geonode.sh: /usr/local/lib/geoserver-2.5/bin/startup.sh: not found
Updating GeoNode layers...
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 5, in <module>
    management.execute_from_command_line()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/geonode/geoserver/management/commands/updatelayers.py", line 108, in handle
    remove_deleted=remove_deleted)
  File "/usr/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 362, in gs_slurp
    resources = cat.get_resources(workspace=workspace)
  File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line 639, in get_resources
    for ws in self.get_workspaces():
  File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line 755, in get_workspaces
    description = self.get_xml("%s/workspaces.xml" % self.service_url)
  File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line 183, in get_xml
    response, content = self.http.request(rest_url)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1569, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1316, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1251, in _conn_request
    conn.connect()
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 912, in connect
    raise socket.error, msg
socket.error: [Errno 111] Connection refused
Done
Stopping GeoServer
./install_geonode.sh: 161: ./install_geonode.sh: /usr/local/lib/geoserver-2.5/bin/shutdown.sh: not found

comment:2 by kalxas, 10 years ago

fix committed in [12117]

comment:3 by kalxas, 10 years ago

GeoNode data still don't get imported:

Starting GeoServer to update layers in the geonode db
java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:579)
	at java.net.Socket.connect(Socket.java:528)
	at java.net.Socket.<init>(Socket.java:425)
	at java.net.Socket.<init>(Socket.java:241)
	at org.mortbay.start.Main.stop(Main.java:526)
	at org.mortbay.start.Main.main(Main.java:104)
GEOSERVER DATA DIR is /usr/local/lib/geoserver-2.6.1/data_dir
2014-12-31 14:52:56.361::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2014-12-31 14:52:56.554::WARN:  Deprecated configuration used for /usr/local/lib/geoserver-2.6.1/webapps
2014-12-31 14:52:56.595::INFO:  jetty-6.1.8
Updating GeoNode layers...
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 5, in <module>
    management.execute_from_command_line()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/geonode/geoserver/management/commands/updatelayers.py", line 108, in handle
    remove_deleted=remove_deleted)
  File "/usr/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 362, in gs_slurp
    resources = cat.get_resources(workspace=workspace)
  File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line 639, in get_resources
    for ws in self.get_workspaces():
  File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line 755, in get_workspaces
    description = self.get_xml("%s/workspaces.xml" % self.service_url)
  File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line 183, in get_xml
    response, content = self.http.request(rest_url)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1569, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1316, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1251, in _conn_request
    conn.connect()
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 912, in connect
    raise socket.error, msg
socket.error: [Errno 111] Connection refused
Done
Stopping GeoServer

comment:4 by kalxas, 10 years ago

Forgot to mention this last log was from build [12120]

comment:5 by kalxas, 10 years ago

In the latest alpha4 build, only one layer gets imported during build.

comment:6 by kalxas, 9 years ago

Milestone: OSGeoLive8.5OSGeoLive9.0
Priority: majorcritical
Summary: GeoNode's demo dataGeoNode fails to load demo vector layers

The problem still exists in 9.0 builds

comment:7 by kalxas, 9 years ago

Priority: criticalmajor

comment:8 by kalxas, 9 years ago

Milestone: OSGeoLive9.0OSGeoLive9.5

Ticket retargeted after milestone closed

comment:9 by kalxas, 9 years ago

Issue present in 9.5alpha1. I will update the GeoNode debian package to 2.4 final soon.

comment:10 by kalxas, 9 years ago

Resolution: fixed
Status: newclosed

After upgrading GeoNode version to 2.4 final, this issue has been fixed. Tested in nightly build 15

comment:11 by kalxas, 8 years ago

Milestone: OSGeoLive9.5OSGeoLive10.5
Resolution: fixed
Status: closedreopened

Similar issue in recent 10.5 builds, sample data from GeoServer not picked up by GeoNode

comment:12 by kalxas, 8 years ago

Updating GeoNode layers...
2017-02-23 11:52:03.374:INFO:geoserver:qtp1685538367-17: Initializing Spring FrameworkServlet 'dispatcher'
23 Feb 11:52:04 INFO [org.geoserver] - Loaded feature type 'streams', enabled
23 Feb 11:52:04 INFO [catalog.rest] - PUT FeatureTypesf,streams updated metadata only
23 Feb 11:52:04 INFO [org.geoserver] - Loaded feature type 'roads', enabled
23 Feb 11:52:04 INFO [catalog.rest] - PUT FeatureTypesf,roads updated metadata only
23 Feb 11:52:04 INFO [org.geoserver] - Loaded feature type 'restricted', enabled
23 Feb 11:52:04 INFO [catalog.rest] - PUT FeatureTypesf,restricted updated metadata only
23 Feb 11:52:04 INFO [org.geoserver] - Loaded feature type 'bugsites', enabled
23 Feb 11:52:04 INFO [catalog.rest] - PUT FeatureTypesf,bugsites updated metadata only
23 Feb 11:52:04 INFO [org.geoserver] - Loaded feature type 'archsites', enabled
23 Feb 11:52:04 INFO [catalog.rest] - PUT FeatureTypesf,archsites updated metadata only
23 Feb 11:52:05 INFO [org.geoserver] - Loaded coverage 'sfdem', enabled
23 Feb 11:52:05 INFO [catalog.rest] - PUT coverage sfdem,sfdem
23 Feb 11:52:05 INFO [org.geoserver] - Loaded coverage 'Img_Sample', enabled
23 Feb 11:52:05 INFO [catalog.rest] - PUT coverage worldImageSample,Img_Sample
23 Feb 11:52:05 INFO [org.geoserver] - Loaded coverage 'mosaic', enabled
23 Feb 11:52:05 INFO [catalog.rest] - PUT coverage mosaic,mosaic
23 Feb 11:52:05 INFO [org.geoserver] - Loaded coverage 'Pk50095', enabled
23 Feb 11:52:05 INFO [catalog.rest] - PUT coverage img_sample2,Pk50095
23 Feb 11:52:05 INFO [org.geoserver] - Loaded coverage 'Arc_Sample', enabled
23 Feb 11:52:05 INFO [catalog.rest] - PUT coverage arcGridSample,Arc_Sample
23 Feb 11:52:05 INFO [org.geoserver] - Loaded feature type 'poly_landmarks', enabled
23 Feb 11:52:05 INFO [catalog.rest] - PUT FeatureTypenyc,poly_landmarks updated metadata only
23 Feb 11:52:05 INFO [org.geoserver] - Loaded feature type 'poi', enabled
23 Feb 11:52:05 INFO [catalog.rest] - PUT FeatureTypenyc,poi updated metadata only
23 Feb 11:52:05 INFO [org.geoserver] - Loaded feature type 'tiger_roads', enabled
23 Feb 11:52:05 INFO [catalog.rest] - PUT FeatureTypenyc,tiger_roads updated metadata only
23 Feb 11:52:06 INFO [org.geoserver] - Loaded feature type 'giant_polygon', enabled
23 Feb 11:52:06 INFO [catalog.rest] - PUT FeatureTypenyc,giant_polygon updated metadata only
23 Feb 11:52:06 INFO [org.geoserver] - Loaded feature type 'states', enabled
23 Feb 11:52:06 INFO [catalog.rest] - PUT FeatureTypestates_shapefile,states updated metadata only
23 Feb 11:52:06 INFO [org.geoserver] - Loaded feature type 'tasmania_state_boundaries', enabled
23 Feb 11:52:06 INFO [catalog.rest] - PUT FeatureTypetaz_shapes,tasmania_state_boundaries updated metadata only
23 Feb 11:52:06 INFO [org.geoserver] - Loaded feature type 'tasmania_roads', enabled
23 Feb 11:52:06 INFO [catalog.rest] - PUT FeatureTypetaz_shapes,tasmania_roads updated metadata only
23 Feb 11:52:06 INFO [org.geoserver] - Loaded feature type 'tasmania_cities', enabled
23 Feb 11:52:06 INFO [catalog.rest] - PUT FeatureTypetaz_shapes,tasmania_cities updated metadata only
23 Feb 11:52:06 INFO [org.geoserver] - Loaded feature type 'tasmania_water_bodies', enabled
23 Feb 11:52:06 INFO [catalog.rest] - PUT FeatureTypetaz_shapes,tasmania_water_bodies updated metadata only
Not enabling BingMaps base layer as a BING_API_KEY is not defined in local_settings.py file.
[failed] Layer streams (1/19)
[failed] Layer roads (2/19)
[failed] Layer restricted (3/19)
[failed] Layer bugsites (4/19)
[failed] Layer archsites (5/19)
[failed] Layer sfdem (6/19)
[failed] Layer Img_Sample (7/19)
[failed] Layer mosaic (8/19)
[failed] Layer Pk50095 (9/19)
[failed] Layer Arc_Sample (10/19)
[failed] Layer poly_landmarks (11/19)
[failed] Layer poi (12/19)
[failed] Layer tiger_roads (13/19)
[failed] Layer giant_polygon (14/19)
[failed] Layer states (15/19)
[failed] Layer tasmania_state_boundaries (16/19)
[failed] Layer tasmania_roads (17/19)
[failed] Layer tasmania_cities (18/19)
[failed] Layer tasmania_water_bodies (19/19)


Finished processing 19 layers in 2.0 seconds.

0 Created layers
0 Updated layers
19 Failed layers
0.110000 seconds per layer
Done

comment:13 by kalxas, 8 years ago

Owner: changed from live-demo@… to kalxas
Status: reopenednew

comment:14 by kalxas, 7 years ago

Milestone: OSGeoLive10.5OSGeoLive11.0

Ticket retargeted after milestone closed

comment:15 by kalxas, 7 years ago

Resolution: fixed
Status: newclosed

GeoNode has been updated to version 2.6.1.

This issue is now fixed.

Note: See TracTickets for help on using tickets.