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] Deployed on a cloud server using Docker Compose, sign up keeps prompting 'Register failed, Try again' #7080

Open
2 tasks done
JJGGu opened this issue Jan 21, 2025 · 4 comments
Labels
C-bug Category: Bug S-awaiting-triage Status: New issues that have not been assessed yet

Comments

@JJGGu
Copy link

JJGGu commented Jan 21, 2025

Bug Description

Image

Expected Behavior

None

Actual Behavior

None

Steps To Reproduce

  1. git clone https://github.com/juspay/hyperswitch
  2. cd hyperswitch
  3. docker compose up -d

I did such operations on my cloud machine which has a public ip.
I referred this doc https://github.com/juspay/hyperswitch?tab=readme-ov-file#try-hyperswitch

Context For The Bug

I found a similar issue, but the solution of the issue is not worked for me.
#6915

Environment

linux version:
NAME="Alibaba Cloud Linux"
VERSION="3 (OpenAnolis Edition)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
VARIANT="OpenAnolis Edition"
VARIANT_ID="openanolis"
ALINUX_MINOR_ID="2104"
ALINUX_UPDATE_ID="10"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3.2104 U10 (OpenAnolis Edition)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

Have you spent some time checking if this bug has been raised before?

  • I checked and didn't find a similar issue

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

None

@JJGGu JJGGu added C-bug Category: Bug S-awaiting-triage Status: New issues that have not been assessed yet labels Jan 21, 2025
@SanchithHegde
Copy link
Member

Hey @JJGGu, could you confirm if you ran the Docker Compose command from the main branch or did you checkout to the latest tag before running the Docker Compose command?

@JJGGu
Copy link
Author

JJGGu commented Jan 22, 2025

Hey @JJGGu, could you confirm if you ran the Docker Compose command from the main branch or did you checkout to the latest tag before running the Docker Compose command?

@SanchithHegde Thanks! I've confirmed that I am currently on 'latest':

[root@iZt4ndog5gqg6b16qw0nh4Z hyperswitch]# git status
HEAD detached at latest
nothing to commit, working tree clean

Besides, I found a such error, after i docker compose up:

