Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Unexpected error. Unable to verify database connection.

Highlighted

Unexpected error. Unable to verify database connection.

 

Dear Cloudera Community,

 

Anyone can help me with this error on CDH5.10.0 on Centos 7.3

 

I have tried with embedded and MySQL server but it didnt worked . Its the first machine on the cluster .

 

This error seems to be a bug in the release or have no clue what is missing .

 

I tried multiple times with different OS in different VM .

 

Please guide

 

 

 

error db.PNG

2 REPLIES 2

Re: Unexpected error. Unable to verify database connection.

Rising Star
Hi,
Can you check the log file /var/log/cloudera-scm-server/cloudera-scm-server.log, it should provide more details about the error you are seeing.

Regards,
Jim

Re: Unexpected error. Unable to verify database connection.

New Contributor

Hi.I am deploying my cluster and encounter the same problem.

And I checked the /var/log/cloudera-scm-server/cloudera-scm-server.log as follow:

2018-10-10 19:32:26,313 INFO CommandPusher:com.cloudera.cmf.model.DbCommand: Command 84(AmonTestDatabaseConnection) has completed. finalstate:FINISHED, success:true, msg:Successful
2018-10-10 19:32:27,062 INFO scm-web-333:com.cloudera.enterprise.JavaMelodyFacade: Entering HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult
2018-10-10 19:32:27,066 INFO scm-web-333:com.cloudera.enterprise.JavaMelodyFacade: Exiting HTTP Operation: Method:POST, Path:/dbTestConn/checkConnectionResult, Status:200
2018-10-10 19:32:28,394 INFO CommandPusher:com.cloudera.cmf.service.AbstractOneOffHostCommand: Unsuccessful 'HueTestDatabaseConnection'
2018-10-10 19:32:28,394 INFO CommandPusher:com.cloudera.cmf.service.AbstractDbConnectionTestCommand: Command exited with code: 1
2018-10-10 19:32:28,394 INFO CommandPusher:com.cloudera.cmf.service.AbstractDbConnectionTestCommand: File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/core/checks/registry.py", line 81, in run_checks
new_errors = check(app_configs=app_configs)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/core/checks/urls.py", line 16, in check_url_config
return check_resolver(resolver)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/core/checks/urls.py", line 26, in check_resolver
return check_method()
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/urls/resolvers.py", line 254, in check
for pattern in self.url_patterns:
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/utils/functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/urls/resolvers.py", line 405, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/utils/functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11-py2.7.egg/django/urls/resolvers.py", line 398, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/usr/lib/hue/desktop/core/src/desktop/urls.py", line 41, in <module>
from desktop.auth import views as desktop_auth_views
File "/usr/lib/hue/desktop/core/src/desktop/auth/views.py", line 38, in <module>
from desktop.auth import forms as auth_forms
File "/usr/lib/hue/desktop/core/src/desktop/auth/forms.py", line 30, in <module>
from useradmin.hue_password_policy import hue_get_password_validators
ImportError: No module named useradmin.hue_password_policy

2018-10-10 19:32:28,394 ERROR CommandPusher:com.cloudera.cmf.model.DbCommand: Command 86(HueTestDatabaseConnection) has completed. finalstate:FINISHED, success:false, msg:Unexpected error. Unable to verify database connection.

 

so how can I fix this 

ImportError: No module named useradmin.hue_password_policy