contentacms / contenta_jsonapi

Contenta CMS, the decoupled Drupal
http://www.contentacms.org/
GNU General Public License v2.0
328 stars 104 forks source link

cannot install contenta #340

Closed hadifarnoud closed 5 years ago

hadifarnoud commented 5 years ago

please update this horrible installation docs and add manual install instructions as well. the automated script does not work. I followed every step very carefully.

I'm sure mysql credential is correct. I'm sure because it does create the database.

 composer run-script install:with-mysql
> scripts/install-mysql.sh
-----------------------------------------------
 Installing Contenta CMS for local usage
-----------------------------------------------
 EXECUTING  /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/drush site-install contenta_jsonapi --verbose --yes \
  --root=/Users/hadifarnoud/playground/contenta/install/web \
  --db-url=mysql://root:[REDACTED]@localhost:/contenta \
  --site-mail= \
  --account-mail= \
  --site-name= \
  --account-name= \
  --account-pass="[REDACTED]";

 [info] Executing: mysql --defaults-file=/private/tmp/drush_GmvVxh --database=contenta --host=localhost --silent -A < /private/tmp/drush_TEST4W > /dev/null

 // You are about to CREATE the 'contenta' database. Do you want to continue?:
 // yes.

 [info] Sites directory sites/default already exists - proceeding.
 [info] Executing: mysql --defaults-file=/private/tmp/drush_gxBbks --database=contenta --host=localhost --silent -A < /private/tmp/drush_Hr0iac > /dev/null
 [info] Executing: mysql --defaults-file=/private/tmp/drush_RKauFL --database=information_schema --host=localhost --silent -A < /private/tmp/drush_IVsOJv
 [notice] Starting Drupal installation. This takes a while.

In install.core.inc line 980:

  [Drupal\Core\Installer\Exception\InstallerException]
  Resolve all issues below to continue the installation. For help configuring
   your database server, see the <a href="https://www.drupal.org/getting-star
  ted/install">installation handbook</a>, or contact your hosting provider.<d
  iv class="item-list"><ul><li>Failed to connect to your database server. The
   server reports the following message: <em class="placeholder">SQLSTATE[HY0
  00] [2002] No such file or directory</em>.<ul><li>Is the database server ru
  nning?</li><li>Does the database exist or does the database user have suffi
  cient privileges to create the database?</li><li>Have you entered the corre
  ct database name?</li><li>Have you entered the correct username and passwor
  d?</li><li>Have you entered the correct database hostname?</li></ul></li></
  ul></div>

Exception trace:
 () at /Users/hadifarnoud/playground/contenta/install/web/core/includes/install.core.inc:980
 install_get_form() at /Users/hadifarnoud/playground/contenta/install/web/core/includes/install.core.inc:631
 install_run_task() at /Users/hadifarnoud/playground/contenta/install/web/core/includes/install.core.inc:584
 install_run_tasks() at /Users/hadifarnoud/playground/contenta/install/web/core/includes/install.core.inc:125
 install_drupal() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/includes/drush.inc:238
 drush_call_user_func_array() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/includes/drush.inc:223
 drush_op() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/src/Commands/core/SiteInstallCommands.php:141
 Drush\Commands\core\SiteInstallCommands->install() at n/a:n/a
 call_user_func_array() at /Users/hadifarnoud/playground/contenta/install/vendor/consolidation/annotated-command/src/CommandProcessor.php:246
 Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback() at /Users/hadifarnoud/playground/contenta/install/vendor/consolidation/annotated-command/src/CommandProcessor.php:181
 Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter() at /Users/hadifarnoud/playground/contenta/install/vendor/consolidation/annotated-command/src/CommandProcessor.php:150
 Consolidation\AnnotatedCommand\CommandProcessor->process() at /Users/hadifarnoud/playground/contenta/install/vendor/consolidation/annotated-command/src/AnnotatedCommand.php:404
 Consolidation\AnnotatedCommand\AnnotatedCommand->execute() at /Users/hadifarnoud/playground/contenta/install/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /Users/hadifarnoud/playground/contenta/install/vendor/symfony/console/Application.php:971
 Symfony\Component\Console\Application->doRunCommand() at /Users/hadifarnoud/playground/contenta/install/vendor/symfony/console/Application.php:248
 Symfony\Component\Console\Application->doRun() at /Users/hadifarnoud/playground/contenta/install/vendor/symfony/console/Application.php:148
 Symfony\Component\Console\Application->run() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/src/Runtime/Runtime.php:112
 Drush\Runtime\Runtime->doRun() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/src/Runtime/Runtime.php:41
 Drush\Runtime\Runtime->run() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/drush.php:66
 require() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/drush:4

site:install [--db-url DB-URL] [--db-prefix DB-PREFIX] [--db-su DB-SU] [--db-su-pw DB-SU-PW] [--account-name [ACCOUNT-NAME]] [--account-mail [ACCOUNT-MAIL]] [--site-mail [SITE-MAIL]] [--account-pass ACCOUNT-PASS] [--locale [LOCALE]] [--site-name [SITE-NAME]] [--site-pass SITE-PASS] [--sites-subdir SITES-SUBDIR] [--config-dir CONFIG-DIR] [--existing-config] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--notify [NOTIFY]] [--druplicon] [--xh-link XH-LINK] [--] <command> [<profile>]...

 ERROR  The Drupal installer failed to install Contenta CMS.
Script scripts/install-mysql.sh handling the install:with-mysql event returned with error code 3
 composer -V
Composer version 1.8.0 2018-12-03 10:31:16
 php -v
PHP 7.1.19 (cli) (built: Aug 17 2018 18:03:17) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
mysql -V
mysql  Ver 8.0.12 for osx10.14 on x86_64 (Homebrew)
mysql> show variables like '%sock%';
+-----------------------------------------+------------------+
| Variable_name                           | Value            |
+-----------------------------------------+------------------+
| mysqlx_socket                           | /tmp/mysqlx.sock |
| performance_schema_max_socket_classes   | 10               |
| performance_schema_max_socket_instances | -1               |
| socket                                  | /tmp/mysql.sock  |
+-----------------------------------------+------------------+
4 rows in set (0.00 sec)
e0ipso commented 5 years ago

Please consider rephrasing your support request in a polite manner.

No free support is offered without the proper manners. Even then it's not guaranteed.

hadifarnoud commented 5 years ago

I'm sorry if horrible keyword was offensive.