galaxy icon indicating copy to clipboard operation
galaxy copied to clipboard

Failed to load LDAP module

Open alpapan opened this issue 3 years ago • 7 comments

Hello

Having just updated to the both Ubuntu 20.04 I did a fresh install of Galaxy, (upgrading from 16.something). Using Python 3.6.11

I'm breaking my head around this for a few hours. For some reason I get Failed to load LDAP module (see below for error) even though I have installed python-ldap

I tried both conda install python-ldap whilst inside galaxy's environment (it installs ldap3-.2) and pip install ldap3-2.8.1 (after checking the github issues).

I first tried the 20.01 and then the dev branch (20.05 i believe). I tried checking if any of my old config files were invalid. Any pointers how to debug this and figure out would be most appreciated....

thank you alexie

galaxy.web.framework.decorators ERROR 2020-10-13 21:19:33,193 [p:15363,w:2,m:0] [uWSGIWorker2Core4] Uncaught exception in exposed API method:
Traceback (most recent call last):
  File "lib/galaxy/web/framework/decorators.py", line 294, in decorator
    rval = func(self, trans, *args, **kwargs)
  File "lib/galaxy/webapps/galaxy/controllers/user.py", line 122, in login
    return self.__validate_login(trans, payload, **kwd)
  File "lib/galaxy/webapps/galaxy/controllers/user.py", line 147, in __validate_login
    message, user = self.__autoregistration(trans, login, password)
  File "lib/galaxy/webapps/galaxy/controllers/user.py", line 89, in __autoregistration
    autoreg = trans.app.auth_manager.check_auto_registration(trans, login, password)
  File "lib/galaxy/auth/__init__.py", line 63, in check_auto_registration
    auth_results = provider.authenticate(email, username, password, options)
  File "lib/galaxy/auth/providers/ldap_ad.py", line 204, in authenticate
    failure_mode, params = self.ldap_search(email, username, options)
  File "lib/galaxy/auth/providers/ldap_ad.py", line 121, in ldap_search
    raise RuntimeError("Failed to load LDAP module: %s", str(ldap_import_exc))
RuntimeError: ('Failed to load LDAP module: %s', "No module named 'ldap'")

alpapan avatar Oct 13 '20 10:10 alpapan