study_xxqg/docs/problem.md

103 lines
2.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 常见问题<!-- {docsify-ignore} -->
+ ### windows打开**study_xxqg.exe**出现直接闪退
```yaml
在文件路径栏输入**cmd**,然后再黑色命令窗口中输入```./study_xxqg.exe```,
然后查看报错内容截图并在[github](https://github.com/johlanse/study_xxqg/issues) 提交issue
```
+ ### 浏览器中登录不上怎么办?显示一个白条没反应
```yaml
浏览器登录是使用的study_xxqg的配置文件中的账号密码
是为了防止滥用,不是强国的账号密码,需要更改直接修改
config.yml文件然后重启就可以
```
+ ### windows下出现找不到浏览器的问题
```yaml
自行安装chromium内核的浏览器包括chromeedge浏览器之类然后在配置文件中配置 edge_path 配置项,配置时将路径中的 \ 换成 / 或者 \\
```
+ ### arm设备报错```could not download driver: could not check if driver is up2date: could not run driver: exit status 127```
```yaml
因为playwright官方对arm设备支持会出现一些问题所以需要手动安装node.js和chromium并创建软连接
apt-get install nodejs
apt-get install chromium
ln -s /usr/bin/chromium ~/.cache/ms-playwright/chromium-907428/chrome-linux/chrome
ln -s /usr/bin/node ~/.cache/ms-playwright-go/1.14.0/node
```
+ ### linux退出终端后脚本停止运行
```yaml
可以使用screen或者nohup等命令后台运行具体命令自行百度
nohup参考命令
nohup ./study_xxqg > xxqg.log 2>&1
退出程序可以通过**cat pid.pid**查看程序pid,然后kill对应pid进行退出
```
+ ### linux上退出后台正在执行的进程
```yaml
study_xxqg进程会在运行的时候将pid输出到目录下的pid.pid文件使用kil -9 命令即可退出后台进程
```
+ ### 刷文章或者视频无法加分
```yaml
偶尔出现视频和文章无法加分的bug,可以进行等待一段时间后重启程序再次测试,目前尚不清楚造成原因
```
+ ### Host system is missing
报错大概为这样:
```
[ERROR]: [core] 初始化chrome失败
[2022-05-13 13:43:47] [ERROR]: [core] could not send message: could not send message to server: Host system is missing dependencies!
Missing libraries are:
libgtk-3.so.0
libgdk-3.so.0
libX11-xcb.so.1
libXcomposite.so.1
libXcursor.so.1
libXdamage.so.1
libXfixes.so.3
libXi.so.6
libXrender.so.1
libpangocairo-1.0.so.0
libpango-1.0.so.0
libharfbuzz.so.0
libatk-1.0.so.0
libcairo-gobject.so.2
libcairo.so.2
libgdk_pixbuf-2.0.so.0
libdbus-glib-1.so.2
libxcb-shm.so.0
libpangoft2-1.0.so.0
libXt.so.6
```
~~在debian11的系统上解决方式为~~
使用docker可以快速解决
+ ### 为什么运行了就卡住了
当开启了cron定时配置微信公众号测试号配置telegram配置这三项的任意一项后
程序就会等待用户的指令从而卡住,所以只需要修改配置文件就可以解决