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

docs: updating trouble shooting guide #448

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions docs/troubleshooting/troubleshooting-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

大中华地区的用户可以直接在 [声网](https://console.shengwang.cn/) 创建项目,然后 ID 和 Certificate 会自动生成。

## Windows 设置(必读)

在 Windows 系统中,Git 会自动在每行末尾添加回车符(\r),这会导致运行服务器时出现 `agents/bin/start: not found` 错误。

**如果您遇到这个问题**,请按照以下步骤操作:
1. 完全删除当前项目文件夹
2. 运行以下命令来禁用 Git 的自动 CRLF:

```bash
git config --global core.autocrlf false
```

## 如何查看自己的网络连接情况?

请确保您的 **HTTPS** 和 **SSH** 都已连接到互联网。
Expand Down Expand Up @@ -31,9 +43,3 @@ curl www.google.com
</html>
```

## 遇到 /app/agents/bin/start: not found 错误怎么办?

1. 有可能是权限的问题,所以可以 `cd /app/agents/bin/start` 过去,看下文件是否存在。
如果存在,可以尝试 `chmod +x start` 赋予权限。

1. 如果 `cd /app/agents/bin/start` 文件不存在, 有可能是因为 Windows line-ending 的问题,可以尝试 `git config --global core.autocrlf true` 来解决。 然后再重新 clone 代码。