[Nut-upsdev] New version of riello driver

Elio Parisi E.Parisi at riello-ups.com
Tue Oct 28 13:37:01 UTC 2014


>I'm afraid I am just the messenger - @bigon (Laurent Bigonville, on GitHub) is a Debian maintainer of NUT, and he was pointing out the 
>bug report filed with Debian:

>https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=738122

>With other drivers, we sometimes see the "did not claim interface 0 before use" error if a driver gets out of sync with its PID file, 
>and two copies of the driver are running. So maybe remove the PID file and start the driver again? It should be possible to detect 
>this condition.

Hi, attached there are a patch for the problem above. I think that this patch resolve the problem, however I 
don't be able to reproduce the problem on Debian Sid. I'm looking forward for the result of your test...

Regards,
Elio Parisi.


-----Messaggio originale-----
Da: Nut-upsdev [mailto:nut-upsdev-bounces+e.parisi=riello-ups.com at lists.alioth.debian.org] Per conto di nut-upsdev-request at lists.alioth.debian.org
Inviato: mercoledì 22 ottobre 2014 20.30
A: nut-upsdev at lists.alioth.debian.org
Oggetto: Nut-upsdev Digest, Vol 112, Issue 3

Send Nut-upsdev mailing list submissions to
	nut-upsdev at lists.alioth.debian.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev
or, via email, send a message with subject or body 'help' to
	nut-upsdev-request at lists.alioth.debian.org

You can reach the person managing the list at
	nut-upsdev-owner at lists.alioth.debian.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of Nut-upsdev digest..."


Today's Topics:

   1. R:  New version of riello driver (Elio Parisi)
   2. Re: New version of riello driver [Debian bug "did not	claim
      interface 0 before use"] (Charles Lepple)


----------------------------------------------------------------------

Message: 1
Date: Wed, 22 Oct 2014 07:54:52 +0000
From: Elio Parisi <E.Parisi at riello-ups.com>
To: "nut-upsdev at lists.alioth.debian.org"
	<nut-upsdev at lists.alioth.debian.org>
Subject: [Nut-upsdev] R:  New version of riello driver
Message-ID:
	<3c37dfbe2ddd414b852887e36a2c59d5 at AM3PR07MB289.eurprd07.prod.outlook.com>
	
Content-Type: text/plain; charset="iso-8859-1"

Hi Charles,

I see the issue but I don't be able to reproduce it on the Debian SID.

The steps I followed are:

	-	start from debian wheezy;
	-	upgrade to debian testing;
	-	upgrade to debian sid;
	- 	in debian sid test nut with riello_usb driver;

In this situation there are no trace of error (claim interface) in /var/log/syslog at the moment of attach of cypress usb or at the moment of driver riello_usb start.

So, could you tell me how I reproduce the problem? 

-----Messaggio originale-----
Da: Charles Lepple [mailto:clepple at gmail.com]
Inviato: marted? 21 ottobre 2014 4.48
A: Elio Parisi
Cc: nut-upsdev at lists.alioth.debian.org
Oggetto: Re: [Nut-upsdev] New version of riello driver

On Oct 17, 2014, at 6:24 AM, Elio Parisi <e.parisi at riello-ups.com> wrote:

> Hi all,
> attached there is a patch for a new version of riello drivers:

Merged, thanks.

Also, have you seen this issue? https://github.com/networkupstools/nut/issues/124

from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=738122

--
Charles Lepple
clepple at gmail






------------------------------

Message: 2
Date: Wed, 22 Oct 2014 09:17:38 -0400
From: Charles Lepple <clepple at gmail.com>
To: "nut-upsdev at lists.alioth.debian.org"
	<nut-upsdev at lists.alioth.debian.org>
Subject: Re: [Nut-upsdev] New version of riello driver [Debian bug
	"did not	claim interface 0 before use"]
Message-ID: <0801890C-40E1-4718-BA2D-D493ED4CC3BF at gmail.com>
Content-Type: text/plain; charset=iso-8859-1

On Oct 22, 2014, at 3:54 AM, Elio Parisi <e.parisi at riello-ups.com> wrote:

> I see the issue but I don't be able to reproduce it on the Debian SID.
> 
> The steps I followed are:
> 
> 	-	start from debian wheezy;
> 	-	upgrade to debian testing;
> 	-	upgrade to debian sid;
> 	- 	in debian sid test nut with riello_usb driver;
> 
> In this situation there are no trace of error (claim interface) in /var/log/syslog at the
> moment of attach of cypress usb or at the moment of driver riello_usb start.

Sounds reasonable. For reference, what version of NUT was in SID when you tested?

> So, could you tell me how I reproduce the problem? 

I'm afraid I am just the messenger - @bigon (Laurent Bigonville, on GitHub) is a Debian maintainer of NUT, and he was pointing out the bug report filed with Debian:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=738122

With other drivers, we sometimes see the "did not claim interface 0 before use" error if a driver gets out of sync with its PID file, and two copies of the driver are running. So maybe remove the PID file and start the driver again? It should be possible to detect this condition.

-- 
Charles Lepple
clepple at gmail






------------------------------

Subject: Digest Footer

_______________________________________________
Nut-upsdev mailing list
Nut-upsdev at lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev

------------------------------

End of Nut-upsdev Digest, Vol 112, Issue 3
******************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: riello.diff.gz
Type: application/x-gzip
Size: 991 bytes
Desc: riello.diff.gz
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20141028/da6915a7/attachment.bin>


More information about the Nut-upsdev mailing list