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

ttserver启动后立马退出,无任何错误 #9

Open
X0Ken opened this issue Jan 1, 2021 · 2 comments
Open

ttserver启动后立马退出,无任何错误 #9

X0Ken opened this issue Jan 1, 2021 · 2 comments

Comments

@X0Ken
Copy link

X0Ken commented Jan 1, 2021

运行ttserver 后程序立马退出了,没有任何错误提示,也没有监听任何端口

ttserver \
        --image-path /home/images \
        --cfgdb-path /tmp \
        --cpu-total 2 \
        --mem-total $[4 * 1024 * 1024] \
        --disk-total $[40 * 1024 * 1024] \
        --serv-addr 127.0.0.1 \
        --serv-port 20000
@ktmlm
Copy link
Collaborator

ktmlm commented Jan 1, 2021

@X0Ken 应该是示例中的 /home/images 不存在,或者权限不够,你试着以 root 身份运行一下。

ttserver 默认是 daemon 模式后台运行的,日志默认会输出到 /tmp/ttserver.log,若 log 内容未明确指明问题,可以贴出来看一下

@X0Ken
Copy link
Author

X0Ken commented Jan 1, 2021

从日志上来看,是mount cgroup失败了

^[[31;01m000000 [pidns: 4026532508][pid: 1] 2021-01-01 17:43:42^[[00m
Error: ^[[01m^[[00m
�~T~\�~T~@�~T~@ ^[[01meno:^[[00m -1
�~T~\�~T~@�~T~@ ^[[01mfile:^[[00m src/core/src/linux/mod.rs
�~T~\�~T~@�~T~@ ^[[01mline:^[[00m 62
�~T~T�~T~@�~T~@ ^[[01mcolumn:^[[00m 9
Caused By: ^[[01m^[[00m
�~T~\�~T~@�~T~@ ^[[01meno:^[[00m -1
�~T~\�~T~@�~T~@ ^[[01mfile:^[[00m src/core/src/linux/mod.rs
�~T~\�~T~@�~T~@ ^[[01mline:^[[00m 68
�~T~T�~T~@�~T~@ ^[[01mcolumn:^[[00m 52
    Caused By: ^[[01m^[[00m
    �~T~\�~T~@�~T~@ ^[[01meno:^[[00m -1
    �~T~\�~T~@�~T~@ ^[[01mfile:^[[00m src/core/src/linux/vm/cgroup.rs
    �~T~\�~T~@�~T~@ ^[[01mline:^[[00m 43
    �~T~T�~T~@�~T~@ ^[[01mcolumn:^[[00m 63
        Caused By: ^[[01m^[[00m
        �~T~\�~T~@�~T~@ ^[[01meno:^[[00m -1
        �~T~\�~T~@�~T~@ ^[[01mfile:^[[00m src/core/src/linux/vm/util.rs
        �~T~\�~T~@�~T~@ ^[[01mline:^[[00m 27
        �~T~T�~T~@�~T~@ ^[[01mcolumn:^[[00m 67
            Caused By: ^[[01m^[[00m
            �~T~\�~T~@�~T~@ ^[[01meno:^[[00m -1
            �~T~\�~T~@�~T~@ ^[[01mfile:^[[00m src/core/src/linux/vm/util.rs
            �~T~\�~T~@�~T~@ ^[[01mline:^[[00m 55
            �~T~T�~T~@�~T~@ ^[[01mcolumn:^[[00m 51
                Caused By: ^[[01mENODEV: No such device^[[00m
                �~T~\�~T~@�~T~@ ^[[01meno:^[[00m -1
                �~T~\�~T~@�~T~@ ^[[01mfile:^[[00m src/core/src/linux/vm/util.rs
                �~T~\�~T~@�~T~@ ^[[01mline:^[[00m 55
                �~T~T�~T~@�~T~@ ^[[01mcolumn:^[[00m 51

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

No branches or pull requests

2 participants