鏡像轉換完成push之後,出現報錯:
panic: runtime error: invalid memory address or nil pointer dereference
// bolbSize return the content blob size in a bucket
func blobSize(bucket *bolt.Bucket) (int64, error) {
size, bytesRead := binary.Varint(bucket.Get(bucketKeySize))
if bytesRead <= 0 {
return 0, fmt.Errorf("read size from database")
}
return size, nil
}
...
Oct 30 15:31:43 gpu001 acceld[1331288]: go.etcd.io/bbolt.(*Bucket).Cursor(0x0)
Oct 30 15:31:43 gpu001 acceld[1331288]: /home/runner/go/pkg/mod/go.etcd.io/bbolt@v1.3.11/bucket.go:84 +0x25
Oct 30 15:31:43 gpu001 acceld[1331288]: go.etcd.io/bbolt.(*Bucket).Get(0x0, {0x2539990, 0x4, 0x4})
Oct 30 15:31:43 gpu001 acceld[1331288]: /home/runner/go/pkg/mod/go.etcd.io/bbolt@v1.3.11/bucket.go:263 +0x56
Oct 30 15:31:43 gpu001 acceld[1331288]: github.com/goharbor/acceleration-service/pkg/content.blobSize(0x0)
Oct 30 15:31:43 gpu001 acceld[1331288]: /home/runner/work/acceleration-service/acceleration-service/pkg/content/bucket.go:65 +0x53
Oct 30 15:31:43 gpu001 acceld[1331288]: github.com/goharbor/acceleration-service/pkg/content.(*Content).cleanLeases.func1(0xc0006f02a0)
Oct 30 15:31:43 gpu001 acceld[1331288]: /home/runner/work/acceleration-service/acceleration-service/pkg/content/content.go:185 +0xd4
Oct 30 15:31:43 gpu001 acceld[1331288]: go.etcd.io/bbolt.(*DB).View(0xc0002fcd88, 0xc002c16600)
Oct 30 15:31:43 gpu001 acceld[1331288]: /home/runner/go/pkg/mod/go.etcd.io/bbolt@v1.3.11/db.go:917 +0x167
...
containerd 版本 v1.7.15
acceleration-service 版本:v0.2.24
鏡像轉換完成push之後,出現報錯:
panic: runtime error: invalid memory address or nil pointer dereference
containerd 版本 v1.7.15
acceleration-service 版本:v0.2.24