Skip to content

panic: interface conversion: *fs.dirStreamAsFile is not fs.FileGetattrer: missing method Getattr #897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lechner opened this issue Feb 19, 2025 · 4 comments

Comments

@lechner
Copy link
Contributor

lechner commented Feb 19, 2025

Hi,

Anybody ever seen this?

Image

In GNU Guix, the actual Go prerequisites used for building may not match those specified. Thanks!

Kind regards,
Felix

@rfjakob
Copy link
Owner

rfjakob commented Feb 20, 2025 via email

@lechner
Copy link
Contributor Author

lechner commented Feb 20, 2025

What is the best mitigation, please? Should I downgrade go-fuse?

I'm currently at 2.7.2 for go-fuse. x/sys is at 0.28.0. Thanks!

@lechner
Copy link
Contributor Author

lechner commented Feb 20, 2025

Okay, thanks! This was fixed in GNU Guix via Bug#76444.

@lechner lechner closed this as completed Feb 20, 2025
@rfjakob
Copy link
Owner

rfjakob commented Feb 21, 2025

Yes, downgrade go-fuse.

Unless you run gocryptfs as root, x/sys does not matter

rfjakob added a commit that referenced this issue Apr 5, 2025
Essentially a port of
hanwen/go-fuse@531a685 .

This fixes

	panic: interface conversion: *fs.dirStreamAsFile is not fs.FileGetattrer: missing method Getattr

	goroutine 20 [running]:
	github.com/rfjakob/gocryptfs/v2/internal/fusefrontend.(*Node).Getattr(0x55a7ac9d9090?, {0x55a7ac85a4d8, 0xc0013401c8}, {0x55a7ac80eb40?, 0xc0013401b0}, 0xc000586938)
		github.com/rfjakob/gocryptfs/v2/internal/fusefrontend/node.go:74 +0x22c
	github.com/hanwen/go-fuse/v2/fs.(*rawBridge).getattr(0xc0000b6180, {0x55a7ac85a4d8, 0xc0013401c8}, 0xc0010ea160, {0x55a7ac80eb40?, 0xc0013401b0}, 0xc000586938)
		github.com/hanwen/go-fuse/[email protected]/fs/bridge.go:569 +0x9b
	[...]

which is a bug exposed by a go-fuse update.

Fixes #897
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants