不起眼的烟火 发表于 2024-9-2 09:12:33

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

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:
系统版本:9.0.0
问题描述:备份网站和数据库的计划任务不能运行!但是手动可以自行成功!==========================================================================================Traceback (most recent call last):File "/www/server/panel/script/backup.py", line 43, in <module>    backup.backupSiteAll(sys.argv, 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)----------------------------------------------------------------------------★ 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, 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)----------------------------------------------------------------------------★ 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, 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)----------------------------------------------------------------------------★ 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, 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)----------------------------------------------------------------------------★ 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, 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)----------------------------------------------------------------------------★ 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, 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)----------------------------------------------------------------------------★ 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, 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)----------------------------------------------------------------------------★ 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, 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)----------------------------------------------------------------------------★ 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, 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)----------------------------------------------------------------------------★ 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, 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)----------------------------------------------------------------------------★ 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



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




不起眼的烟火 发表于 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-9-9 11:10:40

不起眼的烟火 发表于 2024-9-7 10:56
关闭云盘,选择保存到服务器,问题依旧!

您好,机器做个快照,然后后台私信我一下您的面板登录情况
页: [1]
查看完整版本: 【待反馈】备份网站和数据库的计划任务不能运行!但是手