htm-community / nupic-history-server

Runs NuPIC behind a web server, exposing internals. For HTM School.
GNU Affero General Public License v3.0
11 stars 7 forks source link

nupic-history-server and htm-school-viz expect the same port for redis #9

Closed breznak closed 7 years ago

breznak commented 7 years ago

nupic-history-server is a dependency for htm-schoool-viz since Ep.8+, there is mentioned that htm-school-viz expect redis tu run on port 8000.

While redis-server by default runs on 6379 - change either of them, so that the defaults match.

breznak commented 7 years ago

The error manifests as:

(schools) mmm@mmm-U2442:/mnt/store/devel/HTM/htm_schools/htm-school-viz$ npm start 8080

> htm-school-viz@1.0.0 start /mnt/store/devel/HTM/htm_schools/htm-school-viz
> node index.js "8080"

htm-school-viz running on http://localhost:8080
Error: connect ECONNREFUSED 127.0.0.1:8000
    at Object.exports._errnoException (util.js:870:11)
    at exports._exceptionWithHostPort (util.js:893:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)
rikkertkoppes commented 7 years ago

See https://github.com/htm-community/htm-school-viz/issues/19

breznak commented 7 years ago

Thanks @rikkertkoppes ! I really got that confused.

But still:

  1. run redis-server (default 6379) ...OK
  2. how do I run the "history server"? I assume python webserver.py , but it defaults to :8080 ...FAIL *)
  3. run "htm schools" npm start

*) as you see, I think the ports are still switched:

127.0.0.1:54508 - - [06/Apr/2017 16:46:54] "HTTP/1.1 DELETE /_flush/" - 500 Internal Server Error



PS: I'll fix and update the PRs