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

【待反馈】备份网站和数据库的计划任务不能运行!但是手

发表在 Linux面板2024-9-2 09:12 [复制链接] 9 574

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:

系统版本:9.0.0

问题描述:备份网站和数据库的计划任务不能运行!但是手动可以自行成功!
==========================================================================================Traceback (most recent call last):  File "/www/server/panel/script/backup.py", line 43, in <module>    backup.backupSiteAll(sys.argv[3], echo_id)  File "/www/server/panel/script/backup.py", line 30, in backupSiteAll    self.backup_site_all(save, echo_id=echo_id)  File "class/panelBackup.py", line 682, in backup_site_all    result = self.backup_site(site['name'], save, echo_id=echo_id)  File "class/panelBackup.py", line 513, in backup_site    self.echo_start()  File "class/panelBackup.py", line 119, in echo_start    print("\u2605\u5f00\u59cb\u5907\u4efd[{}]".format(public.format_date()))UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)----------------------------------------------------------------------------★[2024-08-29 04:30:03] Successful----------------------------------------------------------------------------Traceback (most recent call last):  File "/www/server/panel/script/log_task_analyzer.py", line 63, in <module>    f.write(f"{current_time} - \u6700\u540e\u4e00\u6b21\u5b9a\u65f6\u4efb\u52a1\u6267\u884c\u6210\u529f\n")UnicodeEncodeError: 'latin-1' codec can't encode characters in position 22-33: ordinal not in range(256)==========================================================================================Traceback (most recent call last):  File "/www/server/panel/script/backup.py", line 43, in <module>    backup.backupSiteAll(sys.argv[3], echo_id)  File "/www/server/panel/script/backup.py", line 30, in backupSiteAll    self.backup_site_all(save, echo_id=echo_id)  File "class/panelBackup.py", line 682, in backup_site_all    result = self.backup_site(site['name'], save, echo_id=echo_id)  File "class/panelBackup.py", line 513, in backup_site    self.echo_start()  File "class/panelBackup.py", line 119, in echo_start    print("\u2605\u5f00\u59cb\u5907\u4efd[{}]".format(public.format_date()))UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)----------------------------------------------------------------------------★[2024-08-30 04:30:04] Successful----------------------------------------------------------------------------Traceback (most recent call last):  File "/www/server/panel/script/log_task_analyzer.py", line 63, in <module>    f.write(f"{current_time} - \u6700\u540e\u4e00\u6b21\u5b9a\u65f6\u4efb\u52a1\u6267\u884c\u6210\u529f\n")UnicodeEncodeError: 'latin-1' codec can't encode characters in position 22-33: ordinal not in range(256)==========================================================================================Traceback (most recent call last):  File "/www/server/panel/script/backup.py", line 43, in <module>    backup.backupSiteAll(sys.argv[3], echo_id)  File "/www/server/panel/script/backup.py", line 30, in backupSiteAll    self.backup_site_all(save, echo_id=echo_id)  File "class/panelBackup.py", line 682, in backup_site_all    result = self.backup_site(site['name'], save, echo_id=echo_id)  File "class/panelBackup.py", line 513, in backup_site    self.echo_start()  File "class/panelBackup.py", line 119, in echo_start    print("\u2605\u5f00\u59cb\u5907\u4efd[{}]".format(public.format_date()))UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)----------------------------------------------------------------------------★[2024-08-31 04:30:04] Successful----------------------------------------------------------------------------Traceback (most recent call last):  File "/www/server/panel/script/log_task_analyzer.py", line 63, in <module>    f.write(f"{current_time} - \u6700\u540e\u4e00\u6b21\u5b9a\u65f6\u4efb\u52a1\u6267\u884c\u6210\u529f\n")UnicodeEncodeError: 'latin-1' codec can't encode characters in position 22-33: ordinal not in range(256)==========================================================================================Traceback (most recent call last):  File "/www/server/panel/script/backup.py", line 43, in <module>    backup.backupSiteAll(sys.argv[3], echo_id)  File "/www/server/panel/script/backup.py", line 30, in backupSiteAll    self.backup_site_all(save, echo_id=echo_id)  File "class/panelBackup.py", line 682, in backup_site_all    result = self.backup_site(site['name'], save, echo_id=echo_id)  File "class/panelBackup.py", line 513, in backup_site    self.echo_start()  File "class/panelBackup.py", line 119, in echo_start    print("\u2605\u5f00\u59cb\u5907\u4efd[{}]".format(public.format_date()))UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)----------------------------------------------------------------------------★[2024-09-01 04:30:03] Successful----------------------------------------------------------------------------Traceback (most recent call last):  File "/www/server/panel/script/log_task_analyzer.py", line 63, in <module>    f.write(f"{current_time} - \u6700\u540e\u4e00\u6b21\u5b9a\u65f6\u4efb\u52a1\u6267\u884c\u6210\u529f\n")UnicodeEncodeError: 'latin-1' codec can't encode characters in position 22-33: ordinal not in range(256)==========================================================================================Traceback (most recent call last):  File "/www/server/panel/script/backup.py", line 43, in <module>    backup.backupSiteAll(sys.argv[3], echo_id)  File "/www/server/panel/script/backup.py", line 30, in backupSiteAll    self.backup_site_all(save, echo_id=echo_id)  File "class/panelBackup.py", line 682, in backup_site_all    result = self.backup_site(site['name'], save, echo_id=echo_id)  File "class/panelBackup.py", line 513, in backup_site    self.echo_start()  File "class/panelBackup.py", line 119, in echo_start    print("\u2605\u5f00\u59cb\u5907\u4efd[{}]".format(public.format_date()))UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)----------------------------------------------------------------------------★[2024-09-02 04:30:04] Successful----------------------------------------------------------------------------Traceback (most recent call last):  File "/www/server/panel/script/log_task_analyzer.py", line 63, in <module>    f.write(f"{current_time} - \u6700\u540e\u4e00\u6b21\u5b9a\u65f6\u4efb\u52a1\u6267\u884c\u6210\u529f\n")UnicodeEncodeError: 'latin-1' codec can't encode characters in position 22-33: ordinal not in range(256)

