Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-04-12 Thread Charles Lepple
On Sun, Mar 29, 2015 at 1:50 PM, Melkor Lord melkor.l...@gmail.com wrote: On Thu, Mar 26, 2015 at 9:16 AM, Emilien Kia kiae@gmail.com wrote: After looking a bit deeply, we have another little problem. When we intend to start upsd with the init script (at least under debian-based distrib

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-04-07 Thread Melkor Lord
On Sat, Apr 4, 2015 at 6:33 PM, Emilien Kia kiae@gmail.com wrote: Fixed in PR #199 https://github.com/networkupstools/nut/pull/199 Tests are welcome. Hero of the day! Thank you very much for your investigation and nice fix! I compiled NUT from the official Ubuntu 14.04 package

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-04-04 Thread Emilien Kia
Hello All 2015-03-26 9:03 GMT+01:00 Arnaud Quette arnaud.que...@gmail.com: What I will do is to move ssl initializing after usering and forking, than add key file right checking where ssl was initialized before (before forking). As keys should be owned by nut user, this would not be a

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-03-29 Thread Melkor Lord
On Wed, Mar 25, 2015 at 6:47 PM, Emilien Kia kiae@gmail.com wrote: You have done the hardest job. Once you isolate the problem occurs only when running as a deamon and not in debug mode, searching for a problem is easier. Moreover we have done so many tests on this feature that it is

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-03-29 Thread Melkor Lord
On Thu, Mar 26, 2015 at 9:16 AM, Emilien Kia kiae@gmail.com wrote: After looking a bit deeply, we have another little problem. When we intend to start upsd with the init script (at least under debian-based distrib - tested on Linux Mint 17.1) when we have the NSS problem, the init script

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-03-26 Thread Emilien Kia
2015-03-26 9:03 GMT+01:00 Arnaud Quette arnaud.que...@gmail.com: Hey mister M' A first huge thanks for taking care of this, and so late in the night. I know that it's not easy... (sent from my S3... please excuse my brevity) Le 25 mars 2015 18:49, Emilien Kia kiae@gmail.com a écrit :

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-03-26 Thread Charles Lepple
On Mar 26, 2015, at 4:16 AM, Emilien Kia kiae@gmail.com wrote: After looking a bit deeply, we have another little problem. When we intend to start upsd with the init script (at least under debian-based distrib - tested on Linux Mint 17.1) when we have the NSS problem, the init script

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-03-26 Thread Arnaud Quette
Hey mister M' A first huge thanks for taking care of this, and so late in the night. I know that it's not easy... (sent from my S3... please excuse my brevity) Le 25 mars 2015 18:49, Emilien Kia kiae@gmail.com a écrit : 2015-03-21 17:06 GMT+01:00 Melkor Lord melkor.l...@gmail.com: On

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-03-25 Thread Emilien Kia
2015-03-21 17:06 GMT+01:00 Melkor Lord melkor.l...@gmail.com: On Fri, Mar 20, 2015 at 4:40 PM, Emilien Kia kiae@gmail.com wrote: Some precisions: we are not alone, some projects had similar problem: http://bugs.bitlbee.org/bitlbee/ticket/785 And the problem is really coming from NSS

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-03-25 Thread Charles Lepple
On Mar 25, 2015, at 1:47 PM, Emilien Kia kiae@gmail.com wrote: What I will do is to move ssl initializing after usering and forking, than add key file right checking where ssl was initialized before (before forking). As keys should be owned by nut user, this would not be a problem. And

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-03-21 Thread Melkor Lord
On Fri, Mar 20, 2015 at 4:40 PM, Emilien Kia kiae@gmail.com wrote: Some precisions: we are not alone, some projects had similar problem: http://bugs.bitlbee.org/bitlbee/ticket/785 And the problem is really coming from NSS initialization. Discussion about the issue here :

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-03-20 Thread Emilien Kia
Some precisions: we are not alone, some projects had similar problem: http://bugs.bitlbee.org/bitlbee/ticket/785 And the problem is really coming from NSS initialization. Discussion about the issue here : http://osdir.com/ml/mozilla.crypto/2002-08/msg00016.html There is a workaround to use NSS

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-03-13 Thread Charles Lepple
On Mar 12, 2015, at 11:55 PM, Melkor Lord melkor.l...@gmail.com wrote: On Mon, Mar 2, 2015 at 2:39 AM, Charles Lepple clep...@gmail.com wrote: I thought start-stop-daemon was involved because it closes stdin/stdout file descriptors after exec()'ing the daemon. I tried --no-close option

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-03-01 Thread Charles Lepple
On Sun, Mar 1, 2015 at 1:11 PM, Melkor Lord melkor.l...@gmail.com wrote: Hi, I spent quite some time pulling my hair out and trying to figure out why NUT wasn't working properly with SSL enabled. I tried several approaches until I found something interesting. I'm using NUT 2.7.1 in Ubuntu

Re: [Nut-upsuser] SSL only working in DEBUG mode

2015-03-01 Thread Melkor Lord
On Sun, Mar 1, 2015 at 7:11 PM, Melkor Lord melkor.l...@gmail.com wrote: Shell# ps axu [...] nut 19116 0.0 0.0 37688 772 ?Ss 18:35 0:00 /lib/nut/dummy-ups -a APC nut 19119 0.0 0.0 77296 6548 ?Ss 18:36 0:00 upsd Argh... sorry for the typo here,