BitBotFactory / MikaLendingBot

Automated lending on Cryptocurrency exchanges Poloniex and Bitfinex
http://poloniexlendingbot.readthedocs.io/en/latest/index.html
MIT License
1.11k stars 344 forks source link

Server doesn't work #356

Closed v0ku closed 7 years ago

v0ku commented 7 years ago

Hi,

the bot opens lends, but the localhost server window doesn't contain any information except:

Poloniex Lending Bot
Not updated

 Settings 
Status
N/A
Log (Reversed ordered):

The command shell contains the subsequent text:

Welcome to Poloniex Lending Bot 
Started Webserver, lendingbot status available at: _several IP adresses_

That's it. Any idea what might be the reason?

rnevet commented 7 years ago

Please attach relevant settings from config.

v0ku commented 7 years ago
jsonfile = www/botlog.json
jsonlogsize = 200
startWebServer = true
customWebServerAddress = 127.0.0.1:8000
outputCurrency = BTC 

Is there anything else? My settings are pretty basic and I tried to follow the instructions.

rnevet commented 7 years ago

See if bootlog.json exists in www an if it is accessible from the browser.

v0ku commented 7 years ago

It does and I'm able to open it. It contains information about a configured coin in a single row.

rnevet commented 7 years ago

what url are you using to open the html?

v0ku commented 7 years ago

At the moment: http://127.0.0.1:8000/lendingbot.html

rnevet commented 7 years ago

and http://127.0.0.1:8000/bootlog.json works? (This is the URL that HTML uses.)

v0ku commented 7 years ago

No, HTTP 404 - Not found

rnevet commented 7 years ago

That means either the webserver isn't working at all or the file is not there, since you say the file is present in www - the webserver is probably not working. Can you try refreshing (CTRL + F5) the http://127.0.0.1:8000/lendingbot.html page?

v0ku commented 7 years ago

Refreshing works, but the page keeps not updated. Is it correct that I always have to reconfigure the settings after shutting down the server with Ctrl+C?

rnevet commented 7 years ago

It is correct that config changes are only applied after bot is restarted So you are able to access lendingbot.html bot not bootlog.json and both are under the www folder? What env are you using?

mike4001 commented 7 years ago

Just wanted to point out that it is botlog.json and not bootlog.json

So http://127.0.0.1:8000/botlog.json should work :-)

rnevet commented 7 years ago

@mike4001 Thanks! Lets see. @v0ku did that change anything?

noonway commented 7 years ago

Just wanted to say I was having the same problem after pulling latest from git and a Ctrl+F5 refresh worked for me.

v0ku commented 7 years ago

@mike4001 It shows an unformatted row in the browser, yes. @rnevet Yes, both are in the same folder. Ctrl+F5 doesn't change anything. Window content stays the same :/

Win 10 , 64bit , Internet Explorer 11.2, Python 2.7.13

mike4001 commented 7 years ago

I am no expert but maybe try a browser thats not Internet Explorer.

Since apparently the botlog.js shows content and you can also see the lendingbot.html maybe this is the culprit.

v0ku commented 7 years ago

With Chrome it works -.-

rnevet commented 7 years ago

Damn Microsoft!!!

Evanito commented 7 years ago

Closing due to solution found