Jednak po przywróceniu bazy sql:
cat var/backups/supla_backup_2025.sql | docker compose exec -T supla-db mariadb -u supla --password="${DB_PASSWORD}" supla
serwer supla-cloud wciąż się restaruje.
W logu kontenera supla-cloud mam:
Code: Select all
Database connection has been established.
[OK] Metadata storage synchronized
[notice] Migrating up to SuplaBundle\Migrations\Migration\Version20251112105645
[error] Migration SuplaBundle\Migrations\Migration\Version20250611080146 failed during Execution. Error: "An exception occurred while executing a query: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'supla_energy_price_log' already exists"
In ExceptionConverter.php line 45:
An exception occurred while executing a query: SQLSTATE[42S01]: Base table
or view already exists: 1050 Table 'supla_energy_price_log' already exists
In Exception.php line 24:
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'supla_energ
y_price_log' already exists
In Connection.php line 71:
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'supla_energ
y_price_log' already exists
doctrine:migrations:migrate [--write-sql [WRITE-SQL]] [--dry-run] [--query-time] [--allow-no-migration] [--all-or-nothing [ALL-OR-NOTHING]] [--configuration CONFIGURATION] [--em EM] [--conn CONN] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<version>]Tak przy okazji na w/w wiki jest literówka w linii:
cat var/backups/supla_bakup_2025.sql | docker compose exec -T supla-db mariadb -u supla --password="${DB_PASSWORD}" supla
jest supla_bakup_2025.sql zamiast supla_backup_2025.sql
