goaccess occurred Error occured at: src/parser.c – read_log 报错解决

错误信息:

[root@localhost goaccess]# ./dump.sh 


GoAccess - version 1.2 - Aug 27 2021 14:17:21 

Config file: /opt/goaccess/etc/goaccess.conf


Fatal error has occurred
Error occured at: src/parser.c - read_log - 2669

Unable to open the specified log file. No such file or directory

后来发现脚本里的目录,没有写后缀.log,所以没找到文件,低级错误,-_-||。

提示了我日志文件没找到,我还以为是其他的依赖什么的问题,后来排查发现是自己手贱了,替换回来的时候忘了加.log。

还有一种情况是-p指定的配置文件路径不对

查看日志路径是否正确,goaccess不支持nohup 放到后台执行,只能在当前shell执行,占据窗口 亲测!!!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
1.2.14\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe -P 5037 -s f19e7fbe shell ls [21:51:10][ERROR]<airtest.core.api> Traceback (most recent call last): File "airtest\core\android\adb.py", line 374, in shell File "airtest\core\android\adb.py", line 332, in raw_shell File "airtest\core\android\adb.py", line 197, in cmd airtest.core.error.AdbError: stdout[b'acct\r\napex\r\nbin\r\nbugreports\r\ncache\r\ncharger\r\nconfig\r\ncust\r\nd\r\ndata\r\ndebug_ramdisk\r\ndefault.prop\r\ndev\r\netc\r\nlost+found\r\nmnt\r\nodm\r\noem\r\nproc\r\nproduct\r\nproduct_services\r\nres\r\nsbin\r\nsdcard\r\nstorage\r\nsys\r\nsystem\r\nvendor\r\n'] stderr[b'ls: ./init.zygote64_32.rc: Permission denied\r\nls: ./init.rc: Permission denied\r\nls: ./init.usb.rc: Permission denied\r\nls: ./ueventd.rc: Permission denied\r\nls: ./init.zygote32.rc: Permission denied\r\nls: ./init.recovery.hardware.rc: Permission denied\r\nls: ./init: Permission denied\r\nls: ./init.miui.google_revenue_share_v2.rc: Permission denied\r\nls: ./init.miui.cust.rc: Permission denied\r\nls: ./init.environ.rc: Permission denied\r\nls: ./init.miui.post_boot.sh: Permission denied\r\nls: ./init.miui.qadaemon.rc: Permission denied\r\nls: ./verity_key: Permission denied\r\nls: ./init.recovery.qcom.rc: Permission denied\r\nls: ./init.miui.rc: Permission denied\r\nls: ./init.usb.configfs.rc: Permission denied\r\nls: ./init.exaid.hardware.rc: Permission denied\r\nls: ./init.miui.google_revenue_share.rc: Permission denied\r\nls: ./init.miui.nativedebug.rc: Permission denied\r\nls: ./init.miui.early_boot.sh: Permission denied\r\nls: ./metadata: Permission denied\r\n'] During handling of the above exception, another exception occurred:
07-25
根据提供的引用内容,这是一个关于AirtestIDE的问题。根据引用\[1\],如果遇到旧版本使用没问题,但更新后出现问题的情况,需要提供详细的信息来进行问题解答。具体需要提供旧版本信息(IDE版本,是否使用本地python环境,若使用本地安装的airtest和pocoui版本如何)、新版本信息(IDE版本,是否使用本地python环境,若使用本地安装的airtest和pocoui版本如何)、进行了怎样的操作/运行了怎样的代码、旧版表现如何,新版表现如何(如出现报错,请提供完整的报错信息)。 根据引用\[2\],如果需要将本地Python环境的库更新至与1.2.14一样的环境,可以使用如下命令进行更新: ``` # airtest最新版为1.2.6 pip install -U airtest # pocoui最新版为1.0.87 pip install -U pocoui ``` 根据引用\[3\],在进行覆盖更新之前,请检查是否将脚本保存到了AirtestIDE的文件路径内,如果有,请备份脚本后再进行覆盖更新,否则进行覆盖更新操作后也会覆盖掉保存在AirtestIDE路径下的脚本。 根据提供的报错信息,可以看到出现了一个AdbError异常。这个异常是由airtest.core.android.adb模块的shell函数引发的。具体的错误信息是stdout和stderr的内容,其中包含了一些Permission denied的提示。根据这个错误信息,可能是由于权限问题导致的。建议检查相关的权限设置,确保有足够的权限来执行相应的操作。 请提供更多详细的信息,以便更准确地解决问题。 #### 引用[.reference_title] - *1* *2* *3* [【更新公告】AirtestIDE更新至1.2.14版本](https://blog.csdn.net/AirtestProject/article/details/125161307)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值