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

[Bug-AN]: Production Deployment #8

Open
1 task done
migbash opened this issue May 30, 2024 · 0 comments
Open
1 task done

[Bug-AN]: Production Deployment #8

migbash opened this issue May 30, 2024 · 0 comments
Assignees
Labels
🐞 [A] bug Something isn't working. Needs to be looked at.

Comments

@migbash
Copy link
Collaborator

migbash commented May 30, 2024

Is there an existing issue for this?

  • I have searched the existing issues

🐞 Describe the bug

The production deployment step for the Api-Narratives appears to be not working.

🤔 Expected Behavior

Should be working automatically.

(optional) 🖥️ Console Logs (or similar)

Only detected error, but it is set to be handled by the docker build and ignored.

https://github.com/Betarena/apidatanarratives/actions/runs/9298172552/job/25589586471

[..]
out: make[1]: Entering directory '/***/apidatanarratives'
err: /bin/sh: 2: npx: not found
err: make[1]: *** [Makefile:7: LOG_BOX] Error 127
out: make[1]: Leaving directory '/***/apidatanarratives'
out: #1 [api internal] load build definition from prod.Dockerfile
out: #1 transferring dockerfile: 534B done
out: #1 DONE 0.0s
[..]

(optional) 📌 Additional Information

📆 First detected on:

A while back, in some of the deployments that seem to have not been reflecting the latest changes of the origin/main.

📌 Potential initial theorized cause(s)/solution(s):

  1. Could be due to the npx issue (not present in the VM), but is set to be handled.
  2. Otherwise, needs to investigated.
  3. Or a simple solution is to update the deployment script to use the (below) workaround steps and its fixed.

🩹 Workarounds:

  1. Doing the following:
docker stop betarena-api-backend-api-1
docker rm betarena-api-backend-api-1
(inside `~/apidatanarratives`) :: make docker-compose-start

works and gets the correct cotnainer up and running with the correct latest changes.

@migbash migbash added the 🐞 [A] bug Something isn't working. Needs to be looked at. label May 30, 2024
@migbash migbash self-assigned this May 30, 2024
@migbash migbash moved this to Todo in Betarena Scores May 30, 2024
@jonsnowpt jonsnowpt moved this from Todo to Backlog in Betarena Scores May 31, 2024
@jonsnowpt jonsnowpt assigned jonsnowpt and unassigned migbash May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 [A] bug Something isn't working. Needs to be looked at.
Projects
Status: Backlog
Development

No branches or pull requests

2 participants