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

NBXplorer.Indexer.BTC: Unhandled exception in the indexer, retrying in 10 seconds (no lightning apps; RTL) #383

Open
bartbrand opened this issue Nov 9, 2022 · 18 comments

Comments

@bartbrand
Copy link

I initially installed CLN, but couldn't start RTL nor Spark. Than I switched to LND, but the identical errors occurred.

The dashboard is loading properly. I did make an on chain transaction which went fine.

image

The problem is with the lightning services.

Here are the log files that show what might be going wrong:

image

image

image

image

image

image

image

I still prefer to run BTCPay with CLN (so I still need to switch back from LND -> CLN)

Looking forward to your help in resolving the error with NBXplorer first before I switch back to CLN. Thanks a million for looking into this!

@NicolasDorier
Copy link
Member

NicolasDorier commented Nov 11, 2022

So RTL and lightning apps doesn't rely on NBX. The NBX exception doesn't seem really important as it reconnects shortly after, as it seems the on-chain wallet of btcpay works for you.

@NicolasDorier
Copy link
Member

Concerning lightning, do you confirm that LND is acting as it should? You seem to have access to RTL.
For c-lightning, I need to update soon the container version, but I can't until they fix ElementsProject/lightning#5657

@bartbrand
Copy link
Author

No, RTL is not acting as it should.

Although the RTL icon is there, I do get a re-direct: 404 page not found error (when I click the icon).

That actually is the core of my problem.

@NicolasDorier
Copy link
Member

NicolasDorier commented Nov 13, 2022

@bartbrand first, let's focus on fixing RTL for LND.
Can you try to click on click here on this page https://<youserver>/server/services/rtl/BTC, does it work?

@bartbrand
Copy link
Author

I can go to the link, but it will result in the same 404 error as clicking on the icon from the lighting services page with the RTL icon.

@NicolasDorier
Copy link
Member

@bartbrand can you screenshot me the 404 error that you see?

@NicolasDorier
Copy link
Member

Also are you running any kind of reverse proxy between the server and internet?

@bartbrand
Copy link
Author

Yes, I am running nginx.

@NicolasDorier
Copy link
Member

NicolasDorier commented Nov 14, 2022

@bartbrand can you give me the configuration of your btcpay server? cat $BTCPAY_ENV_FILE check there isn't any password there as well.

Problem is probably coming from your reverse proxy not routing properly. Please also show me a screenshot of the 404 page.

@bartbrand
Copy link
Author

Yes, I am running nginx.

image

@bartbrand
Copy link
Author

and this is the 404 screen when I hit the RTL button ...

image

@bartbrand
Copy link
Author

@NicolasDorier how do you suggest I proceed with this issue?

@NicolasDorier
Copy link
Member

@bartbrand can you ping me directly on https://chat.btcpayserver.org/ ?
This is weird you have this problem. What should happen is that our nginx should redirect the request not to BTCPay but to RTL.

Can you try docker restart nginx-gen, and if it doesn't work I'll need to debug that more interactively with you on the chat.

@NicolasDorier
Copy link
Member

For example, the nginx config that you should find at docker exec nginx cat /etc/nginx/conf.d/default.conf should include this line

        location /rtl/ {
                proxy_pass http://bitcoin_rtl:3000/rtl/;
        }

@bartbrand
Copy link
Author

docker restart nginx-gen didn´t work ...

afbeelding

@NicolasDorier
Copy link
Member

@bartbrand got it.
It is because you probably removed the nginx of btcpay-docker because you wanted to use your own

cat /etc/profile.d/btcpay-env.sh should show me this.

If that's the case, then it's normal you have a 404, it is this nginx that is responsible to route the http request to the proper container.

If you want to use your own reverse proxy, you need to follow this https://docs.btcpayserver.org/FAQ/Deployment/#can-i-use-an-existing-nginx-server-as-a-reverse-proxy-with-ssl-termination

@bartbrand
Copy link
Author

@NicolasDorier
I will give the tutorial you revered to a try.

This is how my nginx is set up now:

afbeelding

@NicolasDorier
Copy link
Member

you excluded the nginx fragment, so it's normal it doesn't work. Our reverse proxy is handling routing.

If you just want to offload https termination, see https://docs.btcpayserver.org/FAQ/Deployment/#can-i-use-an-existing-nginx-server-as-a-reverse-proxy-with-ssl-termination

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants