uni2.0统计受访页和入口页没数据,其它内容都有数据,请问如何解决??
之前受访页和入口页都有数据,近七天突然没有数据,前30天都有数据
麦客
- 发布:2023-12-01 11:04
- 更新:2023-12-01 11:32
- 阅读:405
麦客 (作者)
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
BeforeMount
回复 DCloud_云服务_JRP: 解决了吗 我也遇到了这个情况
2024-06-19 14:48
DCloud_云服务_JRP
回复 BeforeMount: 看下uni-stat-cron云函数,凌晨3点左右的运行日志,如果状态标识是灰色的就代表超时了,需要将云函数的运行超时时间调大
2024-06-19 15:22
BeforeMount
回复 DCloud_云服务_JRP: 我看了19-20号两三点有6条灰的 具体要改云函数哪块
2024-06-20 08:55
DCloud_云服务_JRP
回复 BeforeMount: 改uni-stat-cron 云函数的超时时间,如果是阿里云服务空间改为7200秒
2024-06-20 10:21
BeforeMount
回复 DCloud_云服务_JRP: 在哪里设 uni-stat-cron下的 package里吗
2024-06-20 20:29
DCloud_云服务_JRP
回复 BeforeMount: 在uniCloud控制台,或者package.json中设置都可以
2024-06-21 10:24
BeforeMount
回复 DCloud_云服务_JRP: 我改了uni-stat-cron下的 package 上传运行了 还是周的还是没有数据
2024-06-21 15:36
DCloud_云服务_JRP
回复 BeforeMount: 你的服务空间编号私信发我看下
2024-06-21 17:55
BeforeMount
回复 DCloud_云服务_JRP: mp-17f3361a-271f-4422-9ca3-3966e69bd30c 现在已经有了 另外 我想问下 uni-upgrade-center-app有没有这个情况 我日活在3000 但是更了强更 还是有旧版本的 会不会也是请求云函数超时引起的
2024-06-24 09:14
DCloud_云服务_JRP
回复 BeforeMount: 会不会是这样:开启强更后,用户第一次打开应用此时应用还是老版本的,如果有上报数据肯定是老的版本号
2024-06-24 10:30