Skip to content

Bug: Focalboard database error after upgrade 0.16.0 to 7.2.1 #3891

Closed
@fraschm1998

Description

Steps to reproduce the behavior

Mattermost updated from docker hub (mattermost/focalboard:7.2.1)

Expected behavior

For the update to work

Edition and Platform

  • Edition: Personal Server
  • Version: mattermost/focalboard:7.2.1
  • Browser and OS: Brave/Firefox

Additional context (optional)

Error:

Attaching to focalboard
�[36mfocalboard         |�[0m 2022/08/24 15:36:49 readConfigFile
�[36mfocalboard         |�[0m 2022/08/24 15:36:49 {ServerRoot:http://localhost:8000 Port:8000 DBType:sqlite3 DBConfigString:/data/focalboard.db DBTablePrefix: UseSSL:false SecureCookie:false WebPath:./pack FilesDriver:local FilesS3Config:{AccessKeyID: SecretAccessKey: Bucket: PathPrefix: Region: Endpoint: SSL:false SignV2:false SSE:false Trace:false} FilesPath:/data/files MaxFileSize:0 Telemetry:true TelemetryID: PrometheusAddress: WebhookUpdate:[] Secret: SessionExpireTime:2592000 SessionRefreshTime:18000 LocalOnly:false EnableLocalMode:true LocalModeSocketLocation:/var/tmp/focalboard_local.socket EnablePublicSharedBoards:false FeatureFlags:map[] EnableDataRetention:false DataRetentionDays:0 TeammateNameDisplay:username AuthMode:native LoggingCfgFile: LoggingCfgJSON: AuditCfgFile: AuditCfgJSON: NotifyFreqCardSeconds:0 NotifyFreqBoardSeconds:0}
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:36:49.627 Z] FocalBoard Server                        �[36mcaller�[0m="main/main.go:57" �[36mversion�[0m=7.2.0 �[36medition�[0m=linux �[36mbuild_number�[0m=dev �[36mbuild_date�[0m=n/a �[36mbuild_hash�[0m=720563c170a9aee51c1e51abc8c2feffa4ce34c8
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:36:49.628 Z] connectDatabase                          �[36mcaller�[0m="sqlstore/sqlstore.go:44" �[36mdbType�[0m=sqlite3
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:49.634 Z] Creating migration engine                caller="sqlstore/migrate.go:198"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:49.635 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=14 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:49.635 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:49.635 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=18 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:49.635 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:49.636 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=20 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:49.636 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m 2022/08/24 15:36:49 ==  add_file_info: migrating  ======================================================================
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:49.636 Z] == Applying all remaining migrations ==================== caller="sqlstore/migrate.go:265" current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:49.637 Z] Closing migration engine                 caller="sqlstore/migrate.go:204"
�[36mfocalboard         |�[0m �[31merror�[0m [2022-08-24 15:36:49.637 Z] Table creation / migration failed        �[31mcaller�[0m="sqlstore/sqlstore.go:67" �[31merror�[0m="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m fatal [2022-08-24 15:36:49.637 Z] server.NewStore ERROR                    caller="main/main.go:146" error="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m   main.main
�[36mfocalboard         |�[0m       /go/src/focalboard/server/main/main.go:146
�[36mfocalboard         |�[0m   runtime.main
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/proc.go:250
�[36mfocalboard         |�[0m   runtime.goexit
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/asm_amd64.s:1571
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m 2022/08/24 15:36:50 readConfigFile
�[36mfocalboard         |�[0m 2022/08/24 15:36:50 {ServerRoot:http://localhost:8000 Port:8000 DBType:sqlite3 DBConfigString:/data/focalboard.db DBTablePrefix: UseSSL:false SecureCookie:false WebPath:./pack FilesDriver:local FilesS3Config:{AccessKeyID: SecretAccessKey: Bucket: PathPrefix: Region: Endpoint: SSL:false SignV2:false SSE:false Trace:false} FilesPath:/data/files MaxFileSize:0 Telemetry:true TelemetryID: PrometheusAddress: WebhookUpdate:[] Secret: SessionExpireTime:2592000 SessionRefreshTime:18000 LocalOnly:false EnableLocalMode:true LocalModeSocketLocation:/var/tmp/focalboard_local.socket EnablePublicSharedBoards:false FeatureFlags:map[] EnableDataRetention:false DataRetentionDays:0 TeammateNameDisplay:username AuthMode:native LoggingCfgFile: LoggingCfgJSON: AuditCfgFile: AuditCfgJSON: NotifyFreqCardSeconds:0 NotifyFreqBoardSeconds:0}
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:36:50.574 Z] FocalBoard Server                        �[36mcaller�[0m="main/main.go:57" �[36mversion�[0m=7.2.0 �[36medition�[0m=linux �[36mbuild_number�[0m=dev �[36mbuild_date�[0m=n/a �[36mbuild_hash�[0m=720563c170a9aee51c1e51abc8c2feffa4ce34c8
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:36:50.575 Z] connectDatabase                          �[36mcaller�[0m="sqlstore/sqlstore.go:44" �[36mdbType�[0m=sqlite3
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:50.580 Z] Creating migration engine                caller="sqlstore/migrate.go:198"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:50.582 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=14 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:50.582 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:50.585 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=18 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:50.585 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:50.585 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=20 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:50.585 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:50.586 Z] == Applying all remaining migrations ==================== caller="sqlstore/migrate.go:265" current_version=21
�[36mfocalboard         |�[0m 2022/08/24 15:36:50 ==  add_file_info: migrating  ======================================================================
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:50.587 Z] Closing migration engine                 caller="sqlstore/migrate.go:204"
�[36mfocalboard         |�[0m �[31merror�[0m [2022-08-24 15:36:50.587 Z] Table creation / migration failed        �[31mcaller�[0m="sqlstore/sqlstore.go:67" �[31merror�[0m="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m fatal [2022-08-24 15:36:50.587 Z] server.NewStore ERROR                    caller="main/main.go:146" error="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m   main.main
�[36mfocalboard         |�[0m       /go/src/focalboard/server/main/main.go:146
�[36mfocalboard         |�[0m   runtime.main
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/proc.go:250
�[36mfocalboard         |�[0m   runtime.goexit
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/asm_amd64.s:1571
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m 2022/08/24 15:36:52 readConfigFile
�[36mfocalboard         |�[0m 2022/08/24 15:36:52 {ServerRoot:http://localhost:8000 Port:8000 DBType:sqlite3 DBConfigString:/data/focalboard.db DBTablePrefix: UseSSL:false SecureCookie:false WebPath:./pack FilesDriver:local FilesS3Config:{AccessKeyID: SecretAccessKey: Bucket: PathPrefix: Region: Endpoint: SSL:false SignV2:false SSE:false Trace:false} FilesPath:/data/files MaxFileSize:0 Telemetry:true TelemetryID: PrometheusAddress: WebhookUpdate:[] Secret: SessionExpireTime:2592000 SessionRefreshTime:18000 LocalOnly:false EnableLocalMode:true LocalModeSocketLocation:/var/tmp/focalboard_local.socket EnablePublicSharedBoards:false FeatureFlags:map[] EnableDataRetention:false DataRetentionDays:0 TeammateNameDisplay:username AuthMode:native LoggingCfgFile: LoggingCfgJSON: AuditCfgFile: AuditCfgJSON: NotifyFreqCardSeconds:0 NotifyFreqBoardSeconds:0}
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:36:52.219 Z] FocalBoard Server                        �[36mcaller�[0m="main/main.go:57" �[36mversion�[0m=7.2.0 �[36medition�[0m=linux �[36mbuild_number�[0m=dev �[36mbuild_date�[0m=n/a �[36mbuild_hash�[0m=720563c170a9aee51c1e51abc8c2feffa4ce34c8
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:36:52.220 Z] connectDatabase                          �[36mcaller�[0m="sqlstore/sqlstore.go:44" �[36mdbType�[0m=sqlite3
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:52.225 Z] Creating migration engine                caller="sqlstore/migrate.go:198"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:52.226 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=14 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:52.226 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:52.226 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=18 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:52.226 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:52.226 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=20 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:52.226 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:52.227 Z] == Applying all remaining migrations ==================== caller="sqlstore/migrate.go:265" current_version=21
�[36mfocalboard         |�[0m 2022/08/24 15:36:52 ==  add_file_info: migrating  ======================================================================
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:52.228 Z] Closing migration engine                 caller="sqlstore/migrate.go:204"
�[36mfocalboard         |�[0m �[31merror�[0m [2022-08-24 15:36:52.228 Z] Table creation / migration failed        �[31mcaller�[0m="sqlstore/sqlstore.go:67" �[31merror�[0m="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m fatal [2022-08-24 15:36:52.228 Z] server.NewStore ERROR                    caller="main/main.go:146" error="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m   main.main
�[36mfocalboard         |�[0m       /go/src/focalboard/server/main/main.go:146
�[36mfocalboard         |�[0m   runtime.main
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/proc.go:250
�[36mfocalboard         |�[0m   runtime.goexit
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/asm_amd64.s:1571
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m 2022/08/24 15:36:53 readConfigFile
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:36:53.392 Z] FocalBoard Server                        �[36mcaller�[0m="main/main.go:57" �[36mversion�[0m=7.2.0 �[36medition�[0m=linux �[36mbuild_number�[0m=dev �[36mbuild_date�[0m=n/a �[36mbuild_hash�[0m=720563c170a9aee51c1e51abc8c2feffa4ce34c8
�[36mfocalboard         |�[0m 2022/08/24 15:36:53 {ServerRoot:http://localhost:8000 Port:8000 DBType:sqlite3 DBConfigString:/data/focalboard.db DBTablePrefix: UseSSL:false SecureCookie:false WebPath:./pack FilesDriver:local FilesS3Config:{AccessKeyID: SecretAccessKey: Bucket: PathPrefix: Region: Endpoint: SSL:false SignV2:false SSE:false Trace:false} FilesPath:/data/files MaxFileSize:0 Telemetry:true TelemetryID: PrometheusAddress: WebhookUpdate:[] Secret: SessionExpireTime:2592000 SessionRefreshTime:18000 LocalOnly:false EnableLocalMode:true LocalModeSocketLocation:/var/tmp/focalboard_local.socket EnablePublicSharedBoards:false FeatureFlags:map[] EnableDataRetention:false DataRetentionDays:0 TeammateNameDisplay:username AuthMode:native LoggingCfgFile: LoggingCfgJSON: AuditCfgFile: AuditCfgJSON: NotifyFreqCardSeconds:0 NotifyFreqBoardSeconds:0}
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:36:53.393 Z] connectDatabase                          �[36mcaller�[0m="sqlstore/sqlstore.go:44" �[36mdbType�[0m=sqlite3
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:53.399 Z] Creating migration engine                caller="sqlstore/migrate.go:198"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:53.400 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=14 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:53.400 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:53.401 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=18 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:53.401 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:53.401 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=20 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:53.401 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:53.402 Z] == Applying all remaining migrations ==================== caller="sqlstore/migrate.go:265" current_version=21
�[36mfocalboard         |�[0m 2022/08/24 15:36:53 ==  add_file_info: migrating  ======================================================================
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:53.403 Z] Closing migration engine                 caller="sqlstore/migrate.go:204"
�[36mfocalboard         |�[0m �[31merror�[0m [2022-08-24 15:36:53.403 Z] Table creation / migration failed        �[31mcaller�[0m="sqlstore/sqlstore.go:67" �[31merror�[0m="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m fatal [2022-08-24 15:36:53.403 Z] server.NewStore ERROR                    caller="main/main.go:146" error="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m   main.main
�[36mfocalboard         |�[0m       /go/src/focalboard/server/main/main.go:146
�[36mfocalboard         |�[0m   runtime.main
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/proc.go:250
�[36mfocalboard         |�[0m   runtime.goexit
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/asm_amd64.s:1571
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m 2022/08/24 15:36:54 readConfigFile
�[36mfocalboard         |�[0m 2022/08/24 15:36:54 {ServerRoot:http://localhost:8000 Port:8000 DBType:sqlite3 DBConfigString:/data/focalboard.db DBTablePrefix: UseSSL:false SecureCookie:false WebPath:./pack FilesDriver:local FilesS3Config:{AccessKeyID: SecretAccessKey: Bucket: PathPrefix: Region: Endpoint: SSL:false SignV2:false SSE:false Trace:false} FilesPath:/data/files MaxFileSize:0 Telemetry:true TelemetryID: PrometheusAddress: WebhookUpdate:[] Secret: SessionExpireTime:2592000 SessionRefreshTime:18000 LocalOnly:false EnableLocalMode:true LocalModeSocketLocation:/var/tmp/focalboard_local.socket EnablePublicSharedBoards:false FeatureFlags:map[] EnableDataRetention:false DataRetentionDays:0 TeammateNameDisplay:username AuthMode:native LoggingCfgFile: LoggingCfgJSON: AuditCfgFile: AuditCfgJSON: NotifyFreqCardSeconds:0 NotifyFreqBoardSeconds:0}
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:36:54.906 Z] FocalBoard Server                        �[36mcaller�[0m="main/main.go:57" �[36mversion�[0m=7.2.0 �[36medition�[0m=linux �[36mbuild_number�[0m=dev �[36mbuild_date�[0m=n/a �[36mbuild_hash�[0m=720563c170a9aee51c1e51abc8c2feffa4ce34c8
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:36:54.907 Z] connectDatabase                          �[36mcaller�[0m="sqlstore/sqlstore.go:44" �[36mdbType�[0m=sqlite3
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:54.912 Z] Creating migration engine                caller="sqlstore/migrate.go:198"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:54.913 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=14 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:54.913 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:54.913 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=18 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:54.913 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:54.913 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=20 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:54.913 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:54.914 Z] == Applying all remaining migrations ==================== caller="sqlstore/migrate.go:265" current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:54.915 Z] Closing migration engine                 caller="sqlstore/migrate.go:204"
�[36mfocalboard         |�[0m �[31merror�[0m [2022-08-24 15:36:54.915 Z] Table creation / migration failed        �[31mcaller�[0m="sqlstore/sqlstore.go:67" �[31merror�[0m="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m 2022/08/24 15:36:54 ==  add_file_info: migrating  ======================================================================
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m fatal [2022-08-24 15:36:54.915 Z] server.NewStore ERROR                    caller="main/main.go:146" error="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m   main.main
�[36mfocalboard         |�[0m       /go/src/focalboard/server/main/main.go:146
�[36mfocalboard         |�[0m   runtime.main
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/proc.go:250
�[36mfocalboard         |�[0m   runtime.goexit
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/asm_amd64.s:1571
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m 2022/08/24 15:36:57 readConfigFile
�[36mfocalboard         |�[0m 2022/08/24 15:36:57 {ServerRoot:http://localhost:8000 Port:8000 DBType:sqlite3 DBConfigString:/data/focalboard.db DBTablePrefix: UseSSL:false SecureCookie:false WebPath:./pack FilesDriver:local FilesS3Config:{AccessKeyID: SecretAccessKey: Bucket: PathPrefix: Region: Endpoint: SSL:false SignV2:false SSE:false Trace:false} FilesPath:/data/files MaxFileSize:0 Telemetry:true TelemetryID: PrometheusAddress: WebhookUpdate:[] Secret: SessionExpireTime:2592000 SessionRefreshTime:18000 LocalOnly:false EnableLocalMode:true LocalModeSocketLocation:/var/tmp/focalboard_local.socket EnablePublicSharedBoards:false FeatureFlags:map[] EnableDataRetention:false DataRetentionDays:0 TeammateNameDisplay:username AuthMode:native LoggingCfgFile: LoggingCfgJSON: AuditCfgFile: AuditCfgJSON: NotifyFreqCardSeconds:0 NotifyFreqBoardSeconds:0}
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:36:57.198 Z] FocalBoard Server                        �[36mcaller�[0m="main/main.go:57" �[36mversion�[0m=7.2.0 �[36medition�[0m=linux �[36mbuild_number�[0m=dev �[36mbuild_date�[0m=n/a �[36mbuild_hash�[0m=720563c170a9aee51c1e51abc8c2feffa4ce34c8
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:36:57.199 Z] connectDatabase                          �[36mcaller�[0m="sqlstore/sqlstore.go:44" �[36mdbType�[0m=sqlite3
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:57.202 Z] Creating migration engine                caller="sqlstore/migrate.go:198"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:57.203 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=14 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:57.203 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:57.203 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=18 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:57.203 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:57.204 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=20 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:57.204 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:57.204 Z] == Applying all remaining migrations ==================== caller="sqlstore/migrate.go:265" current_version=21
�[36mfocalboard         |�[0m 2022/08/24 15:36:57 ==  add_file_info: migrating  ======================================================================
�[36mfocalboard         |�[0m debug [2022-08-24 15:36:57.205 Z] Closing migration engine                 caller="sqlstore/migrate.go:204"
�[36mfocalboard         |�[0m �[31merror�[0m [2022-08-24 15:36:57.205 Z] Table creation / migration failed        �[31mcaller�[0m="sqlstore/sqlstore.go:67" �[31merror�[0m="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m fatal [2022-08-24 15:36:57.205 Z] server.NewStore ERROR                    caller="main/main.go:146" error="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m   main.main
�[36mfocalboard         |�[0m       /go/src/focalboard/server/main/main.go:146
�[36mfocalboard         |�[0m   runtime.main
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/proc.go:250
�[36mfocalboard         |�[0m   runtime.goexit
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/asm_amd64.s:1571
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m 2022/08/24 15:37:01 readConfigFile
�[36mfocalboard         |�[0m 2022/08/24 15:37:01 {ServerRoot:http://localhost:8000 Port:8000 DBType:sqlite3 DBConfigString:/data/focalboard.db DBTablePrefix: UseSSL:false SecureCookie:false WebPath:./pack FilesDriver:local FilesS3Config:{AccessKeyID: SecretAccessKey: Bucket: PathPrefix: Region: Endpoint: SSL:false SignV2:false SSE:false Trace:false} FilesPath:/data/files MaxFileSize:0 Telemetry:true TelemetryID: PrometheusAddress: WebhookUpdate:[] Secret: SessionExpireTime:2592000 SessionRefreshTime:18000 LocalOnly:false EnableLocalMode:true LocalModeSocketLocation:/var/tmp/focalboard_local.socket EnablePublicSharedBoards:false FeatureFlags:map[] EnableDataRetention:false DataRetentionDays:0 TeammateNameDisplay:username AuthMode:native LoggingCfgFile: LoggingCfgJSON: AuditCfgFile: AuditCfgJSON: NotifyFreqCardSeconds:0 NotifyFreqBoardSeconds:0}
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:37:01.301 Z] FocalBoard Server                        �[36mcaller�[0m="main/main.go:57" �[36mversion�[0m=7.2.0 �[36medition�[0m=linux �[36mbuild_number�[0m=dev �[36mbuild_date�[0m=n/a �[36mbuild_hash�[0m=720563c170a9aee51c1e51abc8c2feffa4ce34c8
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:37:01.302 Z] connectDatabase                          �[36mcaller�[0m="sqlstore/sqlstore.go:44" �[36mdbType�[0m=sqlite3
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:01.308 Z] Creating migration engine                caller="sqlstore/migrate.go:198"
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:01.310 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=14 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:01.310 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:01.310 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=18 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:01.310 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:01.310 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=20 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:01.310 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m 2022/08/24 15:37:01 ==  add_file_info: migrating  ======================================================================
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:01.311 Z] == Applying all remaining migrations ==================== caller="sqlstore/migrate.go:265" current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:01.312 Z] Closing migration engine                 caller="sqlstore/migrate.go:204"
�[36mfocalboard         |�[0m �[31merror�[0m [2022-08-24 15:37:01.312 Z] Table creation / migration failed        �[31mcaller�[0m="sqlstore/sqlstore.go:67" �[31merror�[0m="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m fatal [2022-08-24 15:37:01.312 Z] server.NewStore ERROR                    caller="main/main.go:146" error="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m   main.main
�[36mfocalboard         |�[0m       /go/src/focalboard/server/main/main.go:146
�[36mfocalboard         |�[0m   runtime.main
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/proc.go:250
�[36mfocalboard         |�[0m   runtime.goexit
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/asm_amd64.s:1571
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m 2022/08/24 15:37:08 readConfigFile
�[36mfocalboard         |�[0m 2022/08/24 15:37:08 {ServerRoot:http://localhost:8000 Port:8000 DBType:sqlite3 DBConfigString:/data/focalboard.db DBTablePrefix: UseSSL:false SecureCookie:false WebPath:./pack FilesDriver:local FilesS3Config:{AccessKeyID: SecretAccessKey: Bucket: PathPrefix: Region: Endpoint: SSL:false SignV2:false SSE:false Trace:false} FilesPath:/data/files MaxFileSize:0 Telemetry:true TelemetryID: PrometheusAddress: WebhookUpdate:[] Secret: SessionExpireTime:2592000 SessionRefreshTime:18000 LocalOnly:false EnableLocalMode:true LocalModeSocketLocation:/var/tmp/focalboard_local.socket EnablePublicSharedBoards:false FeatureFlags:map[] EnableDataRetention:false DataRetentionDays:0 TeammateNameDisplay:username AuthMode:native LoggingCfgFile: LoggingCfgJSON: AuditCfgFile: AuditCfgJSON: NotifyFreqCardSeconds:0 NotifyFreqBoardSeconds:0}
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:37:08.421 Z] FocalBoard Server                        �[36mcaller�[0m="main/main.go:57" �[36mversion�[0m=7.2.0 �[36medition�[0m=linux �[36mbuild_number�[0m=dev �[36mbuild_date�[0m=n/a �[36mbuild_hash�[0m=720563c170a9aee51c1e51abc8c2feffa4ce34c8
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:37:08.422 Z] connectDatabase                          �[36mcaller�[0m="sqlstore/sqlstore.go:44" �[36mdbType�[0m=sqlite3
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:08.427 Z] Creating migration engine                caller="sqlstore/migrate.go:198"
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:08.428 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=14 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:08.428 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:08.429 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=18 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:08.429 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:08.429 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=20 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:08.429 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:08.430 Z] == Applying all remaining migrations ==================== caller="sqlstore/migrate.go:265" current_version=21
�[36mfocalboard         |�[0m 2022/08/24 15:37:08 ==  add_file_info: migrating  ======================================================================
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:08.431 Z] Closing migration engine                 caller="sqlstore/migrate.go:204"
�[36mfocalboard         |�[0m �[31merror�[0m [2022-08-24 15:37:08.431 Z] Table creation / migration failed        �[31mcaller�[0m="sqlstore/sqlstore.go:67" �[31merror�[0m="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m fatal [2022-08-24 15:37:08.431 Z] server.NewStore ERROR                    caller="main/main.go:146" error="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m   main.main
�[36mfocalboard         |�[0m       /go/src/focalboard/server/main/main.go:146
�[36mfocalboard         |�[0m   runtime.main
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/proc.go:250
�[36mfocalboard         |�[0m   runtime.goexit
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/asm_amd64.s:1571
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m 2022/08/24 15:37:22 readConfigFile
�[36mfocalboard         |�[0m 2022/08/24 15:37:22 {ServerRoot:http://localhost:8000 Port:8000 DBType:sqlite3 DBConfigString:/data/focalboard.db DBTablePrefix: UseSSL:false SecureCookie:false WebPath:./pack FilesDriver:local FilesS3Config:{AccessKeyID: SecretAccessKey: Bucket: PathPrefix: Region: Endpoint: SSL:false SignV2:false SSE:false Trace:false} FilesPath:/data/files MaxFileSize:0 Telemetry:true TelemetryID: PrometheusAddress: WebhookUpdate:[] Secret: SessionExpireTime:2592000 SessionRefreshTime:18000 LocalOnly:false EnableLocalMode:true LocalModeSocketLocation:/var/tmp/focalboard_local.socket EnablePublicSharedBoards:false FeatureFlags:map[] EnableDataRetention:false DataRetentionDays:0 TeammateNameDisplay:username AuthMode:native LoggingCfgFile: LoggingCfgJSON: AuditCfgFile: AuditCfgJSON: NotifyFreqCardSeconds:0 NotifyFreqBoardSeconds:0}
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:37:22.161 Z] FocalBoard Server                        �[36mcaller�[0m="main/main.go:57" �[36mversion�[0m=7.2.0 �[36medition�[0m=linux �[36mbuild_number�[0m=dev �[36mbuild_date�[0m=n/a �[36mbuild_hash�[0m=720563c170a9aee51c1e51abc8c2feffa4ce34c8
�[36mfocalboard         |�[0m �[36minfo�[0m  [2022-08-24 15:37:22.162 Z] connectDatabase                          �[36mcaller�[0m="sqlstore/sqlstore.go:44" �[36mdbType�[0m=sqlite3
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:22.167 Z] Creating migration engine                caller="sqlstore/migrate.go:198"
�[36mfocalboard         |�[0m 2022/08/24 15:37:22 ==  add_file_info: migrating  ======================================================================
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:22.168 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=14 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:22.168 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:22.169 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=18 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:22.169 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:22.169 Z] == Ensuring migrations applied up to version ==================== caller="sqlstore/migrate.go:490" version=20 current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:22.169 Z] -- There is no need of applying any migration -------------------- caller="sqlstore/migrate.go:498"
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:22.169 Z] == Applying all remaining migrations ==================== caller="sqlstore/migrate.go:265" current_version=21
�[36mfocalboard         |�[0m debug [2022-08-24 15:37:22.170 Z] Closing migration engine                 caller="sqlstore/migrate.go:204"
�[36mfocalboard         |�[0m �[31merror�[0m [2022-08-24 15:37:22.170 Z] Table creation / migration failed        �[31mcaller�[0m="sqlstore/sqlstore.go:67" �[31merror�[0m="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m fatal [2022-08-24 15:37:22.170 Z] server.NewStore ERROR                    caller="main/main.go:146" error="driver: sqlite, message: failed when applying migration, command: apply_migration, originalError: UNIQUE constraint failed: schema_migrations.Version, query: 
�[36mfocalboard         |�[0m 
�[36mfocalboard         |�[0m INSERT INTO schema_migrations (Version, Name) VALUES (17, 'add_file_info')
�[36mfocalboard         |�[0m "
�[36mfocalboard         |�[0m   main.main
�[36mfocalboard         |�[0m       /go/src/focalboard/server/main/main.go:146
�[36mfocalboard         |�[0m   runtime.main
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/proc.go:250
�[36mfocalboard         |�[0m   runtime.goexit
�[36mfocalboard         |�[0m       /usr/local/go/src/runtime/asm_amd64.s:1571
�[36mfocalboard         |�[0m 

.schema:http://sprunge.us/xbJ37F

SELECT * FROM schema_migrations;

1|init
2|system_settings_table
3|blocks_rootid
4|auth_table
5|blocks_modifiedby
6|sharing_table
7|workspaces_table
8|teams
9|blocks_history
10|blocks_created_by
11|match_collation
12|match_column_collation
13|millisecond_timestamps
14|add_not_null_constraint
15|blocks_history_no_nulls
16|subscriptions_table
17|add_teams_and_boards
18|populate_categories
19|populate_category_blocks
20|create_boards_members_history
21|create_default_board_role

Metadata

Assignees

Labels

BugSomething isn't workingSev/2Issue affects major functionality with a difficult of non-obvious workaround

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions