Skip to content
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

Out of range value for column 'uid' #3679

Closed
tangyoupeng opened this issue May 25, 2023 · 0 comments · Fixed by #3680
Closed

Out of range value for column 'uid' #3679

tangyoupeng opened this issue May 25, 2023 · 0 comments · Fixed by #3680
Labels
kind/bug Something isn't working

Comments

@tangyoupeng
Copy link
Contributor

Sdk will genGuid for the username which is type uint32. But mysql use type int(11) which is not compatible with generated id.

2023/05/25 11:00:28.000597 juicefs[3270] <ERROR>: error: Error 1264 (22003): Out of range value for column 'uid' at row 1
goroutine 17 [running, locked to thread]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x65
github.com/juicedata/juicefs/pkg/meta.errno({0x7f0c28494f20, 0xc002134d20})
	/root/code/juicefs/pkg/meta/utils.go:122 +0xad
github.com/juicedata/juicefs/pkg/meta.(*dbMeta).doMknod(0xc00006aa40, {0x7f0c284ca068, 0xc0001d5d40}, 0x66, {0xc0001517a5, 0x5}, 0x2, 0x1ed, 0x0, 0x0, ...)
	/root/code/juicefs/pkg/meta/sql.go:1199 +0x2ea
github.com/juicedata/juicefs/pkg/meta.(*baseMeta).Mknod(0xc000ec2000, {0x7f0c284ca068, 0xc0001d5d40}, 0x66, {0xc0001517a5, 0x5}, 0x10?, 0x238?, 0xc0?, 0x0, ...)
	/root/code/juicefs/pkg/meta/base.go:1261 +0x2d5
github.com/juicedata/juicefs/pkg/meta.(*baseMeta).Mkdir(0xc000ec2000, {0x7f0c284ca068?, 0xc0001d5d40?}, 0x66, {0xc0001517a5?, 0x7f0c27f2dc80?}, 0xef01?, 0x2504?, 0xc?, 0xc0001517e0, ...)
	/root/code/juicefs/pkg/meta/base.go:1285 +0x78
github.com/juicedata/juicefs/pkg/fs.(*FileSystem).Mkdir(0xc0001e57c0, {0x7f0c284ca068?, 0xc0001d5d40}, {0xc0001517a0, 0xa}, 0x1ed)
	/root/code/juicefs/pkg/fs/fs.go:432 +0x354
main.jfs_mkdir(0x7f0c24fa4af8?, 0xc0000b6000?, 0x0?, 0x1ed)
	/root/code/juicefs/sdk/java/libjfs/main.go:753 +0x86 [utils.go:122]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant