Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange log messages started to appear with recent code changes #1834

Open
g1itch opened this issue Aug 27, 2021 · 11 comments
Open

Strange log messages started to appear with recent code changes #1834

g1itch opened this issue Aug 27, 2021 · 11 comments
Labels
bug Something isn't working as it's supposed to

Comments

@g1itch
Copy link
Collaborator

g1itch commented Aug 27, 2021

Hello!

With recent code I see this log message when opening any 'inbox' folder in the bitmessageqt app

2021-08-27 15:49:00,688 - WARNING - Section or Option did not found: No section: 'BM-2cXrFSw75fT5FP7qWbM86jpMTSGFBD7uLU'
2021-08-27 15:49:00,691 - WARNING - sendBroadcast didn't work
@g1itch g1itch added the bug Something isn't working as it's supposed to label Aug 27, 2021
@g1itch
Copy link
Collaborator Author

g1itch commented Aug 27, 2021

UPD: it appears without any action, probably related to sending a pubkey

@g1itch g1itch changed the title Sending a broadcast while opening inbox? Strange log messages started to appear with recent code changes Aug 27, 2021
@g1itch
Copy link
Collaborator Author

g1itch commented Aug 27, 2021

Introduced in 6dffb1e or earlier, I'm checking it with the appimage: https://github.com/g1itch/PyBitmessage/actions/runs/1174396926

@PeterSurda
Copy link
Member

Check your "Sent" folder, you may have a broadcast queued for an address that is now deleted. It's only improved logging that changed, before it would also try to send a broadcast but just silently fail.

@PeterSurda
Copy link
Member

Maybe check with sqlite command line tool even, I'm not sure it would show up in "Sent" if the address has been deleted in the meantime.

@g1itch
Copy link
Collaborator Author

g1itch commented Aug 27, 2021

Good night! Found it:

sqlite> SELECT subject, message, status FROM sent WHERE fromaddress='BM-2cXrFSw75fT5FP7qWbM86jpMTSGFBD7uLU' and folder='sent';
subject|message|status
test_subject|test message|doingbroadcastpow

@g1itch g1itch closed this as completed Aug 27, 2021
@PeterSurda
Copy link
Member

The error messages now also have improved accuracy, if it says sendBroadcast didn't work, it really means sendBroadcast didn't work, rather than a pubkey or some other object. Step by step things are getting better.

@g1itch
Copy link
Collaborator Author

g1itch commented Aug 28, 2021

Shouldn't it also report an error for these 10 broadcasts?

sqlite> SELECT count(*) FROM sent WHERE status='broadcastqueued' and folder='sent';
10

@g1itch
Copy link
Collaborator Author

g1itch commented Sep 1, 2021

Now I see many warnings about "Proof of Work exception" which are wrong, please see my comments on fc19c54

@g1itch g1itch reopened this Sep 1, 2021
@g1itch
Copy link
Collaborator Author

g1itch commented Sep 2, 2021

I always suggest writing tests to avoid exactly such cases. Before editing the code you need to understand and document what it does, I think.

@g1itch
Copy link
Collaborator Author

g1itch commented Sep 2, 2021

You can also see it in the recent buildbot runs, e.g. https://buildbot.bitmessage.org/#/builders/25/builds/2180/steps/8/logs/stdio, line 852.

This is the effect of missing return: https://buildbot.bitmessage.org/#/builders/25/builds/2220/steps/8/logs/stdio, line 846

@g1itch
Copy link
Collaborator Author

g1itch commented Sep 29, 2021

This one is also started to appear lately:

WARNING - (Within the processgetpubkey function) Someone requested one of my pubkeys but the requestedAddressVersionNumber doesn't match my actual address version number. Ignoring.

And the "Proof of Work exception" right after it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as it's supposed to
Projects
None yet
Development

No branches or pull requests

2 participants