UnamSanctam / UnamWebPanel

MIT License
175 stars 58 forks source link

No miners in panel #242

Open Serasar opened 1 year ago

Serasar commented 1 year ago

No miners shown in panel and I don't know why. Checked the following:

shainodev commented 1 year ago

do u mean you opened it on other peoples pcs or u tested it on ur own?

UnamSanctam commented 1 year ago

Make sure you're using the correct http/https. And also try making/saving a configuration inside the "Configurations" tab just to make sure it's writable.

Serasar commented 1 year ago

I've checked writability using "Configurations" tab. Endpoint have correct https

UnamSanctam commented 1 year ago

I've checked writability using "Configurations" tab. Endpoint have correct https

And you have a certificate (since you're using https)? Also make sure that PHP is 7.4 or newer. If you're using Apache then check the Apache access logs.

Serasar commented 1 year ago

Yes cert from let's encrypt, checked, it's working. PHP is 8.1 Strange error in apache error.log: [Tue Feb 21 12:24:53.148697 2023] [php:error] [pid 11585] [client hide_ip:62537] script '/var/www/html/xmlrpc.php' not found or unable to stat

UnamSanctam commented 1 year ago

Make sure you don't have any default Apache example files or anything left. But check your Apache access log (or enable it if disabled), you should then be able to see there if the miner is able to reach it. And you also have https entered in the "API Endpoint URL" inside the miner?

Serasar commented 1 year ago

And you also have https entered in the "API Endpoint URL" inside the miner?

Yes I do have it entered --cinit-api="https://mydomain.tk/api/endpoint.php"

Serasar commented 1 year ago

Turned it out it didn't want to send pings from my OS. Tried it on other windows and it worked

neoandersen commented 1 year ago

I have the same situation. Apache2 works fine, there was an error in the log folder, I gave rights 777. There seems to be no more errors. The panel does not show the miner, the pool takes the load. API is prescribed correctly, configuration too. Configuration profiles are saved correctly.

UnamSanctam commented 1 year ago

I have the same situation. Apache2 works fine, there was an error in the log folder, I gave rights 777. There seems to be no more errors. The panel does not show the miner, the pool takes the load. API is prescribed correctly, configuration too. Configuration profiles are saved correctly.

Sounds like the miner can't contact your website, make sure you're using the correct address and that nothing in your computer (or server) is blocking anything. Also try it on another computer.

neoandersen commented 1 year ago

I have the same situation. Apache2 works fine, there was an error in the log folder, I gave rights 777. There seems to be no more errors. The panel does not show the miner, the pool takes the load. API is prescribed correctly, configuration too. Configuration profiles are saved correctly.

Sounds like the miner can't contact your website, make sure you're using the correct address and that nothing in your computer (or server) is blocking anything. Also try it on another computer.

The links are all correct. ufw status is correct, the server is not blocking port 80. try to recreate?

UnamSanctam commented 1 year ago

And you're using the correct protocol (http or https)? And are you connecting to the endpoint (http://website.com/api/endpoint.php)? And have you tested connecting to it using cURL to see if it responds that way?

There are essentially three things that could be the problem 1) URL is wrong 2) Computer cannot contact the server 3) Server does not accept the connection

You can check the Apache access log to see if the miner connection is in the log.

neoandersen commented 1 year ago

Re-created the build. It all worked!

UnamSanctam commented 1 year ago

Alright great, good luck with your mining.

neoandersen commented 1 year ago

I have a suggestion, it would be useful to integrate adding a link for iploger, it is useful to track the work of the builds. And clipper integration for address spoofing would be good.

UnamSanctam commented 1 year ago

You can add a link for an IPLogger inside the "Remote Configuration" though that will call it every 100 minutes which could be a downside. I probably won't add a clipper, I did finish a UnamCrypoClipper project but I haven't released it because I was asked not to by quite a few people due to its negative effects on crypto.

neoandersen commented 1 year ago

You can add a link for an IPLogger inside the "Remote Configuration" though that will call it every 100 minutes which could be a downside. I probably won't add a clipper, I did finish a UnamCrypoClipper project but I haven't released it because I was asked not to by quite a few people due to its negative effects on crypto.

In principle, IPLoger is not important. Incoming streams will be visible anyway.