From unknown Sun Jun 22 00:13:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27358: Timeout command was get failed to kill soffice.bin processes Resent-From: Ken Walker Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 14 Jun 2017 15:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27358 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 27358@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.149745392026470 (code B ref -1); Wed, 14 Jun 2017 15:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Jun 2017 15:25:20 +0000 Received: from localhost ([127.0.0.1]:47872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLAAZ-0006ss-Nt for submit@debbugs.gnu.org; Wed, 14 Jun 2017 11:25:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dL5XN-0002m0-4o for submit@debbugs.gnu.org; Wed, 14 Jun 2017 06:28:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL5XG-0003mj-UR for submit@debbugs.gnu.org; Wed, 14 Jun 2017 06:28:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36760) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dL5XG-0003mc-Qb for submit@debbugs.gnu.org; Wed, 14 Jun 2017 06:28:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL5XC-00083V-Kd for bug-coreutils@gnu.org; Wed, 14 Jun 2017 06:28:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL5XB-0003iZ-OZ for bug-coreutils@gnu.org; Wed, 14 Jun 2017 06:28:22 -0400 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]:36608) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dL5XB-0003h1-Gx for bug-coreutils@gnu.org; Wed, 14 Jun 2017 06:28:21 -0400 Received: by mail-wr0-x230.google.com with SMTP id 36so60981019wry.3 for ; Wed, 14 Jun 2017 03:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=lvBbwwE3JUj8u/iS4RF5dNAmba/85TmjkqHEIIKt2Pw=; b=aYDggLvv5J0O0uM4ETCna8YEnkkK+c1XBsbYBRDtKF6HbnpU3mo6J6HCqXMRGwrrrO ZB6/TB7sOYCcZpq2UsrhfUUZ1G/e+AQGfTEDgWBcFurDk22LKw5iVi1FyQwyavYzqTSF k/rKOmBOtEoSteZpBZbS0jcRnnePBYeuz4QRx+rtFMUaX4RL/QYZwxoV4OncpwrbUY9m miOdpfCYo1Ptz2zAxsiWVqD8PwNCLjR2fiBAGEDdd3cm7WP+8Uhgai/f6CaXMbL0Ja32 wxS/HuZCBAQpROeGWBGp3Wde7sojdahDNkGxemyZwjSd7DxQ7UOdn05v5gQ8MP83Du+h jHCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=lvBbwwE3JUj8u/iS4RF5dNAmba/85TmjkqHEIIKt2Pw=; b=lA7Fd05A5+6QcYWn49sVgrfIq3Peo4q2kT/LNkJJA6r4nPqWrIhUKNxlak2d+I/w46 KO3c5qWoqE7gmxu2dPH17E5iLaAjnBagaECPWgdaI+7QcqN5jVraXX6ilXKNxRjvjCF1 Fk62qPOOWdrhqZuZJlCgTG12QU8XIhnRd4b7VdzJ5f0Bu4JzyloPoocnoFTdLXaoPpkU JWg9xri/72le/IVtIYQVblCjF9+xstzElxl+rNK9P2P60mQ3g1bWGbRohqcIjslmu71z AIzrMtLQ1YTviY+tSteUQaBIvzu66nrIesHVLC0tL2blTGNsTXXq6RuUENn0Q6ysG6to vuVA== X-Gm-Message-State: AKS2vOxBbaYw0fgCtfPC/JrFSw/gHxccW1lXY3M9RfRS2dGAmS+OSMLU h1SB3Xwi4VSquAB+BxUJHjQcoCrSrDKI X-Received: by 10.28.238.70 with SMTP id m67mr14479689wmh.74.1497436099743; Wed, 14 Jun 2017 03:28:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.188.134 with HTTP; Wed, 14 Jun 2017 03:28:19 -0700 (PDT) From: Ken Walker Date: Wed, 14 Jun 2017 15:58:19 +0530 Message-ID: Content-Type: multipart/alternative; boundary="001a1146b250cc96ee0551e9024b" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Mailman-Approved-At: Wed, 14 Jun 2017 11:25:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) --001a1146b250cc96ee0551e9024b Content-Type: text/plain; charset="UTF-8" Hello, We are converting xls to csv file using unoconv command, unoconv command start soffice.bin proccess for convert file and it working fine to kill that unoconv + soffice.bin process by timeout command if taken more than time which define with timeout command, But sometime it was not killed soffice.bin process so any idea why this happen?, Which case can occur this issue, Can you please look at this and guide me proper regarding this, As i have mention command + installed pages in my system so that will be help to assist this thing, Let me know if require any further info regarding this *Installed packages :------------------------* Os CentOS-6.4 unoconv 0.5 LibreOffice 4.2.8.2 Libreoffice-headless 4.2.8.2 Python 2.6.6 timeout (GNU coreutils) 8.4 *Command :------------* exec('timeout 300 unoconv -T 10 -vvvvv -f csv -o "destination.xls" "destination.csv" 2>&1', $arrOp, $return_value); Thanks in advance! Regards, - Ken --001a1146b250cc96ee0551e9024b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

