8000 Database catalog is initialized twice. This is a bug. · Issue #11 · firebolt-db/firebolt-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Database catalog is initialized twice. This is a bug. #11
Closed
@esadek

Description

@esadek

How can we reproduce the bug (as minimally and precisely as possible)?

I am trying to run the Docker image on Alpine Linux but am seeing the following error:

sudo docker run -i --rm \
         --ulimit memlock=8589934592:8589934592 \
         --security-opt seccomp=unconfined \
         -p 127.0.0.1:3473:3473 \
         -v ./firebolt-core-data:/firebolt-core/volume \
         ghcr.io/firebolt-db/firebolt-core:preview-rc
starting up
OS Name = Linux, OS Version = 6.14.10-orbstack-00291-g1b252bd3edea, OS Architecture = aarch64
Logging information to /firebolt-core/volume/diagnostic_data/logs/firebolt-core.log
Logging errors to /firebolt-core/volume/diagnostic_data/logs/firebolt-core.err.log
Logging information to /firebolt-core/volume/diagnostic_data/logs/firebolt-core.log
Logging errors to /firebolt-core/volume/diagnostic_data/logs/firebolt-core.err.log
Terminating with uncaught exception: Code: 49, e.displayText() = Database catalog is initialized twice. This is a bug., Stack trace (when copying this message, always include the lines below):

0. ? @ 0x14227498 in /firebolt-core/firebolt-core
1. ? @ 0x1292ce64 in /firebolt-core/firebolt-core
2. ? @ 0xbc8d66c in /firebolt-core/firebolt-core
3. ? @ 0xbb9b678 in /firebolt-core/firebolt-core
4. ? @ 0x6c322ec in /firebolt-core/firebolt-core
5. ? @ 0x6c62858 in /firebolt-core/firebolt-core
6. ? @ 0x6c62514 in /firebolt-core/firebolt-core
7. ? @ 0x6c1bcc8 in /firebolt-core/firebolt-core
8. ? @ 0x6c1beac in /firebolt-core/firebolt-core
9. ? @ 0x2229c in /usr/lib/aarch64-linux-gnu/libc.so.6
10. __libc_start_main @ 0x2237c in /usr/lib/aarch64-linux-gnu/libc.so.6
11. ? @ 0x6c1a030 in /firebolt-core/firebolt-core
 (version 3745796b6ec dated Sun 2025-06-22 14:09:47 UTC)
Received fatal signal 6 (Aborted). Signal sent by tkill(2) or tgkill(2) (since Linux 2.4.19) Version: 3745796b6ec (Sun 2025-06-22 14:09:47 UTC), Thread ID: 1, Query ID: unset, Stack trace (when copying this message, always include the lines below):
0. ? @ 0x12973c14 in /firebolt-core/firebolt-core
1. ? @ 0x6c605f8 in /firebolt-core/firebolt-core
2. ? @ 0x14ab7ec4 in /firebolt-core/firebolt-core
3. ? @ 0x14ab75e8 in /firebolt-core/firebolt-core
4. __kernel_rt_sigreturn @ 0xffff8c963868 in ?
5. ? @ 0x87dc1 in /usr/lib/aarch64-linux-gnu/libc.so.6
6. raise @ 0x36980 in /usr/lib/aarch64-linux-gnu/libc.so.6
7. abort @ 0x21ac4 in /usr/lib/aarch64-linux-gnu/libc.so.6
8. ? @ 0x6c6024c in /firebolt-core/firebolt-core
9. ? @ 0x14e3f58c in /firebolt-core/firebolt-core
10. ? @ 0x14e3eb00 in /firebolt-core/firebolt-core
11. ? @ 0x14e3ea5c in /firebolt-core/firebolt-core
12. ? @ 0xbc8d688 in /firebolt-core/firebolt-core
13. ? @ 0xbb9b678 in /firebolt-core/firebolt-core
14. ? @ 0x6c322ec in /firebolt-core/firebolt-core
15. ? @ 0x6c62858 in /firebolt-core/firebolt-core
16. ? @ 0x6c62514 in /firebolt-core/firebolt-core
17. ? @ 0x6c1bcc8 in /firebolt-core/firebolt-core
18. ? @ 0x6c1beac in /firebolt-core/firebolt-core
19. ? @ 0x2229c in /usr/lib/aarch64-linux-gnu/libc.so.6
20. __libc_start_main @ 0x2237c in /usr/lib/aarch64-linux-gnu/libc.so.6
21. ? @ 0x6c1a030 in /firebolt-core/firebolt-core
---
A minidump has been written to '/firebolt-core/volume/diagnostic_data/crash/10b48f05-3f5e-4b4b-d3caf2b8-564e76c0.dmp' within the Firebolt Core Docker container.
Log writer thread has shut down.

