stanford-oval / genie-server

The home server version of Almond
Apache License 2.0
268 stars 42 forks source link

cannot access http://127.0.0.1:3000 #310

Closed jeroenterheerdt closed 2 years ago

jeroenterheerdt commented 2 years ago

Trying to the tutorial and getting to https://wiki.almond.stanford.edu/en/genie-guide/deploy.md (after issues with WSL, see #309). this is the output of ./run-genie.sh:

+ test -d ./.home
+ export THINGENGINE_HOME=./.home
+ THINGENGINE_HOME=./.home
+ export THINGENGINE_NLP_URL=http://127.0.0.1:8400
+ THINGENGINE_NLP_URL=http://127.0.0.1:8400
+ exec node ./genie-server/dist/main.js
Frontend initialized in development mode
Failed to load translations: The expression evaluated to a falsy value:

  assert_1.default(fs.existsSync(modir))

Added device org.thingpedia.builtin.test
Added device org.thingpedia.builtin.thingengine.builtin
Added device org.thingpedia.builtin.thingengine.server
Added device thingengine-own-server:0e6a5922a5d726a0
Activity monitor started
Activity monitor started idle timer 600000 ms
Engine started
Cached exact matcher is missing or stale, regenerating...
Loaded 2 devices
Loaded 0 templates
Initializing dialogue policy for devices:
  stats: size(charts[0][ctx_init]) = 1
 stats: size(charts[1][$agent]) = 1
Agent act:
$dialogue @org.thingpedia.dialogue.transaction.sys_greet;
Genie says: Hello! How can I help you?
Saving conversation state for main (73 characters)
Express server listening on port 3000
Ready
Skipping audio because genie-client-cpp is not found: Error: not found: genie-client

http://127.0.0.1:3000 cannot be accessed. What am I missing?

sileix commented 2 years ago

The log looks perfectly fine. Are you running the server inside WSL? if so you might need a different IP address depending on your windows version. see https://docs.microsoft.com/en-us/windows/wsl/networking

jeroenterheerdt commented 2 years ago

thanks, weird enough it worked when I tried a couple of days later.