Opened 9 months ago

Closed 9 months ago

#2113 closed defect (fixed)

GeoNode Quickstart fails

Reported by: darkblueb Owned by: kalxas
Priority: major Milestone: OSGeoLive12.0
Component: OSGeoLive Keywords: geonode
Cc:

Description

12dev beta4

GeoNode? installed in build; Geospatial -> Browser Clients -> Geonode -> Start Geonode

Follow the Quickstart tutorial, to "In case you want to upload data from any other page, from the navigation bar, select Data menu and click on the Upload Layers link." and continue to Upload Data

Data files upload, but the app returns 'NoneType' object has no attribute 'resource_type' and does not advance.

Change history (7)

comment:1 Changed 9 months ago by darkblueb

Apache error.log shows:

[Mon Aug 20 23:59:40.487167 2018] [wsgi:error] [pid 1500] [remote 127.0.0.1:44636]   File "/usr/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 196, in get_sld_for
[Mon Aug 20 23:59:40.487171 2018] [wsgi:error] [pid 1500] [remote 127.0.0.1:44636]     if layer.resource.resource_type == 'featureType':
[Mon Aug 20 23:59:40.487175 2018] [wsgi:error] [pid 1500] [remote 127.0.0.1:44636] AttributeError: 'NoneType' object has no attribute 'resource_type'

comment:2 Changed 9 months ago by kalxas

Owner: changed from osgeolive@… to kalxas

This is just a configuration problem, I will look into it.

comment:3 Changed 9 months ago by darkblueb

12dev build285-master

geonode fails to start from the menu item, returns 500 in Firefox

Apache2 error.log

[Thu Aug 23 18:07:25.265893 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160] mod_wsgi (pid=1551): Target WSGI script '/usr/lib/python2.7/dist-packages/geonode/wsgi.py' cannot be loaded as Python module.
[Thu Aug 23 18:07:25.265935 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160] mod_wsgi (pid=1551): Exception occurred processing WSGI script '/usr/lib/python2.7/dist-packages/geonode/wsgi.py'.
[Thu Aug 23 18:07:25.265958 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160] Traceback (most recent call last):
[Thu Aug 23 18:07:25.265981 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160]   File "/usr/lib/python2.7/dist-packages/geonode/wsgi.py", line 30, in <module>
[Thu Aug 23 18:07:25.266051 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160]     application = get_wsgi_application()
[Thu Aug 23 18:07:25.266064 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160]   File "/usr/lib/python2.7/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application
[Thu Aug 23 18:07:25.266810 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160]     django.setup(set_prefix=False)
[Thu Aug 23 18:07:25.266821 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160]   File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 22, in setup
[Thu Aug 23 18:07:25.267604 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160]     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Thu Aug 23 18:07:25.267622 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160]   File "/usr/lib/python2.7/dist-packages/django/utils/log.py", line 75, in configure_logging
[Thu Aug 23 18:07:25.268473 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160]     logging_config_func(logging_settings)
[Thu Aug 23 18:07:25.268490 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160]   File "/usr/lib/python2.7/logging/config.py", line 794, in dictConfig
[Thu Aug 23 18:07:25.269456 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160]     dictConfigClass(config).configure()
[Thu Aug 23 18:07:25.269472 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160]   File "/usr/lib/python2.7/logging/config.py", line 576, in configure
[Thu Aug 23 18:07:25.269492 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160]     '%r: %s' % (name, e))
[Thu Aug 23 18:07:25.269514 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45160] ValueError: Unable to configure handler 'null': Cannot resolve 'django.utils.log.NullHandler': No module named NullHandler
[Thu Aug 23 18:07:25.321362 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162] mod_wsgi (pid=1551): Target WSGI script '/usr/lib/python2.7/dist-packages/geonode/wsgi.py' cannot be loaded as Python module.
[Thu Aug 23 18:07:25.321396 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162] mod_wsgi (pid=1551): Exception occurred processing WSGI script '/usr/lib/python2.7/dist-packages/geonode/wsgi.py'.
[Thu Aug 23 18:07:25.321426 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162] Traceback (most recent call last):
[Thu Aug 23 18:07:25.321460 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162]   File "/usr/lib/python2.7/dist-packages/geonode/wsgi.py", line 30, in <module>
[Thu Aug 23 18:07:25.321516 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162]     application = get_wsgi_application()
[Thu Aug 23 18:07:25.321530 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162]   File "/usr/lib/python2.7/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application
[Thu Aug 23 18:07:25.321577 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162]     django.setup(set_prefix=False)
[Thu Aug 23 18:07:25.321589 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162]   File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 22, in setup
[Thu Aug 23 18:07:25.321613 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162]     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Thu Aug 23 18:07:25.321624 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162]   File "/usr/lib/python2.7/dist-packages/django/utils/log.py", line 75, in configure_logging
[Thu Aug 23 18:07:25.321647 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162]     logging_config_func(logging_settings)
[Thu Aug 23 18:07:25.321658 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162]   File "/usr/lib/python2.7/logging/config.py", line 794, in dictConfig
[Thu Aug 23 18:07:25.321689 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162]     dictConfigClass(config).configure()
[Thu Aug 23 18:07:25.321701 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162]   File "/usr/lib/python2.7/logging/config.py", line 576, in configure
[Thu Aug 23 18:07:25.321720 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162]     '%r: %s' % (name, e))
[Thu Aug 23 18:07:25.321744 2018] [wsgi:error] [pid 1551] [remote 127.0.0.1:45162] ValueError: Unable to configure handler 'null': Cannot resolve 'django.utils.log.NullHandler': No module named NullHandler

comment:4 Changed 9 months ago by kalxas

build 285 has a broken django package, it has been fixed in master.

comment:5 Changed 9 months ago by kalxas

Sample data loading from GeoServer? now fixed, 'NoneType?' error is a well known issue, will be patched today.

comment:6 Changed 9 months ago by kalxas

"None Type" issue patched on python-geonode deb package. Will confirm on next nightly

comment:7 Changed 9 months ago by kalxas

Resolution: fixed
Status: newclosed

Confirmed fixed in nightly 288

Note: See TracTickets for help on using tickets.