What did you expect to happen instead?

I expect the container to run as expected.

What is your configuration?

I'm not using a custom configuration.

Firebolt Core

If using Docker:

$ docker run -it --rm ghcr.io/firebolt-db/firebolt-core:preview-rc --version
4.23.0-pre.0.20250622140947.3745796b6ec1

If using Kubernetes:

$ kubectl exec -ti my-release-firebolt-core-0 -- /firebolt-core/firebolt-core --version
# paste output here

Docker or Kubernetes info

If using Docker:

$ docker info

Client:
 Version:    27.3.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.19.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 1
 Server Version: 27.3.1
 Storage Driver: overlay2
  Backing Filesystem: btrfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 207ad711eabd375a01713109a8a197d197ff6542
 runc version: 7cb363254b69e10320360b63fb73e0ffb5da7bf2
 init version:
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.14.10-orbstack-00291-g1b252bd3edea
 Operating System: Alpine Linux v3.21
 OSType: linux
 Architecture: aarch64
 CPUs: 8
 Total Memory: 7.809GiB
 Name: alpine
 ID: 005ddefb-ce44-44b9-a629-b3a83e259c25
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support

If using Kubernetes:

$ kubectl version
# paste output here

Additional files and information

$ cat firebolt-core.log
2025-06-26 22:37:13.997001+00 <1> {Application} Notice: Successfully used prctl to allow coredumps.
2025-06-26 22:37:14.060214+00 <1> {DatabaseOrdinary (system)} Notice: Total 0 tables and 0 dictionaries.
2025-06-26 22:37:14.060223+00 <1> {DatabaseOrdinary (system)} Notice: Starting up tables.
2025-06-26 22:37:14.060377+00 <1> {AvailabilityZoneDetector} Notice: AZ ID is not configured
2025-06-26 22:37:14.060418+00 <1> {PensieveConnection} Notice: grpc retries enabled with configuration:

        {
            "methodConfig": [
                {
                    "name": [
    { "service": "database.v2.DatabaseService" },
    { "service": "datasource.v1.DataSourceService" },
    { "service": "rbac.v1.RbacService" },
    { "service": "user.v1.UserService" },{ "service": "account.v1.AccountService", "method": "ListAccounts" },
    { "service": "admin.v2.AdminService", "method": "GetAccounts" },
    { "service": "admin.v2.AdminService", "method": "GetStorageAccounts" },
    { "service": "ddl.v1.DDLService", "method": "DropPrivilegeForSchemaObject" },
    { "service": "ddl.v1.DDLService", "method": "DropSchemaObject" },
    { "service": "ddl.v1.DDLService", "method": "DropTable" },
    { "service": "ddl.v1.DDLService", "method": "GetSchemaIfModifiedSince" },
    { "service": "ddl.v1.DDLService", "method": "ListDatabases" },
    { "service": "ddl.v1.DDLService", "method": "SetOwnershipForSchemaObject" },
    { "service": "ddl.v1.DDLService", "method": "SetPrivilegeForSchemaObject" },
    { "service": "ddl.v1.DDLService", "method": "SetSchemaObject" },
    { "service": "dependencies.v1.DependenciesService", "method": "SetAdminDependencyTag" },
    { "service": "dependencies.v1.DependenciesService", "method": "SetDependencyTag" },
    { "service": "dependencies.v1.DependenciesService", "method": "SetDependencyTagInBatch" },
    { "service": "dml.v1.DMLService", "method": "GetTabletsForTables" },
    { "service": "engine.v1.EngineService", "method": "ListEngines" },
    { "service": "engine.v1.EngineService", "method": "ListEnginesIfNotModifiedSince" },
    { "service": "instancetype.v1.InstanceTypesService", "method": "ListInstanceTypes" },
    { "service": "packdbversion.v1.PackDBVersionsService", "method": "ListPackDBVersions" },
    { "service": "transaction.v1.TransactionService", "method": "CloseTransaction" },
    { "service": "transaction.v1.TransactionService", "method": "CommitTransaction" },
    { "service": "transaction.v1.TransactionService", "method": "GetCommittedTransactionJournal" },
    { "service": "transaction.v1.TransactionService", "method": "GetTransactionJournal" },
    { "service": "transaction.v1.TransactionService", "method": "GetTransactionMetadata" },
    { "service": "transaction.v1.TransactionService", "method": "StartAdminTransaction" },
    { "service": "transaction.v1.TransactionService", "method": "StartReadOnlyAdminTransaction" },
    { "service": "transaction.v1.TransactionService", "method": "StartReadOnlyTransaction" },
    { "service": "transaction.v1.TransactionService", "method": "StartReadOnlyTransactionAndGetObjects" },
    { "service": "transaction.v1.TransactionService", "method": "StartReadWriteTransactionAndGetObjects" },
    { "service": "transaction.v1.TransactionService", "method": "StartTransaction" }

                            ],
                    "timeout": "60s",
                    "retryPolicy": {
                        "maxAttempts" : 5,
                        "initialBackoff" : "0.001s",
                        "maxBackoff": "1s",
                        "backoffMultiplier": 100,
                        "retryableStatusCodes": [
                            "UNAVAILABLE",
                            "RESOURCE_EXHAUSTED"
                        ]
                    }
                }
            ]
        }

