geonode
geonode copied to clipboard
Debian packages for GeoNode and OSGeoLive
make Debian packages great again
Debian packaging spreadsheet: https://docs.google.com/spreadsheets/d/1P5iU6UGraR1vlhx1idLv3wQDQ-SE3w2sXCw9f55ZhFE/edit?usp=sharing
https://twitter.com/launchpadstatus/status/1336103011454771202
Progress can be seen here:
https://launchpad.net/~gcpp-kalxas/+archive/ubuntu/geonode/+packages?field.name_filter=&field.status_filter=published&field.series_filter=focal
All dependencies are now packaged as well:
https://launchpad.net/%7Egcpp-kalxas/+archive/ubuntu/geonode/+packages?field.name_filter=&field.status_filter=published&field.series_filter=focal
I will test and then move to the geonode ppa.
@afabiani @gannebamm I just did a first test to install and got some errors:
- django-jsonfield 1.1.0 conflicts with jsonfield 3.1.0
dpkg: error processing archive /tmp/apt-dpkg-install-p2gZhM/125-python3-jsonfield_3.1.0-0~focal0_all.deb (--unpack): trying to overwrite '/usr/lib/python3/dist-packages/jsonfield/__init__.py', which is also in package python3-django-jsonfield 1.1.0-2
- pinax-ratings conflicts with pinax-notifications
dpkg: error processing archive /tmp/apt-dpkg-install-p2gZhM/128-python3-pinax-ratings_4.0.0-0~focal0_all.deb (--unpack): trying to overwrite '/usr/lib/python3/dist-packages/pinax/__init__.py', which is also in package python3-pinax-notifications 5.0.3-0~focal0
Any ideas?
I have remove jsonfield 3.1.0 from dependency list until further notice. Installing both packages with pip results in one in dist-packages (the last one installed)
I guess we can safely remove jsonfield
No sure for pinax ratings, I need to double check.
the problem with pinax-ratings and pinax-notifications is that they both include an identical __init__.py
file and they both place it under the dist-packages/pinax folder...
I have removed the file from ratings package, will test again
Current status from OSGeoLive build logs:
Unpacking python3-geonode (3.1.0-0~focal5) ...
Setting up python3-elasticsearch (7.1.0-2) ...
Setting up python3-glob2 (0.5-3) ...
Setting up python3-openid (3.1.0-1) ...
Setting up python3-mercantile (1.1.6-1~focal1) ...
Setting up python3-django-uuid-upload-path (1.0.0-0~focal0) ...
Setting up python3-timeout-decorator (0.4.1-0~focal0) ...
Setting up python3-billiard (3.6.1.0-1) ...
Setting up python3-requests-toolbelt (0.8.0-1.1) ...
Setting up python3-geoserver-restconfig (2.0.4.8-0~focal0) ...
Setting up python3-geonode-avatar (5.0.3-1~focal2) ...
Setting up python3-py (1.8.1-1) ...
Setting up python3-jdcal (1.0-1.3) ...
Setting up python3-django-storages (1.9.1-1) ...
Setting up python3-coreschema (0.0.4-3) ...
Setting up python3-django-autocomplete-light (3.5.1-1~focal0) ...
Setting up python3-django-polymorphic (2.1.2-2) ...
Setting up python3-zope.interface (4.7.1-1) ...
Setting up python3-pbr (5.4.5-0ubuntu1) ...
update-alternatives: using /usr/bin/python3-pbr to provide /usr/bin/pbr (pbr) in auto mode
Setting up python3-geonode-oauth-toolkit (2.0.0-1~focal0) ...
/usr/lib/python3/dist-packages/oauth2_provider/oauth2_validators.py:749: SyntaxWarning: "is" with a literal. Did you mean "=="?
if (request.grant_type is "authorization_code" and "access_token" in token) or request.response_type == "code id_token token" or (request.response_type == "id_token token" and "access_token" in token):
Setting up python3-openssl (19.0.0-1build1) ...
Setting up python3-ephem (3.7.7.1-1) ...
Setting up python3-automat (0.8.0-1ubuntu1) ...
Setting up python3-pyflakes (2.1.1-2) ...
Setting up python3-twisted-bin:amd64 (18.9.0-11) ...
Setting up python3-memcache (1.59-4) ...
Setting up python3-geonode-announcements (2.0.2-1~focal0) ...
Setting up python3-django-appconf (1.0.3-1) ...
Setting up python3-coverage (4.5.2+dfsg.1-4ubuntu1) ...
Setting up python3-pilkit (2.0-3) ...
Setting up python3-hamcrest (1.9.0-3) ...
Setting up fonts-glewlwyd (1.4.9-3) ...
Setting up python3-django-forms-bootstrap (3.1.0-1~focal0) ...
Setting up python3-django-downloadview (2.1.1-1) ...
Setting up python3-inflection (0.3.1-2) ...
Setting up python3-wheel (0.34.2-1) ...
Setting up python3-dj-database-url (0.5.0-2) ...
Setting up python3-psutil (5.5.1-1ubuntu4) ...
Setting up python3-django-multi-email-field (0.5.1-1~focal0) ...
Setting up python3-django-floppyforms (1.9.0-1~focal0) ...
Setting up python3-vine (1.3.0+dfsg-1) ...
Setting up python3-django-taggit (0.24.0-2) ...
Setting up python3-django-modeltranslation (0.13.3-0.1) ...
Setting up python3-django-ipware (2.1.0-1) ...
Setting up python3-djangorestframework-writable-nested (0.6.2-0~focal0) ...
Setting up python3-atomicwrites (1.1.5-2build1) ...
Setting up python3-uritemplate (0.6-4) ...
Setting up python3-fake-factory (0.7.7-3) ...
Setting up python3-mock (3.0.5-1build1) ...
Setting up python3-djangorestframework (3.10.2-1) ...
Setting up python3-itypes (1.1.0-4) ...
Setting up python3-django-tinymce (3.1.0-0~focal0) ...
Setting up python3-pycodestyle (2.5.0-2) ...
Setting up python3-packaging (20.3-1) ...
Setting up python3-flaky (3.6.1-1build1) ...
Setting up python3-django-recaptcha (2.0.6-0~focal0) ...
Setting up python3-geonode-django-activity-stream (0.9.0-0~focal0) ...
Setting up python3-incremental (16.10.1-3.2) ...
Setting up python3-django-js-asset (1.2.2-2) ...
Setting up python3-pycountry (19.8.18+ds1-2) ...
Setting up python3-hyperlink (19.0.0-1) ...
Setting up python3-service-identity (18.1.0-5build1) ...
Setting up python3-django-leaflet (0.27.1-0~focal0) ...
Setting up python3-django-imagekit (4.0.2-3) ...
Setting up python3-django-invitations (1.9.3-0~focal0) ...
Setting up python3-markdown (3.1.1-3) ...
Setting up python3-django-jsonfield (1.1.0-2) ...
Setting up python3-resize-image (1.1.19-0~focal0) ...
Setting up python3-dj-pagination (2.4.0-0~focal0) ...
Setting up python3-pluggy (0.13.0-2) ...
Setting up python3-ruamel.yaml (0.15.89-3build1) ...
Setting up python3-django-geonode-client (1.0.9-1~focal0) ...
Setting up python3-pinax-ratings (4.0.0-0~focal1) ...
Setting up python3-django-treebeard (4.3.1+dfsg-1) ...
Setting up python3-geonode-user-messages (2.0.1-1~focal1) ...
Setting up python3-parse (1.6.6-0.2build1) ...
Setting up python3-amqp (2.5.2-0ubuntu1) ...
Setting up python3-gn-gsimporter (2.0.1-0~focal0) ...
Setting up python3-django-grappelli (2.14.2-0~focal0) ...
Setting up python3-factory-boy (2.11.1-3) ...
Setting up python3-mccabe (0.6.1-3) ...
Setting up python3-dynamic-rest (2.0.0-0~focal0) ...
Setting up python3-constantly (15.1.0-1build1) ...
Setting up python-pip-whl (20.0.2-5ubuntu1.1) ...
Setting up python3-anyjson (0.3.3-2) ...
Setting up uap-core (20190213-2) ...
Setting up python3-django-guardian (2.0.0-2) ...
Setting up python3-django-jsonfield-compat (0.4.4+geonode-2~focal1) ...
Setting up python3-maxminddb (1.5.2-0ubuntu1) ...
Setting up python3-invoke (1.3.0+ds-0.1) ...
Setting up python3-soupsieve (1.9.5+dfsg-1) ...
Setting up python3-unidecode (1.1.1-3build1) ...
Setting up python3-mimeparse (1.6.0-3build1) ...
Setting up python3-websocket (0.53.0-2ubuntu1) ...
update-alternatives: using /usr/bin/python3-wsdump to provide /usr/bin/wsdump (wsdump) in auto mode
Setting up python3-django-haystack (2.8.1-3) ...
/usr/lib/python3/dist-packages/haystack/backends/whoosh_backend.py:614: SyntaxWarning: "is" with a literal. Did you mean "=="?
if value is None or len(value) is 0:
Setting up python3-xmljson (0.1.9-1~focal0) ...
Setting up python3-requests-oauthlib (1.0.0-1.1build1) ...
Setting up python3-mako (1.1.0+ds1-1ubuntu2) ...
Setting up python3-django-bootstrap3-datetimepicker-2 (2.8.2-0~focal0) ...
Setting up python3-geonode-dialogos (3.0.1-1~focal1) ...
Setting up python3-django-filters (2.1.0-1) ...
Setting up python3-django-cors-headers (2.2.0-2) ...
Setting up python3-arcrest (10.5.3-1~focal0) ...
Setting up python3-pinax-notifications (5.0.3-0~focal0) ...
Setting up python3-django-mapstore-adapter (2.0.6-1~focal1) ...
Setting up python3-django-mptt (0.10.0-1) ...
Setting up python3-geoip2 (2.9.0+dfsg1-2) ...
Setting up python3-djangorestframework-gis (0.14-3) ...
Setting up python3-django-tastypie (0.13.3-1.1) ...
Setting up python3-pytest (4.6.9-1) ...
Setting up python3-docker (4.1.0-1) ...
Setting up python3-coreapi (2.3.3-4) ...
Setting up python3-pytest-django (3.5.1-1) ...
Setting up python3-kombu (4.6.7-1ubuntu3) ...
Setting up python3-ua-parser (0.9.0-1) ...
Setting up python3-bs4 (4.8.2-1) ...
Setting up python3-slugify (4.0.0-1) ...
Setting up python3-flake8 (3.7.9-2) ...
Setting up python3-djangorestframework-extensions (0.6.0-1) ...
Setting up python3-django-markdownify (0.8.1-0~focal0) ...
Setting up python3-parse-type (0.3.4-3) ...
Setting up python3-twisted (18.9.0-11) ...
Setting up python3-django-allauth (0.41.0+ds-1) ...
Setting up python3-pip (20.0.2-5ubuntu1.1) ...
Setting up python3-user-agents (2.0-3) ...
Setting up python3-django-geonode-mapstore-client (2.0.9-0~focal0) ...
Setting up python3-djangorestframework-guardian (0.3.0-0~focal0) ...
Setting up python3-djangorestframework-yasg (1.20.0-0~focal0) ...
Setting up python3-pytest-bdd (3.2.1-1) ...
Setting up python3-celery (4.2.1-5ubuntu1) ...
Setting up python3-geonode (3.1.0-0~focal5) ...
Processing triggers for man-db (2.9.1-1) ...
127.0.0.1 geonode
Deploying geonode demonstration instance
Done
create geonode_app database with PostGIS
CREATE EXTENSION
Done
create geonode_data database with PostGIS
CREATE EXTENSION
Done
Copying settings files
Done
Configuring GeoNode
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 118, in create
cls = getattr(mod, cls_name)
AttributeError: module 'pinax' has no attribute 'ratings'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/django-admin", line 5, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 357, in execute
django.setup()
File "/usr/lib/python3/dist-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 136, in create
import_module(entry)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pinax.ratings'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 118, in create
cls = getattr(mod, cls_name)
AttributeError: module 'pinax' has no attribute 'ratings'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/django-admin", line 5, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 357, in execute
django.setup()
File "/usr/lib/python3/dist-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 136, in create
import_module(entry)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pinax.ratings'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 118, in create
cls = getattr(mod, cls_name)
AttributeError: module 'pinax' has no attribute 'ratings'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/django-admin", line 5, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 357, in execute
django.setup()
File "/usr/lib/python3/dist-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 136, in create
import_module(entry)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pinax.ratings'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 118, in create
cls = getattr(mod, cls_name)
AttributeError: module 'pinax' has no attribute 'ratings'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/django-admin", line 5, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 357, in execute
django.setup()
File "/usr/lib/python3/dist-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 136, in create
import_module(entry)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pinax.ratings'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 118, in create
cls = getattr(mod, cls_name)
AttributeError: module 'pinax' has no attribute 'ratings'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/django-admin", line 5, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 357, in execute
django.setup()
File "/usr/lib/python3/dist-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 136, in create
import_module(entry)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pinax.ratings'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 118, in create
cls = getattr(mod, cls_name)
AttributeError: module 'pinax' has no attribute 'ratings'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/django-admin", line 5, in <module>
management.execute_from_command_line()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 357, in execute
django.setup()
File "/usr/lib/python3/dist-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/usr/lib/python3/dist-packages/django/apps/config.py", line 136, in create
import_module(entry)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pinax.ratings'
Pinax ratings packaging now fixed and does not conflict with pinax notifications. I also fixed the django-jsonfield 1.x conflict with jsonfield 3.x: both packages install similar files at the same location, I think we should review this dependency in our requirements.txt
Great progress, migrations now work in the build
Deploying geonode demonstration instance
Done
create geonode_app database with PostGIS
CREATE EXTENSION
Done
create geonode_data database with PostGIS
CREATE EXTENSION
Done
Copying settings files
Done
Configuring GeoNode
Migrations for 'base':
/usr/lib/python3/dist-packages/geonode/base/migrations/0047_auto_20210107_0943.py
- Alter field name on hierarchicalkeyword
- Alter field slug on hierarchicalkeyword
Migrations for 'ratings':
/usr/lib/python3/dist-packages/pinax/ratings/migrations/0004_auto_20210107_0943.py
- Alter field category on overallrating
- Alter field category on rating
Operations to perform:
Apply all migrations: account, actstream, admin, announcements, auth, avatar, base, br, contenttypes, dialogos, documents, favorite, geonode_client, geonode_themes, groups, guardian, invitations, layers, maps, mapstore2_adapter, monitoring, oauth2_provider, people, pinax_notifications, ratings, services, sessions, sites, socialaccount, taggit, tastypie, upload, user_messages
Running migrations:
Applying contenttypes.0001_initial... OK
Applying taggit.0001_initial... OK
Applying taggit.0002_auto_20150616_2121... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0001_initial... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying people.24_initial... OK
Applying account.0001_initial... OK
Applying account.0002_email_max_length... OK
Applying actstream.0001_initial... OK
Applying actstream.0002_remove_action_data... OK
Applying actstream.0003_add_follow_flag... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying announcements.0001_initial... OK
Applying announcements.0002_auto_20200311_0959... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying auth.0009_alter_user_last_name_max_length... OK
Applying auth.0010_alter_group_name_max_length... OK
Applying auth.0011_update_proxy_permissions... OK
Applying avatar.0001_initial... OK
Applying avatar.0002_auto_20200210_1421... OK
Applying base.24_initial... OK
Applying layers.24_initial... OK
Applying services.24_initial... OK
Applying services.0025_harvestjob... OK
Applying services.0026_auto_20171130_0600_squashed_0041_auto_20190404_0820... OK
Applying services.0027_auto_20190429_0831... OK
Applying services.0028_remove_service_last_updated... OK
Applying services.0029_remove_service_created... OK
Applying base.24_to_26... OK
Applying base.26_to_27... OK
Applying base.0027_auto_20170801_1228_squashed_0037_auto_20190222_1347... OK
Applying base.0028_curatedthumbnail... OK
Applying base.0029_resourcebase_last_updated... OK
Applying base.0030_resourcebase_created... OK
Applying base.0031_auto_20200114_1651... OK
Applying base.0032_auto_20200115_1121... OK
Applying base.0033_auto_20200115_1145... OK
Applying base.0034_auto_20200212_0410... OK
Applying base.0035_auto_20200212_0428... OK
Applying base.0036_resourcebase_doi... OK
Applying base.0037_auto_20200305_1520... OK
Applying base.0038_configuration... OK
Applying base.0039_auto_20200321_1338... OK
Applying base.0038_delete_backup... OK
Applying base.0040_merge_20200321_2245... OK
Applying groups.24_initial... OK
Applying groups.26_to_27... OK
Applying groups.0027_auto_20180105_1631_squashed_0028_auto_20180606_1543... OK
Applying groups.0028_auto_20200114_1651... OK
Applying groups.0029_auto_20200115_1121... OK
Applying groups.0030_auto_20200221_1107... OK
Applying groups.0031_auto_20200305_1522... OK
Applying groups.0031_auto_20200304_1434... OK
Applying groups.0032_merge_20200306_1153... OK
Applying base.0038_auto_20200318_0953... OK
Applying base.0041_merge_20200323_1119... OK
Applying base.0042_auto_20200414_1554... OK
Applying base.0043_auto_20200527_0833... OK
Applying base.0044_auto_20201001_1514... OK
Applying base.0045_resourcebase_attribution... OK
Applying base.0046_auto_20201116_0929... OK
Applying base.0047_auto_20210107_0943... OK
Applying br.0001_initial... OK
Applying dialogos.0001_initial... OK
Applying documents.24_initial... OK
Applying documents.25_add_documentresourcelink_table... OK
Applying documents.26_move_data_to_documentresourcelink_table... OK
Applying documents.27_drop_resource_columns_from_document_table... OK
Applying documents.0028_auto_20170801_1228_squashed_0035_auto_20190404_0820... OK
Applying documents.0029_auto_20190429_0831... OK
Applying documents.0030_auto_20200305_1520... OK
Applying documents.0031_auto_20201107_2241... OK
Applying favorite.0001_initial... OK
Applying geonode_client.0001_initial... OK
Applying geonode_client.0002_auto_20180412_1039_squashed_0005_auto_20181015_1201... OK
Applying geonode_themes.0001_initial... OK
Applying geonode_themes.0002_auto_20181015_1208_squashed_0003_remove_geonodethemecustomization_identifier... OK
Applying geonode_themes.0003_auto_20190503_1742... OK
Applying geonode_themes.0004_auto_20190503_1817... OK
Applying geonode_themes.0005_auto_20190510_1335... OK
Applying geonode_themes.0006_geonodethemecustomization_body_text_color... OK
Applying geonode_themes.0007_auto_20190510_1545... OK
Applying geonode_themes.0008_auto_20191122_1714... OK
Applying geonode_themes.0009_geonodethemecustomization_footer_bg_color... OK
Applying geonode_themes.0010_auto_20200115_1121... OK
Applying geonode_themes.0011_auto_20200727_1451... OK
Applying groups.0033_auto_20200321_1349... OK
Applying groups.0034_auto_20200512_1431... OK
Applying guardian.0001_initial... OK
Applying invitations.0001_initial... OK
Applying invitations.0002_auto_20151126_0426... OK
Applying invitations.0003_auto_20151126_1523... OK
Applying layers.24_to_26... OK
Applying layers.26_to_27... OK
Applying layers.0027_auto_20170801_1228_squashed_0033_auto_20180606_1543... OK
Applying layers.0028_auto_20200610_0759... OK
Applying layers.0029_auto_20200610_0803... OK
Applying layers.0030_auto_20200610_0825... OK
Applying layers.0031_auto_20200612_1533... OK
Applying layers.0032_auto_20200612_1544... OK
Applying maps.24_initial... OK
Applying maps.0025_auto_20170801_1228_squashed_0032_auto_20190404_0820... OK
Applying maps.0026_auto_20190429_0831... OK
Applying maps.0027_auto_20190516_0909... OK
Applying maps.0028_maplayer_store... OK
Applying maps.0029_delete_mapsnapshot... OK
Applying mapstore2_adapter.0001_initial... OK
Applying mapstore2_adapter.0002_auto_20190618_1236... OK
Applying mapstore2_adapter.0003_auto_20200310_0848... OK
Applying monitoring.0001_monitoring_init... OK
Applying monitoring.0002_monitoring_update... OK
Applying monitoring.0003_monitoring_resources... OK
Applying monitoring.0004_monitoring_metric_type... OK
Applying monitoring.0005_monitoring_ows_service... OK
Applying monitoring.0006_monitoring_path_text... OK
Applying monitoring.0007_monitoring_exception_message... OK
Applying monitoring.0008_monitoring_notifications_check... OK
Applying monitoring.0009_sample_count... OK
Applying monitoring.0010_metric_unit... OK
Applying monitoring.0011_notification_def... OK
Applying monitoring.0012_notifications_service... OK
Applying monitoring.0013_notifications_def_description... OK
Applying monitoring.0014_notifications_emails... OK
Applying monitoring.0015_notification_grace_period... OK
Applying monitoring.0016_notification_severity... OK
Applying monitoring.0017_monitoring_notification_active... OK
Applying monitoring.0018_notification_check_def... OK
Applying monitoring.0019_notification_check_def_link... OK
Applying monitoring.0020_metric_description... OK
Applying monitoring.0021_auto_20180301_0932... OK
Applying monitoring.0022_service_last_check_default... OK
Applying monitoring.0023_auto_20190528_0906... OK
Applying monitoring.0024_auto_20190605_1619... OK
Applying monitoring.0025_auto_20190813_0808... OK
Applying monitoring.0026_auto_20190821_0736... OK
Applying monitoring.0027_monitoredresource_resource_id... OK
Applying monitoring.0028_auto_20190830_1018... OK
Applying monitoring.0029_auto_20200115_1121... OK
Applying monitoring.0030_auto_20200305_1520... OK
Applying monitoring.0031_auto_20201012_0931... OK
Applying oauth2_provider.0001_initial... OK
Applying oauth2_provider.0002_08_updates... OK
Applying oauth2_provider.0003_auto_20160316_1503... OK
/usr/lib/python3/dist-packages/django/db/models/fields/__init__.py:1424: RuntimeWarning: DateTimeField Avatar.date_uploaded received a naive datetime (2021-01-07 09:43:21.080594) while time zone support is active.
warnings.warn("DateTimeField %s received a naive datetime (%s)"
Applying oauth2_provider.0004_auto_20160525_1623... OK
Applying oauth2_provider.0005_auto_20170514_1141... OK
Applying oauth2_provider.0006_auto_20170903_1632... OK
Applying oauth2_provider.0007_application_algorithm... OK
Applying oauth2_provider.0008_idtoken... OK
Applying oauth2_provider.0006_auto_20171214_2232... OK
Applying oauth2_provider.0009_merge_20180606_1314... OK
Applying oauth2_provider.0010_auto_20190406_1805... OK
Applying oauth2_provider.0011_auto_20190413_2007... OK
Applying oauth2_provider.0012_accesstoken_id_token... OK
Applying oauth2_provider.0013_auto_20190816_1714... OK
Applying people.0025_auto_20170924_0932_squashed_0028_auto_20180606_1543... OK
Applying people.0026_auto_20200109_1600... OK
Applying people.0027_auto_20200114_1651... OK
Applying people.0028_auto_20200115_1121... OK
Applying pinax_notifications.0001_initial... OK
Applying pinax_notifications.0002_auto_20171003_2006... OK
Applying ratings.0001_initial... OK
Applying ratings.0002_auto_20170819_1121... OK
Applying ratings.0003_auto_20170819_1127... OK
Applying ratings.0004_auto_20210107_0943... OK
Applying services.0030_auto_20200115_1121... OK
Applying services.0031_service_probe... OK
Applying sessions.0001_initial... OK
Applying sites.0001_initial... OK
Applying sites.0002_alter_domain_unique... OK
Applying socialaccount.0001_initial... OK
Applying socialaccount.0002_token_max_lengths... OK
Applying socialaccount.0003_extra_data_default_dict... OK
Applying tastypie.0001_initial... OK
Applying tastypie.0002_api_access_url_length... OK
Applying upload.24_initial... OK
Applying upload.0025_auto_20200115_1836... OK
Applying upload.0026_auto_20200321_1349... OK
Applying user_messages.0001_initial... OK
Applying user_messages.0002_auto_20171107_1128... OK
Applying user_messages.0003_auto_20171108_1037... OK
Applying user_messages.0004_auto_20171108_1101... OK
/usr/lib/python3/dist-packages/django/db/models/fields/__init__.py:1424: RuntimeWarning: DateTimeField Profile.last_login received a naive datetime (2011-06-09 15:45:34) while time zone support is active.
warnings.warn("DateTimeField %s received a naive datetime (%s)"
/usr/lib/python3/dist-packages/django/db/models/fields/__init__.py:1424: RuntimeWarning: DateTimeField Profile.date_joined received a naive datetime (2011-06-09 15:15:27) while time zone support is active.
warnings.warn("DateTimeField %s received a naive datetime (%s)"
Installed 1 object(s) from 1 fixture(s)
Installed 1 object(s) from 1 fixture(s)
Installed 301 object(s) from 1 fixture(s)
Done
Still get 500 error in Apache in the iso. Can someone please download and have a look? http://aiolos.survey.ntua.gr/gisvm/dev/osgeolive-nightly-build207-amd64-6279979-master.iso
basically we need to review this file:
https://github.com/OSGeo/OSGeoLive/blob/master/app-conf/geonode/local_settings.py.sample
@kalxas cool, will try to have a look later today
The build logs look clean, except this:
Inspecting the available layers in GeoServer ...
Found 19 layers, starting processing
[failed] Layer giant_polygon (1/19)
[failed] Layer poi (2/19)
[failed] Layer poly_landmarks (3/19)
[failed] Layer tiger_roads (4/19)
[failed] Layer Arc_Sample (5/19)
[failed] Layer Pk50095 (6/19)
[failed] Layer mosaic (7/19)
[failed] Layer Img_Sample (8/19)
[failed] Layer states (9/19)
[failed] Layer tasmania_cities (10/19)
[failed] Layer tasmania_roads (11/19)
[failed] Layer tasmania_state_boundaries (12/19)
[failed] Layer tasmania_water_bodies (13/19)
[failed] Layer archsites (14/19)
[failed] Layer bugsites (15/19)
[failed] Layer restricted (16/19)
[failed] Layer roads (17/19)
[failed] Layer streams (18/19)
[failed] Layer sfdem (19/19)
Once the setup is confirmed to work, I will push the packages to the GeoNode ppa
@kalxas I did a test with the iso you provided. Actually those are the issues I have found:
- Apache2 won't startup because the folder
/var/log/apache2
is missing - In order for GeoNode to startup correctly, we need to either:
a. Put into
local_settings.py
the optionMONITORING_ENABLED = False
b. Delete from/usr/lib/python3/dist-packages/geonode/monitoring/models.py
the line 49:import user_agents
- With the changes (1.) and (2.) GeoNode starts and we can login as
admin / admin
, nevertheless it won't be possible to upload layers into GeoServer because the 2.18.0 version installed on theiso
is missing theplugins
anddata_dir
configurations needed by GeoNode
@afabiani many thanks for the feedback, I am going to apply the above fixes and wait for the GeoServer 2.18.0 package.
https://github.com/OSGeo/OSGeoLive/commit/5b8ecad29016456d04aae1d4c5f6be3395b4b461
Debian packages moved to https://launchpad.net/~geonode/+archive/ubuntu/osgeolive/+packages?field.name_filter=&field.status_filter=published&field.series_filter=focal
@kalxas please find the GeoServer bin here
Thanks @afabiani Wow, 190MB larger than the vanilla zip? Is there any way to make it smaller?
Uhm I'll check but I don't think so. I guess most of the space is taken by the JARS plugins inside WEB-INF/lib
Ouch, we currently have ~10MB left in the disk, this will break the build
@afabiani this is the install log for the new package of geoserver:
2021-01-23 13:34:17 (1.35 MB/s) - 'geoserver-2.18.1-bin.zip' saved [306363983/306363983]
Unpacking GeoServer in /usr/local/lib/geoserver-2.18.1
Configuring GeoServer script
sed: can't read /usr/local/lib/geoserver-2.18.1/bin/startup.sh: No such file or directory
sed: can't read /usr/local/lib/geoserver-2.18.1/bin/shutdown.sh: No such file or directory
sed: can't read /usr/local/lib/geoserver-2.18.1/start.ini: No such file or directory
./install_geoserver.sh: 96: cannot create /usr/local/lib/geoserver-2.18.1/bin/start_admin.sh: Directory nonexistent
./install_geoserver.sh: 121: cannot create /usr/local/lib/geoserver-2.18.1/bin/stop_notify.sh: Directory nonexistent
chmod: cannot access '/usr/local/lib/geoserver-2.18.1/bin/startup.sh': No such file or directory
chmod: cannot access '/usr/local/lib/geoserver-2.18.1/bin/start_admin.sh': No such file or directory
chmod: cannot access '/usr/local/lib/geoserver-2.18.1/bin/shutdown.sh': No such file or directory
chmod: cannot access '/usr/local/lib/geoserver-2.18.1/bin/stop_notify.sh': No such file or directory
The user `user' is already a member of `users'.
chgrp: cannot access '/usr/local/lib/geoserver-2.18.1/data_dir': No such file or directory
chgrp: cannot access '/usr/local/lib/geoserver-2.18.1/logs': No such file or directory
chmod: cannot access '/usr/local/lib/geoserver-2.18.1/data_dir': No such file or directory
chmod: cannot access '/usr/local/lib/geoserver-2.18.1/logs': No such file or directory
I guess there is some folder structure change compared to upstream 2.18.1?
I also see that this jar is 156 MB gs-web-app-2.18-SNAPSHOT.jar
ok, folder structure fixed and zip uploaded again
I have removed the huge jar, now testing if geonode still works in the iso
Fixed
@kalxas cool, please let me know if I can help you testing or fixing something!
Thanks for your effort