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

Fails to start as a GitHub Action Service #541

Closed
leighmcculloch opened this issue Dec 22, 2023 · 2 comments · Fixed by #540
Closed

Fails to start as a GitHub Action Service #541

leighmcculloch opened this issue Dec 22, 2023 · 2 comments · Fixed by #540
Assignees
Labels

Comments

@leighmcculloch
Copy link
Member

leighmcculloch commented Dec 22, 2023

The quickstart image can be used in GitHub Actions workflows by starting the image in a step, but as a Service, for some reason Horizon appears to fail to start.

For example:

   quickstart   | supervisor: 2023-12-22 00:58:55,625 INFO spawned: 'horizon' with pid 618
   quickstart   | supervisor: 2023-12-22 00:58:55,698 INFO exited: horizon (exit status 1; not expected)
   quickstart   | supervisor: 2023-12-22 00:58:55,750 INFO gave up: horizon entered FATAL state, too many start retries too quickly

https://github.com/leighmcculloch/exp-quickstart-in-actions-services/actions/runs/7295600134/job/19882754123

Reported by @chadoh as occurring in this PR:

cc @chadoh

@leighmcculloch
Copy link
Member Author

In the interim it's possible to replace the service with a run step that runs docker run -d ..., where the -d causes it to run in the background. An example:

- run: docker run --rm -d -p "8000:8000" -p "11626:11626" --name stellar stellar/quickstart:testing --local

That is what we do in the quickstart images own tests:

- name: Run Quickstart Image
run: docker run --platform linux/${{ inputs.arch }} --rm -d -p "8000:8000" -p "11626:11626" --name stellar $IMAGE --${{ matrix.network }} ${{ matrix.options }}

@leighmcculloch
Copy link
Member Author

leighmcculloch commented Jan 3, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant