mynodebtc / mynode

The easiest way to run Bitcoin and Lightning!
Other
649 stars 146 forks source link

BTCPay Server Issue with Mynode #599

Open Trabbtc opened 2 years ago

Trabbtc commented 2 years ago

Hi there, Noob here, completely ignorant about all this stuff, but running my bitcoin node and want to connect to my e/commerce website.

I am using Mynode v 0.2.45 I installed the latest version 1.2.4 of BTCPay Server a couple of days ago and am getting an error and a red dot. When I try to restart the application, there is a message saying there is an error restarting image

I tried Reinstalling the app and also didn't work.

These are the logs> Logs begin at Thu 2021-11-18 05:00:21 CST, end at Thu 2021-11-18 05:05:39 CST. -- Nov 18 05:01:55 myNode systemd[1]: btcpayserver.service: Job btcpayserver.service/start failed with result 'dependency'. Nov 18 05:01:55 myNode systemd[1]: Dependency failed for BTCPayServer service.

Other applications that are showing error are Dojo and Docker, but not sure if it matters.

I have asked Mynode support at telegram and they suggested to check the BTCPayserver github to look for the issue. But they tell me that it doesnt have anything to do with them.

Can you please help?

crystalwinghero commented 2 years ago

I also found the same issue. Dojo and Docker fails, then a few other services like BTCPay server are down as well.

iamcommee commented 2 years ago

@Trabbtc I also have this issue in v0.2.45

For now, you can ssh to your node then restart docker manually with this command.

sudo systemctl restart docker

then check docker container with

 docker ps

NOTE 1 : in mynode dashboard, it still display the error but it works fine (don't worry).

NOTE 2 : If you restart your node, then you have to do it everytime...

I hope they can fix it in next release. 💪

tehelsper commented 2 years ago

Can you share what docker error you are seeing? With those apps not working, I was guessing it's docker related. One other option as a possible longer term fix is to reset docker via the settings page, but that causes some data loss.

I'm curious what is failing that can be fixed by restarting docker after the system has been up for a while.

iamcommee commented 2 years ago

@tehelsper I found docker issue after upgrade mynodebtc version. Because I ssh to my node then try checking docker command

admin@myNode:~ $ docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

And this is the important logs that I guess this is the 100% docker issue some where in mynode_docker_images.sh

https://raw.githubusercontent.com/mynodebtc/mynode/master/rootfs/standard/usr/bin/mynode_docker_images.sh

Screen Shot 2564-11-19 at 12 40 03

That's the reason why I decided to run systemctl restart docker.

Now, I am trying to add systemctl restart docker in mynode_docker_images.sh but I am not sure where is the best position.

So maybe, you could check that file.

Hope, you can fix it soon....

Thanks.

iamcommee commented 2 years ago

@tehelsper I have digged to deep detail a little bit and found that the error start from inside dojo docker-compose.

You can check my gist : https://gist.github.com/iamcommee/d4ea9f25102d41d6bbfe5c12208b98b9

Now this is the running container. I think some container is missing from the list.

Screen Shot 2564-11-19 at 15 06 48

I will try to debug again when I am free.

tehelsper commented 2 years ago

Those logs are very interesting... The first log does appear to show docker has started successfully after a few minutes. Not sure why it failed initially though. Maybe it was prior to the external drive being mounted?

Luckily, the second log also shows that docker is running and building the container and that that Dojo-specific issue will be fixed in the next release.

Trabbtc commented 2 years ago

@tehelsper Hi Taylor, as I said in the original post, all these things are completely foreign for me. Where can I expect to be able to use BTCPay Server again through mynode? Not trying to be rude, just to understand the timings. Thanks

tehelsper commented 2 years ago

@Trabbtc I can't really answer without more info on the specific docker / btc pay server issue that should be visible in the logs for those two services. Both can be found on the status page.

You can also reset Docker via the "Reset Docker" button on the settings page.

Trabbtc commented 2 years ago

docker.txt BTCpayserver.txt see attached

tehelsper commented 2 years ago

@Trabbtc Try Option #2 in this guide and run the following commands. Option 1 won't work if docker isn't running. Resetting docker will likely resolve as well.

https://mynodebtc.github.io/advanced/linux-terminal.html

sudo journalctl -u docker

docker ps

Trabbtc commented 2 years ago

Hi, I am resetting the Docker and getting this message. I haven't touched anything from my raspeberri and SSD. It is connected with the light on

image

Trabbtc commented 2 years ago

ignore this, it is launching now.

Trabbtc commented 2 years ago

Hey Taylor, thanks for this. I have just reset the Docker and now BTCPayserver is with a green dot, hopefully working now (will test later on) cheers

Trabbtc commented 2 years ago

Hey Taylor, It looks like I can´t use mynode and BTCPay Server app for my e-commerce. Is this correct?

I have the same issue as described below (payment step missing), and the explanation from BTCPayserver is that it can´t be done through Mynode.

Can you please confirm that this is the case? If so, are there alternatives for someone with no coding skills?

https://github.com/btcpayserver/btcpayserver/issues/2074

tehelsper commented 2 years ago

The payment step should not be missing. Can you send a screenshot?

I recently added a proxy fix to help with that. https://github.com/mynodebtc/mynode/commit/8423ae6a76fe1845322f3d55c89d574881daaa1c

However, it would be much easier to setup an online store with one of these options.

https://directory.btcpayserver.org/filter/hosts

Trabbtc commented 2 years ago

BTCPayserver Integrations: image

BTC Payserver Pay Button image

BTCPayserver Checkout experience image

Integration in Shopify: image

Manual Payment Methods in Shopify image

In the purchase process:

1) Summary of order: Botton in black means " continue to payment" image

2) Payment: Button in black means " finalise image payment"

3) Loading: " Your order is being processed" image

4) Order confirmation: Here it is basically confirming that I have made the purchase, and the order is finalised. But I was never prompted with the payment option.

image

tehelsper commented 2 years ago

OK, yeah, this has been brought up before but without setting up your own proxy, the default settings allows running your BTC Pay Server instance on your local network and tor.

Trabbtc commented 2 years ago

would be much easier to setup an online store with one of these options.

But if I set up with those options, only on-chain transactions can be possible ,correct?

Can you please confirm if I am going to be able or not to use MyNode to receive lightning payments via BTCPay Server integrations with my website? If so, how can it be done?

Thanks

tehelsper commented 2 years ago

It sounds like some of them may support Lightning payments, but I'm not sure how that is managed.

I know people have set it up before to use BTC Pay for public websites, but it takes setting up your own port forwarding and HTTPS certificates. We don't have a guide yet.

Here is one article discussing it. They ended up choosing Tor because the other route exposes your IP address. https://www.maestreabogados.com/en/btcpay-server-mynode/