Link to home
Start Free TrialLog in
Avatar of heze54
heze54Flag for Spain

asked on

Drupal error migrating from 8.1 to 8.3.7

Hi,

After migrate Drupal 8.1 to 8.3.7, this error is shown at web site :


The website encountered an unexpected error. Please try again later.

At apache 2.4 error, I can see this:

 [Thu Sep 21 21:30:38.185852 2017] [proxy_fcgi:error] [pid 22862:tid 139697256294144] [client xxxxxxxxx] AH01071: Got error 'PHP message: PDOException: SQLSTATE[HY000] [2002] Connection refused in /volume1/web/drupal/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php on line 79 #0 /volume1/web/drupal/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php(142): PDO->__construct('mysql:host=127....', , Array)\n#1 /volume1/web/drupal/core/lib/Drupal/Core/Database/Database.php(376): Drupal\\Core\\Database\\Driver\\mysql\\Connection::open(Array)\n#2 /volume1/web/drupal/core/lib/Drupal/Core/Database/Database.php(166): Drupal\\Core\\Database\\Database::openConnection('default', 'default')\n#3 [internal function]: Drupal\\Core\\Database\\Database::getConnection('default')\n#4 /volume1/web/drupal/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php(79): call_user_func_array('Drupal\\\\Core\\\\Dat...', Array)\n#5 /volume1/web/drupal/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\\Component\\DependencyInjection\\PhpArrayContainer->createService(Array, 'database')\n#6 /volume1/web/dr...\n'


I run MariaDB10 and PHP 5.6

Any ideas?

Regards
Avatar of David Favor
David Favor
Flag of United States of America image

Looks like your database isn't connecting.

Try manually connecting to your database using your Drupal credentials...

mysql -u$user -p$pass -e "SHOW TABLES" $database

Open in new window


My guess is this will fail. Get this working first + then proceed.
Avatar of heze54

ASKER

HI,

After modifying port from 3306 to 3307 this error is show:

The website encountered an unexpected error. Please try again later.

Symfony\Component\HttpKernel\Exception\NotFoundHttpException: in Drupal\Core\PathProcessor\PathProcessorFront->processInbound() (line 43 of core/lib/Drupal/Core/PathProcessor/PathProcessorFront.php).
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.