==========================================================================================Traceback (most recent call last):  File "/www/server/panel/script/backup.py", line 43, in <module>    backup.backupSiteAll(sys.argv[3], echo_id)  File "/www/server/panel/script/backup.py", line 30, in backupSiteAll    self.backup_site_all(save, echo_id=echo_id)  File "class/panelBackup.py", line 682, in backup_site_all    result = self.backup_site(site['name'], save, echo_id=echo_id)  File "class/panelBackup.py", line 513, in backup_site    self.echo_start()  File "class/panelBackup.py", line 119, in echo_start    print("\u2605\u5f00\u59cb\u5907\u4efd[{}]".format(public.format_date()))UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)----------------------------------------------------------------------------★[2024-08-29 04:30:03] Successful----------------------------------------------------------------------------Traceback (most recent call last):  File "/www/server/panel/script/log_task_analyzer.py", line 63, in <module>    f.write(f"{current_time} - \u6700\u540e\u4e00\u6b21\u5b9a\u65f6\u4efb\u52a1\u6267\u884c\u6210\u529f\n")UnicodeEncodeError: 'latin-1' codec can't encode characters in position 22-33: ordinal not in range(256)==========================================================================================Traceback (most recent call last):  File "/www/server/panel/script/backup.py", line 43, in <module>    backup.backupSiteAll(sys.argv[3], echo_id)  File "/www/server/panel/script/backup.py", line 30, in backupSiteAll    self.backup_site_all(save, echo_id=echo_id)  File "class/panelBackup.py", line 682, in backup_site_all    result = self.backup_site(site['name'], save, echo_id=echo_id)  File "class/panelBackup.py", line 513, in backup_site    self.echo_start()  File "class/panelBackup.py", line 119, in echo_start    print("\u2605\u5f00\u59cb\u5907\u4efd[{}]".format(public.format_date()))UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)----------------------------------------------------------------------------★[2024-08-30 04:30:04] Successful----------------------------------------------------------------------------Traceback (most recent call last):  File "/www/server/panel/script/log_task_analyzer.py", line 63, in <module>    f.write(f"{current_time} - \u6700\u540e\u4e00\u6b21\u5b9a\u65f6\u4efb\u52a1\u6267\u884c\u6210\u529f\n")UnicodeEncodeError: 'latin-1' codec can't encode characters in position 22-33: ordinal not in range(256)==========================================================================================Traceback (most recent call last):  File "/www/server/panel/script/backup.py", line 43, in <module>    backup.backupSiteAll(sys.argv[3], echo_id)  File "/www/server/panel/script/backup.py", line 30, in backupSiteAll    self.backup_site_all(save, echo_id=echo_id)  File "class/panelBackup.py", line 682, in backup_site_all    result = self.backup_site(site['name'], save, echo_id=echo_id)  File "class/panelBackup.py", line 513, in backup_site    self.echo_start()  File "class/panelBackup.py", line 119, in echo_start    print("\u2605\u5f00\u59cb\u5907\u4efd[{}]".format(public.format_date()))UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)----------------------------------------------------------------------------★[2024-08-31 04:30:04] Successful----------------------------------------------------------------------------Traceback (most recent call last):  File "/www/server/panel/script/log_task_analyzer.py", line 63, in <module>    f.write(f"{current_time} - \u6700\u540e\u4e00\u6b21\u5b9a\u65f6\u4efb\u52a1\u6267\u884c\u6210\u529f\n")UnicodeEncodeError: 'latin-1' codec can't encode characters in position 22-33: ordinal not in range(256)==========================================================================================Traceback (most recent call last):  File "/www/server/panel/script/backup.py", line 43, in <module>    backup.backupSiteAll(sys.argv[3], echo_id)  File "/www/server/panel/script/backup.py", line 30, in backupSiteAll    self.backup_site_all(save, echo_id=echo_id)  File "class/panelBackup.py", line 682, in backup_site_all    result = self.backup_site(site['name'], save, echo_id=echo_id)  File "class/panelBackup.py", line 513, in backup_site    self.echo_start()  File "class/panelBackup.py", line 119, in echo_start    print("\u2605\u5f00\u59cb\u5907\u4efd[{}]".format(public.format_date()))UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)----------------------------------------------------------------------------★[2024-09-01 04:30:03] Successful----------------------------------------------------------------------------Traceback (most recent call last):  File "/www/server/panel/script/log_task_analyzer.py", line 63, in <module>    f.write(f"{current_time} - \u6700\u540e\u4e00\u6b21\u5b9a\u65f6\u4efb\u52a1\u6267\u884c\u6210\u529f\n")UnicodeEncodeError: 'latin-1' codec can't encode characters in position 22-33: ordinal not in range(256)==========================================================================================Traceback (most recent call last):  File "/www/server/panel/script/backup.py", line 43, in <module>    backup.backupSiteAll(sys.argv[3], echo_id)  File "/www/server/panel/script/backup.py", line 30, in backupSiteAll    self.backup_site_all(save, echo_id=echo_id)  File "class/panelBackup.py", line 682, in backup_site_all    result = self.backup_site(site['name'], save, echo_id=echo_id)  File "class/panelBackup.py", line 513, in backup_site    self.echo_start()  File "class/panelBackup.py", line 119, in echo_start    print("\u2605\u5f00\u59cb\u5907\u4efd[{}]".format(public.format_date()))UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)----------------------------------------------------------------------------★[2024-09-02 04:30:04] Successful----------------------------------------------------------------------------Traceback (most recent call last):  File "/www/server/panel/script/log_task_analyzer.py", line 63, in <module>    f.write(f"{current_time} - \u6700\u540e\u4e00\u6b21\u5b9a\u65f6\u4efb\u52a1\u6267\u884c\u6210\u529f\n")UnicodeEncodeError: 'latin-1' codec can't encode characters in position 22-33: ordinal not in range(256)
相关截图(日志、错误):

