I want to migrate the database from Xibo 1.8.2 to Xibo for Docker 2.0.2
When I want to only migrate the database I get the error: The theme “MyTheme” does not exist.
So when I try to migrate with the theme I get the error: The CMS is temporarily off-line as an upgrade is in progress. Please check with your system administrator for updates or refresh your page in a few minutes.
Can someone help me with this issue?
PS: php vendor/bin/phinx phinx.php migrate didn’t work
i’m deploy Xibo with docker. when i migrate from v1.8.x to v2.0.x me ./shared folder from v1.8.x folder to folder v2.0.x (folder include docker-compose.yml xibo v2.0.x) and deploy using docker-compose up -d and monitor logs docker-compose logs -f to see deploying if don’t have error migrate to v2.0.x is success
I think there is no shared folder in the old 1.8 version, because I try to migrate from the old database which is not running on Docker and so I think there is no shared folder which I can use for the migration.
So before the compose command I created the Shared folder beforehand with the included folders I need. Someone having the same experience??
The only difference in your case will be that you’ll need to put a copy of your theme in to the shared/cms/web/theme/custom folder. If it’s called mytheme, then the files need to be in shared/cms/web/theme/custom/mytheme
Once you have those files there, the CMS will be able to find the theme and the import should work as expected.
That is exactly what I tried but I still get the error: “The CMS is temporarily off-line as an upgrade is in progress. Please check with your system administrator for updates or refresh your page in a few minutes.”
You’re trying to import a database in to a pre-existing database.
You need to clear your database before you can import a database in to it. If you’re using MySQL that we provide in Docker, you can do that by downing the containers, and then emptying the shared/db directory.
Doing so will erase anything you have in the database. Be sure you only want the database that you’re going to import. Take a backup if you are at all unsure.
I got the containers down and empty the shared/db directory and when I run the command again I get this and when I type in “localhost” in the webbrowser then it says: the CMS is temporarily off-line as an upgrade is in progress. Please check with your system administrator for updates or refresh your page in a few minutes. again
Attaching to xibo2_cms-web_1
cms-web_1 | Waiting for MySQL to start - max 300 seconds
cms-web_1 | MySQL started
cms-web_1 | Updating settings.php
cms-web_1 | settingId
cms-web_1 | 1
cms-web_1 | Existing Database, checking if we need to upgrade it
cms-web_1 | Phinx by CakePHP - https://phinx.org. 0.9.2
cms-web_1 |
cms-web_1 | using config file .varwwwcmsphinx.php
cms-web_1 | using config parser php
cms-web_1 | using migration paths
cms-web_1 | - /var/www/cms/db/migrations
cms-web_1 | warning no environment specified, defaulting to: production
cms-web_1 | ordering by creation time
cms-web_1 |
cms-web_1 | Status [Migration ID] Started Finished Migration Name
cms-web_1 | ----------------------------------------------------------------------------------
cms-web_1 | down 20180130073838 InstallMigration
cms-web_1 | down 20180131113100 OldUpgradeStep85Migration
cms-web_1 | down 20180131113853 OldUpgradeStep86Migration
cms-web_1 | down 20180131113941 OldUpgradeStep87Migration
cms-web_1 | down 20180131113948 OldUpgradeStep88Migration
cms-web_1 | down 20180131113952 OldUpgradeStep92Migration
cms-web_1 | down 20180131113957 OldUpgradeStep120Migration
cms-web_1 | down 20180131114002 OldUpgradeStep121Migration
cms-web_1 | down 20180131114007 OldUpgradeStep122Migration
cms-web_1 | down 20180131114013 OldUpgradeStep123Migration
cms-web_1 | down 20180131114017 OldUpgradeStep124Migration
cms-web_1 | down 20180131114021 OldUpgradeStep125Migration
cms-web_1 | down 20180131114025 OldUpgradeStep126Migration
cms-web_1 | down 20180131114030 OldUpgradeStep127Migration
cms-web_1 | down 20180131114050 OldUpgradeStep128Migration
cms-web_1 | down 20180131114058 OldUpgradeStep129Migration
cms-web_1 | down 20180131114103 OldUpgradeStep130Migration
cms-web_1 | down 20180131114107 OldUpgradeStep131Migration
cms-web_1 | down 20180131114110 OldUpgradeStep132Migration
cms-web_1 | down 20180131114114 OldUpgradeStep133Migration
cms-web_1 | down 20180131114118 OldUpgradeStep134Migration
cms-web_1 | down 20180131114123 OldUpgradeStep135Migration
cms-web_1 | down 20180131122645 OneRegionPerPlaylistMigration
cms-web_1 | down 20180131123038 PlaylistTagsMigration
cms-web_1 | down 20180131123248 WidgetFromToDtMigration
cms-web_1 | down 20180212143336 DaypartSystemEntriesAsRecords
cms-web_1 | down 20180213173846 MailFromNameSettingMigration
cms-web_1 | down 20180219141257 DisplayGroupClosureIndexToNonUnique
cms-web_1 | down 20180223180534 DataSetColumnFilterAndSortOptionsMigration
cms-web_1 | down 20180302182421 WidgetCreatedAndModifiedDtMigration
cms-web_1 | down 20180313085749 MediaTableEditedIdIndexMigration
cms-web_1 | down 20180320154652 PlaylistAddDynamicFilterMigration
cms-web_1 | down 20180327153325 RemoveUserLoggedInMigration
cms-web_1 | down 20180514114415 FixCaseOnHelpTextFieldMigration
cms-web_1 | down 20180515123835 LayoutPublishDraftMigration
cms-web_1 | down 20180529065816 DataSetTruncateFixMigration
cms-web_1 | down 20180529073531 DisplayAsVncLinkMigration
cms-web_1 | down 20180621134013 AddWidgetSyncTaskMigration
cms-web_1 | down 20180621134250 EventLayoutPermissionSettingMigration
cms-web_1 | down 20180906115552 AddForeignKeysToTagsMigration
cms-web_1 | down 20180906115606 AddForeignKeysToPermissionsMigration
cms-web_1 | down 20180906115712 AddForeignKeysToWidgetMediaMigration
cms-web_1 | down 20180906131643 ForgottenPasswordReminderMigration
cms-web_1 | down 20180906131716 DataSetRssMigration
cms-web_1 | down 20181011160130 SimpleSettingsMigration
cms-web_1 | down 20181113173310 RemoveFinanceModuleMigration
cms-web_1 | down 20181113180337 SplitTickerModuleMigration
cms-web_1 | down 20181126113231 Release1812Migration
cms-web_1 | down 20181210092443 RemoveImageUriModuleMigration
cms-web_1 | down 20181212114400 CreatePlayerVersionsTableMigration
cms-web_1 | down 20181217135044 EventSyncMigration
cms-web_1 | down 20190121092556 PlayerUpgradeAndOverrideConfigMigration
cms-web_1 | down 20190125170130 PlayerSoftwareVersionFieldMigration
cms-web_1 | down 20190129103831 AddLinuxDisplayProfileMigration
cms-web_1 | down 20190212115432 AddDefaultTransitionDurationSettingMigration
cms-web_1 | down 20190213162212 AddHorizontalMenuSettingMigration
cms-web_1 | down 20190220165703 AddScheduleRecurrenceMonthlyRepeatsOnMigration
cms-web_1 | down 20190227101705 MakeDisplayLicenseColumnUniqueMigration
cms-web_1 | down 20190228120603 AddDynamicCriteriaTagsMigration
cms-web_1 | down 20190301115046 AdjustGenericfileValidExtensionsMigration
cms-web_1 |
cms-web_1 | We will upgrade it, take a backup
cms-web_1 | Running database migrations
cms-web_1 | Phinx by CakePHP - https://phinx.org. 0.9.2
cms-web_1 |
cms-web_1 | using config file .varwwwcmsphinx.php
cms-web_1 | using config parser php
cms-web_1 | using migration paths
cms-web_1 | - /var/www/cms/db/migrations
cms-web_1 | warning no environment specified, defaulting to: production
cms-web_1 | using adapter mysql
cms-web_1 | using database cms
cms-web_1 |
cms-web_1 | == 20180130073838 InstallMigration: migrating
cms-web_1 |
cms-web_1 |
cms-web_1 | [PDOException]
cms-web_1 | SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name ‘session
cms-web_1 | _id’
cms-web_1 |
cms-web_1 |
cms-web_1 | migrate [-c|–configuration CONFIGURATION] [-p|–parser PARSER] [-e|–environment ENVIRONMENT] [-t|–target TARGET] [-d|–date DATE] [-x|–dry-run]
cms-web_1 |
cms-web_1 | Importing ca-certs
cms-web_1 | cp: can’t stat ‘/var/www/cms/ca-certs/ .pem’: No such file or directory
cms-web_1 | cp: can’t stat '/var/www/cms/ca-certs/ .crt’: No such file or directory
cms-web_1 | WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping
cms-web_1 | Configuring Maintenance
cms-web_1 | Removing web/install/index.php from production container
cms-web_1 | Starting cron
cms-web_1 | Starting webserver
cms-web_1 | AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using 172.19.0.4. Set the ‘ServerName’ directive globally to suppress this message
Existing Database, checking if we need to upgrade it
The database already existed, and no import was done either.
Down the containers, remove the contents of shared/db (assuming you’re using MySQL that we provide and not an external database), then put your import file in place, and bring it back up.
Your import file must be from a version 1.8 CMS. Direct upgrade from 1.7 isn’t supported.
Okay, I took the containers down with command docker-compose down. Then I went to shared/db and deleted everything what was in there. Then I went to shared/backup and deleted everything what was in there. And I put the import.sql file in here. I go to the terminal and bring the container up again. But still the same result in the log that says Existing Database, checking if we need to upgrade it
The import file I export from mySQL database is 800mb and when I go to PHPmyAdmin I can see the “stat” table is around 200mb. Is it possible that this causes problems or can I delete some rows in the “stat” table?
I have around 17 displays for 8 users and 100 layouts