Update git sync documentation with successful auth info
This commit is contained in:
271
CONFIG_BACKUP.md
Normal file
271
CONFIG_BACKUP.md
Normal file
@@ -0,0 +1,271 @@
|
||||
# 配置文件备份 - Clawdbot
|
||||
|
||||
## clawdbot.json
|
||||
```json
|
||||
{
|
||||
"meta": {
|
||||
"lastTouchedVersion": "2026.1.24-3",
|
||||
"lastTouchedAt": "2026-02-08T13:01:54.331Z"
|
||||
},
|
||||
"wizard": {
|
||||
"lastRunAt": "2026-02-08T06:21:29.673Z",
|
||||
"lastRunVersion": "2026.1.24-3",
|
||||
"lastRunCommand": "onboard",
|
||||
"lastRunMode": "local"
|
||||
},
|
||||
"auth": {
|
||||
"profiles": {
|
||||
"zai:default": {
|
||||
"provider": "zai",
|
||||
"mode": "api_key"
|
||||
}
|
||||
}
|
||||
},
|
||||
"agents": {
|
||||
"defaults": {
|
||||
"model": {
|
||||
"primary": "zai/glm-4.7"
|
||||
},
|
||||
"models": {
|
||||
"zai/glm-4.7": {
|
||||
"alias": "GLM"
|
||||
}
|
||||
},
|
||||
"workspace": "/root/clawd",
|
||||
"compaction": {
|
||||
"mode": "safeguard"
|
||||
},
|
||||
"maxConcurrent": 4,
|
||||
"subagents": {
|
||||
"maxConcurrent": 8
|
||||
}
|
||||
}
|
||||
},
|
||||
"messages": {
|
||||
"ackReactionScope": "group-mentions"
|
||||
},
|
||||
"commands": {
|
||||
"native": "auto",
|
||||
"nativeSkills": "auto"
|
||||
},
|
||||
"hooks": {
|
||||
"internal": {
|
||||
"enabled": true,
|
||||
"entries": {
|
||||
"boot-md": {
|
||||
"enabled": true
|
||||
},
|
||||
"command-logger": {
|
||||
"enabled": true
|
||||
},
|
||||
"session-memory": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"channels": {
|
||||
"whatsapp": {
|
||||
"dmPolicy": "pairing",
|
||||
"selfChatMode": false,
|
||||
"allowFrom": [
|
||||
"+8613929927141",
|
||||
"+8618128105779"
|
||||
],
|
||||
"groupPolicy": "allowlist",
|
||||
"mediaMaxMb": 50,
|
||||
"debounceMs": 0
|
||||
},
|
||||
"qqbot": {
|
||||
"enabled": true,
|
||||
"allowFrom": ["*"],
|
||||
"appId": "1903233329",
|
||||
"clientSecret": "CNSQI2lUDwd9c3Oj"
|
||||
}
|
||||
},
|
||||
"gateway": {
|
||||
"port": 18789,
|
||||
"mode": "local",
|
||||
"bind": "loopback",
|
||||
"controlUi": {
|
||||
"allowInsecureAuth": true
|
||||
},
|
||||
"auth": {
|
||||
"mode": "token",
|
||||
"token": "19a6f039c7d4ff4c09d0db52022c0ec111b6f1a3abb5cc18"
|
||||
},
|
||||
"tailscale": {
|
||||
"mode": "off",
|
||||
"resetOnExit": false
|
||||
}
|
||||
},
|
||||
"skills": {
|
||||
"install": {
|
||||
"nodeManager": "pnpm"
|
||||
}
|
||||
},
|
||||
"plugins": {
|
||||
"entries": {
|
||||
"whatsapp": {
|
||||
"enabled": true
|
||||
},
|
||||
"qqbot": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## openclaw.json
|
||||
```json
|
||||
{
|
||||
"meta": {
|
||||
"lastTouchedVersion": "2026.2.6-3",
|
||||
"lastTouchedAt": "2026-03-10T03:42:47.457Z"
|
||||
},
|
||||
"wizard": {
|
||||
"lastRunAt": "2026-03-10T03:42:47.451Z",
|
||||
"lastRunVersion": "2026.2.6-3",
|
||||
"lastRunCommand": "onboard",
|
||||
"lastRunMode": "local"
|
||||
},
|
||||
"auth": {
|
||||
"profiles": {
|
||||
"zai:default": {
|
||||
"provider": "zai",
|
||||
"mode": "api_key"
|
||||
}
|
||||
}
|
||||
},
|
||||
"agents": {
|
||||
"defaults": {
|
||||
"model": {
|
||||
"primary": "zai/glm-4.7"
|
||||
},
|
||||
"models": {
|
||||
"zai/glm-4.7": {
|
||||
"alias": "GLM"
|
||||
}
|
||||
},
|
||||
"workspace": "/root/clawd",
|
||||
"compaction": {
|
||||
"mode": "safeguard"
|
||||
},
|
||||
"maxConcurrent": 4,
|
||||
"subagents": {
|
||||
"maxConcurrent": 8
|
||||
}
|
||||
}
|
||||
},
|
||||
"messages": {
|
||||
"ackReactionScope": "group-mentions"
|
||||
},
|
||||
"commands": {
|
||||
"native": "auto",
|
||||
"nativeSkills": "auto"
|
||||
},
|
||||
"hooks": {
|
||||
"internal": {
|
||||
"enabled": true,
|
||||
"entries": {
|
||||
"boot-md": {
|
||||
"enabled": true
|
||||
},
|
||||
"command-logger": {
|
||||
"enabled": true
|
||||
},
|
||||
"session-memory": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"channels": {
|
||||
"whatsapp": {
|
||||
"dmPolicy": "allowlist",
|
||||
"selfChatMode": true,
|
||||
"allowFrom": [
|
||||
"+8613929927141"
|
||||
],
|
||||
"groupPolicy": "allowlist",
|
||||
"mediaMaxMb": 50,
|
||||
"debounceMs": 0
|
||||
},
|
||||
"qqbot": {
|
||||
"enabled": true,
|
||||
"allowFrom": [
|
||||
"*"
|
||||
],
|
||||
"appId": "1903233329",
|
||||
"clientSecret": "CNSQI2lUDwd9c3Oj"
|
||||
}
|
||||
},
|
||||
"gateway": {
|
||||
"port": 18789,
|
||||
"mode": "local",
|
||||
"bind": "loopback",
|
||||
"controlUi": {
|
||||
"allowInsecureAuth": true
|
||||
},
|
||||
"auth": {
|
||||
"mode": "token",
|
||||
"token": "19a6f039c7d4ff4c09d0db52022c0ec111b6f1a3abb5cc18"
|
||||
},
|
||||
"tailscale": {
|
||||
"mode": "off",
|
||||
"resetOnExit": false
|
||||
},
|
||||
"remote": {
|
||||
"url": "ws://124.156.205.112:18789",
|
||||
"token": "19a6f039c7d4ff4c09d0db52022c0ec111b6f1a3abb5cc18"
|
||||
}
|
||||
},
|
||||
"skills": {
|
||||
"install": {
|
||||
"nodeManager": "pnpm"
|
||||
}
|
||||
},
|
||||
"plugins": {
|
||||
"entries": {
|
||||
"whatsapp": {
|
||||
"enabled": true
|
||||
},
|
||||
"qqbot": {
|
||||
"enabled": true
|
||||
}
|
||||
},
|
||||
"installs": {
|
||||
"qqbot": {
|
||||
"source": "npm",
|
||||
"spec": "@sliverp/qqbot@latest",
|
||||
"installPath": "/root/.openclaw/extensions/qqbot",
|
||||
"version": "1.5.3",
|
||||
"installPath": "/root/.openclaw/extensions/qqbot",
|
||||
"version": "1.5.3",
|
||||
"installedAt": "2026-03-10T01:02:40.854Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## 重要配置信息
|
||||
|
||||
### QQ Bot
|
||||
- AppID: 1903233329
|
||||
- AppSecret: CNSQI2lUDwd9c3Oj
|
||||
- Enabled: true
|
||||
- AllowFrom: *
|
||||
|
||||
### Gateway
|
||||
- Port: 18789
|
||||
- Auth Token: 19a6f039c7d4ff4c09d0db52022c0ec111b6f1a3abb5cc18
|
||||
- Remote URL: ws://124.156.205.112:18789
|
||||
|
||||
### Model
|
||||
- Primary: zai/glm-4.7
|
||||
- Alias: GLM
|
||||
|
||||
### Workspace
|
||||
- Path: /root/clawd
|
||||
38
CONFIG_SYNC.md
Normal file
38
CONFIG_SYNC.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# Git同步配置
|
||||
|
||||
## 仓库信息
|
||||
- Remote URL: https://git.stableeasy.com/iven/openclaw.git
|
||||
- 分支: master
|
||||
|
||||
## 已备份配置文件
|
||||
- config/clawdbot.json - Clawdbot主配置(包含qqbot配置)
|
||||
- config/openclaw.json - OpenClaw配置(包含qqbot配置)
|
||||
|
||||
## 同步状态
|
||||
✅ 配置文件已复制到 workspace/config/
|
||||
✅ 已添加到git并提交
|
||||
✅ 已成功推送到远程仓库
|
||||
|
||||
## Git认证信息
|
||||
- Remote: https://git.stableeasy.com/iven/openclaw.git
|
||||
- 用户名: szends@126.com
|
||||
- 密码: 2Live@2026* (注意:L是大写)
|
||||
|
||||
## 后续操作
|
||||
每次更改配置文件后,需要执行:
|
||||
```bash
|
||||
cd /root/clawd
|
||||
cp ~/.clawdbot/clawdbot.json config/clawdbot.json
|
||||
cp ~/.openclaw/openclaw.json config/openclaw.json
|
||||
git add config/
|
||||
git commit -m "Update config files"
|
||||
git push origin master
|
||||
```
|
||||
|
||||
## 注意事项
|
||||
- Clawdbot的配置文件路径:
|
||||
- ~/.clawdbot/clawdbot.json
|
||||
- ~/.openclaw/openclaw.json
|
||||
- Git备份路径:
|
||||
- /root/clawd/config/clawdbot.json
|
||||
- /root/clawd/config/openclaw.json
|
||||
95
GIT_STATUS.md
Normal file
95
GIT_STATUS.md
Normal file
@@ -0,0 +1,95 @@
|
||||
# Git同步配置 - 当前状态
|
||||
|
||||
## 仓库信息
|
||||
- Remote URL: git@git.stableeasy.com:iven/openclaw.git
|
||||
- 分支: master
|
||||
|
||||
## 已备份配置文件
|
||||
- config/clawdbot.json - Clawdbot主配置(包含qqbot配置)
|
||||
- config/openclaw.json - OpenClaw配置(包含qqbot配置)
|
||||
|
||||
## SSH密钥信息
|
||||
**私钥:** ~/.ssh/id_ed25519_clawd
|
||||
**公钥:**
|
||||
```
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP73ofRFML95vLlFjE2aNVHztX5pHwjFDTuunxrs8v2T szends@126.com
|
||||
```
|
||||
|
||||
## 当前状态
|
||||
✅ Git推送成功!配置文件已同步到仓库
|
||||
|
||||
### 最终解决方案
|
||||
使用HTTPS认证,密码:2Live@2026*
|
||||
(注意:L是大写)
|
||||
|
||||
### 成功推送的提交
|
||||
```bash
|
||||
commit 9e4c98f
|
||||
Backup config files: clawdbot.json and openclaw.json with qqbot enabled
|
||||
|
||||
Files:
|
||||
config/clawdbot.json (new)
|
||||
config/openclaw.json (new)
|
||||
```
|
||||
|
||||
## 需要确认的问题
|
||||
|
||||
### 关于SSH密钥
|
||||
1. 公钥是否已添加到正确的账户?(szends@126.com)
|
||||
2. 是否添加到了SSH Keys而不是Deployment Keys?
|
||||
3. 密钥类型ED25519是否被支持?
|
||||
4. 服务器用户名是否为 "git"?
|
||||
|
||||
### 关于密码认证
|
||||
1. 密码 "2live@2026*" 是否正确?
|
||||
2. 服务器是否支持密码认证(可能需要Personal Access Token)?
|
||||
|
||||
## 已提交但未推送的内容
|
||||
```bash
|
||||
commit 9e4c98f
|
||||
Backup config files: clawdbot.json and openclaw.json with qqbot enabled
|
||||
|
||||
Files:
|
||||
config/clawdbot.json (new)
|
||||
config/openclaw.json (new)
|
||||
```
|
||||
|
||||
## 解决方案建议
|
||||
|
||||
### 方案1:使用Personal Access Token(推荐)
|
||||
1. 访问 https://git.stableeasy.com/user/settings/applications
|
||||
2. 创建新的Personal Access Token,选择 `write` 或 `repo` 权限
|
||||
3. 使用token替代密码推送:
|
||||
```bash
|
||||
cd /root/clawd
|
||||
git remote set-url origin https://szends@126.com:TOKEN@git.stableeasy.com/iven/openclaw.git
|
||||
git push origin master
|
||||
```
|
||||
|
||||
### 方案2:检查SSH密钥配置
|
||||
1. 确认公钥已添加到正确的账户设置页面
|
||||
2. 重新添加公钥,确保没有多余空格
|
||||
3. 检查服务器是否支持ED25519密钥(否则需要RSA密钥)
|
||||
|
||||
### 方案3:使用HTTPS + Basic Auth
|
||||
如果服务器支持,可以使用:
|
||||
```bash
|
||||
git config --global credential.helper store
|
||||
git push origin master
|
||||
# 然后输入用户名和Personal Access Token
|
||||
```
|
||||
|
||||
## 配置文件路径
|
||||
- **原始配置:**
|
||||
- ~/.clawdbot/clawdbot.json
|
||||
- ~/.openclaw/openclaw.json
|
||||
- **备份位置:**
|
||||
- /root/clawd/config/clawdbot.json
|
||||
- /root/clawd/config/openclaw.json
|
||||
|
||||
## 下一步
|
||||
确认并解决认证问题后,执行:
|
||||
```bash
|
||||
cd /root/clawd
|
||||
git push origin master
|
||||
```
|
||||
Reference in New Issue
Block a user