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] - Payments taking a long time to clear, or don't clear #342

Open
nQuiz opened this issue Nov 6, 2023 · 1 comment
Open

[BUG] - Payments taking a long time to clear, or don't clear #342

nQuiz opened this issue Nov 6, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@nQuiz
Copy link

nQuiz commented Nov 6, 2023

Hi guys - thanks for making your tool available to the Nostr community!

We'd like to report an issue we have observed with the 'paid relay' feature, which we have deployed to relay.nquiz.io

When we do a fresh deploy, everything works as it should.

But, after some time of usage, generating multiple invoices, of which some are paid, some not, some expired, some not - the relay stops processing payments. So, even though the user has paid the lightning invoice, the relay can't figure it out and the user doesn't get admitted (/invoices page never says "payment successful", QR code remains on screen)

After we notice that this is happening, we perform the following hack:

  1. Launch the docker nostream-db container bash: docker exec -it nostream-db bash
  2. Log in to the DB: psql -U nostr_ts_relay
  3. Remove all of the invoices: delete from invoices;

After these steps, the relay begins to admit users again.

Is this something you are aware of? If so, is there a fix planned, or are there any workarounds we can use?

System:

  • OS: [Ubuntu]
  • Platform: [docker]
@nQuiz nQuiz added the bug Something isn't working label Nov 6, 2023
@cameri
Copy link
Owner

cameri commented Jan 12, 2024

@nQuiz We are going to need more information to understand what is causing the issue.
Which payment processor are you using?
Can you provide us with a count of the number of invoices by status? e.g. SELECT status, COUNT(*) FROM invoices GROUP BY status
Please enable debug logging when this is happening and provide the logs while attempting to pay an invoice. You can enable debug logging by setting the DEBUG environment variable to worker:*. Make sure to disable debug logging once you are done testing.

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

No branches or pull requests

2 participants