postgres and docker container does not work
See original GitHub issueHi, I’m using Docker container Hue and want to use an external database. but attempts to do that get error
Error loading psycopg2 module: No module named psycopg2.
engine = postgresql_psycopg2
$ sudo docker run -ti -p 8888:8888 -v /opt/hue/desktop/conf:/hue/desktop/conf gethue/hue:latest
INFO:root:Welcome to Hue 3.10.0
DEBUG:desktop.appmanager:Loaded Desktop Libraries: aws, hadoop, liboauth, liboozie, libopenid, librdbms, libsaml, libsentry, libsolr, libzookeeper
DEBUG:desktop.lib.conf:Loading configuration from: hue.ini
DEBUG:desktop.appmanager:Loaded Desktop Applications: about, beeswax, filebrowser, hbase, help, impala, jobbrowser, jobsub, metastore, oozie, pig, proxy, rdbms, search, security, spark, sqoop, useradmin, zookeeper, indexer, metadata, notebook
DEBUG:root:Installed Django modules: DesktopModule(aws: aws),DesktopModule(hadoop: hadoop),DesktopModule(liboauth: liboauth),DesktopModule(liboozie: liboozie),DesktopModule(libopenid: libopenid),DesktopModule(librdbms: librdbms),DesktopModule(libsaml: libsaml),DesktopModule(libsentry: libsentry),DesktopModule(libsolr: libsolr),DesktopModule(libzookeeper: libzookeeper),DesktopModule(Hue: desktop),DesktopModule(About: about),DesktopModule(Hive: beeswax),DesktopModule(File Browser: filebrowser),DesktopModule(HBase Browser: hbase),DesktopModule(Help: help),DesktopModule(Impala: impala),DesktopModule(Job Browser: jobbrowser),DesktopModule(Job Designer: jobsub),DesktopModule(Metastore Manager: metastore),DesktopModule(Oozie Editor/Dashboard: oozie),DesktopModule(Pig Editor: pig),DesktopModule(Proxy: proxy),DesktopModule(RDBMS UI: rdbms),DesktopModule(Solr Search: search),DesktopModule(Hadoop Security: security),DesktopModule(Spark: spark),DesktopModule(Sqoop: sqoop),DesktopModule(User Admin: useradmin),DesktopModule(ZooKeeper Browser: zookeeper),DesktopModule(Solr Indexer: indexer),DesktopModule(Metadata: metadata),DesktopModule(Notebook: notebook)
WARNING:desktop.lib.conf:enable_dbproxy_server is of type bool. Resetting it as type 'coerce_bool'. Please fix it permanently
WARNING:desktop.lib.conf:enable_query_builder is of type bool. Resetting it as type 'coerce_bool'. Please fix it permanently
WARNING:desktop.lib.conf:enable_query_scheduling is of type bool. Resetting it as type 'coerce_bool'. Please fix it permanently
DEBUG:desktop.lib.conf:Loading configuration from: hue.ini
DEBUG:desktop.lib.conf:Loading configuration from: hue.ini
DEBUG:root:DESKTOP_DB_TEST_NAME SET: /hue/desktop/desktop-test.db
DEBUG:root:DESKTOP_DB_TEST_USER SET: hue_test
Traceback (most recent call last):
File "build/env/bin/hue", line 9, in <module>
load_entry_point('desktop==3.10.0', 'console_scripts', 'hue')()
File "/hue/desktop/core/src/desktop/manage_entry.py", line 64, in entry
raise e
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named psycopg2
root@5e37ecaa582c:/hue/build/env/bin# find / -name "*psycopg*"
/hue/build/env/lib/python2.7/site-packages/South-1.0.2-py2.7.egg/south/db/postgresql_psycopg2.pyc
/hue/build/env/lib/python2.7/site-packages/South-1.0.2-py2.7.egg/south/db/postgresql_psycopg2.py
/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/backends/postgresql_psycopg2
/hue/desktop/core/ext-py/South-1.0.2/build/lib.linux-x86_64-2.7/south/db/postgresql_psycopg2.py
/hue/desktop/core/ext-py/South-1.0.2/south/db/postgresql_psycopg2.py
/hue/desktop/core/ext-py/Django-1.6.10/build/lib.linux-x86_64-2.7/django/db/backends/postgresql_psycopg2
/hue/desktop/core/ext-py/Django-1.6.10/django/db/backends/postgresql_psycopg2
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Docker - How can run the psql command in the postgres ...
I tried with this always: docker exect it 40e39bd0329a /bin/bash and then in the container run the psql command, but it always gave...
Read more >Postgres Container doesn't run · Issue #592 · docker-library ...
i used this command to create postgres container docker run -d -p 5432:5432 --name ... WARNING: No password has been set for the...
Read more >Postgresql as docker container not starting with initial data ...
On my macbook I have postgres running in a docker container and I use a mapped volume to persist the data. This works...
Read more >Using Docker with Postgres: Tutorial and Best Practices
This command connects you to the Docker Hub and pulls the PostgreSQL image to your machine. By default, Docker pulls the latest image...
Read more >3 Easy Steps to Install Docker PostgreSQL Environment
In the PGAdmin dashboard, you can fully manage the PostgreSQL Instance that runs on the Docker Container and completely manage Docker PostgreSQL ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Could you drop the DB and do ‘syncdb’ then ‘migrate’?
hi. thx, I removed the sceme, delete the database, and then create the database and everything was ok