Last night I tried to get a docker setup going. I created a stack with a fresh MySQL setup and the ortussolutions/contentbox:lucee5 image. I’m 100% certain the MySQL (Maria) is spinning up correctly as I can connect to it separately. It seemed no matter what I tried, I continued to get this error:
ERROR (5.9.1+00767)
java.lang.NullPointerException
/modules/commandbox-migrations/modules/cfmigrations/modules/qb/models/Grammars/AutoDiscover.cfc: line 7
5:
6: function autoDiscoverGrammar() {
7: cfdbinfo( type = "Version", name = "local.dbInfo" );
8:
9: switch ( dbInfo.DATABASE_PRODUCTNAME ) {
called from /modules/commandbox-migrations/modules/cfmigrations/modules/qb/models/Grammars/AutoDiscover.cfc: line 28
called from /modules/commandbox-migrations/modules/cfmigrations/modules/qb/models/Schema/SchemaBuilder.cfc: line 427
called from /modules/commandbox-migrations/modules/cfmigrations/models/QBMigrationManager.cfc: line 170
called from /modules/commandbox-migrations/modules/cfmigrations/models/QBMigrationManager.cfc: line 21
called from /modules/commandbox-migrations/modules/cfmigrations/models/MigrationService.cfc: line 68
called from /modules/commandbox-migrations/commands/migrate/install.cfc: line 23
called from /system/services/CommandService.cfc: line 443
called from /system/services/CommandService.cfc: line 245
called from /system/Shell.cfc: line 862
called from /system/Bootstrap.cfm: line 124
Let me go on to add that while writing this post, I thought "let me try the super-quick, H2, no compose installation instructions y’all have here:
docker run -p 8080:8080 -e EXPRESS=true -e INSTALL=true ortussolutions/contentbox
Now, I am using Windows, because I’m testing locally, but this should work. It does not, however, and gives this error response:
ERROR (5.9.1+00767)
user lacks privilege or object not found: tables in statement [SELECT 1 FROM "information_schema"."tables" WHERE "table_name" = ? AND "table_schema" = ?]
/modules/commandbox-migrations/modules/cfmigrations/modules/qb/models/Grammars/BaseGrammar.cfc: line 116
114: data.query = javacast( "null", "" );
115: if ( !arguments.pretend ) {
116: var q = queryExecute( data.sql, data.bindings, data.options );
117: data.executionTime = getTickCount() - startTick;
118: data.query = isNull( q ) ? javacast( "null", "" ) : q;
called from /modules/commandbox-migrations/modules/cfmigrations/modules/qb/models/Grammars/AutoDiscover.cfc: line 30
called from /modules/commandbox-migrations/modules/cfmigrations/modules/qb/models/Schema/SchemaBuilder.cfc: line 434
called from /modules/commandbox-migrations/modules/cfmigrations/models/QBMigrationManager.cfc: line 170
called from /modules/commandbox-migrations/modules/cfmigrations/models/QBMigrationManager.cfc: line 21
called from /modules/commandbox-migrations/modules/cfmigrations/models/MigrationService.cfc: line 68
called from /modules/commandbox-migrations/commands/migrate/install.cfc: line 23
called from /system/services/CommandService.cfc: line 443
called from /system/services/CommandService.cfc: line 245
called from /system/Shell.cfc: line 862
called from /system/Bootstrap.cfm: line 124
Please note, this is a completely fresh download of the image, too.
Any thoughts on this? I can clean up my original docker-compose.yml for public posting if y’all need to see that for why it fails repeatedly but my concern is that the “quick version” doesn’t work either, in nearly the same place.
I don’t want to use Wordpress! UGH!