btcpayserver / btcpayserver-docker

Docker resources for hosting BTCPayServer easily
MIT License
584 stars 358 forks source link

Getting 503 and 500 Server Error #491

Open duvivek opened 3 years ago

duvivek commented 3 years ago

Hello,

I have set up a BTCPay Server using the below specifications,

Create a folder for BTCPay

mkdir BTCPayServer cd BTCPayServer

Clone this repository

git clone https://github.com/btcpayserver/btcpayserver-docker cd btcpayserver-docker

Run btcpay-setup.sh with the right parameters

export BTCPAY_HOST="btcpay.EXAMPLE.com" export NBITCOIN_NETWORK="mainnet" export BTCPAYGEN_CRYPTO1="btc" export BTCPAYGEN_ADDITIONAL_FRAGMENTS="opt-save-storage-s" export BTCPAYGEN_REVERSEPROXY="nginx" export BTCPAYGEN_LIGHTNING="clightning" export BTCPAY_ENABLE_SSH=true . ./btcpay-setup.sh -i

exit

I have executed all the above cmd. Finally, I'm getting 503 & 500 Server errors.
Also, subdomains are configured. When I access the subdomain address, it was returning 500 Server Errors.

I tried to check the Nginx error logs, Inside the Nginx docker image, I ran this below cmd,

cat var/log/nginx/error.log


But it wasn't displaying any content. 

Then, How can I check the Nginx error log?

Please give me a solution for above the issues.

Thanks.
spidie commented 3 years ago

I'm getting similar issue. The nginx is running inside docker so in order to see the logs you need to do something like "docker logs nginx" to see the log. I think I can see problem in my setup - nginx is failing to connect to upstream ip address - so possibly a docker networking issue. Only happens with https. I will look at it again tonight when I get home - but in the meantime hopefully the docker logs helps you duvivek.

sendbitcoin commented 2 years ago

I am also having issues with Nginx not being able to connect to upstream ip address. (shits fucked, lots of 502, 504 errors doing various things, joule broke, can't update fees using RTL, etc.) see also:

https://github.com/btcpayserver/btcpayserver-docker/issues/543 https://github.com/btcpayserver/btcpayserver-docker/issues/545

This issue seems to be pretty widespread and kinda severe... issue has been open since june... can somebody please look into this?

example from today: Joule shows it can't connect with node, shows link to https://btcpay.sendbitcoin.lol/lnd-rest/btc/v1/getinfo but that only return a 502 error from nginx. after restarting btcpayserver services from gui it seems to be fixed... but it will break again soon

@NicolasDorier @Kukks any ideas what is causing these nginx errors? ever since these issues btcpay has become very unreliable :(

sendbitcoin commented 2 years ago

after updating btcpayserver to 1.4.5 this issue seems to be fixed for me

Delitants commented 2 years ago

No it's not fixed. After installation of last version via docker configurator on Ubuntu 20, getting 500 Internal Server Error nginx out of the box on https://, but not on http:// And where log is suppose to be seen? Nothing in /var/log/

CoReYeDe commented 1 year ago

Any Updates? I have the same Issue.. Running on different Ports than 80 and 443 and only http is workíng.. https get 500-Error and no Logs..

Delitants commented 1 year ago

Any Updates? I have the same Issue.. Running on different Ports than 80 and 443 and only http is workíng.. https get 500-Error and no Logs..

Sorry I can’t remember how I’ve fixed it. Try reinstall from scratch.

goolloob commented 1 year ago

Is the problem solved? I also have this problem http can be accessed, but let me go to https, when I go to https, give me a 500 prompt