This commit is contained in:
parent
bf1e69f480
commit
a2a0046f53
@ -190,6 +190,8 @@ TLS 前未公布 AUTH,主动尝试明文 AUTH 返回 523。未认证外域邮
|
||||
|
||||
前端生产构建和 Linux amd64 编译通过,仍有编辑器分块超过 500 kB 的构建提示。没有重新执行全部后端包、竞态检测、移动端、真实 MySQL 或 PostgreSQL 验证。
|
||||
|
||||
后续工具静态编译发现本轮涉及的 `debug_ssh.py`、`test_echo.py` 原有引号缺失,已修正;没有执行会打印邮件或日志内容的诊断脚本。全工具目录静态编译仍受未改动的 `check_page.py` 语法错误及 `test_login_dashboard_backup.py` 编码错误影响,不宣称所有历史工具均可运行。静态编译只检查 Python 源码,不在本机执行应用或测试业务。
|
||||
|
||||
### 部署证据
|
||||
|
||||
2026 年 9 月 17 日 10:06 完成双程序升级,版本为 `remote-13bcad90e832`,源码指纹为 `13bcad90e832a9be78604854a1c91f72cfaf2a21770481c627e50ac361ce3b70`。
|
||||
|
||||
@ -7,24 +7,24 @@ connect_remote(ssh)
|
||||
|
||||
def run(cmd):
|
||||
stdin, stdout, stderr = ssh.exec_command(cmd)
|
||||
return stdout.read().decode(utf-8, errors=ignore), stderr.read().decode(utf-8, errors=ignore)
|
||||
return stdout.read().decode('utf-8', errors='replace'), stderr.read().decode('utf-8', errors='replace')
|
||||
|
||||
out, _ = run(ls -la /opt/smail/log)
|
||||
print(=== /opt/smail/log ===\n + out)
|
||||
out, _ = run('ls -la /opt/smail/log')
|
||||
print('=== /opt/smail/log ===\n' + out)
|
||||
|
||||
out, _ = run(grep -rn 'qq.com' /opt/smail/log/ 2>/dev/null)
|
||||
print(=== qq.com grep in logs ===\n + out)
|
||||
out, _ = run("grep -rn 'qq.com' /opt/smail/log/ 2>/dev/null")
|
||||
print('=== qq.com grep in logs ===\n' + out)
|
||||
|
||||
out, _ = run(sqlite3 /opt/smail/data/smail.db '.schema email')
|
||||
print(=== schema email ===\n + out)
|
||||
out, _ = run("sqlite3 /opt/smail/data/smail.db '.schema email'")
|
||||
print('=== schema email ===\n' + out)
|
||||
|
||||
out, _ = run(sqlite3 /opt/smail/data/smail.db '.schema user_email')
|
||||
print(=== schema user_email ===\n + out)
|
||||
out, _ = run("sqlite3 /opt/smail/data/smail.db '.schema user_email'")
|
||||
print('=== schema user_email ===\n' + out)
|
||||
|
||||
out, _ = run(sqlite3 /opt/smail/data/smail.db 'SELECT id, subject, send_time FROM email ORDER BY id DESC LIMIT 5;')
|
||||
print(=== latest emails ===\n + out)
|
||||
out, _ = run("sqlite3 /opt/smail/data/smail.db 'SELECT id, subject, send_date FROM email ORDER BY id DESC LIMIT 5;'")
|
||||
print('=== latest emails ===\n' + out)
|
||||
|
||||
out, _ = run(sqlite3 /opt/smail/data/smail.db 'SELECT id, user_id, email_id, is_read FROM user_email ORDER BY id DESC LIMIT 5;')
|
||||
print(=== latest user_emails ===\n + out)
|
||||
out, _ = run("sqlite3 /opt/smail/data/smail.db 'SELECT id, user_id, email_id, is_read FROM user_email ORDER BY id DESC LIMIT 5;'")
|
||||
print('=== latest user_emails ===\n' + out)
|
||||
|
||||
ssh.close()
|
||||
ssh.close()
|
||||
|
||||
@ -4,6 +4,6 @@ ssh.set_missing_host_key_policy(paramiko.RejectPolicy())
|
||||
from remote_ssh import connect_remote
|
||||
connect_remote(ssh)
|
||||
stdin, stdout, stderr = ssh.exec_command("echo HELLO")
|
||||
print(stdout:, stdout.read().decode())
|
||||
print(stderr:, stderr.read().decode())
|
||||
print('stdout:', stdout.read().decode('utf-8', errors='replace'))
|
||||
print('stderr:', stderr.read().decode('utf-8', errors='replace'))
|
||||
ssh.close()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user