Skip to content
This repository has been archived by the owner on May 21, 2018. It is now read-only.

no ~/.hr/aiml directory after HEAD installation #2

Closed
mjsduncan opened this issue May 16, 2016 · 6 comments
Closed

no ~/.hr/aiml directory after HEAD installation #2

mjsduncan opened this issue May 16, 2016 · 6 comments

Comments

@mjsduncan
Copy link

concurrently with the blender fail in issue one, in the chatserver shell (tmux window 3) i get this error:
sh: 1: cd: can't cd to /home/biocog/.hr/aiml/character_dev
i have a .hr directory with megabytes of log files but no aiml directory. is that a separate installation?

wenwei-dev added a commit that referenced this issue May 16, 2016
@wenwei-dev
Copy link
Contributor

This error can be ignored. This PR #3 should fix this.

@mjsduncan
Copy link
Author

thanks, new build just has blank screen in window three for dev.sh. is that correct?

@wenwei-dev
Copy link
Contributor

Do you still have error in this window? Or is the chatbot working? If it's working, we can close it now.

@mjsduncan
Copy link
Author

ok with current pull i get this in tmux 3:

[hr.chatbot.character][INFO] 2016-05-26 10:22:51,198: [generic] Load /home/biocog/hansonrobotics/HEAD/src/chatbot/src/server/characters/../../../aiml/generic/*.aiml
[hr.chatbot.loader][INFO] 2016-05-26 10:22:51,198: Add characters [<Character id: dummy, name: dummy, level: 99>, <Character id: sophia, name: sophia, level: 90>, <Character id: generic, name: generic, level: 93>]
[werkzeug][INFO] 2016-05-26 10:22:51,204:  * Running on http://0.0.0.0:8001/ (Press CTRL+C to quit)
[werkzeug][INFO] 2016-05-26 10:22:51,866: 127.0.0.1 - - [26/May/2016 10:22:51] "GET /v1.1/start_session?botname=sophia&Auth=AAAAB3NzaC&user=hr HTTP/1.1" 200 -
[hr.chatbot.server.response_cache][INFO] 2016-05-26 10:24:53,300: Nothing to dump
[hr.chatbot.server.session][INFO] 2016-05-26 10:24:53,300: Reset session 548256ac-234d-11e6-99f1-206a8aa0476d
[hr.chatbot.server.response_cache][INFO] 2016-05-26 10:26:54,399: Nothing to dump
[hr.chatbot.server.session][INFO] 2016-05-26 10:26:54,399: Reset session 548256ac-234d-11e6-99f1-206a8aa0476d

[hr.chatbot.server.response_cache][INFO] 2016-05-26 10:28:55,505: Nothing to dump
[hr.chatbot.server.session][INFO] 2016-05-26 10:28:55,505: Reset session 548256ac-234d-11e6-99f1-206a8aa0476d

then in a new shell if i telnet localhost 8001 it connects but i get no prompt and any text gets me booted by server:

hello
<head>
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code 400.
<p>Message: Bad request syntax ('hello').
<p>Error code explanation: 400 = Bad request syntax or unsupported method.
</body>
Connection closed by foreign host.

and this is what shows up in the chatbot shell:

[werkzeug][ERROR] 2016-05-26 10:29:40,307: 127.0.0.1 - - [26/May/2016 10:29:40] code 400, message Bad request syntax ('hello')
[werkzeug][INFO] 2016-05-26 10:29:40,307: 127.0.0.1 - - [26/May/2016 10:29:40] "hello" 400 -

so this means something still isn't working, correct?

@mjsduncan
Copy link
Author

since there seems to be a general failure connecting parts as described above, if this fail looks like part of #14 we can close this issue.

@wenwei-dev
Copy link
Contributor

wenwei-dev commented May 27, 2016

Telnet won't work. That is not the way to connect to chatbot server. You can try to use HEAD/src/chatbot/src/server/client.py to connect to the server, or use curl to send HTTP request.

I can see the chatbot server is running normally. So I close this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants