我的网站 https://alzt02n.github.io/ 由于leancloud要没了,所以打算更换评论后端存储,目前的 https://waline-railway-production-6268.up.railway.app/ui/register 有500问题,问ai,自己想,一下午都没能解决...
有没有大佬来帮我一把?
TiDB Cloud Serverless 报错 Connections using insecure transport are prohibited
TiDB Serverless 强制要求所有连接必须用 TLS/SSL 加密,但 Waline 的 MySQL 客户端配置 SSL 失败,试了改 URL 加 ssl 参数、换 sslmode、加 CA 证书都不行
Railway MySQL 报错 getaddrinfo ENOTFOUND mysql.railway.internal
内网域名解析失败,改用公共连接地址后继续报错
改用公共地址后报错 ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server
MySQL 8.0+ 默认用 caching_sha2_password 认证,Waline 的 MySQL 客户端太旧不支持。尝试改成 mysql_native_password,但 Railway 的 MySQL 9.4 已经移除了这个插件
PlanetScale 注册时提示 Region locked
检测到中国 IP,直接不让用
SQLite 部署后服务状态 Active,但访问注册页报 500
分析:服务是起来了,但数据库表没自动创建。API 返回 SQLITE_ERROR: no such table: wl_Users
目前是卡在最后了,
第一次500:TiDB Cloud Serverless 报 Connections using insecure transport are prohibited
你执行了:改 MYSQL_URL 加 ssl 参数、换 sslmode、加CA证书,都不行
第二次500:Railway MySQL 报 getaddrinfo ENOTFOUND mysql.railway.internal
你执行了:换公共连接地址、加 Reference,还是500
第三次500:Railway MySQL 报 ER_NOT_SUPPORTED_AUTH_MODE
你执行了:用 mysqlsh 连数据库改认证方式,发现 MySQL 9.4 已移除 mysql_native_password 插件,改不了
第四次500:SQLite 部署后访问注册页报 SQLITE_ERROR: no such table: wl_Users
你执行了:确认环境变量正确、访问 /ui 注册、在浏览器用 fetch 手动注册、改 SQLITE_PATH 到 /tmp、加 Volume,都是500
第五次500:fetch 注册返回 Promise {<pending>} 最终 undefined
你执行了:在 Network 标签看真实返回,还是500