You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keeping the postgres container the same, only upgrading the tag on cdash and cdash_worker, I get the following error when trying to move to 3.5 (or 3.6 for that matter):
[cdash@cdash ~]$ docker compose up
[+] Running 4/4
✔ Network cdash_default Created 0.3s
✔ Container cdash_postgres Created 7.5s
✔ Container cdash Created 0.1s
✔ Container cdash_worker Created 0.1s
Attaching to cdash, cdash_postgres, cdash_worker
cdash_postgres |
cdash_postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization
cdash_postgres |
cdash_postgres | 2024-11-29 14:52:01.546 UTC [1] LOG: starting PostgreSQL 16.6 (Debian 16.6-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
cdash_postgres | 2024-11-29 14:52:01.547 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
cdash_postgres | 2024-11-29 14:52:01.547 UTC [1] LOG: listening on IPv6 address "::", port 5432
cdash_postgres | 2024-11-29 14:52:01.566 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
cdash_postgres | 2024-11-29 14:52:01.577 UTC [29] LOG: database system was shut down at 2024-11-29 14:50:22 UTC
cdash_postgres | 2024-11-29 14:52:01.587 UTC [1] LOG: database system is ready to accept connections
cdash | Starting background jobs...
cdash | Starting Apache...
cdash | =================================================================================
cdash | Beginning production CDash installation...
cdash | Enabling maintenance mode...
cdash | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.3. Set the 'ServerName' directive globally to suppress this messagecdash | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.3. Set the 'ServerName' directive globally to suppress this message
cdash | [Fri Nov 29 14:52:03.489345 2024] [mpm_prefork:notice] [pid 17:tid 17] AH00163: Apache/2.4.62 (Debian) PHP/8.2.25 OpenSSL/3.0.15 configured -- resuming normal operations
cdash | [Fri Nov 29 14:52:03.489582 2024] [core:notice] [pid 17:tid 17] AH00094: Command line: '/usr/sbin/apache2 -D FOREGROUND'
cdash |
cdash | INFO Application is now in maintenance mode.
cdash |
cdash | Skipping vendor installation...
cdash | Creating storage directories...
cdash | /cdash/storage/app/failed already exists
cdash | /cdash/storage/app/inbox already exists
cdash | /cdash/storage/app/inprogress already exists
cdash | /cdash/storage/app/parsed already exists
cdash | /cdash/storage/app/public already exists
cdash | /cdash/storage/app/tmp already exists
cdash | /cdash/storage/app/upload already exists
cdash | /cdash/storage/framework/cache/data already exists
cdash | /cdash/storage/framework/sessions already exists
cdash | /cdash/storage/framework/views already exists
cdash | /cdash/storage/logs already exists
cdash | Waiting for database to come online...
cdash |
cdash | Database name .................................................. Connections
cdash | pgsql ............................................................... [6] OK
cdash |
cdash | Running migrations...
cdash |
cdash | INFO Running migrations.
cdash |
cdash | 2024_04_13_161402_drop_build_log_column .......................... 20ms DONE
cdash_postgres | 2024-11-29 14:52:04.124 UTC [50] ERROR: column "testname" of relation "build2test" already exists
cdash_postgres | 2024-11-29 14:52:04.124 UTC [50] STATEMENT: alter table "build2test" add column "testname" varchar(255) null
cdash_postgres | 2024-11-29 14:52:04.125 UTC [50] ERROR: current transaction is aborted, commands ignored until end of transaction block
cdash_postgres | 2024-11-29 14:52:04.125 UTC [50] STATEMENT: DEALLOCATE pdo_stmt_0000000c
cdash | 2024_04_17_183212_remove_test_table ............................... 7ms FAIL
cdash | [2024-11-29 15:52:04] production.ERROR: SQLSTATE[42701]: Duplicate column: 7 ERROR: column "testname" of relation "build2test" already exists (Connection: pgsql, SQL: alter table "build2test" add column "testname" varchar(255) null) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 42701): SQLSTATE[42701]: Duplicate column: 7 ERROR: column \"testname\" of relation \"build2test\" already exists (Connection: pgsql, SQL: alter table \"build2test\" add column \"testname\" varchar(255) null) at /cdash/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)cdash | [stacktrace]cdash | #0 /cdash/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('alter table \"bu...', Array, Object(Closure))cdash | #1 /cdash/vendor/laravel/framework/src/Illuminate/Database/Connection.php(576): Illuminate\\Database\\Connection->run('alter table \"bu...', Array, Object(Closure))cdash | #2 /cdash/vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php(110): Illuminate\\Database\\Connection->statement('alter table \"bu...')cdash | #3 /cdash/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(602): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\PostgresConnection), Object(Illuminate\\Database\\Schema\\Grammars\\PostgresGrammar))cdash | #4 /cdash/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(444): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))cdash | #5 /cdash/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Illuminate\\Database\\Schema\\Builder->table('build2test', Object(Closure))cdash | #6 /cdash/database/migrations/2024_04_17_183212_remove_test_table.php(17): Illuminate\\Support\\Facades\\Facade::__callStatic('table', Array)cdash | #7 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(493): Illuminate\\Database\\Migrations\\Migration@anonymous->up()cdash | #8 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(410): Illuminate\\Database\\Migrations\\Migrator->runMethod(Object(Illuminate\\Database\\PostgresConnection), Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')cdash | #9 /cdash/vendor/laravel/framework/src/Illuminate/Database/Concerns/ManagesTransactions.php(30): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}(Object(Illuminate\\Database\\PostgresConnection))cdash | #10 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(418): Illuminate\\Database\\Connection->transaction(Object(Closure))cdash | #11 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(216): Illuminate\\Database\\Migrations\\Migrator->runMigration(Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')cdash | #12 /cdash/vendor/laravel/framework/src/Illuminate/Console/View/Components/Task.php(37): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()cdash | #13 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(756): Illuminate\\Console\\View\\Components\\Task->render('2024_04_17_1832...', Object(Closure))cdash | #14 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(216): Illuminate\\Database\\Migrations\\Migrator->write('Illuminate\\\\Cons...', '2024_04_17_1832...', Object(Closure))cdash | #15 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(181): Illuminate\\Database\\Migrations\\Migrator->runUp('/cdash/database...', 3, false)cdash | #16 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(124): Illuminate\\Database\\Migrations\\Migrator->runPending(Array, Array)cdash | #17 /cdash/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(90): Illuminate\\Database\\Migrations\\Migrator->run(Array, Array)cdash | #18 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(633): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->Illuminate\\Database\\Console\\Migrations\\{closure}()cdash | #19 /cdash/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(83): Illuminate\\Database\\Migrations\\Migrator->usingConnection(NULL, Object(Closure))cdash | #20 /cdash/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->handle()cdash | #21 /cdash/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()cdash | #22 /cdash/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))cdash | #23 /cdash/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))cdash | #24 /cdash/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)cdash | #25 /cdash/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call(Array)cdash | #26 /cdash/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))cdash | #27 /cdash/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))cdash | #28 /cdash/vendor/symfony/console/Application.php(1096): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))cdash | #29 /cdash/vendor/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Migrations\\MigrateCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))cdash | #30 /cdash/vendor/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))cdash | #31 /cdash/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))cdash | #32 /cdash/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))cdash | #33 {main}cdash | cdash | [previous exception] [object] (PDOException(code: 42701): SQLSTATE[42701]: Duplicate column: 7 ERROR: column \"testname\" of relation \"build2test\" already exists at /cdash/vendor/laravel/framework/src/Illuminate/Database/Connection.php:587)cdash | [stacktrace]cdash | #0 /cdash/vendor/laravel/framework/src/Illuminate/Database/Connection.php(587): PDOStatement->execute()cdash | #1 /cdash/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('alter table \"bu...', Array)cdash | #2 /cdash/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback('alter table \"bu...', Array, Object(Closure))cdash | #3 /cdash/vendor/laravel/framework/src/Illuminate/Database/Connection.php(576): Illuminate\\Database\\Connection->run('alter table \"bu...', Array, Object(Closure))cdash | #4 /cdash/vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php(110): Illuminate\\Database\\Connection->statement('alter table \"bu...')cdash | #5 /cdash/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(602): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\PostgresConnection), Object(Illuminate\\Database\\Schema\\Grammars\\PostgresGrammar))cdash | #6 /cdash/vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(444): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))cdash | #7 /cdash/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Illuminate\\Database\\Schema\\Builder->table('build2test', Object(Closure))cdash | #8 /cdash/database/migrations/2024_04_17_183212_remove_test_table.php(17): Illuminate\\Support\\Facades\\Facade::__callStatic('table', Array)cdash | #9 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(493): Illuminate\\Database\\Migrations\\Migration@anonymous->up()cdash | #10 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(410): Illuminate\\Database\\Migrations\\Migrator->runMethod(Object(Illuminate\\Database\\PostgresConnection), Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')cdash | #11 /cdash/vendor/laravel/framework/src/Illuminate/Database/Concerns/ManagesTransactions.php(30): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}(Object(Illuminate\\Database\\PostgresConnection))cdash | #12 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(418): Illuminate\\Database\\Connection->transaction(Object(Closure))cdash | #13 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(216): Illuminate\\Database\\Migrations\\Migrator->runMigration(Object(Illuminate\\Database\\Migrations\\Migration@anonymous), 'up')cdash | #14 /cdash/vendor/laravel/framework/src/Illuminate/Console/View/Components/Task.php(37): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()cdash | #15 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(756): Illuminate\\Console\\View\\Components\\Task->render('2024_04_17_1832...', Object(Closure))cdash | #16 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(216): Illuminate\\Database\\Migrations\\Migrator->write('Illuminate\\\\Cons...', '2024_04_17_1832...', Object(Closure))cdash | #17 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(181): Illuminate\\Database\\Migrations\\Migrator->runUp('/cdash/database...', 3, false)cdash | #18 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(124): Illuminate\\Database\\Migrations\\Migrator->runPending(Array, Array)cdash | #19 /cdash/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(90): Illuminate\\Database\\Migrations\\Migrator->run(Array, Array)cdash | #20 /cdash/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(633): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->Illuminate\\Database\\Console\\Migrations\\{closure}()cdash | #21 /cdash/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(83): Illuminate\\Database\\Migrations\\Migrator->usingConnection(NULL, Object(Closure))cdash | #22 /cdash/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->handle()cdash | #23 /cdash/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()cdash | #24 /cdash/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))cdash | #25 /cdash/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))cdash | #26 /cdash/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)cdash | #27 /cdash/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call(Array)cdash | #28 /cdash/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))cdash | #29 /cdash/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))cdash | #30 /cdash/vendor/symfony/console/Application.php(1096): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))cdash | #31 /cdash/vendor/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Migrations\\MigrateCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))cdash | #32 /cdash/vendor/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))cdash | #33 /cdash/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))cdash | #34 /cdash/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))cdash | #35 {main}cdash | "}
cdash |
cdash |
cdash | In Connection.php line 829:
cdash |
cdash | SQLSTATE[42701]: Duplicate column: 7 ERROR: column "testname" of relation
cdash |"build2test" already exists (Connection: pgsql, SQL: alter table "build2tes cdash | t" add column "testname" varchar(255) null)
cdash |
cdash |
cdash | In Connection.php line 587:
cdash |
cdash | SQLSTATE[42701]: Duplicate column: 7 ERROR: column "testname" of relation
cdash |"build2test" already exists
cdash |
cdash |
cdash |
cdash |****************************************
cdash |* INSTALLATION FAILURE!*
cdash |**
cdash |* An error occurred while installing CDash and CDash was not able to recover *
cdash |* automatically. If you believe that this is a problem with CDash, please *
cdash |* report the error here: *
cdash |**
cdash |* -> https://github.com/Kitware/CDash/issues/new *
cdash |**
cdash |****************************************
cdash |
Gracefully stopping... (press Ctrl+C again to force)
dependency failed to start: container cdash is unhealthy
Any idea what I may have done wrong?
Further more, that build2test table seems quite corrupted as the 3.4.3 version running here has the following error in the logs:
It looks like you somehow ran migrations without them being logged in the migrations table. Did you kill a migration partway though and then restart the container perhaps? A list of actions you took during this upgrade would probably be helpful.
As for repairing things, a good starting place would be to take a look at the last few entries of the migrations table. From there, you can look at each subsequent migration to see which ones have been run without being logged, and then you can manually add them to the migrations table.
Keeping the postgres container the same, only upgrading the tag on cdash and cdash_worker, I get the following error when trying to move to 3.5 (or 3.6 for that matter):
Any idea what I may have done wrong?
Further more, that
build2test
table seems quite corrupted as the 3.4.3 version running here has the following error in the logs:Thanks a lot for the help.
All the best
The text was updated successfully, but these errors were encountered: