当前位置:论坛首页 > Linux面板 > 求助

【已解决】Daily job not completing

发表在 Linux面板2021-9-24 17:57 [复制链接] 10 2733

When I try run the daily job from my crontab manually in the CLI:

php -n /www/wwwroot/manage/xcat dailyjob

I get the errors in the screenshot.


How do I fix this?

Thanks


Screenshot_2021-09-24_17-55-59.png
使用道具 举报 只看该作者 回复
发表于 2021-9-24 18:09:46 | 显示全部楼层
你好,根据图中提示的信息:
1.你的程序可能不支持高版本的PHP,可以尝试低版本的PHP看是否可以解决
2.图中两处提示文件或目录不存在
使用道具 举报 回复 支持 反对
发表于 2021-9-24 18:16:09 | 显示全部楼层
本帖最后由 宝塔用户_bxkgxl 于 2021-9-24 18:19 编辑
堡塔安全赤井秀一 发表于 2021-9-24 18:09
你好,根据图中提示的信息:
1.你的程序可能不支持高版本的PHP,可以尝试低版本的PHP看是否可以解决
2.图中 ...

I have had this problem before and it has resolved itself on it's own. My other 2 php jobs in crontab run fine:

php /www/wwwroot/manage/xcat checkjob
php /www/wwwroot/manage/xcat syncnode

My PHP version is PHP 7.3.5

It seems my sever can't connect to the stream as in the screenshot to update QQWry.dat, it seems to be specifically this step in job.php line 249 that is causing the problem.
使用道具 举报 回复 支持 反对
发表于 2021-9-24 18:29:28 | 显示全部楼层
宝塔用户_bxkgxl 发表于 2021-9-24 18:16
I have had this problem before and it has resolved itself on it's own. My other 2 php jobs in cront ...

这个需要您那边自己检查一下PHP脚本,具体错误都已返回出来了。
1.删除报错是提示不存在这个目录或文件,这个需要您检查一下删除路径是否正确
2.提示file_get_contents是函数问题导致,可将PHP7.3版本更换到PHP7.2以下版本使用
3.提示切换的目录不存,

您这样子能否理解了?
使用道具 举报 回复 支持 反对
发表于 2021-9-24 18:58:32 | 显示全部楼层
谢花郎 发表于 2021-9-24 18:29
这个需要您那边自己检查一下PHP脚本,具体错误都已返回出来了。
1.删除报错是提示不存在这个目录或文件, ...

Yes I understand, I have never had that directory in the 2 years running this server, and when I add the directory daily tasks try to download 2 Gigs of data to the directory. My PHP version is the same as it was yesterday, and I had no problems yesterday connecting to the link to update QQwry.dat. This is a problem that has suddenly started today. I will try downgrade the PHP version to see if that works, and give feedback, but I honestly doubt that is the problem.
使用道具 举报 回复 支持 反对
发表于 2021-9-24 19:03:43 | 显示全部楼层
宝塔用户_bxkgxl 发表于 2021-9-24 18:58
Yes I understand, I have never had that directory in the 2 years running this server, and when I a ...

你所执行的脚本已经返回具体的错误信息了,我也是根据错误信息给您的答复。
使用道具 举报 回复 支持 反对
发表于 2021-9-24 21:42:06 | 显示全部楼层
谢花郎 发表于 2021-9-24 18:29
这个需要您那边自己检查一下PHP脚本,具体错误都已返回出来了。
1.删除报错是提示不存在这个目录或文件, ...

So downgrading PHP to 7.2 has no effect. I still get the error about line 249 in the job.php file. I looked at that line and it is trying to connect by https to a website.

After searching online it seems that BT is trying to contact the mirror site and it can't complete the https connection due to a problem with the TLS certificate. So it seems to be a CA certificate issue with the mirror hosting QQWry.dat. Is this a website connected to BT in anyway? Maybe an expired certificate?
使用道具 举报 回复 支持 反对
发表于 2021-9-24 22:05:33 | 显示全部楼层
宝塔用户_bxkgxl 发表于 2021-9-24 21:42
So downgrading PHP to 7.2 has no effect. I still get the error about line 249 in the job.php file. ...

您好,你执行的PHP脚本,这个是你自己程序的脚本。
而非我宝塔提供的php脚本,我们是没有提供PHP的脚本
你说的249行访问的地址是其他网站的,并非我们的网站地址
使用道具 举报 回复 支持 反对
发表于 2021-9-25 07:44:22 | 显示全部楼层
谢花郎 发表于 2021-9-24 22:05
您好,你执行的PHP脚本,这个是你自己程序的脚本。
而非我宝塔提供的php脚本,我们是没有提供PHP的脚本
...

OK thanks. I am not quite sure then what the script is for then, as this website was built for me by someone I can no longer get in contact with. I did manage to solve the issue by editing the script and changing the link from https to http and the daily task will now run that part of the job. However it hasn't solved the issue as to why my SSR has stopped working all of a sudden, I thought this daily job may be the cause but I don't think so. I will continue digging further.

使用道具 举报 回复 支持 反对
发表于 2021-9-25 07:45:18 | 显示全部楼层
OK thanks. I am not quite sure then what the script is for then, as this website was built for me by someone I can no longer get in contact with. I did manage to solve the issue by editing the script and changing the link from https to http and the daily task will now run that part of the job. However it hasn't solved the issue as to why my SSR has stopped working all of a sudden, I thought this daily job may be the cause but I don't think so. I will continue digging further.
使用道具 举报 回复 支持 反对
发表于 2021-9-25 07:47:33 | 显示全部楼层
谢花郎 发表于 2021-9-24 22:05
您好,你执行的PHP脚本,这个是你自己程序的脚本。
而非我宝塔提供的php脚本,我们是没有提供PHP的脚本
...

OK thanks. I am not quite sure then what the script is for then, as this website was built for me by someone I can no longer get in contact with. I did manage to solve the issue by editing the script and changing the link from https to http and the daily task will now run that part of the job. However it hasn't solved the issue as to why my SSR has stopped working all of a sudden, I thought this daily job may be the cause but I don't think so. I will continue digging further.
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表