<?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: Update package via Studio fails: UpdateManager.java looks for wrong themes-path in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/update-package-via-studio-fails-updatemanager-java-looks-for/m-p/315414#M2415</link>
    <description>&lt;P&gt;I recreated a fresh Docker container today (same version, same package/project) and tested it and the problem does not exist anymore. Let's see if the error happens again at some point later.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2017 12:28:14 GMT</pubDate>
    <dc:creator>mathias_lin</dc:creator>
    <dc:date>2017-01-31T12:28:14Z</dc:date>
    <item>
      <title>Update package via Studio fails: UpdateManager.java looks for wrong themes-path</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/update-package-via-studio-fails-updatemanager-java-looks-for/m-p/315413#M2414</link>
      <description>&lt;H3&gt;Update directly from Studio&lt;/H3&gt;
&lt;P&gt;I run Nuxeo LTS 2016 in the default/official Docker image. Recently the update mechanism via Studio keeps failing, but it had worked before. No idea why it's not working, but I can see that the UpdateManager is looking for a wrong path for the themes-folder.&lt;/P&gt;
&lt;P&gt;The project is properly registered and the status looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="type an image title"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1876i9A11E74657E78453/image-size/large?v=v2&amp;amp;px=999" role="button" title="type an image title" alt="type an image title" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(click the files link at the bottom of this post to enlarge)&lt;/P&gt;
&lt;P&gt;Package info and dependencies:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="type an image title"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1877i62EADE9EDF7FCEA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="type an image title" alt="type an image title" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(click the files link at the bottom of this post to enlarge)&lt;/P&gt;
&lt;P&gt;Checking the startup log under monitoring:
(Complete log here: &lt;A href="http://pastebin.com/J0zaRxwx)" target="test_blank"&gt;http://pastebin.com/J0zaRxwx)&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;1. Caused by: org.nuxeo.connect.update.PackageException: Failed to copy file: /opt/nuxeo/server/nxserver/bundles/evaluationproject-conrad-master-SNAPSHOT.jar to /opt/nuxeo/server/packages/backup/nxserver/bundles/evaluationproject-conrad-master-SNAPSHOT.jar
2. at org.nuxeo.connect.update.task.update.UpdateManager.copy(UpdateManager.java:467)
3. at org.nuxeo.connect.update.task.update.UpdateManager.backupFile(UpdateManager.java:425)
4. ... 117 more
5. Caused by: java.io.FileNotFoundException: /opt/nuxeo/server/packages/backup/nxserver/bundles/evaluationproject-conrad-master-SNAPSHOT.jar/evaluationproject-conrad-master-SNAPSHOT.jar/themes (Not a directory)
6. at java.io.FileOutputStream.open0(Native Method)
7. at java.io.FileOutputStream.open(FileOutputStream.java:270)
8. at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:213)
9. at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:162)
10. at org.nuxeo.common.utils.FileUtils.copyFile(FileUtils.java:366)
11. at org.nuxeo.common.utils.FileUtils.copyTree(FileUtils.java:386)
12. at org.nuxeo.common.utils.FileUtils.copyTree(FileUtils.java:396)
13. at org.nuxeo.common.utils.FileUtils.copyTree(FileUtils.java:396)
14. at org.nuxeo.common.utils.FileUtils.copyTree(FileUtils.java:396)
15. at org.nuxeo.common.utils.FileUtils.copy(FileUtils.java:349)
16. at org.nuxeo.connect.update.task.update.UpdateManager.copy(UpdateManager.java:464)

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Checking the mentioned folder on Docker container / command line, I think that the path where the UpdateManager is looking for the themes-folder is wrong. It has the &lt;CODE&gt;evaluationproject-conrad-master-SNAPSHOT.jar&lt;/CODE&gt; twice in its name!&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;/opt/nuxeo/server/packages/backup/nxserver/bundles/evaluationproject-conrad-master-SNAPSHOT.jar/evaluationproject-conrad-master-SNAPSHOT.jar/themes&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="type an image title"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1878iA15658CC26BB3662/image-size/large?v=v2&amp;amp;px=999" role="button" title="type an image title" alt="type an image title" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(click the files link at the bottom of this post to enlarge)&lt;/P&gt;
&lt;HR /&gt;
&lt;H3&gt;Manual upload&lt;/H3&gt;
&lt;P&gt;In a second attempt, I tried to go to "Admin &amp;gt; Update Center &amp;gt; Local Packages &amp;gt; [Package]" and click the "install" button there. Afterwards I get the info that a server restart is required.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="type an image title"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1875i6FC7E01B14E7F300/image-size/large?v=v2&amp;amp;px=999" role="button" title="type an image title" alt="type an image title" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(click the files link at the bottom of this post to enlarge)&lt;/P&gt;
&lt;P&gt;Restarting the Nuxeo server via command line in the Docker container
&lt;CODE&gt;nuxeoctrl restart&lt;/CODE&gt; which gives me these errors:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Installing evaluationproject-conrad-0.0.0-SNAPSHOT

Failed to install package: evaluationproject-conrad-0.0.0-SNAPSHOT (Failed to backup file: nxserver/bundles/evaluationproject-conrad-master-SNAPSHOT.jar)

Pending actions execution failed. The commands file has been moved to: /var/lib/nuxeo/data/installAfterRestart.log.bak

Start interrupted due to failure on pending actions. You can resume with a new start; or you can restore the file 'installAfterRestart.log', optionally using the '--ignore-missing' option.

Failed commands:
* install (evaluationproject-conrad-0.0.0-SNAPSHOT)
Failed to backup file: nxserver/bundles/evaluationproject-conrad-master-SNAPSHOT.jar
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(click the files link at the bottom of this post to enlarge)&lt;/P&gt;
&lt;P&gt;Log: &lt;A href="http://pastebin.com/8pbyTjmZ" target="test_blank"&gt;http://pastebin.com/8pbyTjmZ&lt;/A&gt;&lt;/P&gt;
&lt;HR /&gt;
&lt;H3&gt;Manual Installation&lt;/H3&gt;
&lt;P&gt;In a third attempt, I removed the package via the Nuxeo Admin section, then downloaded the jar and installed it as per &lt;A href="https://doc.nuxeo.com/studio/installing-the-studio-jar-manually/"&gt;instructions&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This seems to work without errors.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 15:56:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/update-package-via-studio-fails-updatemanager-java-looks-for/m-p/315413#M2414</guid>
      <dc:creator>mathias_lin</dc:creator>
      <dc:date>2017-01-30T15:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update package via Studio fails: UpdateManager.java looks for wrong themes-path</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/update-package-via-studio-fails-updatemanager-java-looks-for/m-p/315414#M2415</link>
      <description>&lt;P&gt;I recreated a fresh Docker container today (same version, same package/project) and tested it and the problem does not exist anymore. Let's see if the error happens again at some point later.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 12:28:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/update-package-via-studio-fails-updatemanager-java-looks-for/m-p/315414#M2415</guid>
      <dc:creator>mathias_lin</dc:creator>
      <dc:date>2017-01-31T12:28:14Z</dc:date>
    </item>
  </channel>
</rss>

