麦客
麦客
  • 发布:2023-12-01 11:04
  • 更新:2023-12-01 11:32
  • 阅读:274

问题:uni2.0统计受访页和入口中页没数据

分类:uniCloud

uni2.0统计受访页和入口页没数据,其它内容都有数据,请问如何解决??
之前受访页和入口页都有数据,近七天突然没有数据,前30天都有数据

2023-12-01 11:04 负责人:DCloud_云服务_JRP 分享
已邀请:
DCloud_云服务_JRP

DCloud_云服务_JRP

  • 看下uni-stat-page-logs表中,有没有最近的数据
  • 如果uni-stat-page-logs表有数据,看下uni-stat-cron 云函数运行日志,如果你没改过配置文件的话,页面统计会在每天3点左右跑批,看下这个批次的日志有没有报错,没有报错就拉一下服务空间里的配置文件,对比一下
  • 如果uni-stat-page-logs表没有数据,说明前端sdk没有上报,用最新版HbuilderX重新打包测试一下
  • 麦客 (作者)

    uni-stat-page-logs表中有数据,uni-stat-cron 运行日志如下

    请求入参: {

    "args": {

    "userPayload": "",

    "triggerTime": "2023-12-01T04:18:18Z",

    "triggerName": "TIMER_LATEST"

    },

    "requestId": "timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0"

    }

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/37ms/DEBUG] Cron start time: 2023-12-01 12:18:22

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/38ms/DEBUG] stat--hour run

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/29288ms/DEBUG] pay-result--hour run

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/29289ms/DEBUG] -----------------支付统计开始(hour)-----------------

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/29290ms/DEBUG] 本次统计时间: 2023-12-01 12:00:00 - 2023-12-01 12:59:59

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/29290ms/DEBUG] 本次统计参数: type:hour date:1701404331291 reset:undefined

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30177ms/DEBUG] 耗时:0.888 秒

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30177ms/DEBUG] 本次共添加:0 条记录

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30177ms/DEBUG] -----------------支付统计结束(hour)-----------------

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30178ms/DEBUG] -----------------支付统计开始(day)-----------------

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30178ms/DEBUG] 本次统计时间: 2023-12-01 00:00:00 - 2023-12-01 23:59:59

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30178ms/DEBUG] 本次统计参数: type:day date:1701400731291 reset:true

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30179ms/DEBUG] -----------------支付统计开始(week)-----------------

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30179ms/DEBUG] 本次统计时间: 2023-11-27 00:00:00 - 2023-12-03 23:59:59

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30179ms/DEBUG] 本次统计参数: type:week date:1701400731291 reset:true

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30179ms/DEBUG] -----------------支付统计开始(month)-----------------

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30180ms/DEBUG] 本次统计时间: 2023-12-01 00:00:00 - 2023-12-31 23:59:59

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30180ms/DEBUG] 本次统计参数: type:month date:1701400731291 reset:true

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30180ms/DEBUG] -----------------支付统计开始(quarter)-----------------

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30180ms/DEBUG] 本次统计时间: 2023-10-01 00:00:00 - 2023-12-31 23:59:59

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30180ms/DEBUG] 本次统计参数: type:quarter date:1701400731291 reset:true

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30181ms/DEBUG] -----------------支付统计开始(year)-----------------

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30181ms/DEBUG] 本次统计时间: 2023-01-01 00:00:00 - 2023-12-31 23:59:59

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30181ms/DEBUG] 本次统计参数: type:year date:1701400731291 reset:true

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30387ms/DEBUG] Delete old data result: 0

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30393ms/DEBUG] Delete old data result: 0

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30467ms/DEBUG] Delete old data result: 0

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30470ms/DEBUG] Delete old data result: 0

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/30475ms/DEBUG] Delete old data result: 0

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31005ms/DEBUG] 耗时:0.825 秒

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31005ms/DEBUG] 本次共添加:0 条记录

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31005ms/DEBUG] -----------------支付统计结束(quarter)-----------------

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31119ms/DEBUG] 耗时:0.938 秒

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31119ms/DEBUG] 本次共添加:0 条记录

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31119ms/DEBUG] -----------------支付统计结束(year)-----------------

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31162ms/DEBUG] 耗时:0.983 秒

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31162ms/DEBUG] 本次共添加:0 条记录

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31162ms/DEBUG] -----------------支付统计结束(month)-----------------

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31234ms/DEBUG] 耗时:1.056 秒

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31234ms/DEBUG] 本次共添加:0 条记录

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31234ms/DEBUG] -----------------支付统计结束(day)-----------------

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31311ms/DEBUG] 耗时:1.132 秒

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31311ms/DEBUG] 本次共添加:0 条记录

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31311ms/DEBUG] -----------------支付统计结束(week)-----------------

    [uni-stat-cron/timer1701404302000-758bc2b5-88fb-48da-bbe3-9a31228e6aa0/31311ms/DEBUG] Cron end time: 2023-12-01 12:18:53

    请求响应状态: success

    2023-12-01 12:26

  • 麦客 (作者)

    看了配置文件好像没有区别

    2023-12-01 12:28

  • DCloud_云服务_JRP

    回复 i***@moqiehome.com: 凌晨3点左右的日志有吗

    2023-12-01 13:32

  • 麦客 (作者)

    回复 DCloud_云服务_JRP: 凌晨3点左右的日志有三个,如下

    1、

    请求入参: {

    "args": {

    "userPayload": "",

    "triggerTime": "2023-11-30T19:18:18Z",

    "triggerName": "TIMER_LATEST"

    },

    "requestId": "timer1701373101988-53bea6a4-203d-4c90-940f-a3a7abcf625e"

    }

    [uni-stat-cron/timer1701373101988-53bea6a4-203d-4c90-940f-a3a7abcf625e/32ms/DEBUG] Cron start time: 2023-12-01 03:38:22

    [uni-stat-cron/timer1701373101988-53bea6a4-203d-4c90-940f-a3a7abcf625e/33ms/DEBUG] stat--hour run

    [uni-stat-cron/timer1701373101988-53bea6a4-203d-4c90-940f-a3a7abcf625e/318ms/DEBUG] log have existed

    [uni-stat-cron/timer1701373101988-53bea6a4-203d-4c90-940f-a3a7abcf625e/318ms/DEBUG] stat--month run

    [uni-stat-cron/timer1701373101988-53bea6a4-203d-4c90-940f-a3a7abcf625e/609ms/DEBUG] log have existed

    [uni-stat-cron/timer1701373101988-53bea6a4-203d-4c90-940f-a3a7abcf625e/609ms/DEBUG] page--day run


    2、请求入参: {

    "args": {

    "userPayload": "",

    "triggerTime": "2023-11-30T19:18:18Z",

    "triggerName": "TIMER_LATEST"

    },

    "requestId": "timer1701372500909-ee6bd45f-732a-46c9-b1fb-4c5c950f23cc"

    }

    [uni-stat-cron/timer1701372500909-ee6bd45f-732a-46c9-b1fb-4c5c950f23cc/32ms/DEBUG] Cron start time: 2023-12-01 03:28:20

    [uni-stat-cron/timer1701372500909-ee6bd45f-732a-46c9-b1fb-4c5c950f23cc/32ms/DEBUG] stat--hour run

    [uni-stat-cron/timer1701372500909-ee6bd45f-732a-46c9-b1fb-4c5c950f23cc/350ms/DEBUG] log have existed

    [uni-stat-cron/timer1701372500909-ee6bd45f-732a-46c9-b1fb-4c5c950f23cc/350ms/DEBUG] stat--month run

    [uni-stat-cron/timer1701372500909-ee6bd45f-732a-46c9-b1fb-4c5c950f23cc/654ms/DEBUG] log have existed

    [uni-stat-cron/timer1701372500909-ee6bd45f-732a-46c9-b1fb-4c5c950f23cc/655ms/DEBUG] page--day run


    3、请求入参: {

    "args": {

    "userPayload": "",

    "triggerTime": "2023-11-30T19:18:18Z",

    "triggerName": "TIMER_LATEST"

    },

    "requestId": "timer1701371899919-3b962eb9-2bf8-40af-982c-d93095c9e125"

    }

    [uni-stat-cron/timer1701371899919-3b962eb9-2bf8-40af-982c-d93095c9e125/33ms/DEBUG] Cron start time: 2023-12-01 03:18:19

    [uni-stat-cron/timer1701371899919-3b962eb9-2bf8-40af-982c-d93095c9e125/34ms/DEBUG] stat--hour run

    [uni-stat-cron/timer1701371899919-3b962eb9-2bf8-40af-982c-d93095c9e125/17766ms/DEBUG] stat--month run

    [uni-stat-cron/timer1701371899919-3b962eb9-2bf8-40af-982c-d93095c9e125/18030ms/DEBUG] log have existed

    [uni-stat-cron/timer1701371899919-3b962eb9-2bf8-40af-982c-d93095c9e125/18030ms/DEBUG] page--day run

    2023-12-01 13:37

  • DCloud_云服务_JRP

    回复 i***@moqiehome.com: 你的数据量大吗,看起来好像是批次没有跑完

    2023-12-01 13:40

  • DCloud_云服务_JRP

    回复 i***@moqiehome.com: 服务空间id私信发我看下,应该是日志量太大5秒内查询不出来了

    2023-12-01 13:41

  • 麦客 (作者)

    回复 DCloud_云服务_JRP: 发你了

    2023-12-01 13:47

  • DCloud_云服务_JRP

    回复 麦客: 好的

    2023-12-01 14:34

要回复问题请先登录注册