-
Notifications
You must be signed in to change notification settings - Fork 170
运行出了俩bug,另外在网络环境不好的主机上很容易卡住 #268
Comments
要命,换行咋都没了,凑合着看吧 |
我在我电脑上挂着总是莫名卡住是怎么回事呀 |
找作者) |
晚上礼物多就容易卡住
shoucandanghehe <notifications@github.com> 于 2020年2月27日周四 00:03写道:
… 我在我电脑上挂着总是莫名卡住是怎么回事呀
找作者)
我也只能写个脚本检测卡住然后重启
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#268?email_source=notifications&email_token=AG23OA4UXFAYHZI2ZTQNW7TRE2HD3A5CNFSM4K4IQK7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENA2C7A#issuecomment-591503740>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG23OA5SRNW6ZQKVM4AJVDDRE2HD3ANCNFSM4K4IQK7A>
.
|
有时候我白天挂着不动也会卡住 |
我用毛子主机挂,全天都会卡233,不过这俩bug是今天才发现的 |
我好像从元旦开始 我看番看完发现辣条机就停住了 |
别问,问就锤作者 |
@Dawnnnnnn 作者快来修啊 |
@Dawnnnnnn 目前我使用发现问题如下 |
bug1 已经修了,请更新到最新的 commit #66db5ca。
Ps. Issue 是用来反馈 bug 及提供改进思路的。请不要用”锤作者“这种词,我们不是客服。如果执意要采取这种态度,我们的回复就只有:爱用用,不用滚。 |
已更新至最新版本 |
bug2 (也许)已修复 #7314876 。 |
bug1:
[2020-02-26 23:39:06] [Error] Traceback (most recent call last): File "/root/co2/statistics.py", line 113, in clean_TV await utils.check_area_list(to_check) File "/root/co2/utils.py", line 259, in check_area_list for area_id in area_list: TypeError: 'int' object is not iterable
bug2:
2020-02-26 22:15:01] [Error] Traceback (most recent call last): File "/root/1024/Tasks.py", line 138, in run await self.auto_send_gift() File "/root/1024/Tasks.py", line 79, in auto_send_gift a = await utils.fetch_medal(printer=False) File "/root/1024/utils.py", line 55, in fetch_medal roomid = i['roomid'] KeyError: 'roomid'
对于卡住我自己写了个检测脚本,每分钟检测一下辣条机是否超过5分钟没有输出log
还是不太完善(小白)给大家提供一下样板顺便请大佬改进
“(lt)路径请自行修改”
使用crontab每分钟执行
记得用bash
#!/bin/bash File_name="/root/lt/log_$(date +%Y%m).txt" log="$(tail -n 1 ${File_name} | cut -b 2,3,4,5,7,8,10,11,13,14,16,17)" Now_time="$(date "+%Y%m%d%H%M")" Stopping_time=
expr ${Now_time} - ${log}if [ ${Stopping_time} -ge 5 ] then echo $(date "+%Y-%m-%d %H:%M:%S")检测 辣条机无响应,重启一次 echo $(date "+%Y-%m-%d %H:%M:%S")检测 辣条机无响应,重启一次 >> auto_reboot_bilibili_live_robot.log sendEmail -xu 邮箱账户 -xp 邮箱授权码 -t 要发送到的邮箱 -u "server酱-xxの辣条机无响应" -m "$(date "+%Y-%m-%d %H:%M:%S")检测 辣条机无响应,重启一次,若连续多次收到次邮件提醒请及时检查服务器状态。" -s smtp服务域名 -f 邮箱用户名 kill="$(screen -ls | grep -i lt | cut -d. -f1 | tr -d [:blank:])" kill $kill screen_name="lt" screen -dmS ${screen_name} cd="cd lt" run="python3 main.py" screen -x -S $screen_name -p 0 -X stuff "${cd}" screen -x -S $screen_name -p 0 -X stuff $'\n' screen -x -S $screen_name -p 0 -X stuff "${run}" screen -x -S $screen_name -p 0 -X stuff $'\n' else echo $(date "+%Y-%m-%d %H:%M:%S")检测 辣条机无需重启 echo $(date "+%Y-%m-%d %H:%M:%S")检测 辣条机无需重启 >> auto_reboot_bilibili_live_robot.log fi
The text was updated successfully, but these errors were encountered: