Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
R
rentos
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
accounting
rentos
Commits
34e42964
Commit
34e42964
authored
Oct 13, 2026
by
wenwen.tang
😕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(memory): 记录 push + 线上同步部署(
cc02d713
)与两处待处理发现
parent
cc02d713
Pipeline
#841
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
2026-10-13.md
.workbuddy/memory/2026-10-13.md
+33
-0
No files found.
.workbuddy/memory/2026-10-13.md
View file @
34e42964
...
@@ -182,3 +182,36 @@ env -u http_proxy -u https_proxy -u HTTP_PROXY -u HTTPS_PROXY git push origin ma
...
@@ -182,3 +182,36 @@ env -u http_proxy -u https_proxy -u HTTP_PROXY -u HTTPS_PROXY git push origin ma
### 待办
### 待办
- 本机 8899 服务仍在跑旧代码,需重启才会播种 guest;线上 192.168.68.121 需
- 本机 8899 服务仍在跑旧代码,需重启才会播种 guest;线上 192.168.68.121 需
部署后才生效(`
python tools/deploy_git.py sync
`)。
部署后才生效(`
python tools/deploy_git.py sync
`)。
---
## 第六轮收尾:push + 线上同步部署(2026-10-13 11:40)
- **push** `
deac430..cc02d71
`(3 提交)→ 远端 main。
- **线上同步** `
RENTOS_SSH_PASSWORD=12345678 python tools/deploy_git.py sync
`
(venv python,含 paramiko)→ pull → build → run → verify 全绿。
镜像 `
rentos:latest
` 重建,容器 `
rentos
` Up,`
http://192.168.68.121:8899/
` HTTP 200。
- **三方版本对齐 `
cc02d71
`**(本机 = 远端 = 线上 repo)。
- **数据零影响**:线上台账 `
updated_at
` 仍 `
2026-10-13 11:04:15
`(部署前),85 行 / AJ 64 行;
3 个 rent_parking 批次完好(25+4+10 份,¥319348 / ¥101953.84 / ¥243868.6)。
### 线上实测
- guest 已播种:`
/api/login
` guest/guest@2026 → `
role=viewer, can_write=false
`。
- 写闸门 8/8 全部 403「只读访客账号:仅可浏览,无修改权限」
(改台账/出单/存配置/触发定时/建账号/改密码/登记收款/删批次);只读 `
/api/overview
`、`
/api/session
` 200。
- auth 结构迁移正确:`
accounts=
[
admin(admin), guest(viewer)
]
`,`
guest_seeded=true
`,**原 password_hash 保留未重置**。
### 关键发现(待用户处理)
1. **线上 admin 密码已非默认** —— 用 `
1989@rent05
` 登录返回 401;
用线上 salt 反算 `
1989@rent05
` / `
brand@new9
` 均**不匹配**(salt 16 位、hash 64 位,算法 sha256(salt+pwd))。
结论:线上主账号密码此前已被人工改过,**迁移逻辑正确地保留了它**,非本次部署引入的问题。
⚠️ 因此 `
deploy_git.py verify
` 里用默认密码做的登录自检在线上会报 401 —— 属**预期**,不代表部署失败。
2. **本机与线上定时器都开着**:线上 `
enabled=true
`,下次 2026-10-21 09:00(电费)/ 2026-12-27(房租车位费);
本机同样 enabled 且下次也是 2026-10-21 09:00。**两边同开有重复发送风险**,
建议本机改用 `
start.bat safe
`(`
--no-scheduler
`)。
### 环境备注
- 线上容器内路径:宿主 `
/opt/rentos/data
` → 容器 `
/app/data
`(读配置要用 `
/app/data/config.json
`)。
- 宿主机**无 python3**(CentOS 7),探针一律走 `
docker exec rentos python -c ...
`。
- SSH 是 password 认证(`
id_ed25519
` 未授权),必须传 `
RENTOS_SSH_PASSWORD
`
。
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment