Open bombermine3 opened 4 days ago
Weird that I do not have it, and you're the 2nd person who can reproduce it.
Can you build from source, change this line https://github.com/QuokkaStake/cosmos-proposals-checker/blob/main/pkg/database/sqlite.go#L59 to have Err(versionErr)
and try running and sharing its output? Would help a lot.
(I have a typo there, will fix a bit later, but with this typo it doesn't show the real error.)
This is very strange because everything is working now. Yesterday, I tried installing from both the deb package and the source code, but the result was the same. Today, after making this changes and rebuilding, everything works.
$ ./cosmos-proposals-checker --config /etc/cosmos-proposals-checker/config.toml
7:02AM INF Provided config is valid.
7:02AM INF SQLite database connected component=database path=/var/lib/cosmos-proposals-checker/database.sqlite version=3.46.1
7:02AM DBG OK 20241015181844_add_proposals.sql (4.58ms) component=migrations
7:02AM DBG OK 20241015214518_add_votes.sql (4.2ms) component=migrations
7:02AM DBG OK 20241016191744_add_query_last_block.sql (6.66ms) component=migrations
7:02AM DBG OK 20241018131531_add_mutes.sql (5.12ms) component=migrations
7:02AM DBG goose: successfully migrated database to version: 20241018131531 component=migrations
7:02AM INF Init reporter component=report_dispatcher name=pagerduty-reporter
7:02AM INF Init reporter component=report_dispatcher name=telegram-reporter
7:02AM DBG Discord credentials not set, not creating Discord reporter component=discord_reporter
7:02AM INF Scheduled proposals reporting interval="@every 30m"
I just checked again, this time running it through systemd (in case I made a mistake) – the deb version still doesn’t work. The freshly built one works fine.
@bombermine3 I just released v6.0.1 that doesn't fix the issue (or well it shouldn't), but should display the error you're getting. can you try running it from a deb package and share the output?
10:46PM PNC Could not query SQLite database error="Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub" component=database
panic: Could not query SQLite database
@bombermine3 okay gotcha, it seems to be goreleaser issue then, thanks for investigating! I'll fix it probably today or tomorrow, for now you can use the version built from source, as it is likely to work now.
The app is likely supposed to create a database on the first run. Instead, I’m getting this error.