Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

未知错误 #11

Closed
hiboyhiboy opened this issue Oct 1, 2016 · 4 comments
Closed

未知错误 #11

hiboyhiboy opened this issue Oct 1, 2016 · 4 comments

Comments

@hiboyhiboy
Copy link

hiboyhiboy commented Oct 1, 2016

qq-20161001115446

连接时出现未知错误。
因为系统目录不可写,要丢在opt运行,不知道是否和这个有关。
系统是mipsel,请问怎么解决问题?

@hiboyhiboy
Copy link
Author

[2016/09/01 12:05:41:2700] NOTICE: Initial logging level 7
[2016/09/01 12:05:41:2703] NOTICE: Libwebsockets version: 1.7.5 root@hiboy-VirtualBox-
[2016/09/01 12:05:41:2704] NOTICE: IPV6 compiled in and enabled
[2016/09/01 12:05:41:2705] NOTICE: libev support not compiled in
[2016/09/01 12:05:41:2711] NOTICE: Threads: 1 each 65536 fds
[2016/09/01 12:05:41:2728] NOTICE: mem: platform fd map: 262144 bytes
[2016/09/01 12:05:41:2731] NOTICE: mem: per-conn: 308 bytes + protocol rx buf
[2016/09/01 12:05:41:2733] NOTICE: canonical_hostname = RT-N56U_B1
[2016/09/01 12:05:41:2734] NOTICE: Compiled with OpenSSL support
[2016/09/01 12:05:41:2735] NOTICE: Using non-SSL mode
/opt/bin/ttyd: '/lib/' is not an ELF file
/opt/bin/ttyd: '/opt/lib/' is not an ELF file
/opt/bin/ttyd: '/opt/lib/' is not an ELF file
[2016/09/01 12:05:41:2776] NOTICE: OpenSSL doesn't support ECDH
[2016/09/01 12:05:41:2781] NOTICE: Listening on port 7681
[2016/09/01 12:05:41:2782] NOTICE: TTY configuration:
[2016/09/01 12:05:41:2784] NOTICE: start command: login
[2016/09/01 12:05:41:2785] NOTICE: reconnect timeout: 10s
[2016/09/01 12:05:41:2786] NOTICE: close signal: SIGHUP (1)
[2016/09/01 12:05:46:3018] NOTICE: HTTP connect from ::ffff:192.168.123.4 (192.168.123.4), path: /
[2016/09/01 12:05:47:8666] NOTICE: HTTP connect from ::ffff:192.168.123.4 (192.168.123.4), path: /auth_token.js
[2016/09/01 12:05:47:8759] ERR: Capping pmd rx to 128
[2016/09/01 12:05:47:8761] ERR: ok
[2016/09/01 12:05:48:1439] ERR: pthread_create
[2016/09/01 12:05:50:0031] NOTICE: wsi 0x56df88: TIMEDOUT WAITING on 3 (did hdr 0, ah (nil), wl 0, pfd events 0)
[2016/09/01 12:05:50:0035] NOTICE: wsi 0x56db50: TIMEDOUT WAITING on 3 (did hdr 0, ah (nil), wl 0, pfd events 0)
[2016/09/01 12:05:54:0031] NOTICE: wsi 0x56d8e0: TIMEDOUT WAITING on 13 (did hdr 1, ah (nil), wl 0, pfd events 0)
[2016/09/01 12:05:54:0033] NOTICE: sending SIGHUP to process 0
Hangup

@tsl0922
Copy link
Owner

tsl0922 commented Oct 1, 2016

我只在 openwrt 上测试过,而且是安装到系统目录的,应该和系统目录不可写没什么关系。

/opt/bin/ttyd: '/lib/' is not an ELF file

如果是安装到非系统目录,ldconfig 配置没问题吧?

[2016/09/01 12:05:48:1439] ERR: pthread_create

pthread_create 没执行成功,也就是 fork 进程失败了。

@tsl0922
Copy link
Owner

tsl0922 commented Oct 3, 2016

@hiboyhiboy 我昨晚试了在 rt-n56u 的源码上编译 ttyd 进固件,路由器上运行没有问题,和你的区别就是编译到了系统目录并打包进了固件。

@tsl0922
Copy link
Owner

tsl0922 commented Oct 3, 2016

我修改后的编译脚本和 Makefile 参考这里:https://github.com/tsl0922/rt-n56u ,这个 issue 不属于软件 bug,所以先关闭了。

@tsl0922 tsl0922 closed this as completed Oct 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants