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

Message too big #52

Open
andreaskoch opened this issue Mar 9, 2016 · 4 comments
Open

Message too big #52

andreaskoch opened this issue Mar 9, 2016 · 4 comments

Comments

@andreaskoch
Copy link

I just added my local music folder and after moggio was ready reading all files I got the following error message:

2016/03/09 20:51:06 server.cmdRemoveInProgress
2016/03/09 20:51:06 server.cmdProtocolAddInstance
2016/03/09 20:51:07 server.cmdDoSave
2016/03/09 20:51:09 gob: encoder: message too big
goroutine 5 [running]:
github.com/mjibson/moggio/server.printErr(0x7fabea8c0028, 0xc8748e8010)
    /go/src/github.com/mjibson/moggio/server/server.go:42 +0x134
github.com/mjibson/moggio/server.(*Server).commands.func3(0x7fabea8c0028, 0xc8748e8010)
    /go/src/github.com/mjibson/moggio/server/control.go:41 +0x46
github.com/mjibson/moggio/server.(*Server).commands.func25()
    /go/src/github.com/mjibson/moggio/server/control.go:417 +0x56
github.com/mjibson/moggio/server.(*Server).commands(0xc820096b40)
    /go/src/github.com/mjibson/moggio/server/control.go:714 +0x1a99
created by github.com/mjibson/moggio/server.New
    /go/src/github.com/mjibson/moggio/server/server.go:201 +0x4ad

I suspect that I have too many music files in the specified folder, but I just wanted to let you know.

@maddyblue
Copy link
Owner

How many music files are in that directory? The save file size limit is 1GB, and not currently configurable. This needs to get fixed.

@andreaskoch
Copy link
Author

Ok. That explains it. The folder is way past 1GB - I cannot check it now
how many files there are but it's about 80 GB.
On Thu, 10 Mar 2016 at 00:13, Matt Jibson [email protected] wrote:

How many music files are in that directory? The save file size limit is
1GB, and not currently configurable . This needs to get fixed.


Reply to this email directly or view it on GitHub
#52 (comment).

@maddyblue
Copy link
Owner

It's not the size of the folder, it's the size of the save file. The save file contains metadata about the folder. File names, ID3 info, etc. If that is above 1GB, it fails. Number of songs is the most interesting information.

@andreaskoch
Copy link
Author

Ah OK. It's about 18000 files.

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
@maddyblue @andreaskoch and others