如何使用ScyllaDB修复此错误?

问题描述 投票:1回答:2

我正在尝试通过这里的ScyllaDB教程系列:https://www.scylladb.com/2017/11/30/mutant-monitoring-system-day-1/

我已经运行了一个Docker容器(在Windows上,使用Powershell)并克隆了它们的repo,并使用Docker Compose运行它:

PS C:\repos\scylla-code-samples\mms> docker-compose up -d
mms_scylla-node3_1 is up-to-date
mms_scylla-node2_1 is up-to-date
Creating mms_scylla-node1_1 ... done

尝试使用nodetool检查其状态会返回容器重新启动错误:

PS C:\repos\scylla-code-samples\mms> docker exec -it mms_scylla-node1_1 nodetool status
>>
Error response from daemon: Container c2940e14078fcdbbcf70f60392b05eb3d5c90273a15970c8575aad46cd797a02 is restarting, wait until the container is running

日志显示这些意外的文件错误结束:

2019-03-05T09:39:36.882128500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:40:38.038237500Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:40:38.038383700Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:41:38.922861400Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:41:38.923067400Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:42:39.801821900Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:42:39.802078500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:43:40.696641100Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:43:40.696928800Z /start.sh: line 36: syntax error: unexpected end of file

我怎样才能解决这个问题,最好不要编写代码?

scylla
2个回答
1
投票

在Windows上,您可以尝试使用Docker Toolbox,它使用基于虚拟盒的docker主机,而不是新的“Docker for Windows”的主机。这可以确保您在没有Linux机器的情况下在Linux上运行。

即使它说“传统桌面解决方案”它仍然运作良好。

https://docs.docker.com/toolbox/toolbox_install_windows/


2
投票

\r表示Windows风格的回车,所以它可能以某种方式与您的Windows环境有关。建议在Linux机器上试试这个,同时打开一个scylla-code-samples.git项目的bug,以便修复它。

© www.soinside.com 2019 - 2024. All rights reserved.