Skip to content

gproxy v3.0.8

Choose a tag to compare

@github-actions github-actions released this 09 Sep 10:46
· 55 commits to main since this release

v3.0.8

Fix Windows access-denied errors during automatic v2 database migration.

English

Fixed

  • Open the backup database and prepared replacement with write access before flushing them to disk. This fixes Windows Access is denied (os error 5) failures caused by calling FlushFileBuffers on read-only file handles during automatic v2 migration. Files are not truncated.

Upgrade recovery

  • If migration already failed with this error, stop gproxy, install v3.0.8, and remove .gproxy-v2-upgrade-blocked from the database directory before restarting. Retain the original database and backup directory. Removing the marker without updating the executable will repeat the failure.
  • The existing migration failure guard remains in place. For other errors, inspect the backup directory's report.txt and resolve the cause before removing the marker.

简体中文

修复

  • 自动迁移 v2 数据库时,以写权限打开备份数据库和待替换数据库后再刷盘,修复 Windows 对只读文件句柄调用 FlushFileBuffers 导致的「拒绝访问(os error 5)」错误;打开文件不会截断内容。

失败后重试

  • 如果已因该错误迁移失败,请先停止 gproxy、安装 v3.0.8,再删除数据库目录中的 .gproxy-v2-upgrade-blocked 标记并重新启动。请保留原数据库和备份目录;只删除标记而不更换程序会再次失败。
  • 迁移失败保护仍然保留。对于其他错误,请先检查备份目录中的 report.txt 并解决原因,再删除标记重试。