SeaDve / Mousai

Identify songs in seconds
GNU General Public License v3.0
1.01k stars 38 forks source link

Mousai thinks it is not online #84

Closed wimdows closed 1 year ago

wimdows commented 1 year ago

Since yesterday Mousai tells me that the search request is being saved, and will be looked up next time I am online. I am pretty sure I am conected. I am using a Librem5.

SeaDve commented 1 year ago

Could you provide some more context, like logs? Thanks!

wimdows commented 1 year ago

I am not a log expert. Which one(s) would you like?

SeaDve commented 1 year ago

the one produced from Mousai through RUST_LOG=mousai=debug env var

SeaDve commented 1 year ago

I would also like to ask about version

Btw, I remember that Mousai had a bug report template. It should provide guides on which information to provide which would be helpful in diagnosing the issue.

wimdows commented 1 year ago

Don't know where to look for that log.. I will wait for the next update, maybe the problem will solve itself. Sorry for bothering you.

wimdows commented 1 year ago

Version, I do know: 0.7.3.

SeaDve commented 1 year ago

Version, I do know: 0.7.3.

Thanks!

I will wait for the next update, maybe the problem will solve itself.

I don't think it will in this case. There were changes in v0.7.3 that is relevant to this. To get the logs, just run RUST_LOG=mousai=debug mousai or if you're on flatpak, run RUST_LOG=mousai=debug flatpak run io.github.seadve.Mousai

wimdows commented 1 year ago

Okay. Will do.

wimdows commented 1 year ago

Hmm. No sign of the error any more. My bad, probably.

SeaDve commented 1 year ago

I think I figured out the issue. It was outputting incorrect error message. It was probably not at all connection error, but you have reached token limit.

I have fixed it in a previous commit: https://github.com/SeaDve/Mousai/commit/211130abaa74bb3528aa66cfefb23f3757c5179e

SeaDve commented 1 year ago

I'm closing this, but feel free to reopen when you come across the issue again

bla6apm commented 1 year ago

Hi!

I'm facing the same issue. This is the log from console:

RUST_LOG=mousai=debug flatpak run io.github.seadve.Mousai
2023-06-28T10:51:27.919253Z  INFO mousai::application: Mousai (io.github.seadve.Mousai)
2023-06-28T10:51:27.919267Z  INFO mousai::application: Version: 0.7.5 ()
2023-06-28T10:51:27.919269Z  INFO mousai::application: Datadir: /app/share/mousai
2023-06-28T10:51:28.011070Z DEBUG mousai::database: Opened db env path="/home/bla6/.var/app/io.github.seadve.Mousai/data/mousai/db" info=EnvInfo { map_addr: 0x0, map_size: 104857600, last_page_number: 16, last_txn_id: 9, maximum_number_of_readers: 126, number_of_readers: 0 } real_disk_size=Ok(104857600)
2023-06-28T10:51:28.011090Z DEBUG mousai::database::migrations: No migrations to run for current version current_version=1
2023-06-28T10:51:28.011517Z DEBUG mousai::database: Opened db env path="/home/bla6/.var/app/io.github.seadve.Mousai/data/mousai/db" info=EnvInfo { map_addr: 0x0, map_size: 104857600, last_page_number: 16, last_txn_id: 9, maximum_number_of_readers: 126, number_of_readers: 0 } real_disk_size=Ok(104857600)
2023-06-28T10:51:28.011841Z DEBUG mousai::model::song_list: Loaded 2 songs in 317.228µs
2023-06-28T10:51:28.011941Z DEBUG mousai::recognizer::recordings: Loaded 2 saved recordings in 68.5µs
2023-06-28T10:51:28.090304Z DEBUG mousai::recognizer: Offline mode is active, skipping recognition of 2 saved recordings
2023-06-28T10:51:28.162575Z DEBUG mousai::recognizer: connectivity=Limited
2023-06-28T10:51:28.162589Z DEBUG mousai::recognizer: Offline mode is active, skipping recognition of 2 saved recordings

Thank you,

SeaDve commented 1 year ago

Hi!

I'm facing the same issue. This is the log from console:

RUST_LOG=mousai=debug flatpak run io.github.seadve.Mousai
2023-06-28T10:51:27.919253Z  INFO mousai::application: Mousai (io.github.seadve.Mousai)
2023-06-28T10:51:27.919267Z  INFO mousai::application: Version: 0.7.5 ()
2023-06-28T10:51:27.919269Z  INFO mousai::application: Datadir: /app/share/mousai
2023-06-28T10:51:28.011070Z DEBUG mousai::database: Opened db env path="/home/bla6/.var/app/io.github.seadve.Mousai/data/mousai/db" info=EnvInfo { map_addr: 0x0, map_size: 104857600, last_page_number: 16, last_txn_id: 9, maximum_number_of_readers: 126, number_of_readers: 0 } real_disk_size=Ok(104857600)
2023-06-28T10:51:28.011090Z DEBUG mousai::database::migrations: No migrations to run for current version current_version=1
2023-06-28T10:51:28.011517Z DEBUG mousai::database: Opened db env path="/home/bla6/.var/app/io.github.seadve.Mousai/data/mousai/db" info=EnvInfo { map_addr: 0x0, map_size: 104857600, last_page_number: 16, last_txn_id: 9, maximum_number_of_readers: 126, number_of_readers: 0 } real_disk_size=Ok(104857600)
2023-06-28T10:51:28.011841Z DEBUG mousai::model::song_list: Loaded 2 songs in 317.228µs
2023-06-28T10:51:28.011941Z DEBUG mousai::recognizer::recordings: Loaded 2 saved recordings in 68.5µs
2023-06-28T10:51:28.090304Z DEBUG mousai::recognizer: Offline mode is active, skipping recognition of 2 saved recordings
2023-06-28T10:51:28.162575Z DEBUG mousai::recognizer: connectivity=Limited
2023-06-28T10:51:28.162589Z DEBUG mousai::recognizer: Offline mode is active, skipping recognition of 2 saved recordings

Thank you,

You seem to have limited connection. Can you browse something like google with it?

I do recommend opening a new issue since this is likely different from the original issue here.