Creepsky/creepMiner

Starting creepMiner with `start` in console makes webserver inaccessible [windows]

ohager opened this issue · 1 comments

Subject of the issue

Starting creepMiner using call/start in console makes webserver inaccessible

Your environment

  • Versions
  • Windows 10 Pro.

Steps to reproduce

Open console (cmd, powershell, cmder and even as admin) and call type path to creepMiner installation, e.g.

start "C:\\Program Files\\creepMiner 1.8.0\\creepMiner.exe"
start "C:\\Program Files\\creepMiner 1.7.16\\creepMiner.exe"

Open configured webserver URL in any browser, e.g. localhost:8124

Also, if using a batch file to start.

Expected behavior

Opens site with Miner Stats

Actual behavior

Browser shows a blank page...doesn't load anything

Other information

The log tells me this

04.06.2018 07:43:46 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 195, Debug): Request: /
04.06.2018 07:43:46 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 196, Information): Request: /
Ip: 127.0.0.1:55407
Method: GET
Host:127.0.0.1:8124
Connection:keep-alive
Cache-Control:max-age=0
Upgrade-Insecure-Requests:1
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
DNT:1
Accept-Encoding:gzip, deflate, br
Accept-Language:pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6

04.06.2018 07:43:46 (4, c:\projects\creepminer\src\webserver\requesthandler.cpp, 207, Error): Could not open public/index.html!
04.06.2018 07:43:46 (4, c:\projects\creepminer\src\webserver\requesthandler.cpp, 208, Error): Exception occured: Path not found: public/index.html
	error-code: 3
	class: class Poco::PathNotFoundException


And this is the log, when starting directly by clicking or calling via Start Menu

04.06.2018 07:46:36 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 195, Debug): Request: /
04.06.2018 07:46:36 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 196, Information): Request: /
Ip: 127.0.0.1:55451
Method: GET
Host:127.0.0.1:8124
Connection:keep-alive
Cache-Control:max-age=0
Upgrade-Insecure-Requests:1
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
DNT:1
Accept-Encoding:gzip, deflate, br
Accept-Language:pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6

04.06.2018 07:46:36 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 195, Debug): Request: /css/custom.min.css
04.06.2018 07:46:36 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 196, Information): Request: /css/custom.min.css
Ip: 127.0.0.1:55451
Method: GET
Host:127.0.0.1:8124
Connection:keep-alive
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Accept:text/css,*/*;q=0.1
DNT:1
Referer:http://127.0.0.1:8124/
Accept-Encoding:gzip, deflate, br
Accept-Language:pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6

04.06.2018 07:46:36 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 195, Debug): Request: /js/biginteger.min.js
04.06.2018 07:46:36 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 196, Information): Request: /js/biginteger.min.js
Ip: 127.0.0.1:55451
Method: GET
Host:127.0.0.1:8124
Connection:keep-alive
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Accept:*/*
DNT:1
Referer:http://127.0.0.1:8124/
Accept-Encoding:gzip, deflate, br
Accept-Language:pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6

04.06.2018 07:46:36 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 195, Debug): Request: /js/general.js
04.06.2018 07:46:36 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 196, Information): Request: /js/general.js
Ip: 127.0.0.1:55451
Method: GET
Host:127.0.0.1:8124
Connection:keep-alive
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Accept:*/*
DNT:1
Referer:http://127.0.0.1:8124/
Accept-Encoding:gzip, deflate, br
Accept-Language:pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6

04.06.2018 07:46:36 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 195, Debug): Request: /js/block.js
04.06.2018 07:46:36 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 196, Information): Request: /js/block.js
Ip: 127.0.0.1:55451
Method: GET
Host:127.0.0.1:8124
Connection:keep-alive
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Accept:*/*
DNT:1
Referer:http://127.0.0.1:8124/
Accept-Encoding:gzip, deflate, br
Accept-Language:pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6

04.06.2018 07:46:36 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 195, Debug): Request: /img/icon.png
04.06.2018 07:46:36 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 196, Information): Request: /img/icon.png
Ip: 127.0.0.1:55451
Method: GET
Host:127.0.0.1:8124
Connection:keep-alive
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Accept:image/webp,image/apng,image/*,*/*;q=0.8
DNT:1
Referer:http://127.0.0.1:8124/
Accept-Encoding:gzip, deflate, br
Accept-Language:pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6

04.06.2018 07:46:37 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 195, Debug): Request: /sounds/alert.mp3
04.06.2018 07:46:37 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 196, Information): Request: /sounds/alert.mp3
Ip: 127.0.0.1:55451
Method: GET
Host:127.0.0.1:8124
Connection:keep-alive
Accept-Encoding:identity;q=1, *;q=0
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Accept:*/*
DNT:1
Referer:http://127.0.0.1:8124/
Accept-Language:pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6
Range:bytes=0-

04.06.2018 07:46:37 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 195, Debug): Request: /favicon.ico
04.06.2018 07:46:37 (4, c:\projects\creepminer\src\webserver\minerserver.cpp, 196, Information): Request: /favicon.ico
Ip: 127.0.0.1:55451
Method: GET
Host:127.0.0.1:8124
Connection:keep-alive
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Accept:image/webp,image/apng,image/*,*/*;q=0.8
DNT:1
Referer:http://127.0.0.1:8124/
Accept-Encoding:gzip, deflate, br
Accept-Language:pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7,de;q=0.6

And here's the logs "header"

04.06.2018 07:46:18 (0, c:\projects\creepminer\src\main.cpp, 203, Information): Config loaded: C:\Users\ohager\.creepMiner\1.8.0\mining.conf
04.06.2018 07:46:18 (0, c:\projects\creepminer\src\mining\minerconfig.cpp, 86, Information): Checking local plots for overlaps...
04.06.2018 07:46:18 (0, c:\projects\creepminer\src\mining\minerconfig.cpp, 122, Information): No overlaps found.
04.06.2018 07:46:18 (0, c:\projects\creepminer\src\mining\minerconfig.cpp, 130, Information): Submission Max Retry : 10 seconds
04.06.2018 07:46:18 (0, c:\projects\creepminer\src\mining\minerconfig.cpp, 195, Information): Buffer Size : 0 (3 MB)
04.06.2018 07:46:18 (0, c:\projects\creepminer\src\mining\minerconfig.cpp, 201, Information): Buffer Chunks : 16
04.06.2018 07:46:18 (0, c:\projects\creepminer\src\mining\minerconfig.cpp, 188, Information): Submission URL : http://0-100-pool.burst.cryptoguru.org:8124
04.06.2018 07:46:18 (0, c:\projects\creepminer\src\mining\minerconfig.cpp, 188, Information): Mininginfo URL : http://0-100-pool.burst.cryptoguru.org:8124
04.06.2018 07:46:18 (0, c:\projects\creepminer\src\mining\minerconfig.cpp, 188, Information): Wallet URL : https://wallet.burst.cryptoguru.org:8125
04.06.2018 07:46:18 (0, c:\projects\creepminer\src\mining\minerconfig.cpp, 188, Information): Server URL : http://127.0.0.1:8124

Ok. I got the problem. To serve the files the miner must run in the same directory, to have access to the web stuff, or in other words... the working directory must be set.