question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ad rewards arriving message is not shown on Linux on VMs

See original GitHub issue

Found while testing https://github.com/brave/brave-browser/issues/11618

This is a regression. Not reproducible in 1.31.46. Reproducible in 1.31.47

Steps to Reproduce

  1. Clean profile
  2. Run Brave with --vmodule="*/variations/*"=6,"*/bat-native-ledger/*"=6,"*/brave_rewards/*"=6,"*/bat-native-ads/*"=6,"*/bat-native-confirmations/*"=6,"*/brave_ads/*"=9,"*/brave_user_model/*"=6 --brave-ads-staging --brave-ads-debug --rewards=staging=true --variations-server-url=https://no-thanks.invalid
  3. Enable Rewards and ads
  4. Trigger an ad
  5. Redeem the payment tokens
  6. Wait till 3rd of the next month
  7. Open brave://rewards in a new tab

Actual result:

Ad rewards arriving message is not shown

image

confirmations.json.txt confirmations_fails_after_upgrade_from.1.30.81.json.txt

Expected result:

Ad rewards arriving message is shown

image

confirmations_pass_1.30.81.json.txt

Reproduces how often:

Easily reproduced

Brave version (brave://version info)

Not reproducible in 1.31.46

Reproduced in

Brave 1.31.47 Chromium: 94.0.4606.50 (Official Build) nightly (64-bit)
Revision 0c1ac2c4842a4746c27c937c1a0453f98da1a972-refs/branch-heads/4606@{#1049}
OS Linux

cc @tmancey @rebron @jsecretan @brave/legacy_qa

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
btlechowskicommented, Sep 29, 2021

Got the new build and checked on VM and Physical Machine.

On VM it still fails and logs show proper time:

[7020:1:0929/234930.821924:FATAL:ad_rewards.cc(163)] Check failed: success. 
[5700:5700:0929/234930.822756:INFO:ads_impl.cc(415)] FOOBAR.B
[5700:5700:0929/234930.824053:INFO:ad_rewards.cc(141)] FOOBAR.now: 2021-09-29 21:49:30.821 UTC
[5700:5700:0929/234930.825289:INFO:ad_rewards.cc(142)] FOOBAR.now.timestamp: 1.63295e+09
[5700:5700:0929/234930.826443:INFO:ad_rewards.cc(147)] FOOBAR.exploded:
[5700:5700:0929/234930.827588:INFO:ad_rewards.cc(148)]   year: 2021
[5700:5700:0929/234930.830317:INFO:ad_rewards.cc(149)]   month: 9
[5700:5700:0929/234930.832192:INFO:ad_rewards.cc(150)]   day_of_week: 3
[5700:5700:0929/234930.833746:INFO:ad_rewards.cc(151)]   day_of_month: 29
[5700:5700:0929/234930.834943:INFO:ad_rewards.cc(152)]   hour: 23
[5700:5700:0929/234930.836159:INFO:ad_rewards.cc(153)]   minute: 49
[5700:5700:0929/234930.837334:INFO:ad_rewards.cc(154)]   millisecond: 821
[0929/234930.842478:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0929/234930.842519:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[0929/234930.862559:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0929/234930.862651:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)

Worrying are those errors at the end. I checked and those files don’t exist

On Physical Machine it still passes and logs show proper time:

[8767:8767:0929/223902.236244:INFO:ads_impl.cc(415)] FOOBAR.B
[8767:8767:0929/223902.238970:INFO:ad_rewards.cc(141)] FOOBAR.now: 2021-09-29 22:39:02.228 UTC
[8767:8767:0929/223902.243109:INFO:ad_rewards.cc(142)] FOOBAR.now.timestamp: 1.63296e+09
[8767:8767:0929/223902.244958:INFO:ad_rewards.cc(147)] FOOBAR.exploded:
[8767:8767:0929/223902.247022:INFO:ad_rewards.cc(148)]   year: 2021
[8767:8767:0929/223902.248688:INFO:ad_rewards.cc(149)]   month: 9
[8767:8767:0929/223902.250368:INFO:ad_rewards.cc(150)]   day_of_week: 3
[8767:8767:0929/223902.252055:INFO:ad_rewards.cc(151)]   day_of_month: 29
[8767:8767:0929/223902.265446:INFO:ad_rewards.cc(152)]   hour: 22
[8767:8767:0929/223902.272377:INFO:ad_rewards.cc(153)]   minute: 39
[8767:8767:0929/223902.275794:INFO:ad_rewards.cc(154)]   millisecond: 228

But no errors. I checked the files and they exists on physical machine

0reactions
btlechowskicommented, Jan 17, 2022

Verification passed on

Brave 1.35.85 Chromium: 97.0.4692.71 (Official Build) beta (64-bit)
Revision adefa7837d02a07a604c1e6eff0b3a09422ab88d-refs/branch-heads/4692@{#1247}
OS Ubuntu 18.04 LTS

Verified test plan from the description. The rewards arriving message is shown and errors are not logged.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot the Azure Linux Agent - Virtual Machines
If the service is running, restart it to resolve the issue. If the service is stopped, start it, wait a few minutes, and...
Read more >
No ads shown on Linux-Ubuntu - Rewards Support
Briefly describe your issue: I am getting no ads on my desktop pc but I installed brave on my phone I got an...
Read more >
How do Ad Rewards work? — FarmVille 3 Help Center
Three ads with rewards will be available every 24 hours in the game's shop. Simply tap on 'Watch Ad', watch the full ad...
Read more >
Chapter 13. Configuring virtual machine network connections
VMs on the network can connect to locations outside the host but are not visible to them. Outbound traffic is affected by the...
Read more >
Remix - Ethereum IDE & community
JUMP INTO WEB3. The Remix Project is a rich toolset which can be used for the entire journey of contract development by users...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found