calmip / gramc3

GNU General Public License v3.0
0 stars 2 forks source link

Wrong order in installation documentation #4

Closed vignemail1 closed 3 years ago

vignemail1 commented 3 years ago

Description du problème

Dans la documentation à la base du projet, il est spécifier de lancer 2 commandes afin de générer un fichier .htaccess mais ces commandes tentent de lire les fichiers de configurations qui sont dans une étape qui après les deux commandes, ce qui provoque des erreurs aux moment de lancer les 2 commandes.

root@gramc:/var/www/html/gramc3# ./composer.phar remove symfony/apache-pack
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
symfony/apache-pack is not required in your composer.json and has not been removed
./composer.json has been updated
Running composer update symfony/apache-pack
Loading composer repositories with package information
Updating dependencies
Package "symfony/apache-pack" listed for update is not locked.
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package twig/extensions is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
87 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!
!!  In ParameterBag.php line 100:
!!
!!    You have requested a non-existent parameter "mailadmin".
!!
!!
!!
Script @auto-scripts was called via post-update-cmd

Proposition de solution

L'ordre des actions devrait donc être :

vignemail1 commented 3 years ago

En complément, les lignes pour générer le fichier .htaccess lance un cache:clear, ce qui suppose d'avoir les tables SQL chargées alors que c'est dans une étape après.

root@gramc:/var/www/html/gramc3# ./composer.phar remove symfony/apache-pack
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
symfony/apache-pack is not required in your composer.json and has not been removed
./composer.json has been updated
Running composer update symfony/apache-pack
Loading composer repositories with package information
Updating dependencies
Package "symfony/apache-pack" listed for update is not locked.
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package twig/extensions is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
87 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!
!!   // Clearing the cache for the dev environment with debug
!!   // true
!!
!!
!!  In AbstractMySQLDriver.php line 61:
!!
!!    An exception occurred while executing 'SELECT t0.cle AS cle_1, t0.val AS va
!!    l_2, t0.id_param AS id_param_3 FROM param t0 WHERE t0.cle = ? LIMIT 1' with
!!     params ["now"]:
!!
!!    SQLSTATE[42S02]: Base table or view not found: 1146 Table 'gramc.param' doe
!!    sn't exist
!!
!!
!!  In Exception.php line 18:
!!
!!    SQLSTATE[42S02]: Base table or view not found: 1146 Table 'gramc.param' doe
!!    sn't exist
!!
!!
!!  In PDOStatement.php line 115:
!!
!!    SQLSTATE[42S02]: Base table or view not found: 1146 Table 'gramc.param' doe
!!    sn't exist
!!
!!
!!  cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
!!
!!
Script @auto-scripts was called via post-update-cmd
vignemail1 commented 3 years ago

La commande bin/console app:send-a-mail toto@titi.fr de vérification nécessite d'avoir également la base de données initialisée.

root@gramc:/var/www/html/gramc3# ./bin/console app:send-a-mail toto@titi.fr

In AbstractMySQLDriver.php line 61:

  An exception occurred while executing 'SELECT t0.cle AS cle_1, t0.val AS val_2, t0.id_param
  AS id_param_3 FROM param t0 WHERE t0.cle = ? LIMIT 1' with params ["now"]:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'gramc.param' doesn't exist

In Exception.php line 18:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'gramc.param' doesn't exist

In PDOStatement.php line 115:

  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'gramc.param' doesn't exist
calmip commented 3 years ago

Corrigé