luolongfei / freenom

Freenom 域名自动续期。Freenom domain name renews automatically.
MIT License
3.33k stars 1.76k forks source link

续期成功,但是微信推送报错 #64

Open wowpala opened 2 years ago

wowpala commented 2 years ago

腾讯云部署。

续期成功,但是微信推送报错,如下:

主人,出错了,There is no existing directory at "/var/user/logs/2022-03" and its not buildable: Read-only file system

具体是在/var/user/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php文件的第174行,抛出了一个异常。异常的内容是There is no existing directory at "/var/user/logs/2022-03" and its not buildable: Read-only file system,快去看看吧。(账户:xxx@gmail.com)

日志如下:

[2022-03-29 12:12:26] 出错:There is no existing directory at "/var/user/logs/2022-03" and its not buildable: Read-only file system [{"file":"\/var\/user\/vendor\/monolog\/monolog\/src\/Monolog\/Handler\/StreamHandler.php","line":99,"function":"createDir","class":"Monolog\Handler\StreamHandler","type":"->","args":[]},{"file":"\/var\/user\/vendor\/monolog\/monolog\/src\/Monolog\/Handler\/AbstractProcessingHandler.php","line":39,"function":"write","class":"Monolog\Handler\StreamHandler","type":"->","args":[{"message":"账户:xxx@gmail.com\n续期结果如下:\n","context":

重新运行一遍函数,微信推送正常。

报告,今天没有域名需要续期

我刚刚帮小主看了一下,账户 xxx@gmail.com 今天并没有需要续期的域名。所有域名情况如下: xxx.xx 还有 345 天到期 更多信息可以参考 Freenom官网 哦~

luolongfei commented 2 years ago

这个是因为云函数上系统除 /tmp 外的所有目录都变成只读的了,程序尝试写日志会有权限问题,新版应该不会有这个问题了,下载新版 zip 试试。

luolongfei commented 2 years ago

https://github.com/luolongfei/freenom/releases/download/v0.4.5/freenom_scf.zip

wowpala commented 2 years ago

这个月部署的,应该就是0.4.5

version

[2022-03-29 12:12:13] 当前程序版本 v0.4.5 [2022-03-29 12:12:13] 共发现 1 个 freenom 账户

luolongfei commented 2 years ago

下载包更新过,里面的版本号没换,所以你可能不是最新的

wowpala commented 2 years ago

已更新,等明年才知道结果了。谢谢!

luolongfei commented 2 years ago

明天就能知道结果,因为程序每天都会执行,如果写不了日志,明天就应该抛出错误。

wowpala commented 2 years ago

如果没有需要更新的域名,是一切正常,不报错的。