Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Can't startup error on sphinx.NewDecoder failed: pocketsphinx.Init failed #5

Open
stardiviner opened this issue Jul 8, 2019 · 9 comments
Labels
help wanted Extra attention is needed

Comments

@stardiviner
Copy link

Here is the output log:

➜  homo git:(master) ✗ ./run.sh
提示: 没有在本地找到镜像 registry.cn-hangzhou.aliyuncs.com/codist/homo:latest 开始从 阿里云获取
latest: Pulling from codist/homo
6f2f362378c5: Already exists
d34ad720c48f: Pulling fs layer
b124bab029e2: Pulling fs layer
125d52145853: Pulling fs layer
8f303348d92f: Pull complete
c0fc1e63ce3d: Pull complete
7deee4f4e42f: Pull complete
0374bd93c820: Pull complete
618224e50383: Pull complete
d8bfa6ceb023: Pull complete
e87ebc123a68: Pull complete
4f2fe48c9c94: Pull complete
9084d4efebb3: Pull complete
14ea2bc0c917: Pull complete
85cfe9182bb7: Pull complete
76b23cc314b8: Pull complete
e3a202c8a64f: Pull complete
71fe919f7612: Pull complete
6ccbe0568bba: Pull complete
Digest: sha256:d9fe8fc7209ea9455c0eb369d48c05517c1352bb89676f90ebdb5ae9bb86c296
Status: Downloaded newer image for registry.cn-hangzhou.aliyuncs.com/codist/homo:latest
localuser:stardiviner being added to access control list
sed: 无法打开临时文件 /etc/sed6RkQlf: 权限不够
2019-07-08 08:19:52,773 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
2019-07-08 08:19:52,852 INFO RPC interface 'supervisor' initialized
2019-07-08 08:19:52,853 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2019-07-08 08:19:52,853 INFO supervisord started with pid 1
2019-07-08 08:19:53,858 INFO spawned: 'homo-webview' with pid 13
2019-07-08 08:19:53,862 INFO spawned: 'nlu' with pid 14
2019-07-08 08:19:54,865 INFO success: homo-webview entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-07-08 08:19:54,865 INFO success: nlu entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

** (homo-webview:13): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-gH1ohpyaxA: 拒绝连接
2019-07-08 08:19:59+0000 [-] Log opened.
2019-07-08 08:19:59+0000 [-] Site starting on 5000
2019-07-08 08:19:59+0000 [-] Starting factory <twisted.web.server.Site object at 0x7f48114df710>
INFO[08:19:59] 开始加载 CMU PhocketSphinx...
INFO[08:19:59] 开始加载唤醒模型...

** (WebKitWebProcess:42): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-gH1ohpyaxA: 拒绝连接
FATA[08:19:59] sphinx.NewDecoder failed: pocketsphinx.Init failed
2019-07-08 08:19:59,815 INFO exited: homo-webview (exit status 1; not expected)
2019-07-08 08:19:59,820 INFO spawned: 'homo-webview' with pid 51
2019-07-08 08:19:59,989 INFO reaped unknown pid 39
2019-07-08 08:19:59,991 INFO reaped unknown pid 42

** (homo-webview:51): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-gH1ohpyaxA: 拒绝连接
INFO[08:20:00] 开始加载 CMU PhocketSphinx...
INFO[08:20:00] 开始加载唤醒模型...
FATA[08:20:00] sphinx.NewDecoder failed: pocketsphinx.Init failed
2019-07-08 08:20:00,400 INFO exited: homo-webview (exit status 1; not expected)
2019-07-08 08:20:00,418 INFO reaped unknown pid 66
2019-07-08 08:20:00,509 INFO reaped unknown pid 69
2019-07-08 08:20:01,513 INFO spawned: 'homo-webview' with pid 80

