humanpages
Search and hire real humans for tasks — photography, delivery, research, and more
修复 Matrix Channel 常见问题:加密模块安装、token 过期处理、重新登录等。 Use when: Matrix channel 无法正常工作、加密模块报错、token 失效等问题。
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
SkillHub CLI
skillhub install boms/matrix-fixExaminez la source et la compatibilité, puis suivez les étapes d’installation.
Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.
症状:
MatrixClientLite Failed to initialize crypto storage, E2EE disabled
Cannot find module '@matrix-org/matrix-sdk-crypto-nodejs'
修复:
cd /usr/local/lib/node_modules/openclaw
pnpm add @matrix-org/matrix-sdk-crypto-nodejs
pnpm rebuild @matrix-org/matrix-sdk-crypto-nodejs
openclaw gateway restart
症状:
errcode: 'M_UNKNOWN_TOKEN', error: 'Invalid access token passed.'
修复: 清除旧 token 并重启:
rm -rf ~/.openclaw/matrix/accounts/*
openclaw gateway restart
症状:
Error: getaddrinfo ENOTFOUND YOUR_HOMESERVER
检查:
host YOUR_HOMESERVER
ping YOUR_HOMESERVER
完整重置步骤:
openclaw config unset channels.matrix
openclaw config set channels.matrix.homeserver "https://YOUR_HOMESERVER:PORT"
openclaw config set channels.matrix.userId "@YOUR_BOT_USER_ID"
openclaw config set channels.matrix.password "YOUR_PASSWORD"
openclaw config set channels.matrix.deviceName "YOUR_DEVICE_NAME"
openclaw config set channels.matrix.encryption true
openclaw config set channels.matrix.enabled true
openclaw gateway restart
如果需要让 bot 退出所有房间:
# 获取 access_token
TOKEN=$(curl -s -X POST "https://YOUR_HOMESERVER:PORT/_matrix/client/r0/login" \
-H "Content-Type: application/json" \
-d '{"type":"m.login.password","user":"YOUR_BOT_USER","password":"YOUR_PASSWORD"}' | \
jq -r '.access_token')
# 获取房间列表
curl -s -X GET "https://YOUR_HOMESERVER:PORT/_matrix/client/r0/joined_rooms" \
-H "Authorization: Bearer $TOKEN" | jq '.'
# 逐一退出
for room in "ROOM_ID_1" "ROOM_ID_2"; do
curl -s -X POST "https://YOUR_HOMESERVER:PORT/_matrix/client/r0/rooms/$room/leave" \
-H "Authorization: Bearer $TOKEN"
done
`...
Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.
# Matrix Channel 修复指南
## 常见问题
### 1. 加密模块缺失
**症状:**
```
MatrixClientLite Failed to initialize crypto storage, E2EE disabled
Cannot find module '@matrix-org/matrix-sdk-crypto-nodejs'
```
**修复:**
```bash
cd /usr/local/lib/node_modules/openclaw
pnpm add @matrix-org/matrix-sdk-crypto-nodejs
pnpm rebuild @matrix-org/matrix-sdk-crypto-nodejs
openclaw gateway restart
```
### 2. Token 失效 (M_UNKNOWN_TOKEN)
**症状:**
```
errcode: 'M_UNKNOWN_TOKEN', error: 'Invalid access token passed.'
```
**修复:**
清除旧 token 并重启:
```bash
rm -rf ~/.openclaw/matrix/accounts/*
openclaw gateway restart
```
### 3. DNS 解析失败 (ENOTFOUND)
**症状:**
```
Error: getaddrinfo ENOTFOUND YOUR_HOMESERVER
```
**检查:**
```bash
host YOUR_HOMESERVER
ping YOUR_HOMESERVER
```
### 4. 重新配置 Matrix Channel
**完整重置步骤:**
1. 移除旧配置:
```bash
openclaw config unset channels.matrix
```
2. 重新设置配置:
```bash
openclaw config set channels.matrix.homeserver "https://YOUR_HOMESERVER:PORT"
openclaw config set channels.matrix.userId "@YOUR_BOT_USER_ID"
openclaw config set channels.matrix.password "YOUR_PASSWORD"
openclaw config set channels.matrix.deviceName "YOUR_DEVICE_NAME"
openclaw config set channels.matrix.encryption true
openclaw config set channels.matrix.enabled true
```
3. 重启 Gateway:
```bash
openclaw gateway restart
```
### 5. 退出所有房间
如果需要让 bot 退出所有房间:
```bash
# 获取 access_token
TOKEN=$(curl -s -X POST "https://YOUR_HOMESERVER:PORT/_matrix/client/r0/login" \
-H "Content-Type: application/json" \
-d '{"type":"m.login.password","user":"YOUR_BOT_USER","password":"YOUR_PASSWORD"}' | \
jq -r '.access_token')
# 获取房间列表
curl -s -X GET "https://YOUR_HOMESERVER:PORT/_matrix/client/r0/joined_rooms" \
-H "Authorization: Bearer $TOKEN" | jq '.'
# 逐一退出
for room in "ROOM_ID_1" "ROOM_ID_2"; do
curl -s -X POST "https://YOUR_HOMESERVER:PORT/_matrix/client/r0/rooms/$room/leave" \
-H "Authorization: Bearer $TOKEN"
done
`...Search and hire real humans for tasks — photography, delivery, research, and more
Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.
Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user...
Install, configure, and manage 1-SEC — an open-source, all-in-one cybersecurity platform (16 modules, single binary) on Linux servers and VPS instances. Use when the user asks to secure a server, install securi...