dbarzin / mercator

Mapping the information system / Cartographie du système d'information
GNU General Public License v3.0
246 stars 40 forks source link

Probleme nouvelle installation et import de donnée mysql #142

Closed webchl closed 2 years ago

webchl commented 2 years ago

Bonjour,

malgré toute ma bonne volonté et le temps consacré je n'arrive pas a installer un environnement neuf sous ubuntu 22.04 et a jour tout en récupérant mes données mysql de l'ancien environnement (ubuntu 20.04 php 7)

je suis a la lettre la procédure d'installation et je rencontre d'une part un problème après le redémarrage du serveur:

je perds la configuration web après reboot et suis obligé de refaire les commande suivantes: cd /var/www/mercator sudo composer update sudo php artisan vendor:publish --all php artisan serve --host 0.0.0.0 --port 8000 si j'arrete cette commande je ne peux plus utiliser mercator

et d'autre part, certaines pages semblent manquer: par exemple lorsque je souhaite modifier une entité je tombe sur:

Illuminate\Database\QueryException`

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'entity_type' in 'field list' (SQL: select distinct entity_type from entities where entity_type is not null and entities.deleted_at is null order by entity_type asc)

j'execute alors comme indiqué : php artisan migrate

`/var/www/mercator$ php artisan migrate Migrating: 2022_02_08_210603_create_cartographer_m_application_table

Illuminate\Database\QueryException

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'cartographer_m_application' already exists (SQL: create table cartographer_m_application (id int unsigned not null auto_increment primary key, user_id int unsigned not null, m_application_id int unsigned not null, created_at timestamp null, updated_at timestamp null, deleted_at timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:712 708▕ // If an exception occurs when attempting to run a query, we'll format the error 709▕ // message to include the bindings with SQL, which will make this exception a 710▕ // lot more helpful to the developer instead of just the database's errors. 711▕ catch (Exception $e) { ➜ 712▕ throw new QueryException( 713▕ $query, $this->prepareBindings($bindings), $e 714▕ ); 715▕ } 716▕ }

  +12 vendor frames

13 database/migrations/2022_02_08_210603_create_cartographer_m_application_table.php:24 Illuminate\Support\Facades\Facade::__callStatic()

  +22 vendor frames

36 artisan:37 Illuminate\Foundation\Console\Kernel::handle() administrateur@INF04-VMERCA-P1:/var/www/mercator$ sudo php artisan migrate Migrating: 2022_02_08_210603_create_cartographer_m_application_table

Illuminate\Database\QueryException

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'cartographer_m_application' already exists (SQL: create table cartographer_m_application (id int unsigned not null auto_increment primary key, user_id int unsigned not null, m_application_id int unsigned not null, created_at timestamp null, updated_at timestamp null, deleted_at timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:712 708▕ // If an exception occurs when attempting to run a query, we'll format the error 709▕ // message to include the bindings with SQL, which will make this exception a 710▕ // lot more helpful to the developer instead of just the database's errors. 711▕ catch (Exception $e) { ➜ 712▕ throw new QueryException( 713▕ $query, $this->prepareBindings($bindings), $e 714▕ ); 715▕ } 716▕ }

  +12 vendor frames

13 database/migrations/2022_02_08_210603_create_cartographer_m_application_table.php:24 Illuminate\Support\Facades\Facade::__callStatic()

  +22 vendor frames

36 artisan:37 Illuminate\Foundation\Console\Kernel::handle() ` je n'ai pas encore tout testé mais les données que j'ai importé sont présentes (semble-t-il) mais sont elles toutes modifiables sans erreurs?? là je ne sais pas ..

merci de votre aide

webchl commented 2 years ago

Merci Didier pour ton aide via teams tout fonctionne parfaitement tres beau projet bon courage