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

panic: invalid page type: 163: 10 #1138

Open
Massimo-B opened this issue Jul 13, 2022 · 1 comment
Open

panic: invalid page type: 163: 10 #1138

Massimo-B opened this issue Jul 13, 2022 · 1 comment

Comments

@Massimo-B
Copy link

Hi,

I initialized a new drive tree and get this error on doing drive pull:

Addition count 39 src: 26.71MB
Proceed with the changes? [Y/n]: Y
 0 / 28003710 [-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]   0.00%panic: invalid page type: 163: 10

goroutine 104 [running]:
github.com/boltdb/bolt.(*Cursor).search(0xc000201a98, 0xc0002988a0, 0x2c, 0x30, 0xa3)
	/Users/emmanuelodeke/go/src/github.com/boltdb/bolt/cursor.go:256 +0x345
github.com/boltdb/bolt.(*Cursor).searchPage(0xc000201a98, 0xc0002988a0, 0x2c, 0x30, 0x7f8fce0a8000)
	/Users/emmanuelodeke/go/src/github.com/boltdb/bolt/cursor.go:314 +0x15f
github.com/boltdb/bolt.(*Cursor).search(0xc000201a98, 0xc0002988a0, 0x2c, 0x30, 0xa5)
	/Users/emmanuelodeke/go/src/github.com/boltdb/bolt/cursor.go:271 +0x194
github.com/boltdb/bolt.(*Cursor).seek(0xc000201a98, 0xc0002988a0, 0x2c, 0x30, 0x4, 0xc000201a00, 0xc0002988a0, 0x30, 0xc0002988a0, 0xc000201ab8, ...)
	/Users/emmanuelodeke/go/src/github.com/boltdb/bolt/cursor.go:159 +0x7d
github.com/boltdb/bolt.(*Bucket).Put(0xc000336140, 0xc0002988a0, 0x2c, 0x30, 0xc0000c6000, 0xb7, 0xc0, 0x6e59d8, 0xc00000a3c0)
	/Users/emmanuelodeke/go/src/github.com/boltdb/bolt/bucket.go:300 +0x10e
github.com/odeke-em/drive/config.(*Context).SerializeIndex.func1(0xc0003060e0, 0x1, 0xc0003060e0)
	/Users/emmanuelodeke/go/src/github.com/odeke-em/drive/config/config.go:282 +0x125
github.com/boltdb/bolt.(*DB).Update(0xc00000a3c0, 0xc000201bf8, 0x0, 0x0)
	/Users/emmanuelodeke/go/src/github.com/boltdb/bolt/db.go:598 +0x93
github.com/odeke-em/drive/config.(*Context).SerializeIndex(0xc0002fb400, 0xc000296ae0, 0x0, 0x0)
	/Users/emmanuelodeke/go/src/github.com/odeke-em/drive/config/config.go:274 +0x15f
github.com/odeke-em/drive/src.(*Commands).createIndex(0xc0000419c0, 0xc000682900, 0x2, 0x2)
	/Users/emmanuelodeke/go/src/github.com/odeke-em/drive/src/fetch.go:314 +0x125
github.com/odeke-em/drive/src.(*Commands).localAdd.func1(0xc0003a8de8, 0xc000218ec0, 0xc0000419c0)
	/Users/emmanuelodeke/go/src/github.com/odeke-em/drive/src/pull.go:575 +0x65
github.com/odeke-em/drive/src.(*Commands).localAdd(0xc0000419c0, 0xc000218ec0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/Users/emmanuelodeke/go/src/github.com/odeke-em/drive/src/pull.go:606 +0x2fe
github.com/odeke-em/drive/src.(*Commands).playPullChanges.func2.1(0xc000218ec0, 0x0, 0x0)
	/Users/emmanuelodeke/go/src/github.com/odeke-em/drive/src/pull.go:478 +0x4d
github.com/odeke-em/drive/src.(*changeJobSt).changeJober.func1(0xc000349f08, 0x927213, 0xc0003bd500, 0x0)
	/Users/emmanuelodeke/go/src/github.com/odeke-em/drive/src/misc.go:119 +0xa7
github.com/odeke-em/drive/src.jobSt.Do(...)
	/Users/emmanuelodeke/go/src/github.com/odeke-em/drive/src/misc.go:99
github.com/odeke-em/semalim.Run.func4.1(0xc00059f3a0, 0xc0003bd440, 0xc00059f3b0, 0xc00059f3c0, 0xba6c68, 0xc00059f3e0)
	/Users/emmanuelodeke/go/src/github.com/odeke-em/semalim/semalim.go:71 +0x56
created by github.com/odeke-em/semalim.Run.func4
	/Users/emmanuelodeke/go/src/github.com/odeke-em/semalim/semalim.go:68 +0x118
/usr/bin/drive version
drive version: 0.3.9.1
Commit Hash: <CURRENT_COMMIT>
Go Version: <GO_VERSION>
OS: <OS_INFO>
BuildTime: 

However I have installed 0.4.0_p20210208 on Gentoo Linux. There seems to be some version mismatch.

@krim404
Copy link

krim404 commented Jul 28, 2022

i can confirm this issue - but only on a machine with a newer Go version installed and migrating the drive folder. on my "older" machines, everything works fine. I was able to fix this by removing the .gd folder and reinitializing the drive.

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