3

I'm running geth with

geth --rpc --rpccorsdomain "localhost"

and ethminer 1.1.4 in a separate terminal, and I've noticed that in the geth console I'm getting a lot of messages that simply just say "short write". E.g.:

I0225 13:05:53.940248 rpc/server.go:347] short write

Couldn't find any documentation on this - anyone know if this is something to worry about?

  • Out of curiousity I downloaded all of the geth source code and couldn't find anything in there, so I'm not sure where it's coming from. – womp Feb 26 '16 at 23:42
  • Check the code on server.go:347. It's an error message of codec.Write(), but I can't tell you what it means. – Waqar Lim Feb 27 '16 at 16:00
  • @5chdn thanks.... the best I've been able to tell is that it's a filesystem problem, perhaps disk space issues. I'm running off a USB stick that only has about 200MB of space left on the system partition, and about 2GB of swap space. It seems to be mining just fine despite the volume of "short writes"... next time I set up a rig I'll increase the system allocations and see if that alleviates it. – womp Feb 29 '16 at 17:42
  • So I reformatted my drive and reinstalled everything, this time leaving 7200MB for the Ubuntu system partition instead of 5000. I also upgraded the rig fro 6GB of RAM to 8GB. I am no longer experiencing the "short write" messages. – womp Mar 2 '16 at 19:49
  • you can always create answers to your own questions. – Waqar Lim Mar 3 '16 at 8:41
1

It's a golang input/output error. go/pkg/io

var ErrShortWrite = errors.New("short write")

ErrShortWrite means that a write accepted fewer bytes than requested but failed to return an explicit error. It could be related to your USB device. But to be 100% certain you should report that issue upstream.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.