I upgraded ldap module from ldap 8.x-3.0-alpha2 to ldap 8.x-3.0-alpha3.
I am getting the following error. Please let me know if some one have got the same error.
PDOException: SQLSTATE[HY000] [2002] No such file or directory in [error]
/private/var/www/authenticator/docroot/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php:142
Stack trace:
#0
/private/var/www/authenticator/docroot/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php(142):
PDO->__construct('mysql:host=loca...', 'drupal', 'drupal', Array)
#1 /private/var/www/authenticator/docroot/core/lib/Drupal/Core/Database/Database.php(376):
Drupal\Core\Database\Driver\mysql\Connection::open(Array)
#2 /private/var/www/authenticator/docroot/core/lib/Drupal/Core/Database/Database.php(166):
Drupal\Core\Database\Database::openConnection('default', 'default')
#3 [internal function]: Drupal\Core\Database\Database::getConnection('default')
#4
/private/var/www/authenticator/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(254):
call_user_func_array(Array, Array)
#5
/private/var/www/authenticator/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'database')
#6
/private/var/www/authenticator/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('database', 1)
#7
/private/var/www/authenticator/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(236):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#8
/private/var/www/authenticator/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'cache.backend.c...')
#9 /private/var/www/authenticator/docroot/core/lib/Drupal/Core/Cache/CacheFactory.php(83):
Drupal\Component\DependencyInjection\Container->get('cache.backend.c...')
#10 [internal function]: Drupal\Core\Cache\CacheFactory->get('bootstrap')
#11
/private/var/www/authenticator/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(254):
call_user_func_array(Array, Array)
#12
/private/var/www/authenticator/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'cache.bootstrap')
#13
/private/var/www/authenticator/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(494):
Drupal\Component\DependencyInjection\Container->get('cache.bootstrap', 1)
#14
/private/var/www/authenticator/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(236):
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array)
#15
/private/var/www/authenticator/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(177):
Drupal\Component\DependencyInjection\Container->createService(Array, 'module_handler')
#16 /private/var/www/authenticator/docroot/core/lib/Drupal/Core/DrupalKernel.php(544):
Drupal\Component\DependencyInjection\Container->get('module_handler')
#17 /private/var/www/authenticator/docroot/core/lib/Drupal/Core/DrupalKernel.php(702):
Drupal\Core\DrupalKernel->preHandle(Object(Symfony\Component\HttpFoundation\Request))
#18 /private/var/www/authenticator/docroot/core/includes/utility.inc(42):
Drupal\Core\DrupalKernel->prepareLegacyRequest(Object(Symfony\Component\HttpFoundation\Request))
#19 /private/var/www/authenticator/vendor/drush/drush/commands/core/cache.drush.inc(300):
drupal_rebuild(Object(Composer\Autoload\ClassLoader),
Object(Symfony\Component\HttpFoundation\Request))
#20 /private/var/www/authenticator/vendor/drush/drush/includes/command.inc(422):
drush_cache_rebuild()
#21 /private/var/www/authenticator/vendor/drush/drush/includes/command.inc(231):
_drush_invoke_hooks(Array, Array)
#22 /private/var/www/authenticator/vendor/drush/drush/includes/command.inc(199):
drush_command()
#23 /private/var/www/authenticator/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67):
drush_dispatch(Array)
#24 /private/var/www/authenticator/vendor/drush/drush/includes/preflight.inc(66):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#25 /private/var/www/authenticator/vendor/drush/drush/drush.php(12): drush_main()
#26 {main}
--
Thanks
Prashanth
Comments
Comment #2
grahlBoostrapping fails because your sql server is not available. This is very unlikely to be a problem with LDAP. Please review your development environment.
Comment #3
plingamn commentedThanks a lot grahl ..
I just figured that out ..
There was some issue in the setup ..
--
Best
Prashanth