The Knex timeouts happen even when not trying to get the invoice.
I think the first thing I need to establish is: what should it say down at the bottom if LNBits is configured properly as the payment processor? Currently it says "powered by ZBD."
After that I should be able to debug the timeouts. Maybe first I could get some help confirming what the expected format is for the base URL and callback URL? is it:
https://lnbits.thefockinfury.wtf/api/v1/ ? or just https://lnbits.thefockinfury.wtf/? Tried a couple options...
Similarly... my callback is https://relay.thefockinfury.wtf/callbacks/lnbits
-- is that right?
I'm sure there's something messed up with my redis container or something to be causing those Knex timeouts. This is my docker-compose if helpful:
I am simultaneously grateful and also thoroughly embarrassed for missing that line 😅 - thank you sir!
Still seeing a bit of weirdness: https://relay.thefockinfury.wtf now shows a paywall (!!) but it still says 'powered by ZBD,' and inputting my pubkey and proceeding to payment just times out. I must be either still missing something in my settings or maybe configuring LNBits improperly...
I'm also still getting those errors related to Knex timeouts in the console, but I think I can debug those later...
Did that a few times to no avail. Is there an obvious first place to look for clues?
I do sometimes get this error in the console--not sure whether that's related or something I need to troubleshoot later:
```
Node.js v18.14.2
Unable to get pending invoices. KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
at Client_PG.acquireConnection (/app/node_modules/knex/lib/client.js:312:26)
at async Runner.ensureConnection (/app/node_modules/knex/lib/execution/runner.js:287:28)
at async Runner.run (/app/node_modules/knex/lib/execution/runner.js:30:19)
at async InvoiceRepository.findPendingInvoices (/app/src/repositories/invoice-repository.js:39:28)
at async PaymentsService.getPendingInvoices (/app/src/services/payments-service.js:30:20)
at async MaintenanceWorker.onSchedule (/app/src/app/maintenance-worker.js:34:26) {
sql: undefined,
bindings: undefined
}
/app/src/app/maintenance-worker.js:66
throw error;
^
KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
at Client_PG.acquireConnection (/app/node_modules/knex/lib/client.js:312:26)
at async Runner.ensureConnection (/app/node_modules/knex/lib/execution/runner.js:287:28)
at async Runner.run (/app/node_modules/knex/lib/execution/runner.js:30:19)
at async InvoiceRepository.findPendingInvoices (/app/src/repositories/invoice-repository.js:39:28)
at async PaymentsService.getPendingInvoices (/app/src/services/payments-service.js:30:20)
at async MaintenanceWorker.onSchedule (/app/src/app/maintenance-worker.js:34:26) {
sql: undefined,
bindings: undefined
}
```
Hey #[0] #[1] maybe one of you can help me with another smooth-brain relay question. I deployed nostream, enabled payments, set up my LNBits URL and API key, i see the friendly splash screen in the container's logs indicating that payments are enabled... but I'm not seeing the paywall on https://relay.thefockinfury.wtf. Shouldn't I see a form that captures the user's npub and captures payment? Or do I need to make some additional config changes somewhere?

Conspiracy theory: woz is Satoshi 
Oh SHIT lol that's straight fire! DEPLOYED
d'oh, seeing a 404 there. It's probably me. But it looks very exciting indeed.
Excellent! Honestly were it not for Portainer I don't know if I'd have gotten the push I needed to jump into the deep end and start messing with self-hosting seriously. It really helped me understand Docker. I wasn't doing any of this shit just three months ago.
I will say, I hope one day we can see an 'official' Nostream image on docker hub. I'm slightly nervous about trusting this third-party image and am pretty sure it'll fall out of date eventually. But for now... hell yes, LFG
One-click deploy of #[0] #Nostream via docker-compose for smooth brains like me? Yes please.
https://github.com/vimagick/dockerfiles/tree/master/nostream
With this pre-baked image I can deploy & administer a Nostream relay via Portainer like all my other self-hosted apps. Not that it's *that* much easier than running the script as in Cameri/nostream, but this helps it fit in with my workflow for everything else in my homelab.
Cool.
Barkeepers friend is the shit. Definitely necessary for cookware that isn’t Teflon!
The main reason I talk about scuffing is that my set of all clad pans was expensive as fucc and and I just want to keep them looking nice 😂
They’re more or less the same: great heat distribution and retention, pretty poor non-stick performance unless you use them *just so*.
The thing I hate about stainless steel pans is that they can get scratched up if you scrub or scrape them too hard. They’re too precious. Cast iron pans don’t show their wear as much.
Come on be nice you don’t want to hurt Satoshi’s feelings 😂
#[0] explain Einstein’s theory of special relativity in the voice of Macho Man Randy Savage
In this case, correlation kinda does equal causation. See source.
1. airline safety increased (statistically significant) after regulation in the 1930s-40s
2. rate of airline safety improvements decreased (statistically significant) after de-regulation in the 1970s.
This isn't to say that de-regulation is bad, but regulation could probably be more targeted and effective.
https://pdxscholar.library.pdx.edu/cgi/viewcontent.cgi?article=2296&context=open_access_etds
Can’t really argue with the safety record tho
¿Por que no los dos?




