[GeoNode-devel] Custom geonode project installation
Dimitris Kar
dkarakostis at gmail.com
Wed Dec 19 07:57:16 PST 2018
Hello all,
I am trying following the instructions from this workshop (
http://geonode.org/dev-workshop/#/2) in order to install GeoNode and a
GeoNode project. I have installed GeoNode in dev mode using a python
virtualenv + django development server method.
Then I follow the instructions in order to create a geonode-project as
following:
1. cd ./geonode
2. django-admin.py startproject wfp_geonode --template=
https://github.com/GeoNode/geonode-project/archive/master.zip -e
py,rst,json,yml,ini,env,sample -n Dockerfile wfp_geonode (I executed
this command without includong: -n Dockerfile wfp_geonode)
3. workon geonode
4. cd wfp_geonode
5. pip install -e wfp_geonode
6. cd ../geonode
7. DJANGO_SETTINGS_MODULE=wfp_geonode.local_settings paver start
But when I actually run the command, I get the below command. If I am not
wrong, I remember, that I can not use geonode-project aside with a geonode
dev installation but this is not quite clear in the above workshop
presentation (see above link).
Did anyone had similar issues? Should I install a geonode for production
and use the geonode-project then?
[tasks]
. geonode.documents.tasks.create_document_thumbnail
. geonode.documents.tasks.delete_orphaned_document_files
. geonode.documents.tasks.delete_orphaned_thumbnails
. geonode.geoserver.tasks.geoserver_update_layers
. geonode.layers.tasks.update.delete_layer
. geonode.maps.tasks.delete_map
. geonode.security.tasks.synch_guardian
. geonode.services.tasks.update.harvest_resource
. geonode.tasks.email.send_mail
. geonode.tasks.notifications.send_queued_notifications
*[2018-12-19 15:42:48,640: ERROR/Beat] Task
geonode.security.tasks.synch_guardian[0eefd612-e27e-4cc5-8e39-b59e35b80124]
raised unexpected: OperationalError('could not connect to server:
Connection refused\n\tIs the server running on host "localhost" (127.0.0.1)
and accepting\n\tTCP/IP connections on port 5432?\n',)*
*Traceback (most recent call last):*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/celery/app/trace.py",
line 382, in trace_task*
* R = retval = fun(*args, **kwargs)*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/celery/app/trace.py",
line 641, in __protected_call__*
* return self.run(*args, **kwargs)*
* File "/vagrant/geonode/geonode/security/tasks.py", line 37, in
synch_guardian*
* if dirty_resources and dirty_resources.count() > 0:*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/models/query.py",
line 258, in __nonzero__*
* return type(self).__bool__(self)*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/models/query.py",
line 254, in __bool__*
* self._fetch_all()*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/models/query.py",
line 1121, in _fetch_all*
* self._result_cache = list(self._iterable_class(self))*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/models/query.py",
line 53, in __iter__*
* results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",
line 887, in execute_sql*
* cursor = self.connection.cursor()*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 254, in cursor*
* return self._cursor()*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 229, in _cursor*
* self.ensure_connection()*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 213, in ensure_connection*
* self.connect()*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/utils.py",
line 94, in __exit__*
* six.reraise(dj_exc_type, dj_exc_value, traceback)*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 213, in ensure_connection*
* self.connect()*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 189, in connect*
* self.connection = self.get_new_connection(conn_params)*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/backends/postgresql/base.py",
line 176, in get_new_connection*
* connection = Database.connect(**conn_params)*
* File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/psycopg2/__init__.py",
line 130, in connect*
* conn = _connect(dsn, connection_factory=connection_factory, **kwasync)*
*OperationalError: could not connect to server: Connection refused*
* Is the server running on host "localhost" (127.0.0.1) and accepting*
* TCP/IP connections on port 5432?*
System check identified no issues (0 silenced).
Unhandled exception in thread started by <function wrapper at
0x7f33b1978938>
Traceback (most recent call last):
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/utils/autoreload.py",
line 228, in wrapper
fn(*args, **kwargs)
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py",
line 127, in inner_run
self.check_migrations()
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/core/management/base.py",
line 422, in check_migrations
executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/migrations/executor.py",
line 20, in __init__
self.loader = MigrationLoader(self.connection)
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/migrations/loader.py",
line 52, in __init__
self.build_graph()
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/migrations/loader.py",
line 209, in build_graph
self.applied_migrations = recorder.applied_migrations()
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/migrations/recorder.py",
line 65, in applied_migrations
self.ensure_schema()
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/migrations/recorder.py",
line 52, in ensure_schema
if self.Migration._meta.db_table in
self.connection.introspection.table_names(self.connection.cursor()):
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 254, in cursor
return self._cursor()
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 229, in _cursor
self.ensure_connection()
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 213, in ensure_connection
self.connect()
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/utils.py",
line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 213, in ensure_connection
self.connect()
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 189, in connect
self.connection = self.get_new_connection(conn_params)
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/django/db/backends/postgresql/base.py",
line 176, in get_new_connection
connection = Database.connect(**conn_params)
File
"/home/ubuntu/Envs/geonode/local/lib/python2.7/site-packages/psycopg2/__init__.py",
line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: could not connect to server: Connection
refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
GeoNode is now available.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20181219/45bd7486/attachment-0001.html>
More information about the geonode-devel
mailing list