使用道具 举报 只看该作者 回复
发表于 2024-9-2 11:27:46 | 显示全部楼层
您好,您将您手动执行的结果截图发一下我看看
使用道具 举报 回复 支持 反对
发表于 2024-9-5 12:33:33 | 显示全部楼层
截屏2024-09-05 12.28.50.png

这个是手动运行的结果!
下面是计划任务早上03.30运行的日志!没有备份成功!

截屏2024-09-05 12.32.01.png

截屏2024-09-05 12.32.17.png
使用道具 举报 回复 支持 反对
发表于 2024-9-5 12:35:04 | 显示全部楼层
运维技术阿闯 发表于 2024-9-2 11:27
您好,您将您手动执行的结果截图发一下我看看

请管理员看看,这个问题困扰我很久了,期间重装过面板,修复过面板!专业版终身授权版本
使用道具 举报 回复 支持 反对
发表于 2024-9-5 15:06:58 | 显示全部楼层
不起眼的烟火 发表于 2024-9-5 12:35
请管理员看看,这个问题困扰我很久了,期间重装过面板,修复过面板!专业版终身授权版本 ...

您好,您看一下您的文件是不是默认使用了latin-1的编码呢,检查看一下
使用道具 举报 回复 支持 反对
发表于 2024-9-6 08:29:17 | 显示全部楼层
运维技术阿闯 发表于 2024-9-5 15:06
您好,您看一下您的文件是不是默认使用了latin-1的编码呢,检查看一下

未找到文件编码格式在哪儿?是打包的格式还是啥的?我什么都是默认的
使用道具 举报 回复 支持 反对
发表于 2024-9-6 10:11:12 | 显示全部楼层
不起眼的烟火 发表于 2024-9-6 08:29
未找到文件编码格式在哪儿?是打包的格式还是啥的?我什么都是默认的

计划任务的备份上传到google这个
取消掉后再尝试一下
使用道具 举报 回复 支持 反对
发表于 2024-9-7 10:28:18 | 显示全部楼层
运维技术阿闯 发表于 2024-9-6 10:11
计划任务的备份上传到google这个
取消掉后再尝试一下

好的,我试试
使用道具 举报 回复 支持 反对
发表于 2024-9-7 10:56:57 | 显示全部楼层
运维技术阿闯 发表于 2024-9-6 10:11
计划任务的备份上传到google这个
取消掉后再尝试一下

截屏2024-09-07 10.55.12.png

关闭云盘,选择保存到服务器,问题依旧!
使用道具 举报 回复 支持 反对
发表于 2024-9-9 11:10:40 | 显示全部楼层
不起眼的烟火 发表于 2024-9-7 10:56
关闭云盘,选择保存到服务器,问题依旧!

您好,机器做个快照,然后后台私信我一下您的面板登录情况
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

立即付费处理

工作时间:09:00至24:00

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