OK, I just removed the disk cache and am fetching from the client directly and it works.. The disk cache was copy pasta =(
Quinn On Thursday, January 23, 2025 at 9:52:51 PM UTC-5 Quinn wrote: > Here's more context: > > br, ok := blob.Parse(hash) > if !ok { > return nil, fmt.Errorf("failed to parse argument %q as a blobref", > hash) > } > > src, err := cacher.NewDiskCache(p.cl) > if err != nil { > log.Fatalf("Error setting up local disk cache: %v", err) > } > defer src.Clean() > > Quinn > > On Thursday, January 23, 2025 at 9:51:23 PM UTC-5 Quinn wrote: > >> Here's the code: >> rc, _, err := src.Fetch(ctx, br) >> if err != nil { >> return nil, fmt.Errorf("failed to fetch %s: %s", br, err) >> } >> error message: >> >> failed to fetch >> sha224-64660a1aaedf98702e9ca80ea9287c7bcd1be3b09dc9a5fcd2bbd67a: file does >> not exist >> >> However, there is a datfile for this: >> >> ls -l >> ~/var/perkeep/blobs/sha224/64/66/sha224-64660a1aaedf98702e9ca80ea9287c7bcd1be3b09dc9a5fcd2bbd67a.dat >> -rw------- 1 quinn quinn 249 Jan 18 21:33 >> /home/quinn/var/perkeep/blobs/sha224/64/66/sha224-64660a1aaedf98702e9ca80ea9287c7bcd1be3b09dc9a5fcd2bbd67a.dat >> >> I have my server configured with index disabled. This error is >> intermittent, sometimes it goes away on its own, i think. Do i need to >> rebuild the cache manually sometimes? >> >> Quinn >> >> >> -- You received this message because you are subscribed to the Google Groups "Perkeep" group. To unsubscribe from this group and stop receiving emails from it, send an email to perkeep+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/perkeep/64079d06-7875-4548-a31f-35443903ca85n%40googlegroups.com.