Closed ctreffs closed 1 year ago
Good evening,
Hope you are doing well. It seems that we are also facing this issue and after a long debugging session we found out that this might be an error in the documentation, however we aren't really sure. I tried running the project locally to reproduce the error logs we are facing in the server, and this is what we found:
docker error (server error):
xcmetrics-xcmetrics-s-job-1 | 0x40047ed97f
xcmetrics-xcmetrics-s-job-1 | 0x400382917b
xcmetrics-xcmetrics-s-job-1 | 0x4000d6390f, (extension in Queues):Vapor.Application.Queues.driver.getter : Queues.QueuesDriver at /build/.build/checkouts/queues/Sources/Queues/Application+Queues.swift:67
xcmetrics-xcmetrics-s-job-1 | 0x4000d6390f, (extension in Queues):Vapor.Application.Queues.queue(_: Queues.QueueName, logger: Swift.Optional<Logging.Logger>, on: Swift.Optional<NIOCore.EventLoop>) -> Queues.Queue at /build/.build/checkouts/queues/Sources/Queues/Application+Queues.swift:91
xcmetrics-xcmetrics-s-job-1 | 0x4000d63585, (extension in Queues):Vapor.Application.Queues.queue.getter : Queues.Queue at /build/.build/checkouts/queues/Sources/Queues/Application+Queues.swift:61
xcmetrics-xcmetrics-s-job-1 | 0x40011ea3a6, XCMetricsBackendLib.routes(Vapor.Application) throws -> () at /build/Sources/XCMetricsBackendLib/Config/routes.swift:58
xcmetrics-xcmetrics-s-job-1 | 0x40011e8c7f, XCMetricsBackendLib.configure(Vapor.Application) throws -> () at /build/Sources/XCMetricsBackendLib/Config/configure.swift:125
xcmetrics-xcmetrics-s-job-1 | 0x40011ac1c6, main at /build/Sources/XCMetricsBackend/main.swift:27
xcmetrics-xcmetrics-s-job-1 | 0x40061cfc86
xcmetrics-xcmetrics-s-job-1 | 0x400022b2e9
xcmetrics-xcmetrics-s-job-1 | 0xffffffffffffffff
xcmetrics-xcmetrics-s-job-1 | qemu: uncaught target signal 4 (Illegal instruction) - core dumped
and that's also reproducible on local machines, by using the following env variables, where the crash accures because of app.queues.use(...)
not being set. And that's due to XCMETRICS_USE_ASYNC_LOG_PROCESSING being set to 0
which is required by the queues library.
@ecamacho
cc: @joeboyscout04 @bogren
We encountered an issue trying to deploy the latest XCMetrics backend docker image via Google Could Run and are unable to resolve it.
Environment:
Env variables are set to
Google Could Run docker image start failed
Any idea what we could be doing wrong?