buggregator / server

Buggregator is a lightweight, standalone server that offers a range of debugging features for PHP applications.
https://buggregator.dev/
Other
703 stars 26 forks source link

[BUG][1.8.0] Server crashing when using MongoDB #179

Closed gander closed 6 months ago

gander commented 6 months ago

Version: 1.8.0

With MongoDB:

services:
    buggregator:
        image: ghcr.io/buggregator/server:latest
        depends_on:
            buggregator-db:
                condition: service_healthy
        ports:
            - 127.0.0.1:8000:8000
        environment:
            PERSISTENCE_DRIVER: 'mongodb'
            MONGODB_CONNECTION: 'mongodb://buggregator-db:27017'
            MONGODB_DATABASE: 'buggregator'

    buggregator-db:
        image: mongo:latest
        healthcheck:
            test: [ "CMD-SHELL", "mongosh --eval 'db.runCommand({ping: 1}).ok' || exit 1" ]
            interval: 3s
            timeout: 3s
            retries: 3
buggregator-1  | handle_serve_command: Function call error:
buggregator-1  |        serve error from the plugin *centrifuge.Plugin stopping execution, error: static_pool_allocate_workers: WorkerAllocate: EOF
buggregator-1 exited with code 1

Without DB:

services:
    buggregator:
        image: ghcr.io/buggregator/server:latest
        ports:
            - 127.0.0.1:8000:8000
buggregator-1  | 2024-05-20T08:38:41+0000       ERROR   app             Unable to declare consumer pipeline "memory". Reason: Error 'rpc_declare_pipeline: pipeline already exists, name: local, driver: memory' on tcp://127.0.0.1:6001 [] []
buggregator-1  | 
buggregator-1  | 2024-05-20T08:38:41+0000       ERROR   app             Unable to declare consumer pipeline "memory". Reason: Error 'rpc_declare_pipeline: pipeline already exists, name: local, driver: memory' on tcp://127.0.0.1:6001 [] []
buggregator-1  | 
buggregator-1  | 2024-05-20T08:38:41+0000       ERROR   app             Unable to declare consumer pipeline "memory". Reason: Error 'rpc_declare_pipeline: pipeline already exists, name: local, driver: memory' on tcp://127.0.0.1:6001 [] []
buggregator-1  | 
buggregator-1  | 2024-05-20T08:38:41+0000       ERROR   app             Unable to declare consumer pipeline "memory". Reason: Error 'rpc_declare_pipeline: pipeline already exists, name: local, driver: memory' on tcp://127.0.0.1:6001 [] []
buggregator-1  | 
buggregator-1  | [INFO] RoadRunner server started; version: 2023.3.7, buildtime: 2023-11-30T19:15:58+0000
buggregator-1  | [INFO] sdnotify: not notified
butschster commented 6 months ago

We will be dropping MongoDB support for Buggregator. This decision wasn't easy, but it will allow us to add more exciting features, like grouping similar events for Sentry and XHProf. MongoDB requires a different approach compared to SQL databases, and supporting all databases while adding new features would be too challenging. Thank you for your understanding.

gander commented 6 months ago

I see. Then there is no bug. I'm closing.