hyperswitch-server-1          | {"hostname":"c2e844bf4e38","pid":1,"env":"sandbox","version":"v1.112.3-dirty-fc75f40-2025-01-20T08:28:43.000000000Z","build":"0.1.0-fc75f40-2025-01-20T08:28:43.000000000Z-1.84.0-release-x86_64-unknown-linux-gnu","level":"INFO","target":"router::middleware","service":"router","line":161,"file":"crates/router/src/middleware.rs","fn":"ROOT_SPAN","full_name":"router::middleware::ROOT_SPAN","time":"2025-01-22T06:33:03.839953068Z","message":"[ROOT_SPAN - END]","request_id":"01948cb6-e45f-7783-9efb-f9c8a889db19","flow":"HealthCheck","extra":{"http.host":"localhost:8080","trace_id":"00000000000000000000000000000000","elapsed_milliseconds":0,"http.target":"/health","golden_log_line":true,"http.client_ip":"127.0.0.1","http.method":"GET","otel.name":"HTTP GET /health","http.scheme":"http","otel.kind":"server","http.route":"/health","http.user_agent":"curl/7.88.1","http.flavor":"1.1"}}
hyperswitch-server-1          | {"hostname":"c2e844bf4e38","pid":1,"env":"sandbox","version":"v1.112.3-dirty-fc75f40-2025-01-20T08:28:43.000000000Z","build":"0.1.0-fc75f40-2025-01-20T08:28:43.000000000Z-1.84.0-release-x86_64-unknown-linux-gnu","level":"INFO","target":"router::routes::health","service":"router","line":18,"file":"crates/router/src/routes/health.rs","fn":"health","full_name":"router::routes::health::health","time":"2025-01-22T06:33:08.920310120Z","message":"[HEALTH - EVENT] Health was called","request_id":"01948cb6-f838-7af0-88e2-4f316002f671","flow":"HealthCheck","extra":{"http.target":"/health","trace_id":"00000000000000000000000000000000","http.flavor":"1.1","http.scheme":"http","http.client_ip":"127.0.0.1","http.user_agent":"curl/7.88.1","otel.kind":"server","otel.name":"HTTP GET /health","http.route":"/health","http.method":"GET","http.host":"localhost:8080"}}
hyperswitch-server-1          | {"hostname":"c2e844bf4e38","pid":1,"env":"sandbox","version":"v1.112.3-dirty-fc75f40-2025-01-20T08:28:43.000000000Z","build":"0.1.0-fc75f40-2025-01-20T08:28:43.000000000Z-1.84.0-release-x86_64-unknown-linux-gnu","level":"INFO","target":"router::middleware","service":"router","line":161,"file":"crates/router/src/middleware.rs","fn":"ROOT_SPAN","full_name":"router::middleware::ROOT_SPAN","time":"2025-01-22T06:33:08.920376750Z","message":"[ROOT_SPAN - END]","request_id":"01948cb6-f838-7af0-88e2-4f316002f671","flow":"HealthCheck","extra":{"trace_id":"00000000000000000000000000000000","http.target":"/health","http.scheme":"http","otel.kind":"server","otel.name":"HTTP GET /health","http.method":"GET","http.host":"localhost:8080","golden_log_line":true,"http.flavor":"1.1","http.client_ip":"127.0.0.1","http.user_agent":"curl/7.88.1","elapsed_milliseconds":0,"http.route":"/health"}}
migration_runner-1            |  Downloading crates ...
migration_runner-1            |   Downloaded diesel_cli v2.1.1
migration_runner-1            |   Installing diesel_cli v2.1.1
migration_runner-1            | error: failed to compile `diesel_cli v2.1.1`, intermediate artifacts can be found at `/tmp/cargo-installl9sEGO`
migration_runner-1            | 
migration_runner-1            | Caused by:
migration_runner-1            |   failed to select a version for the requirement `clap = "^4.0.2"`
migration_runner-1            |   candidate versions found which didn't match: 3.2.25, 3.2.24, 3.2.23, ...
migration_runner-1            |   location searched: crates.io index
migration_runner-1            |   required by package `diesel_cli v2.1.1`
migration_runner-1 exited with code 101
hyperswitch-server-1          | {"hostname":"c2e844bf4e38","pid":1,"env":"sandbox","version":"v1.112.3-dirty-fc75f40-2025-01-20T08:28:43.000000000Z","build":"0.1.0-fc75f40-2025-01-20T08:28:43.000000000Z-1.84.0-release-x86_64-unknown-linux-gnu","level":"INFO","target":"router::routes::health","service":"router","line":18,"file":"crates/router/src/routes/health.rs","fn":"health","full_name":"router::routes::health::health","time":"2025-01-22T06:33:13.966648689Z","message":"[HEALTH - EVENT] Health was called","flow":"HealthCheck","request_id":"01948cb7-0bee-7900-9165-c3150addc1c7","extra":{"otel.kind":"server","http.target":"/health","http.user_agent":"curl/7.88.1","http.host":"localhost:8080","http.method":"GET","http.route":"/health","http.flavor":"1.1","http.scheme":"http","otel.name":"HTTP GET /health","trace_id":"00000000000000000000000000000000","http.client_ip":"127.0.0.1"}}

@SanchithHegde
Copy link
Member

@JJGGu Something seems to be off, we install latest diesel_cli in the migration_runner service, and as of today, that should have been diesel_cli 2.2.6, not 2.1.1.

  • Could you provide the output of git log --oneline --max-count 1?
  • Could you try cleaning up everything using docker compose down, clone the repository again, checkout latest tag and running the Docker Compose setup?

@JJGGu
Copy link
Author

JJGGu commented Jan 22, 2025

@SanchithHegde I changed another cloud machine, and after clone hyperswitch I checkout latest:

