<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sent server start command but could not get process ID in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322854#M9855</link>
    <description>&lt;P&gt;Thanks for the suggestions, Julien. It worked for me like this&lt;/P&gt;</description>
    <pubDate>Wed, 17 Oct 2012 17:42:31 GMT</pubDate>
    <dc:creator>Alexey_Chuenko</dc:creator>
    <dc:date>2012-10-17T17:42:31Z</dc:date>
    <item>
      <title>Sent server start command but could not get process ID</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322852#M9853</link>
      <description>&lt;P&gt;Hi. I've installed nuxeo and struggling with launching application. Here is the debug output:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;13:45:51,850 DEBUG [org.nuxeo.launcher.NuxeoLauncher.start(NuxeoLauncher.java:405)] Server command: [/bin/sh, -c,  /opt/jdk1.6.0_35/jre/bin/java -server -Xms512m -Xmx1024m -XX:MaxPermSize=512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -cp .:/opt/nuxeo-cap-5.6-tomcat/nxserver/lib:/opt/nuxeo-cap-5.6-tomcat/bin/bootstrap.jar -Dnuxeo.home=/opt/nuxeo-cap-5.6-tomcat -Dnuxeo.conf=/opt/nuxeo-cap-5.6-tomcat/bin/nuxeo.conf -Dnuxeo.log.dir=/opt/nuxeo-cap-5.6-tomcat/log -Dnuxeo.data.dir=/opt/nuxeo-cap-5.6-tomcat/nxserver/data -Dnuxeo.tmp.dir=/opt/nuxeo-cap-5.6-tomcat/tmp -Djava.io.tmpdir=/opt/nuxeo-cap-5.6-tomcat/tmp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dcatalina.base=/opt/nuxeo-cap-5.6-tomcat -Dcatalina.home=/opt/nuxeo-cap-5.6-tomcat -Djava.endorsed.dirs=/opt/nuxeo-cap-5.6-tomcat/endorsed org.apache.catalina.startup.Bootstrap start]
13:45:52,862 DEBUG [org.nuxeo.launcher.NuxeoLauncher.getPid(NuxeoLauncher.java:1394)] regexp: ^(?!/bin/sh).*\Q/opt/nuxeo-cap-5.6-tomcat/bin/nuxeo.conf\E.*\Qorg.apache.catalina.startup.Bootstrap\E.*$ pid:null
13:45:52,862 WARN  [org.nuxeo.launcher.NuxeoLauncher.start(NuxeoLauncher.java:412)] Sent server start command but could not get process ID.
13:45:52,870 DEBUG [org.nuxeo.launcher.NuxeoLauncher.getPid(NuxeoLauncher.java:1394)] regexp: ^(?!/bin/sh).*\Q/opt/nuxeo-cap-5.6-tomcat/bin/nuxeo.conf\E.*\Qorg.apache.catalina.startup.Bootstrap\E.*$ pid:null
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The regexp check during startup seems to be incorrect. Is it possible to fix?&lt;/P&gt;
&lt;P&gt;My specs:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;CentOS 6.3 x64&lt;/LI&gt;
&lt;LI&gt;jdk1.6.0_35 x64&lt;/LI&gt;
&lt;LI&gt;nuxeo-cap-5.6&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 17 Oct 2012 13:11:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322852#M9853</guid>
      <dc:creator>Alexey_Chuenko</dc:creator>
      <dc:date>2012-10-17T13:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sent server start command but could not get process ID</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322853#M9854</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The first workaround is to make the Nuxeo Launcher ignore the process ID: using &lt;CODE&gt;nuxeoctl console&lt;/CODE&gt; or &lt;CODE&gt;nuxeoctl startbg&lt;/CODE&gt; commands instead of &lt;CODE&gt;nuxeoctl start&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;The regexp is generated by &lt;A href="https://github.com/nuxeo/nuxeo-distribution/blob/master/nuxeo-launcher/src/main/java/org/nuxeo/launcher/NuxeoLauncher.java"&gt;org.nuxeo.launcher.NuxeoLauncher&lt;/A&gt; from:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;        processRegex = "^(?!/bin/sh).*"
            + Pattern.quote(configurationGenerator.getNuxeoConf().getPath())
            + ".*" + Pattern.quote(getServerPrint()) + ".*$";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;with &lt;CODE&gt;getServerPrint()=org.apache.catalina.startup.Bootstrap&lt;/CODE&gt; in Tomcat case.&lt;/P&gt;
