SilentCryptoMiner icon indicating copy to clipboard operation
SilentCryptoMiner copied to clipboard

Miner wont connect to HTTPS endpoint

Open Bartixxx32 opened this issue 2 years ago • 19 comments

Hello, i have added 2 api endpoint to miner config https://xxxx.ct8.pl/api/endpoint.php,http://xxxx.5v.pl/api/endpoint.php

for obvious reason i hided the url above

both are on other providers, and before installing cert it was connecting fine to this first xxx.ct8.pl, after i generated cert and tested, (i can access endpoint.php locally image

But miner anyways choose second url without https and using it, im doing somentig wrong? becouse i dont think it picking api endpoint randomly, i guess it considered first as down and switched to second endpoint.

Bartixxx32 avatar May 22 '22 17:05 Bartixxx32

It will go to the second one if it's unable to contact the first one, since you said it worked before you added the certificate then something with that is probably the issue (the certificate). Which certificate authority did you get it from?

UnamSanctam avatar May 22 '22 17:05 UnamSanctam

LetsEncrypt

Bartixxx32 avatar May 22 '22 17:05 Bartixxx32

can i directly contact to you or email? i can give you url for tests etc if want

Bartixxx32 avatar May 22 '22 17:05 Bartixxx32

Sure you can contact me at [email protected].

UnamSanctam avatar May 22 '22 17:05 UnamSanctam

ok i have sended email, idk where you want to conversate about it, here or on email. I think here is easier

Bartixxx32 avatar May 22 '22 17:05 Bartixxx32

I am also facing the same issue. Let me know if it was resolved.

ahsanzahid3 avatar May 22 '22 18:05 ahsanzahid3

tbh i do not have any ideas for it, i can only provide php logs to you if you want

Bartixxx32 avatar May 22 '22 19:05 Bartixxx32

That URL should work fine (and I use Let's Encrypt for me test servers as well), what happens if you build it with only the first URL?

UnamSanctam avatar May 22 '22 19:05 UnamSanctam

I tired it before, just mining, and i dont saw it on panel

Bartixxx32 avatar May 22 '22 20:05 Bartixxx32

Does it work if you use http?

UnamSanctam avatar May 23 '22 07:05 UnamSanctam

My issue was resolved by using the previous version of the web panel so it could be an issue with this version.

ahsanzahid3 avatar May 23 '22 14:05 ahsanzahid3

There haven't been any issues (confirmed so far) so it could've been due to your installation of it, try installing the new one again and see what happens.

UnamSanctam avatar May 23 '22 15:05 UnamSanctam

Does it work if you use http?

Sorry for delay, yes using http does work, i can access panel through https as me as user but miner cannot

Bartixxx32 avatar May 25 '22 01:05 Bartixxx32

Btw to not create new issue, is any problem with running panel on custom port? For example i tried to run it on nginx with php on docker on port for example 8085 and it threw me error 500 always

Bartixxx32 avatar May 25 '22 01:05 Bartixxx32

No you can run it on any port, it's technically just a web request. If you're getting error 500 then you have an error somewhere on the server, check if you can see any errors inside the nginx error log file or if there are any error files inside __UNAM_LIB\Logs.

But my builds can contact your https just fine, you should be able to see my miner in the web panel (will show "Unam Sanctam Test").

UnamSanctam avatar May 25 '22 06:05 UnamSanctam

No you can run it on any port, it's technically just a web request. If you're getting error 500 then you have an error somewhere on the server, check if you can see any errors inside the nginx error log file or if there are any error files inside __UNAM_LIB\Logs.

But my builds can contact your https just fine, you should be able to see my miner in the web panel (will show "Unam Sanctam Test").

Yeah, i see it, maybe cartificate got applied after time?, im gonna check it out, maybe somehow my router is blocking traffic, will look at it

Bartixxx32 avatar May 26 '22 18:05 Bartixxx32

ok, i still connot connect to it via https, but gonna look at my router settings

Bartixxx32 avatar May 26 '22 18:05 Bartixxx32

oh, nvm it connected, but for first time it connected to second enpoint without https, and it was as "starting" there, now i see it active on https one

Bartixxx32 avatar May 26 '22 18:05 Bartixxx32

Ok nvm i think thats provider issue or so, sometimes it works, sometimes it just forcing http and would not use https even after reinstall miner, i will just stuck with http then

Bartixxx32 avatar May 29 '22 08:05 Bartixxx32