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 - Cannot deploy ballerine on aws instance #2050

Closed
pratapalakshmi opened this issue Feb 6, 2024 · 7 comments · Fixed by #2122
Closed

Bug - Cannot deploy ballerine on aws instance #2050

pratapalakshmi opened this issue Feb 6, 2024 · 7 comments · Fixed by #2122
Assignees
Labels
bug Something isn't working

Comments

@pratapalakshmi
Copy link
Collaborator

Upon deploying ballerine on AWS
We are seeing the following errors and which causes issues in deploying and using ballerine
image

More details:

BACKOFFICE_CORS_ORIGIN: http://localhost:5137
WORKFLOW_DASHBOARD_CORS_ORIGIN: http://localhost:5200
KYB_EXAMPLE_CORS_ORIGIN: http://localhost:5201

image

@pratapalakshmi pratapalakshmi added the bug Something isn't working label Feb 6, 2024
@pratapalakshmi pratapalakshmi self-assigned this Feb 10, 2024
@TheMatzy
Copy link

Same problem here....

@dzbrody
Copy link

dzbrody commented Feb 13, 2024

We have tried to run on EC2 as well and had a similar issue. Is there instruction somewhere for AWS EC2 or Google cloud?

@CatDTran
Copy link

Same problem. I think if this is run on a remote server and not a local machine, and when we try to connect it from a local machine, the browser try to load http://localhost:3000/api/v1/internal/auth/session, it simply won't work because the browser is trying to connect to localhost which is not where the application is running on. Perhaps, there should be a way to set the domain?

@pratapalakshmi
Copy link
Collaborator Author

@TheMatzy , @CatDTran and @dzbrody We are coming with docs and we shall share it at the earliest.

In the time being i request you to try the following steps.

ubuntu@ip-172-xyx:~/ballerine/deploy$ cat .env
DOMAIN_NAME=gpdev.eu-central-1.ballerine.io
VITE_API_URL=http://<domain>:3000/api/v1/
VITE_KYB_DEFINITION_ID=kyb_parent_kyc_session_example
BACKOFFICE_PORT=5137
HEADLESS_SVC_PORT=5173
WORKFLOW_SVC_PORT=3000
BCRYPT_SALT=10
API_KEY=secret
NODE_ENV=development
COMPOSE_PROJECT_NAME=ballerine-x
DB_PORT=5432
DB_USER=admin
DB_PASSWORD=admin
SESSION_SECRET=secret
SESSION_EXPIRATION_IN_MINUTES=60
BACKOFFICE_CORS_ORIGIN=http://<domain>:5137
WORKFLOW_DASHBOARD_CORS_ORIGIN=http://<domain>:5200
KYB_EXAMPLE_CORS_ORIGIN=http://<domain>:5201
WORKFLOW_DASHBOARD_PORT=5200
WEBSOCKET_SVC_PORT=3500
KYB_APP_PORT=5201
WEBHOOK_SECRET=webhook_secret
APP_API_URL=https://alon.ballerine.dev
EMAIL_API_URL=https://api.sendgrid.com/v3/mail/send
UNIFIED_API_URL=https://unified-api-test.eu.ballerine.app
ENVIRONMENT_NAME=development

Update the client-build

ubuntu@ip-172-xyx:~/ballerine/apps/backoffice-v2$ cat .env.example
VITE_API_URL=http://<domain>:3000/api/v1/internal
VITE_API_KEY=secret
VITE_AUTH_ENABLED=true
VITE_MOCK_SERVER=false
VITE_POLLING_INTERVAL=10
VITE_ASSIGNMENT_POLLING_INTERVAL=5
VITE_FETCH_SIGNED_URL=false

Finally start using

sudo docker-compose -f docker-compose-build.yml up -d

@ludmorales
Copy link

Same problem here in a GCP vm,
Screenshot 2024-02-19 at 00 31 19

@ludmorales
Copy link

Hi team,

After changing from "localhost" to a public IP/Domain in the .env.example file, I see the following error:
Screenshot 2024-02-19 at 09 07 33

@dzbrody
Copy link

dzbrody commented Feb 19, 2024

BACKOFFICE_CORS_ORIGIN=http://:5137
WORKFLOW_DASHBOARD_CORS_ORIGIN=http://:5200
KYB_EXAMPLE_CORS_ORIGIN=http://:5201

What is the definition for KYC, pls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants