[GeoNode-users] Docker provisioning sync issue

Ciar, David B. dciar86 at ceh.ac.uk
Thu Sep 28 07:15:12 PDT 2017


Hello,


I've been trying to run GeoNode using the provided Docker containers+commands, but I keep running into problems when I use the "make sync" command.  I'm completely new to GeoNode and hoped I could spin-up some containers to start learning.


First I tried by checking out the debian/2.6.3+thefinal() tag-branch, having cloned the project from GitHub and got the following output, having previously ran "make build":


➜  geonode git:(c0da40f) ✗ make sync
# bring up the services
docker-compose up -d
Creating network "geonode_default" with the default driver
Creating volume "geonode_geoserver_data_dir" with default driver
Creating geonode_rabbitmq_1 ...
Creating geonode_elasticsearch_1 ...
Creating geonode_postgres_1 ...
Creating geoserver_data_dir ...
Creating geonode_rabbitmq_1
Creating geonode_elasticsearch_1
Creating geoserver_data_dir
Creating geonode_postgres_1 ... done
Creating geonode_django_1 ...
Creating geoserver_data_dir ... done
Creating geonode_django_1
Creating geonode_celery_1
Creating geonode_geoserver_1 ...
Creating geonode_geoserver_1 ... done
Creating geonode_geonode_1 ...
Creating geonode_geonode_1 ... done
# set up the database tablea
docker-compose exec django django-admin.py migrate --noinput
Traceback (most recent call last):
  File "/usr/local/bin/django-admin.py", line 5, in <module>
    management.execute_from_command_line()
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 328, in execute
    django.setup()
  File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 115, in populate
    app_config.ready()
  File "/usr/local/lib/python2.7/site-packages/modeltranslation/apps.py", line 11, in ready
    handle_translation_registrations()
  File "/usr/local/lib/python2.7/site-packages/modeltranslation/models.py", line 81, in handle_translation_registrations
    autodiscover()
  File "/usr/local/lib/python2.7/site-packages/modeltranslation/models.py", line 32, in autodiscover
    import_module(module)
  File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/src/app/geonode/groups/translation.py", line 23, in <module>
ImportError: cannot import name GroupCategory
Makefile:10: recipe for target 'sync' failed
make: *** [sync] Error 1


Next I tried using the master branch, and got the following output having previously run "make build":


➜  geonode git:(master) make sync
# bring up the services
docker-compose up -d
Creating network "geonode_default" with the default driver
Creating volume "geonode_geoserver_data_dir" with default driver
Creating geonode_elasticsearch_1 ...
Creating geonode_postgres_1 ...
Creating geoserver_data_dir ...
Creating geonode_rabbitmq_1 ...
Creating geonode_elasticsearch_1
Creating geonode_postgres_1
Creating geoserver_data_dir
Creating geonode_postgres_1 ... done
Creating geonode_django_1 ...
Creating geonode_celery_1 ...
Creating geonode_geoserver_1 ...
Creating geonode_geoserver_1
Creating geonode_celery_1
Creating geonode_django_1 ... done
Creating geonode_geonode_1 ...
Creating geonode_geonode_1 ... done
# set up the database tablea
docker-compose exec django django-admin.py migrate --noinput
CommandError: Conflicting migrations detected (0003_auto_20160822_0917, 0005_signupcode_username in account).
To fix them run 'python manage.py makemigrations --merge'
Makefile:10: recipe for target 'sync' failed
make: *** [sync] Error 1


I'm not sure how to try to fix this, is there anything I'm missing?


I also wondered, are there environment variables I can provide to Docker/Docker Compose to be able to set an admin username and password on deployment?  I wasn't sure/couldn't see a way of doing this when using Docker, but I have a feeling this is due to my lack of experience with GeoNode/Django.


Thanks for any help,

David


________________________________
This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170928/fbdd4f07/attachment.html>


More information about the geonode-users mailing list