6

解决 chrome sync 同步问题: chrome://sync-internals/ 的 local state 中报错:auth...

 2 years ago
source link: https://hellodk.cn/post/185
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

image.png

chrome 书签等资源同步有问题,auth error 认证错误,连不上 Server URL https://clients4.google.com/chrome-sync

这个问题一直困扰了我很久,以前解决过一次,是在 Switchy Omega 里配置一条 *.google* 的规则然后走代理,之后 重启 chrome,问题得到解决。这里有个小技巧,如果没有生效,如何强制让 chrome sync 工作呢?随便访问一个 url,将其添加至书签,过会删掉,这会触发chrome sync 让它工作。

tips: 重启 chrome: 在地址栏输入 chrome://restart 然后回车即可

好了,今天又遇到了这个问题,我的排错过程是这样的:

1. 切换 代理的 ip

这样尝试了好几个ip,但这些ip 都可以正常访问 google,所以和代理服务器无关了,问题不在这里

2. 禁用 Switchy Omega 使用 全局代理

把浏览器的 Switchy Omega 扩展关掉,代理程序使用全局代理的模式,添加书签、删除书签问题依然存在…… chrome://sync-internals/ 的 Local State 栏 中的 Server Connection 属性栏依然是 auth error since 某个时间

3. 借助以前的修复经验,再次启用了 Switchy Omega 仔细观察自定义的规则

观察出来的结果是:
发现了多个有关于 google 的域名的规则 都走了代理,怀疑是这些规则重复了。

以下这些规则:
*.googletagmanager.com
*.google-analytics.com
*.googlevideo.com
*.googleusercontent.com
*.googlesyndication.com

都配置了走代理通道。而且出问题的关键是,*.google* 这一条规则也走了代理通道

4. 解决方法

删掉 3 中重复定义的规则,只留下 *.google* 然后让其走代理通道,既然使用了 *.google* 根据域名通配符规则,应该是包括了以上域名的。保存 Switchy Omega 规则。实际上通过以前的经验,使用 *.google* 有时候访问一些 google 站点并不顺利、通畅…… 但这里先解决问题,这个问题解决了再谈其他问题

image.png

只保留这一条规则,然后应用设置,之后就可以测试了

接下来测试,添加某个url 为书签,过会再删除,这样会触发 chrome sync,再去 chrome://sync-internals/ 查看,看到如下图一样的说明同步成功,恭喜你!

image.png

同步成功,皆大欢喜

我的解决方案参考了以下文章:
https://github.com/FelisCatus/SwitchyOmega/issues/1599

ps: chrome://sync/ 这个 url 效果等同于 chrome://sync-internals/


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK