Closed Litvakas closed 7 years ago
The webpage expects the .json log to be in the root directory. You are very strangely hosting the entire folder tree with LAMP so while it is looking for http://192.168.0.17/botlog.json
it needs to look for http://192.168.0.17/poloniexlendingbot-master/poloniexlendingbot-master/www/botlog.json
You can fix this by:
lendingbot.js
and changing var file = 'botlog.json';
on line 184 to var file = 'poloniexlendingbot-master/poloniexlendingbot-master/www/botlog.json';
.And as for your error, I believe that is also the result of your setup, as I am unable to reproduce.
I think you are running 2 webservers, basically the apache webserver (LAMP) and the bot webserver... you should disable one of them (the one you don't need).
As for the other error it looks like somehow the bot is trying to make a call without providing the apikey/secret (which shouldn't be possible). please make sure that you provided the apikey/secret in the config file correctly without any weird characters around them. Also make sure you're on the most recent master revision.
Thank you guys for your help!
@Evanito i did as you said and re-organized the files a bit. Mainly i have transfered all the files to 1 folder and changed the default.cfg line www/botlog.json to botlog.json. Everything seems to be working okey now.
@rnevet To be honest i am a bit new to LAMP and i am still on my learning curve. I have installed this bot on var/www/html folder which i believe is for my localhost - default webserver.
Do i understand correctly poloniexlending bot has its own independent webservice, in my case i just need to open the 8080 port and i could launch it from anywhere? Or i need to make any changes in apache2 folder and apache config files, to assign a different file path for this both?
Now i am accessing the bot on http://192.168.0.17/lendingbot.html And files are located in var/www/html/(all poloniex bot files in 1 folder)
About the error - i think the issues is that i have renamed somewhere in the code one line, after i have re-installed the bot - error dissapeared.
Apologies if my questions are to obvious or at the beginners level, but i am keen on learning how this should work correctly. :)
Thank you,
startWebServer = true - this starts the internal bot webserver, I would suggest you try setting this to false and see if it still works.
Basically all you need in the "var/www/html/" are the html and JSON file... Having the config file there means it is readable and someone can read your API access keys.
Move the bot to another location recommend under "/opt/". Use config option jsonfile to output to "/var/www/html/botlog.json". Place the bot html file also under "/var/www/html/"
You can also use symlink for connecting between the www folder under the bot new location to a folder under "var/www/html/"
Hello everyone,
Firstly want to say thanks for the developer! And then i want to know what i am doing wrong. It seems that bot does not give any output on my webserver, i can only see blank screen. I am attaching screen shot and my log with configuration. Moreover my LAMP is on raspberry pi 3 model B.
Most recent call back in console.
Configuration file:
I am accessing webserver through this link: http://192.168.0.17/poloniexlendingbot-master/poloniexlendingbot-master/www/lendingbot.html
This is json log
Any ideas? Thank you for all the help