Re: [Owfs-developers] Error "Message too long" when using owfs

2015-01-06 Thread Markus Gaugusch
Hi Paul! I have updated to 2.9p9 and it works fine again. Thank you :) Markus On Jan 6, Paul Alfille wrote: I looked closely at the error. Near as I can tell, it's the utility, like 'cat' that's supplying the 131072 (128K) read request size. The actual size is 12 bytes and that number is re

Re: [Owfs-developers] Error "Message too long" when using owfs

2015-01-06 Thread Paul Alfille
I looked closely at the error. Near as I can tell, it's the utility, like 'cat' that's supplying the 131072 (128K) read request size. The actual size is 12 bytes and that number is returned in the preceding fstat call. I think the ulitities just ask for a generic large read, and I presume that siz

Re: [Owfs-developers] Error "Message too long" when using owfs

2015-01-05 Thread Markus Gaugusch
Hi Stefano and Paul! Thank you very much for your help! I had migrated my scripts to use owget, etc. But it's good to know that there is another solution until the bug is fixed. I also noticed that my php script (using read access to owfs files, not owphp) is also still working fine. Thanks

Re: [Owfs-developers] Error "Message too long" when using owfs

2015-01-05 Thread Stefano Miccoli
The present bug apparently affects only shell programs (and only if cat or cp use a big buffer size). Waiting for a patch a quick workaround for bash users could be substituting temp=$(cat /mnt/1wire//temp) with temp=$(< /mnt/1wire//temp) and cat /mnt/1wire//temp with echo $(< /m

Re: [Owfs-developers] Error "Message too long" when using owfs

2015-01-04 Thread David Lazarou
I ran across this same problem using a Raspberry Pi. http://owfs-developers.1086194.n5.nabble.com/quot-Message-too-long-quot-errors-with-owfs-tt10946.html I never was never able to discover what the problem was. -- David On Mon, Jan 5, 2015 at 10:58 AM, Stefano Miccoli wrote: > Somehow I was

Re: [Owfs-developers] Error "Message too long" when using owfs

2015-01-04 Thread Stefano Miccoli
Somehow I was able to replicate the problem in Python. When I type in Python >>> f = open(‘/mnt/1wire/10.67C6697351FF/temperature') >>> f.read(1024) '56.5153' >>> f.close() I get from owfs —debug DEBUG: ow_read.c:(231) About to read extension=0 size=4096 offset=0 DEBUG: ow_read.c:(231) Ab

Re: [Owfs-developers] Error "Message too long" when using owfs

2015-01-04 Thread Paul Alfille
I don't have the answer yet, but it happens only with cat or cp, not less,head or tail. It also happens only with owfs->owserver->bus, since owfs->bus is ok. There must be something different in the tcp protocol handling. I'll investigate further. Paul On Sun, Jan 4, 2015 at 1:20 PM, Jacob Josep

Re: [Owfs-developers] Error "Message too long" when using owfs

2015-01-04 Thread Jacob Joseph
I recently moved my OWFS setup to a new installation (on Funtoo, should it matter), and have noticed that I do have the issue Markus mentioned. I haven't spent much time debugging quite yet. Curiously, though, while 'cat' doesn't work, other methods of reading such as 'head' or opening the file i

Re: [Owfs-developers] Error "Message too long" when using owfs

2015-01-04 Thread Stefano Miccoli
It seems that your question is still unanswered, so I will try to help you, although I’m not able to replicate your setup (and I’m no expert of the internal workings of owfs). From your message it seems that the problem is limited to owfs, and not in owserver, but let me double-check. 1) Do yo

[Owfs-developers] Error "Message too long" when using owfs

2014-12-30 Thread Markus Gaugusch
Hi, Symptom: monitor:/mnt/1wire/10.FE771D020800 # cat temperature cat: temperature: Message too long I've updated my monitoring server from openSUSE 13.1 to 13.2, which broke owfs. I had 2.9p5 before and also tried to update to 2.9p8, but the problem stayed the same. Access using owdir, owget a