[root@iZt4n68pjjbs7excezunr0Z hyperswitch]# git log --oneline --max-count 1
fc75f406b (HEAD, tag: v1.112.3, tag: latest, tag: 2024.12.04.0-hotfix6, origin/hotfix-2024.12.04.0) chore(version): 2024.12.04.0-hotfix6

After i 'docker compose up', it still does not work, and i try to find some err msg:

[root@iZt4n68pjjbs7excezunr0Z hyperswitch]# docker compose logs -f | grep -i errorhyperswitch-web-1             | [0] rescript: [103/202] src/Core__Error.ast
hyperswitch-web-1             | [0] rescript: [104/202] src/Core__Error.iast
hyperswitch-web-1             | [0] rescript: [110/202] src/Core__Error.d
hyperswitch-web-1             | [0] rescript: [116/202] src/Core__Error.cmi
hyperswitch-web-1             | [0] rescript: [122/202] src/Core__Error.cmj
hyperswitch-web-1             | [0] rescript: [146/255] Core__Error.cmt
hyperswitch-web-1             | [0] rescript: [147/255] Core__Error.res
hyperswitch-web-1             | [0] rescript: [148/255] Core__Error.resi
hyperswitch-web-1             | [0] rescript: [149/255] Core__Error.cmti
hyperswitch-web-1             | [0] rescript: [187/255] Core__Error.cmi
hyperswitch-web-1             | [0] rescript: [190/255] Core__Error.cmj
hyperswitch-web-1             | [0] rescript: [73/690] src/Types/PaymentError.ast
hyperswitch-web-1             | [0] rescript: [79/690] src/Types/PaymentError.d
hyperswitch-web-1             | [0] rescript: [271/690] src/Utilities/ErrorUtils.ast
hyperswitch-web-1             | [0] rescript: [277/690] src/Utilities/ErrorUtils.d
hyperswitch-web-1             | [0] rescript: [324/690] src/hyper-log-catcher/ErrorBoundary.ast
hyperswitch-web-1             | [0] rescript: [330/690] src/hyper-log-catcher/ErrorBoundary.d
hyperswitch-web-1             | [0] rescript: [388/690] src/Components/ErrorOccured.ast
hyperswitch-web-1             | [0] rescript: [394/690] src/Components/ErrorOccured.d
hyperswitch-web-1             | [0] rescript: [404/690] src/Components/ErrorOccured-OrcaPaymentPage.cmj
hyperswitch-web-1             | [1] Error: ENXIO: no such device or address, open '/dev/tty'
hyperswitch-web-1             | [0] rescript: [516/690] src/Utilities/ErrorUtils-OrcaPaymentPage.cmj
hyperswitch-web-1             | [0] rescript: [542/690] src/Types/PaymentError-OrcaPaymentPage.cmj
hyperswitch-web-1             | [0] rescript: [572/690] src/hyper-log-catcher/ErrorBoundary-OrcaPaymentPage.cmj
hyperswitch-web-1             | [1] ERROR in ./index.js 1:0-48
hyperswitch-web-1             | [1] Module not found: Error: Can't resolve './src/Index.bs' in '/hyperswitch-web'
hyperswitch-web-1             | [1] ERROR in HyperLoader
hyperswitch-web-1             | [1] Module not found: Error: Can't resolve './src/hyper-loader/HyperLoader.bs.js' in '/hyperswitch-web'
hyperswitch-web-1             | [1] webpack 5.97.1 compiled with 2 errors in 3835 ms
hyperswitch-web-1             | [0]         throw error;
hyperswitch-web-1             | [0] Error: listen EADDRINUSE: address already in use 0.0.0.0:9050
hyperswitch-web-1             | [1] ERROR in ./index.js 1:0-48
hyperswitch-web-1             | [1] Module not found: Error: Can't resolve './src/Index.bs' in '/hyperswitch-web'
hyperswitch-web-1             | [1] webpack 5.97.1 compiled with 1 error in 9877 ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Bug S-awaiting-triage Status: New issues that have not been assessed yet
Projects
None yet
Development

No branches or pull requests

2 participants