lachlan2k / phatcrack

Modern web-based distributed hashcracking solution, built on hashcat
MIT License
109 stars 8 forks source link

Error after upgrade to v0.2.1 #35

Closed JSmith-Aura closed 2 weeks ago

JSmith-Aura commented 5 months ago

Howdy, after upgrading and running the project (with db migrations) I get this following log line emitted on startup.

Doesnt seem to cause any issues that anyone has mentioned (and I've started a job and it has worked). So not sure if this is something to fix

2024/03/25 14:11:09 /app/api/internal/db/db.go:87 ERROR: index row size 2784 exceeds btree version 4 maximum 2704 for index "idx_uniq" (SQLSTATE 54000)
[28.572ms] [rows:0] CREATE UNIQUE INDEX IF NOT EXISTS "idx_uniq" ON "potfile_entries" ("hash","plaintext_hex","hash_type")
lachlan2k commented 5 months ago

Looks like when the unique index constraint is added to the potfile table, certain hashes will be too long for the postgres btree.

Possible solutions

Concerns:

lachlan2k commented 5 months ago

On reflection, I think I will use the following solution:

lachlan2k commented 5 months ago

Cool, I've pushed the above.

Will require the db migration drop index idx_uniq; (will put in release notes for 0.3.0)