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

invalid page type: 0: 4 while running tunasync manager --config ~/tunasync_demo/manager.conf #86

Closed
liudonghua123 opened this issue Oct 19, 2018 · 8 comments

Comments

@liudonghua123
Copy link

I followed the instructions on https://github.com/tuna/tunasync/blob/master/docs/zh_CN/get_started.md, but got invalid page type: 0: 4 error in the output of tunasync manager --config ~/tunasync_demo/manager.conf

The full stack error is

2018/10/19 08:43:53 [Recovery] panic recovered:
POST /workers HTTP/1.1
Host: localhost:12345
Accept-Encoding: gzip
Content-Type: application/json; charset=utf-8
User-Agent: Go-http-client/1.1


invalid page type: 0: 4
/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/panic.go:426 (0x430789)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/boltdb/bolt/cursor.go:256 (0x7394c5)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/boltdb/bolt/cursor.go:159 (0x7389ea)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/boltdb/bolt/bucket.go:112 (0x734030)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/boltdb/bolt/tx.go:101 (0x7466db)
/home/travis/gopath/src/github.com/tuna/tunasync/manager/db.go:100 (0x4f9304)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/boltdb/bolt/db.go:595 (0x73ca03)
/home/travis/gopath/src/github.com/tuna/tunasync/manager/db.go:99 (0x4f22f8)
/home/travis/gopath/src/github.com/tuna/tunasync/manager/server.go:189 (0x4f53b2)
/home/travis/gopath/src/github.com/tuna/tunasync/manager/server.go:82 (0x4fae0a)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/gin-gonic/gin/context.go:97 (0x4b608a)
/home/travis/gopath/src/github.com/tuna/tunasync/manager/middleware.go:20 (0x4f2b63)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/gin-gonic/gin/context.go:97 (0x4b608a)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/gin-gonic/gin/recovery.go:45 (0x4c8bb1)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/gin-gonic/gin/context.go:97 (0x4b608a)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/gin-gonic/gin/gin.go:284 (0x4bd0b2)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/gin-gonic/gin/gin.go:265 (0x4bcce7)
/home/travis/.gimme/versions/go1.6.linux.amd64/src/net/http/server.go:2081 (0x5e63fe)
/home/travis/.gimme/versions/go1.6.linux.amd64/src/net/http/server.go:1472 (0x5e2cae)
/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/asm_amd64.s:1998 (0x4627c1)



2018/10/19 08:43:53 [Recovery] panic recovered:
GET /workers/test_worker/jobs HTTP/1.1
Host: localhost:12345
Accept-Encoding: gzip
User-Agent: Go-http-client/1.1


invalid page type: 0: 4
/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/panic.go:426 (0x430789)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/boltdb/bolt/cursor.go:256 (0x7394c5)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/boltdb/bolt/cursor.go:159 (0x7389ea)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/boltdb/bolt/bucket.go:112 (0x734030)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/boltdb/bolt/tx.go:101 (0x7466db)
/home/travis/gopath/src/github.com/tuna/tunasync/manager/db.go:87 (0x4f9015)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/boltdb/bolt/db.go:626 (0x73cb79)
/home/travis/gopath/src/github.com/tuna/tunasync/manager/db.go:94 (0x4f2241)
/home/travis/gopath/src/github.com/tuna/tunasync/manager/middleware.go:25 (0x4f2c87)
/home/travis/gopath/src/github.com/tuna/tunasync/manager/server.go:85 (0x4fae4a)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/gin-gonic/gin/context.go:97 (0x4b608a)
/home/travis/gopath/src/github.com/tuna/tunasync/manager/middleware.go:20 (0x4f2b63)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/gin-gonic/gin/context.go:97 (0x4b608a)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/gin-gonic/gin/recovery.go:45 (0x4c8bb1)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/gin-gonic/gin/context.go:97 (0x4b608a)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/gin-gonic/gin/gin.go:284 (0x4bd0b2)
/home/travis/gopath/src/github.com/tuna/tunasync/src/github.com/gin-gonic/gin/gin.go:265 (0x4bcce7)
/home/travis/.gimme/versions/go1.6.linux.amd64/src/net/http/server.go:2081 (0x5e63fe)
/home/travis/.gimme/versions/go1.6.linux.amd64/src/net/http/server.go:1472 (0x5e2cae)
/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/asm_amd64.s:1998 (0x4627c1)

This is a snapshot of my other terminal.

image

@shankerwangmiao
Copy link
Member

看起来是不是 manager.db 坏了?

@liudonghua123
Copy link
Author

@shankerwangmiao 如何检测 manager.db 呢?

@shankerwangmiao
Copy link
Member

删掉试试?

@liudonghua123
Copy link
Author

@shankerwangmiao It's the same error.

image

@shankerwangmiao
Copy link
Member

@bigeagle 你看看?

@z4yx
Copy link
Member

z4yx commented Oct 25, 2018

@liudonghua123 请测试一下我刚release的新版本,如果有问题我们再进一步研究

@liudonghua123
Copy link
Author

@z4yx @bigeagle Hi, I tried the latest release, but it seems the same problem.

image

@z4yx
Copy link
Member

z4yx commented Oct 26, 2018

It seems to be a known issue of WSL. microsoft/WSL#3162

@z4yx z4yx closed this as completed Oct 26, 2018
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

3 participants