2025-06-26 22:37:14.060424+00 <1> {PensieveConnection} Notice: Creating grpc channel with endpoint: localhost:6500 ssl_enabled: false, connection_id: 0
2025-06-26 22:37:14.061821+00 <1> {AdmissionController} Notice: Memory Tracker Hard Limit 0, memory tracker available 18446744073688571128
2025-06-26 22:37:14.061888+00 <1> {AdmissionController} Notice: Admission Controller is disabled
2025-06-26 22:37:14.062512+00 <1> {SensitiveDataMaskerConfigRead} Notice: 9 query masking rules loaded.
2025-06-26 22:37:14.062681+00 <1> {Application} Notice: Setting max_server_memory_usage was set to 7.03 GiB (7.81 GiB available * 0.90 max_server_memory_usage_to_ram_ratio, leaving at most arbitrary headroom)
2025-06-26 22:37:14.062749+00 <1> {MemoryPressureMonitor} Notice: Starting MemoryPressureMonitor
2025-06-26 22:37:14.063487+00 <1> {FB::ExtentFileManager*} Notice: Extent files MRU is populated with 0 items.
2025-06-26 22:37:14.063507+00 <1> {FB::ExtentFileManager*} Notice: Primed extent files MRU is populated with 0 items.
2025-06-26 22:37:14.063537+00 <1> {Application} Notice: Shutting down S3 clients.
2025-06-26 22:37:14.063543+00 <1> {Application} Notice: Shutting down extents manager.
2025-06-26 22:37:14.063545+00 <1> {Application} Notice: Shutting down the server.
2025-06-26 22:37:14.063567+00 <1> {FireboltCoreCrashHandler} Notice: Crash handler is shutting down.
2025-06-26 22:37:14.063642+00 <7> {FireboltCoreCrashHandler} Notice: Log writer thread has shut down.
2025-06-26 22:37:14.063951+00 <1> {FireboltCoreStaticExceptionServer} Error: Unable to start query server, exception: An unexpected error has occurred during the server startup and initialization process. Firebolt Core is unable to accept queries. Details:
Cannot open file /proc/pressure/memory, errno: 2, strerror: No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0