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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/perkeep/c07370ba-c59b-4a2d-a321-996cb44e0bf9n%40googlegroups.com.

Reply via email to