&lt;P&gt;It is then used by &lt;A href="https://github.com/nuxeo/jodconverter/blob/3.0-NX/jodconverter-core/src/main/java/org/artofsolving/jodconverter/process/ProcessManager.java#L28"&gt;org.artofsolving.jodconverter.process.ProcessManager.findPid(processRegex)&lt;/A&gt; from JOD Converter third-party library.&lt;/P&gt;
&lt;P&gt;There is currently no way to customize it. We could add an option to the Launcher or check for a System property allowing to provide a custom regexp. But I would rather generically fix it.&lt;/P&gt;
&lt;P&gt;What is wrong with the current regexp in your case? What would be a better value?&lt;/P&gt;
&lt;P&gt;Contributions are very welcome: feel free to &lt;A href="https://jira.nuxeo.com/secure/CreateIssue!default.jspa"&gt;fill a Jira issue&lt;/A&gt; and send a pull request for &lt;A href="https://github.com/nuxeo/jodconverter/"&gt;JOD Converter&lt;/A&gt; or the &lt;A href="https://github.com/nuxeo/nuxeo-distribution/"&gt;Nuxeo Launcher&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 15:28:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322853#M9854</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2012-10-17T15:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sent server start command but could not get process ID</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322854#M9855</link>
      <description>&lt;P&gt;Thanks for the suggestions, Julien. It worked for me like this&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 17:42:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322854#M9855</guid>
      <dc:creator>Alexey_Chuenko</dc:creator>
      <dc:date>2012-10-17T17:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sent server start command but could not get process ID</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322855#M9856</link>
      <description>&lt;P&gt;it also happend to me quite often, usually I simply... reboot my computer&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 19:19:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322855#M9856</guid>
      <dc:creator>Julien_A_</dc:creator>
      <dc:date>2012-10-17T19:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sent server start command but could not get process ID</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322856#M9857</link>
      <description>&lt;P&gt;Could paste the result of &lt;CODE&gt;&amp;amp;quot;/bin/ps -e -o pid,args |grep Bootstrap&amp;amp;quot;&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 21:33:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322856#M9857</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2012-10-17T21:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sent server start command but could not get process ID</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322857#M9858</link>
      <description>&lt;P&gt;Here is the output of "/bin/ps -e -o pid,args |grep Bootstrap"&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2012 08:52:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322857#M9858</guid>
      <dc:creator>Alexey_Chuenko</dc:creator>
      <dc:date>2012-10-18T08:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sent server start command but could not get process ID</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322858#M9859</link>
      <description>&lt;P&gt;Forgot to mention. I'm using OpenVZ virtual machine.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2012 10:09:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322858#M9859</guid>
      <dc:creator>Alexey_Chuenko</dc:creator>
      <dc:date>2012-10-18T10:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sent server start command but could not get process ID</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322859#M9860</link>
      <description>&lt;P&gt;Hello Dear:&lt;/P&gt;
&lt;P&gt;I found the solution to the problem generated by the aforementioned error message.&lt;/P&gt;
&lt;P&gt;What I have done has been as follows:&lt;/P&gt;
&lt;P&gt;In nuxeo.conf file located in C: \ ProgramData \ Nuxeo \ Conf \ in the line corresponding to&lt;/P&gt;
&lt;P&gt;JAVA_OPTS =-Xms512m-Xmx1024m-XX: MaxPermSize = 512m - I set the values ??in half and EUREKA! this has worked wonders!&lt;/P&gt;
&lt;P&gt;Then, the content should look like:&lt;/P&gt;
&lt;P&gt;JAVA_OPTS =-Xms256m-Xmx512m-XX: MaxPermSize = 256m -.&lt;/P&gt;
&lt;P&gt;As a precaution, I have also made ??this change to the same values ??in the following files in C: \ Nuxeo \ bin:&lt;/P&gt;
&lt;P&gt;-nuxeoctl&lt;/P&gt;
&lt;P&gt;-pack&lt;/P&gt;
&lt;P&gt;Bon voyage!&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/Nuxeo_Running_Ok_2.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2013 14:33:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/sent-server-start-command-but-could-not-get-process-id/m-p/322859#M9860</guid>
      <dc:creator>JUANMAM_</dc:creator>
      <dc:date>2013-05-05T14:33:45Z</dc:date>
    </item>
  </channel>
</rss>