We are converting xls to csv file using unoc= onv command, unoconv command start soffice.bin proccess for convert file an= d it working fine to kill that unoconv + soffice.bin process by timeout com= mand=C2=A0 if taken more than time which define with timeout command, But s= ometime it was not killed soffice.bin process=C2=A0 so any idea why this ha= ppen?, Which case can occur this issue, Can you please look at this and gui= de me proper regarding this, As i have mention command + installed pages in= my system so that will be help to assist this thing, Let me know if requir= e any further info regarding this

Installed packages :-
------= -----------------

Os CentOS-6.4
unoconv 0.5
LibreOffice 4.2.8.= 2
Libreoffice-headless 4.2.8.2
Python 2.6.6
timeout (GNU coreutils= ) 8.4

Command :-
-----------

exec('timeout 300 unoc= onv -T 10 -vvvvv -f csv -o "destination.xls" "destination.cs= v" 2>&1', $arrOp, $return_value);

Thanks in advance!=

Regards,
- Ken
--001a1146b250cc96ee0551e9024b-- From unknown Sun Jun 22 00:13:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27358: Timeout command was get failed to kill soffice.bin processes Resent-From: Assaf Gordon Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 14 Jun 2017 16:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27358 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Ken Walker Cc: 27358@debbugs.gnu.org Received: via spool by 27358-submit@debbugs.gnu.org id=B27358.149745615230078 (code B ref 27358); Wed, 14 Jun 2017 16:03:02 +0000 Received: (at 27358) by debbugs.gnu.org; 14 Jun 2017 16:02:32 +0000 Received: from localhost ([127.0.0.1]:47901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLAkZ-0007p3-NK for submit@debbugs.gnu.org; Wed, 14 Jun 2017 12:02:31 -0400 Received: from mail-yw0-f179.google.com ([209.85.161.179]:35824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLAkY-0007ol-Ty for 27358@debbugs.gnu.org; Wed, 14 Jun 2017 12:02:31 -0400 Received: by mail-yw0-f179.google.com with SMTP id v7so2764032ywc.2 for <27358@debbugs.gnu.org>; Wed, 14 Jun 2017 09:02:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=C8845SamkQrZJrIGa2vaAO5JnHfdosfZEL3CKafh4xc=; b=RLqY68NW72DnVsZY01snr1mIeUs6wQYbyKzt9wEN1bXy6Rnl0wLx7eKd+3QAn8fZev cmzZdaQhLX18I4UFHQWCKjvvVvEp5LsLYm9uGMjLG+bQf1oxDynwbQ9LE1xcmRkR9Pjl oOUq14v/xlO7n3KhLXt7qI97KFdfhL9v0Cro5Jb3T2KE7yxffFZHHFUV6tEvHvPQbZ9c EGy23S0rG18KBckf94iKaBmGohOpLB6yGYT/+sBvO4tlHI3FR+qOXUSTX8pPJctWooMr 6DXaX8SCTKp9FJe8qdhJJvHDKIXf9sAn/7sSkZ7xTmsxjR2OPGz643FMRDPAUD4wptRH cASw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=C8845SamkQrZJrIGa2vaAO5JnHfdosfZEL3CKafh4xc=; b=a7q1CCoWoj9WYKq2WOgbR9VC06GTfUnoechOtn/9G+/1mUJQQe9WZZIZj1lVo6JavT hA2TpUVLiDgS63ZrLNwOM81o6qFhxOZ7kngu6n6rthCbVEFFFLLRlbu3up/4gCwXU8O6 hx5DvUYkVMx6fUymqFncHWSZkzjvqzB4hCsdvokI/2XMzq1ZyVjc/foUepvI0rkQmv8P LECBWMhxR3uvOvHxfDSS95TS+BOKYThyJdAl2aL8+UcCMmYS1LxYzhJBeRUX2j7nxsIs 3AjDWeu+X705tA1w/08/WJwSpc11bISusM+YDxv6jhqjujFP56quGs1HRDJUuo20dVRh rq9w== X-Gm-Message-State: AKS2vOydVNOt2CsQcOZ5tiN6L7oX5Fg55iX2fy4F+3lQrVHxO3mW3G30 D7Kd4hRvPgYirg== X-Received: by 10.129.72.75 with SMTP id v72mr726963ywa.160.1497456145086; Wed, 14 Jun 2017 09:02:25 -0700 (PDT) Received: from gmail.com (housegordon.org. [104.236.108.240]) by smtp.gmail.com with ESMTPSA id y195sm159296ywg.65.2017.06.14.09.02.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Jun 2017 09:02:24 -0700 (PDT) Date: Wed, 14 Jun 2017 16:01:45 +0000 From: Assaf Gordon Message-ID: <20170614160144.GB8303@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello Ken, On Wed, Jun 14, 2017 at 03:58:19PM +0530, Ken Walker wrote: >[...] unoconv command >start soffice.bin proccess for convert file and it working fine to kill >that unoconv + soffice.bin process by timeout command if taken more than >time which define with timeout command, But sometime it was not killed >soffice.bin process so any idea why this happen? [...] >exec('timeout 300 unoconv -T 10 -vvvvv -f csv -o "destination.xls" >"destination.csv" 2>&1', $arrOp, $return_value); Few observation (though not a clear solution): 1. As you've mentioned, the unoconv program does not do the conversion by itself, it needs a running openoffice program to do so (the 'soffice' binary). 2. If it doesn't find a running 'soffice' binary, it starts one. But if there is already a running 'soffice' binary (which already acts as a listener on 127.0.0.1:2002) - then it does NOT start a new binary. 3. This means that the 'soffice' binary is not a child-process of 'unoconv', and 'timeout' won't kill it. you can observe the difference in the debug messages: === $ unoconv -vvvv -f csv -o 1.xls 1.csv Verbosity set to level 4 Using office base path: /usr/lib/libreoffice Using office binary path: /usr/lib/libreoffice/program DEBUG: Connection type: socket,host=127.0.0.1,port=2002;urp;StarOffice.ComponentContext DEBUG: Existing listener not found. DEBUG: Launching our own listener using /usr/lib/libreoffice/program/soffice.bin. LibreOffice listener successfully started. (pid=30564) === versus (when there's already an OpenOffice program running): === $ unoconv -vvvv -f csv -o 1.xls 1.csv Verbosity set to level 4 Using office base path: /usr/lib/libreoffice Using office binary path: /usr/lib/libreoffice/program DEBUG: Connection type: socket,host=127.0.0.1,port=2002;urp;StarOffice.ComponentContext === Without further details I can't tell if this is indeed the culprit for the behaviour you're experiencing, but this would be one direction to investigate. As a side-note, Since unoconv's operation model is based on a running OpenOffice listener/server, it would be more efficient (IMHO) to start one listener in the background, and then each 'unoconv' invocation won't need to start a new OpenOffice instance (which is a very slow process). The unoconv program supports this operation mode with the '--listener' and '--no-launch' parameters (see 'unoconv -h'). It would likely be useful to use a non-default port, to ensure the listener does not conflict with other (non-listener) open-office instances. HTH, - assaf From unknown Sun Jun 22 00:13:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27358: Timeout command was get failed to kill soffice.bin processes Resent-From: Assaf Gordon Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 29 Oct 2018 03:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27358 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 27358@debbugs.gnu.org Received: via spool by 27358-submit@debbugs.gnu.org id=B27358.154078335929624 (code B ref 27358); Mon, 29 Oct 2018 03:23:01 +0000 Received: (at 27358) by debbugs.gnu.org; 29 Oct 2018 03:22:39 +0000 Received: from localhost ([127.0.0.1]:49749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGy8U-0007hf-S7 for submit@debbugs.gnu.org; Sun, 28 Oct 2018 23:22:39 -0400 Received: from mail-pg1-f170.google.com ([209.85.215.170]:45481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGy8S-0007hM-IA; Sun, 28 Oct 2018 23:22:36 -0400 Received: by mail-pg1-f170.google.com with SMTP id s3-v6so3164006pga.12; Sun, 28 Oct 2018 20:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=mnfoW7+BDkPGtGt77OE5rkMdgknRXLonUqvxJOG7C5I=; b=GGR306epYA90P0QIPvX4cRvFugPXD5x+JrvzpXto8WFz401h2Sw7p68aC+Yon9BV2A pI6CVRc5j8z7rHfcoZRU1ivdwloxA1T0k5MaN+R2dM/u2UnwJnePZ5B4u5Lwlxil8hiF LXx8CRPkuD0DMhSr2EUE+PEfNMfuVSiD1CPY63WXBw8yV8ZLdvrEj1J21qo1bQDgfSn+ rPHoyNPKYGb3/BEs1/K8SHwzIy9gYnTwwBpg7qrMhcDqmYG80TkwSbT6ybHaAwKJUHTI Ncoyv7KEyBUfRr2BtlB4kUxqJgxNCUdYKGPb8dNIgQOyYaz23D/tHWalWMmjWVy08NmY vh1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mnfoW7+BDkPGtGt77OE5rkMdgknRXLonUqvxJOG7C5I=; b=TDQzDebo0LNCYHmlKdu+jKam1qxPrrSpxyZdsLTRl+4LUvobFpLNfjDNNFzGva2p5H IJBabPMpzZZyD3S0cbVUolB4JLOtZyFe2i69EU6Tzir0/zWj8H+eRtv+q3nZDgymUHb2 xCQj2+irjDLg8zIB94jBDvNZ34MzOMG0QQJTXnaX9HfIqHYXKj3LxKE/9qPN0NpQ5V/R Hz4X0GUQee9u+cjgAmMEg9IJWpR/EeSAL+S5Kr/CM6kSQ93Dx6jgU0hWK2LiYfgOk672 8FlfgwGS3T9MS0YvxJ7VXWouYFt2U1MFO458bVmLtsD5chBdL0/m2OfR3otFNr1hfYwn qDTA== X-Gm-Message-State: AGRZ1gINkTLZ3M/8+SNv5flFL1FufkwH1X8d2jJhndGiAWe4sJzjFbOY t2SQ+qFaZy6/+MxuZKhDpLgqYgQ+SWI= X-Google-Smtp-Source: AJdET5dkTiuBv/5uEaX6ViIvjn+IYhaACr0h1y0MK8MCgEjvwVlxg74753sD/YZmMM3CANsgaV8Z5g== X-Received: by 2002:a63:e256:: with SMTP id y22-v6mr12113585pgj.439.1540783349901; Sun, 28 Oct 2018 20:22:29 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id o2-v6sm18726844pgp.82.2018.10.28.20.22.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Oct 2018 20:22:28 -0700 (PDT) From: Assaf Gordon References: <20170614160144.GB8303@gmail.com> Message-ID: Date: Sun, 28 Oct 2018 21:22:27 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20170614160144.GB8303@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 27358 notabug close 27358 stop (triaging old bugs) On 2017-06-14 10:01 a.m., Assaf Gordon wrote: > > Without further details I can't tell if this is indeed the culprit > for the behaviour you're experiencing, but this would be one direction > to investigate. > With no further comments in more than a year, I'm closing this bug. Discussion can continue by replying to this thread. -assaf