Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By zhup on
Hello,
I am not able to install the Drupal 8.0.2 on the PostgreSQL 9.2.4.
Could you please help me in this issue? The details you can find below.
Thank you in advance.
Additional uncaught exception thrown while handling exception.
Original
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42P07]: Duplicate table: 7 ERROR: relation "cache_discovery" already exists: CREATE TABLE {cache_discovery} ( "cid" varchar(255) NOT NULL default '', "data" bytea NULL, "expire" int NOT NULL default 0, "created" numeric(14, 3) NOT NULL default 0, "serialized" smallint NOT NULL default 0, "tags" text NULL, "checksum" varchar(255) NOT NULL, CONSTRAINT cache_discovery____pkey PRIMARY KEY ("cid") ); Array ( ) in Drupal\Core\Plugin\DefaultPluginManager->cacheSet() (line 76 of /www/xxx_ftp/www/xxx.com/core/lib/Drupal/Core/Cache/UseCacheBackendTrait.php).
Drupal\Core\Plugin\DefaultPluginManager->cacheSet('entity_type', Array, -1, Array)
Drupal\Core\Plugin\DefaultPluginManager->setCachedDefinitions(Array)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions()
Drupal\Core\Entity\EntityManager->getDefinitions()
Drupal\Core\Config\ConfigManager->getEntityTypeIdByName('core.extension')
Drupal\Core\Config\ConfigInstaller->createConfiguration('', Array)
Drupal\Core\Config\ConfigInstaller->installDefaultConfig('core', 'core')
Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig('core', 'core')
drupal_install_system(Array)
install_base_system(Array)
install_run_task(Array, Array)
install_run_tasks(Array)
install_drupal(Object)
Additional
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "key_value" does not exist LINE 3: key_value key_value ^: SELECT 1 AS expression FROM {key_value} key_value WHERE ( (name = :db_condition_placeholder_0) AND (collection = :db_condition_placeholder_1) ); Array ( [:db_condition_placeholder_0] => system.theme.files [:db_condition_placeholder_1] => state ) in Drupal\Core\State\State->set() (line 89 of /www/xxx_ftp/www/xxx.com/core/lib/Drupal/Core/State/State.php).
Drupal\Core\State\State->set('system.theme.files', Array)
Drupal\Core\Extension\ThemeHandler->rebuildThemeData()
Drupal\Core\Extension\ThemeHandler->refreshInfo()
Drupal\Core\Extension\ThemeHandler->listInfo()
_drupal_maintenance_theme()
drupal_maintenance_theme()
install_display_output(Array, Array, Array)
_drupal_log_error(Array, 1)
_drupal_exception_handler(Object)
Comments
Trying to install again
You are trying to install again after several failed installs. You should drop tables from DB manually.
For each install I create the
For each install I create the new DB and I upload new drupal files.
What do you mean by "You should drop tables from DB manually."?