<?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 Command-line management of Nuxeo marketplace packages while Nuxeo is running in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/command-line-management-of-nuxeo-marketplace-packages-while/m-p/318534#M5535</link>
    <description>&lt;P&gt;Some of the command-line Nuxeo marketplace package management operations are only available when Nuxeo is not running. When Nuxeo is running, these operations return:&lt;/P&gt;
&lt;P&gt;Cannot execute command. A server is running with process ID&lt;/P&gt;
&lt;P&gt;However, these same operations are available via the Admin Update Center when Nuxeo is running. Does Nuxeo plan to enhance the runtime command-line Nuxeo marketplace package management features to be comparable with those available from the Admin Update Center? We would like to script our package management operations to minimize downtime and reduce the possibility of human error. So, if an operation that does not require a restart can be performed while Nuxeo is running, we would like to use the command-line to initiate the operation.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Sep 2012 14:17:14 GMT</pubDate>
    <dc:creator>ron_1</dc:creator>
    <dc:date>2012-09-01T14:17:14Z</dc:date>
    <item>
      <title>Command-line management of Nuxeo marketplace packages while Nuxeo is running</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/command-line-management-of-nuxeo-marketplace-packages-while/m-p/318534#M5535</link>
      <description>&lt;P&gt;Some of the command-line Nuxeo marketplace package management operations are only available when Nuxeo is not running. When Nuxeo is running, these operations return:&lt;/P&gt;
&lt;P&gt;Cannot execute command. A server is running with process ID&lt;/P&gt;
&lt;P&gt;However, these same operations are available via the Admin Update Center when Nuxeo is running. Does Nuxeo plan to enhance the runtime command-line Nuxeo marketplace package management features to be comparable with those available from the Admin Update Center? We would like to script our package management operations to minimize downtime and reduce the possibility of human error. So, if an operation that does not require a restart can be performed while Nuxeo is running, we would like to use the command-line to initiate the operation.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2012 14:17:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/command-line-management-of-nuxeo-marketplace-packages-while/m-p/318534#M5535</guid>
      <dc:creator>ron_1</dc:creator>
      <dc:date>2012-09-01T14:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Command-line management of Nuxeo marketplace packages while Nuxeo is running</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/command-line-management-of-nuxeo-marketplace-packages-while/m-p/318535#M5536</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In fact, the Admin Update Center does almost nothing else than downloading Marketplace packages while Nuxeo is running. It stores actions to be done at restart time. Then, during the restart, the actions are finally managed by the Launcher; exactly as if the request has been ran from command-line.&lt;BR /&gt;/&amp;gt;
There are some exceptions though when the Marketplace package is marked as "hot-reloadable".&lt;/P&gt;
&lt;P&gt;Instead of simply rejecting the request when the server is running, the Launcher (aka NuxeoCtl or what you called the "command-line") could effectively work the same way as the Admin Center: do as much as possible online, then plan a restart and offline actions when required. I agree that would be a nice improvement: &lt;A href="https://jira.nuxeo.com/browse/NXP-10029"&gt;NXP-10029&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Note in order to avoid human error, you can still automate the process from command line by chaining commands, for instance:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;nuxeoctl stop &amp;amp;&amp;amp;
nuxeoctl --accept true --relax false mp-request "-some_package +another_package" &amp;amp;&amp;amp;
nuxeoctl  --accept true -q mp-upgrade
&amp;amp;&amp;amp; nuxeoctl start&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;NuxeoCtl strictly follows Linux return codes rules so the commands can easily be used in a script and if something goes wrong, it will send back an error code stopping the process. The only drawbacks compared to your suggestion are it requires to explicitly call stop and start, and the server downtime maybe slightly longer because of the download time.
So, a quicker improvement would be to add a &lt;CODE&gt;"mp-download"&lt;/CODE&gt; command available while the server is running: &lt;A href="https://jira.nuxeo.com/browse/NXP-10030"&gt;NXP-10030&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your feedback.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 12:13:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/command-line-management-of-nuxeo-marketplace-packages-while/m-p/318535#M5536</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2012-09-06T12:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Command-line management of Nuxeo marketplace packages while Nuxeo is running</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/command-line-management-of-nuxeo-marketplace-packages-while/m-p/318536#M5537</link>
      <description>&lt;P&gt;Thanks for creating these JIRA issues. They capture the requirements nicely.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2012 13:22:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/command-line-management-of-nuxeo-marketplace-packages-while/m-p/318536#M5537</guid>
      <dc:creator>ron_1</dc:creator>
      <dc:date>2012-09-07T13:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Command-line management of Nuxeo marketplace packages while Nuxeo is running</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/command-line-management-of-nuxeo-marketplace-packages-while/m-p/318537#M5538</link>
      <description>&lt;P&gt;Since your server is registered, NuxeoCtl is managing your Studio updates almost like any Marketplace package. So NXP-10030 should be enough.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2012 15:26:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/command-line-management-of-nuxeo-marketplace-packages-while/m-p/318537#M5538</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2012-09-07T15:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Command-line management of Nuxeo marketplace packages while Nuxeo is running</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/command-line-management-of-nuxeo-marketplace-packages-while/m-p/318538#M5539</link>
      <description>&lt;P&gt;Yes, I was thinking of a developer push triggering an auto-update without administrator action and without a server restart. In 5.6, I believe most Studio changes no longer require a restart, correct?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2012 18:23:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/command-line-management-of-nuxeo-marketplace-packages-while/m-p/318538#M5539</guid>
      <dc:creator>ron_1</dc:creator>
      <dc:date>2012-09-07T18:23:32Z</dc:date>
    </item>
  </channel>
</rss>