** (homo-webview:80): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-gH1ohpyaxA: 拒绝连接
INFO[08:20:02] 开始加载 CMU PhocketSphinx...
INFO[08:20:02] 开始加载唤醒模型...
FATA[08:20:02] sphinx.NewDecoder failed: pocketsphinx.Init failed
2019-07-08 08:20:02,059 INFO exited: homo-webview (exit status 1; not expected)
2019-07-08 08:20:02,088 INFO reaped unknown pid 94
2019-07-08 08:20:02,134 INFO reaped unknown pid 97
2019-07-08 08:20:04,141 INFO spawned: 'homo-webview' with pid 108

** (homo-webview:108): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-gH1ohpyaxA: 拒绝连接
INFO[08:20:04] 开始加载 CMU PhocketSphinx...
INFO[08:20:04] 开始加载唤醒模型...
FATA[08:20:04] sphinx.NewDecoder failed: pocketsphinx.Init failed
2019-07-08 08:20:04,763 INFO exited: homo-webview (exit status 1; not expected)
2019-07-08 08:20:04,771 INFO reaped unknown pid 121
2019-07-08 08:20:04,795 INFO reaped unknown pid 124
2019-07-08 08:20:07,802 INFO spawned: 'homo-webview' with pid 135

** (homo-webview:135): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-gH1ohpyaxA: 拒绝连接
INFO[08:20:08] 开始加载 CMU PhocketSphinx...
INFO[08:20:08] 开始加载唤醒模型...
FATA[08:20:08] sphinx.NewDecoder failed: pocketsphinx.Init failed
2019-07-08 08:20:08,413 INFO exited: homo-webview (exit status 1; not expected)
2019-07-08 08:20:08,414 INFO gave up: homo-webview entered FATAL state, too many start retries too quickly
2019-07-08 08:20:08,424 INFO reaped unknown pid 147
2019-07-08 08:20:08,455 INFO reaped unknown pid 150
^C2019-07-08 08:23:04,058 WARN received SIGINT indicating exit request
2019-07-08 08:23:04,059 INFO waiting for nlu to die
2019-07-08 08:23:05,061 INFO stopped: nlu (terminated by SIGTERM)
./run.sh -a  1.12s user 0.86s system 0% cpu 9:42.09 total

System: Arch Linux Linux dark 5.1.15-arch1-1-ARCH #1 SMP PREEMPT Tue Jun 25 04:49:39 UTC 2019 x86_64 GNU/Linux

@vufa
Copy link
Owner

vufa commented Jul 10, 2019

Sphinx log file maybe saved as log/sphinx.log, can you paste it?

I tested it on a newly installed Archlinux, everything works fine, maybe you can add the current system user to the docker group and run run.sh directly:

sudo usermod -aG docker <your user>
./run.sh -a

@stardiviner
Copy link
Author

stardiviner commented Jul 11, 2019

Still got same error. I have not found log/sphinx.log file.

@vufa vufa added the help wanted Extra attention is needed label Jul 11, 2019
@vufa
Copy link
Owner

vufa commented Jul 14, 2019

@stardiviner I think this is a permission issue. If you have added system users to the docker group, maybe you can try to clone the homo into another directory, put the dataset and copy the configuration file and try again.

@imdreamer2018
Copy link

I have added system users to docker group , but still got same error as you.

@suzhaomin666
Copy link

按照操作到make gen的时候报错
invalid module version github.com/golang/text: unknown revision lates

@vufa
Copy link
Owner

vufa commented Jul 19, 2019

@suzhaomin666 运行 make gen 的时候如果没有安装 go-bindata 会通过 go get 安装,这一步可能需要代理,可以输入 go-bindata 试试这个命令是否已经被安装了

@vufa
Copy link
Owner

vufa commented Jul 19, 2019

@stardiviner @imdreamer2018 I can't reproduce your issue. Can you post your installation steps?

@stardiviner
Copy link
Author

I downloaded the two data files nlu/models-2019-07-05.zip and sphinx/en-us-2019-07-07.zip. Then run ./run.sh.

@stardiviner
Copy link
Author

I'm wandering why not put those data files in Docker image directly?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants