luolongfei / freenom Goto Github PK
View Code? Open in Web Editor NEWFreenom 域名自动续期。Freenom domain name renews automatically.
License: MIT License
Freenom 域名自动续期。Freenom domain name renews automatically.
License: MIT License
描述问题
获取域名状态页面出错,可能是未登录或者登录失效,请重试。(Error code: 34520009)
具体是在/var/user/app/Console/FreeNom.php文件的第204行,抛出了一个异常。异常的内容是获取域名状态页面出错,可能是未登录或者登录失效,请重试。(Error code: 34520009),快去看看吧。
重现步骤
获取域名状态页面出错,可能是未登录或者登录失效,请重试。(Error code: 34520009)
具体是在/var/user/app/Console/FreeNom.php文件的第204行,抛出了一个异常。异常的内容是获取域名状态页面出错,可能是未登录或者登录失效,请重试。(Error code: 34520009),快去看看吧。
截图&日志
你做了哪些尝试
v0.4.4也试了 同样的问题 不知道是我的问题还是文件的问题
环境信息
docker也试了 同样的问题
返回结果
Text
{"errorCode":-1,"errorMessage":"Invoking task timed out after 3 seconds","requestId":"179f949c-648a-4746-b828-edf350886988","statusCode":433}
执行日志
UTF-8
START RequestId: 179f949c-648a-4746-b828-edf350886988
Event RequestId: 179f949c-648a-4746-b828-edf350886988
[2021-09-27 18:31:41] 当前程序版本 v0.3_scf
END RequestId: 179f949c-648a-4746-b828-edf350886988
Report RequestId: 179f949c-648a-4746-b828-edf350886988 Duration:3000ms Memory:128MB MemUsage:13.7305MB
异常原因:
具体是在/app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php文件的第200行,抛出了一个异常。异常的内容是cURL error 52: Empty reply from server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html),快去看看吧。
续签之后发现只续签了好像是60天,怎么设置一次签的时间更久一些
黑群晖6.2.3部署docker时出现的,脚本会自己运行两次?第一次提示没有配置,第二次是正确提示,我已经按照要求修改了.env文件,但是不知道第一次运行的时候是读取的哪个.env文件。完整信息如下
root@DiskStation:/volume1/docker/Freenom# docker logs freenom
[Info] 已生成 .env 文件,请将 .env 文件中的配置项改为你自己的,然后重启容器
[Info] 已自动指定执行时间,续期任务将在北京时间每天 「14:13」 执行
[Info] 在没有手动指定 RUN_AT 环境变量的情况下,每次重启容器,程序都会重新在 06 ~ 23 点全时段中自动随机指定一个执行时间,目的是防止很多人在同一个时间点执行任务导致 Freenom 无法稳定提供服务
[Info] 计划任务:13 14 * * * php /app/run > /app/logs/freenom_cron.log 2>&1
[2022-02-28 00:07:12] 当前程序版本 v0.4.5
[2022-02-28 00:07:12] 执行出错:检测到你尚未配置 freenom 账户信息,请修改 .env 文件中与账户相关的项,否则程序无法正常运作(Error code: 34520001) [{"file":"/app/app/Console/FreeNom.php","line":419,"function":"getAccounts","class":"Luolongfei\App\Console\FreeNom","type":"->","args":[]},{"file":"/app/run","line":110,"function":"handle","class":"Luolongfei\App\Console\FreeNom","type":"->","args":[]},{"file":"/app/run","line":121,"function":"run","args":[]}]
[Info] 已自动指定执行时间,续期任务将在北京时间每天 「14:49」 执行
[Info] 在没有手动指定 RUN_AT 环境变量的情况下,每次重启容器,程序都会重新在 06 ~ 23 点全时段中自动随机指定一个执行时间,目的是防止很多人在同一个时间点执行任务导致 Freenom 无法稳定提供服务
[Info] 计划任务:49 14 * * * php /app/run > /app/logs/freenom_cron.log 2>&1
[2022-02-28 00:11:52] 当前程序版本 v0.4.5
[2022-02-28 00:11:52] 共发现 1 个 freenom 账户
[2022-02-28 00:11:52] 开始处理第 1 个 freenom 账户:[email protected] [1/1]
[2022-02-28 00:11:58] [email protected]:执行成功,今次没有需要续期的域名。
环境信息
额外的备注
是否可以增加企业微信,或者企业微信机器人通知通知
描述问题
通过直接拉取源码部署
重现步骤
最后一步的时候验证的时候
cd /data/wwwroot/freenom/ && php run
报错
[2022-03-12 18:56:34] {"type":2,"message":"require(\/data\/wwwroot\/freenom\/resources\/lang\/zh_cn:zh.php): Failed to open stream: No such file or directory","file":"\/data\/wwwroot\/freenom\/libs\/Lang.php","line":22}
**截图&日志**
**环境信息**
- debian11 x64
- php8.0
- freenom续期脚本版本 v0.4.5
**额外的备注**
- 直接拉取源码部署
你好,群晖docker上是luolongfei/freenom不是luolongfei/next-freenom,直接用双击下载luolongfei/freenom,是不是最新的吗?
描述问题
报错如下:
,抛出了一个异常。异常的内容是Client error: POST https:\/\/api.telegram.org\/botTOKEN\/sendMessage
resulted in a 400 Bad Request
response:\n{"ok":false,"error_code":400,"description":"Bad Request: chat not found"}\
重现步骤
第一次配置报错
环境信息
描述问题
.env文件为隐藏,能否可以取消隐藏,这样在OP ENWRT的DOCKER里就可以直接实现修改,而无需借助其他链接工具了。谢谢。
由于域名较多设置dns比较麻烦
有没有批量设置dns到cloudflare的脚本
描述问题
消息正常推送,但控制台报错。
[2022-01-18 09:47:24] Telegram 消息发送失败:Client error: `POST https://api.telegram.org/bot<TOKEN>/sendMessage` resulted in a `400 Bad Request` response:
{"ok":false,"error_code":400,"description":"Bad Request: can't parse entities: Character '{' is reserved and must be esc (truncated...)
环境信息
在尝试部署到阿里云函数计算的时候提示
{"errorMessage":"function handler not found","errorType":"Exception","stackTrace":{"file":"/var/fc/runtime/php7.2/src/invoke.php","line":71,"traceString":""}}
可以尝试支持一下吗
建议三方邮箱这边也写个示例。像MAIL_ENCRYPTION都能填什么这种
描述问题
执行报错
重现步骤
安装好docker,修改env文件后,重启docker,在输入日志
截图&日志
出错:登录 freenom 出错。错误信息:cURL error 6: Could not resolve host: my.freenom.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://my.freenom.com/dologin.php(Error code: 34520002)
你做了哪些尝试
重新编辑env文件
环境信息
额外的备注
关联:#13
自部署的Server 酱:https://github.com/easychen/pushdeer
腾讯云部署。
续期成功,但是微信推送报错,如下:
主人,出错了,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,快去看看吧。(账户:[email protected])
日志如下:
[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":"账户:[email protected]\n续期结果如下:\n","context":
重新运行一遍函数,微信推送正常。
报告,今天没有域名需要续期
我刚刚帮小主看了一下,账户 [email protected] 今天并没有需要续期的域名。所有域名情况如下:
xxx.xx 还有 345 天到期
更多信息可以参考 Freenom官网 哦~
描述问题
0.4.4 无法更新到最新版0.4.5
重现步骤
2862 docker rm -f freenom
2863 docker rmi -f luolongfei/freenom
2864 docker run -d --name freenom --restart always -v $(pwd):/conf -v $(pwd)/logs:/app/logs luolongfei/freenom
2865 docker run -d --name freenom --restart always -v $(pwd):/conf -v $(pwd)/logs:/app/logs luolongfei/freenom\n
2866 docker restart freenom
2867 docker logs freenom
截图&日志
[2022-03-19 23:19:23] 当前程序版本 v0.4.4
[2022-03-19 23:19:23] 共发现 1 个 freenom 账户,处理中
[2022-03-19 23:19:35] 当前通知频率为「仅当有续期操作时」,故本次不会推送通知
[2022-03-19 23:19:35] *********:执行成功,今次没有需要续期的域名。
[Info] 已自动指定执行时间,续期任务将在北京时间每天 「13:24」 执行
[Info] 在没有手动指定 RUN_AT 环境变量的情况下,每次重启容器,程序都会重新在 06 ~ 23 点全时段中自动随机指定一个执行时间,目的是防止很多人在同一个时间点执行任务导致 Freenom 无法稳定提供服务
[Info] 计划任务:24 13 * * * php /app/run > /app/logs/freenom_cron.log 2>&1
[2022-03-19 23:21:57] FreeNom 续期工具有新的版本可用,最新版本为 v0.4.5(https://github.com/luolongfei/freenom/releases/tag/v0.4.5)
[2022-03-19 23:22:18] 邮件发送失败:SMTP 错误:数据不被接受。
[2022-03-19 23:22:18] 当前程序版本 v0.4.4
[2022-03-19 23:22:18] 共发现 1 个 freenom 账户,处理中
[2022-03-19 23:22:26] 当前通知频率为「仅当有续期操作时」,故本次不会推送通知
[2022-03-19 23:22:26] ********:执行成功,今次没有需要续期的域名。
你做了哪些尝试
重复以上命令多次,依旧无法更新
环境信息
额外的备注
家庭网络环境下 nas,
主人,出错了,获取域名状态页面出错,可能是未登录或者登录失效,请重试。(Error code: 34520009)
具体是在/var/user/app/Console/FreeNom.php文件的第204行,抛出了一个异常。异常的内容是获取域名状态页面出错,可能是未登录或者登录失效,请重试。(Error code: 34520009),快去看看吧。(账户:)
Is your feature request related to a problem? Please describe.
添加一个部署方式多一种选择(主要是更方便点)
Describe the solution you'd like
添加支持Cloudflare Workers部署
希望大佬提供更丰富的部署方式
描述问题
root@NAS:/www/server/php/74/bin# php /data/wwwroot/freenom/run
[2022-02-02 01:18:20] {"type":64,"message":"require(): Failed opening required '\/data\/wwwroot\/freenom\/resources\/lang\/en_US:en.php' (include_path='.:')","file":"\/data\/wwwroot\/freenom\/libs\/Lang.php","line":22}
重现步骤
root@NAS:/www/server/php/74/bin# php /data/wwwroot/freenom/run
截图&日志
你做了哪些尝试
描述你发现问题后做了哪些尝试,方便我快速排除某些问题,提高沟通效率。
环境信息
额外的备注
请教一下,安装了青龙面板。是不是影响这个呢、
描述问题
[2022-02-06 22:50:51] 当前程序版本 v0.4.4
[2022-02-06 22:50:51] 共发现 1 个 freenom 账户,处理中
[2022-02-06 22:50:56] 出错:登录 freenom 出错。错误信息:cURL error 6: Could not resolve host: my.freenom.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)(Error code: 34520002)
[Info] 已自动指定执行时间,续期任务将在北京时间每天 「17:32」 执行
[Info] 在没有手动指定 RUN_AT 环境变量的情况下,每次重启容器,程序都会重新在 06 ~ 23 点全时段中自动随机指定一个执行时间,目的是防止很多人在同一个时间点执行任务导致 Freenom 无法稳定提供服务
[Info] 计划任务:32 17 * * * php /app/run > /app/logs/freenom_cron.log 2>&1
重现步骤
重启 docker (非重启容器)后还是出现现这种情况,
截图&日志
环境信息
描述问题
脚本是不是无法支持纯ipv6服务器,日志提示无法登录freenom
重现步骤
确保安装和设置信息无误
截图&日志
开始处理第 1 个 freenom 账户 [1/1]
[2022-03-01 14:40:09] 出错:登录 freenom 出错。错误信息:cURL error 6: Could not resolve host: my.freenom.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://my.freenom.com/dologin.php(Error code: 34520002)
[2022-03-01 14:40:15] Telegram 消息发送失败:cURL error 6: Could not resolve host: api.telegram.org
你做了哪些尝试
1.修改了dns配置(地址:2001:67c:2b0::4 地址:2001:67c:2b0::6)
2.可以用ping6连通www.google.com及www.freenom.com,但无法连通my.freenom.com
3.多次过重启 Docker(非容器),包括服务器,有尝试。
环境信息
描述问题
邮件截图显示503错误,坐等freenom修复还是freenom改url了?
Server error: `POST https://my.freenom.com/dologin.php` resulted in a `503 Service Unavailable: Back-end server is at capacity` response
在https://my.freenom.com/clientarea.php页面上手动登录时OK的
你做了哪些尝试
找了一下登录页的源码
<form method="post" action="dologin.php" class="form-stacked">
。。。
</form>
又好像url没变
环境信息
腾讯云函数
额外的备注
在此之前都是OK的,今天第一次出现
建议支持自部署的Server 酱
Server 酱的配置支持自定义URL
我的freenom 密码有% , 也会报错 , 查了半天才发现是这个问题。
请更新一下以免其他人也遇到,谢谢!
描述问题
**重现步骤**
**截图&日志**
[2022-03-01 09:52:43] 执行出错:Failed to parse dotenv file due to a missing closing quote. Failed at ['5042328466:AAGTPmHxDvbKnsf8Hl378y3T6ckI_v_zsO4]. [{"file":"\/app\/vendor\/vlucas\/phpdotenv\/src\/Parser.php","line":30,"function":"parseValue","class":"Dotenv\\Parser","type":"::","args":["'5042328466:AAGTPmHxDvbKnsf8Hl378y3T6ckI_v_zsO4"]},{"file":"\/app\/vendor\/vlucas\/phpdotenv\/src\/Loader.php","line":169,"function":"parse","class":"Dotenv\\Parser","type":"::","args":["TELEGRAM_BOT_TOKEN='5042328466:AAGTPmHxDvbK4"]},{"file":"\/app\/vendor\/vlucas\/phpdotenv\/src\/Loader.php","line":107,"function":"processEntries","class":"Dotenv\\Loader","type":"->","args":[["ENV_FILE_VERSION='v2'","FREENOM_USERNAME=","FREENOM_PASSWORD=1","MULTIPLE_ACCOUNTS=''","FREENOM_PROXY=''","MAIL_USERNAME=1.com","MAIL_PASSWORD=rjbjfxhddj","[email protected]","MAIL_ENABLE=0","MAIL_HOST=''","MAIL_PORT=''","MAIL_ENCRYPTION=''","TELEGRAM_CHAT_ID=1273","TELEGRAM_BOT_TOKEN='5042AGTPmHxDvbKnsf8Hl378y3T6ckI_v_zsO4","'","TELEGRAM_PROXY=''","TELEGRAM_BOT_ENABLE=1","WECHAT_CORP_ID=''","WECHAT_CORP_SECRET=''","WECHAT_AGENT_ID=''","WECHAT_ENABLE=0","SCT_SEND_KEY=''","SCT_ENABLE=0","BARK_KEY=''","BARK_URL='https:\/\/api.day.app'","BARK_IS_ARCHIVE=''","BARK_GROUP='FreeNom'","BARK_LEVEL='active'","BARK_ICON='https:\/\/q2.qlogo.cn\/headimg_dl?dst_uin=593198779&spec=100'","BARK_JUMP_URL=''","BARK_SOUND='gotosleep'","BARK_ENABLE=0","NOTICE_FREQ=1","VERIFY_SSL=0","DEBUG=0","NEW_VERSION_DETECTION=1"]]},{"file":"\/app\/vendor\/vlucas\/phpdotenv\/src\/Loader.php","line":91,"function":"loadDirect","class":"Dotenv\\Loader","type":"->","args":
**你做了哪些尝试**
vi .env修改配置文件后
再次尝试重启和输入还是不能运行
**环境信息**
- ubuntu11 x64
- php8.0
- freenom续期脚本版本 v0.4.5
**额外的备注**
- Add any other context about the problem here.
最近几天在执行函数的时候遇到了这个错误,以往并没有这个问题
平台:阿里云函数
错误类型:UnhandledInvocationError
返回结果
{"errorMessage":"Call to undefined function GuzzleHttp\\_idn_uri_convert()","errorType":"Error","stackTrace":{"file":"\/code\/vendor\/guzzlehttp\/guzzle\/src\/Client.php","line":220,"traceString":""}}
日志输出
FunctionCompute php7.2 runtime inited.
FC Invoke Start RequestId: 7ba666f6-39ec-4caf-ab42-d5ab9df35cc6
2022-02-04T07:35:03Z 7ba666f6-39ec-4caf-ab42-d5ab9df35cc6 [INFO] 开始执行阿里云函数
FC Invoke End RequestId: 7ba666f6-39ec-4caf-ab42-d5ab9df35cc6
array (
'errorMessage' => 'Call to undefined function GuzzleHttp\\_idn_uri_convert()',
'errorType' => 'Error',
'stackTrace' =>
array (
'file' => '/code/vendor/guzzlehttp/guzzle/src/Client.php',
'line' => 220,
'traceString' => '',
),
)
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
是否可以增加pp.ua自动续期的支持
非常感谢!
已解决
Describe the problem
Docker container sends Chinese language notifications on Telegram.
Steps to reproduce
Add "LANGUAGE=en" in .env file
Screenshots & Logs
What did you try
I've manually downloaded the latest .env file from this repository but still, it sends Chinese notifications on Telegram.
Environmental Information
Additional Notes
root@debian11:/data/wwwroot/freenom# php run
PHP Fatal error: Class 'Luolongfei\Libs\Log' not found in /data/wwwroot/freenom/run on line 54
Fatal error: Class 'Luolongfei\Libs\Log' not found in /data/wwwroot/freenom/run on line 54
用的是方式三:直接拉取源码部署的
多长时间执行一次?
首先,非常感谢您的这个项目。
我计划使用个人域名邮箱发送通知邮件,但是项目只支持这3个邮箱类型,gmail登录被拒,其他两个不想验证邮箱。尽管我的域名是托管在gsuit上的,smtp参数和gmail一样,项目仍无法判断出来,最终我把Mail.php当中的代码修改了一点点才可以发送成功。
因此建议增加一点配置,可以自定义smtp服务器参数。
php run无法执行
php run程序无法顺利执行
重现步骤
截图&日志
$cat freenom_crontab.log
[2022-01-24 21:58:22] {"type":64,"message":"require(): Failed opening required '\/home\/had\/freenom\/resources\/lang\/zh_CN:zh.php' (include_path='.:\/usr\/share\/php')","file":"\/home\/had\/freenom\/libs\/Lang.php","line":22}
你做了哪些尝试
$cat freenom_crontab.log
[2022-01-24 21:58:22] {"type":64,"message":"require(): Failed opening required '\/home\/had\/freenom\/resources\/lang\/zh_CN:zh.php' (include_path='.:\/usr\/share\/php')","file":"\/home\/had\/freenom\/libs\/Lang.php","line":22}
$ php run
[2022-01-24 21:58:22] {"type":64,"message":"require(): Failed opening required '\/home\/had\/freenom\/resources\/lang\/zh_CN:zh.php' (include_path='.:\/usr\/share\/php')","file":"\/home\/had\/freenom\/libs\/Lang.php","line":22}
环境信息
感谢作者的作品,测试了一下,配置简单,好用。
在配置推送方面,我测试了邮件、tg机器人、Server 酱。
在测试Server 酱时,出现了请求失败的情况,以及老版的Server 酱已经快没了。
请看下是否可以增加pushplus或者WxPusher。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.