Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck booting XCMetricsBackend when deploying using scheduled job #81

Open
hendych opened this issue Feb 21, 2022 · 0 comments
Open

Stuck booting XCMetricsBackend when deploying using scheduled job #81

hendych opened this issue Feb 21, 2022 · 0 comments

Comments

@hendych
Copy link

hendych commented Feb 21, 2022

I encountered issue when deploying using docker-compoese, following the documentation provided.

command: ["./XCMetricsBackend",
                  "queues",
                  "--scheduled",
                  "--env",
                  "production"]

Turns out that the command does not take exec path. In my case I should change to

command: [ "queues",
                  "--scheduled",
                  "--env",
                  "production"]

After change it, in my xcmetrics service, it will stuck when booting and only produce this log

[ NOTICE ] Connecting to xcmetrics in postgresql as xcmetrics password length 15

[ INFO ] Using redis host redis and port 6379

[ INFO ] Starting scheduled jobs worker

I cannot connect to localhost:8080 using browser, even after 10 minutes waiting for the service to boot up.

Is there any change this is because the service boot command is overridden and the service in port 8080 is not started yet?
When I see docker documentation, command property is used to override default command which in XCMetrics Dockerfile is

# Start the Vapor service when the image is run, default to listening on 8080 in production environment
ENTRYPOINT ["./XCMetricsBackend"]
CMD ["serve", "--auto-migrate", "--env", "production", "--hostname", "0.0.0.0", "--port", "8080"]
@hendych hendych changed the title Scheduled Job Deployment Stuck Stuck booting XCMetricsBackend when deploying using scheduled job Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant