<?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 Running ExportPackage (and ImportPackage) headless in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-ExportPackage-and-ImportPackage-headless/m-p/285121#M5468</link>
    <description>&lt;P&gt;I'm in the process of populating the DR box with metadata, and I've got the exporting, secure copy and importing all running tickety-boo. I started off using the wizard, then put the command it issued into a shell script and let cron take care of it. After I set the DISPLAY variable to my Unix session's localhost:12.0, it worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I left it running over the weekend, it failed: "java.lang.InternalError: Can't connect to X11 winder server using 'localhost:12.0' as the value of the DISPLAY variable."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know there's a -disableX11 option in ImportPackage (which amusingly is described as being disabled by default: is it disabled or not?!), but that's not available in the version we're running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried with other options I've searched for (variously localhost:0.0, :0.0, localhost:13.0), but really I'm fumbling in the dark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what I should set it to? why is the Unix session's value different to submitted-at-4am's requirement? why should they differ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Laurie&lt;/P&gt;</description>
    <pubDate>Sun, 17 Jul 2016 20:15:32 GMT</pubDate>
    <dc:creator>LaurieF</dc:creator>
    <dc:date>2016-07-17T20:15:32Z</dc:date>
    <item>
      <title>Running ExportPackage (and ImportPackage) headless</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-ExportPackage-and-ImportPackage-headless/m-p/285121#M5468</link>
      <description>&lt;P&gt;I'm in the process of populating the DR box with metadata, and I've got the exporting, secure copy and importing all running tickety-boo. I started off using the wizard, then put the command it issued into a shell script and let cron take care of it. After I set the DISPLAY variable to my Unix session's localhost:12.0, it worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I left it running over the weekend, it failed: "java.lang.InternalError: Can't connect to X11 winder server using 'localhost:12.0' as the value of the DISPLAY variable."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know there's a -disableX11 option in ImportPackage (which amusingly is described as being disabled by default: is it disabled or not?!), but that's not available in the version we're running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried with other options I've searched for (variously localhost:0.0, :0.0, localhost:13.0), but really I'm fumbling in the dark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what I should set it to? why is the Unix session's value different to submitted-at-4am's requirement? why should they differ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Laurie&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2016 20:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-ExportPackage-and-ImportPackage-headless/m-p/285121#M5468</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2016-07-17T20:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Running ExportPackage (and ImportPackage) headless</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-ExportPackage-and-ImportPackage-headless/m-p/285199#M5470</link>
      <description>&lt;P&gt;See this&amp;nbsp;previous discussion related to your question&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/Has-anyone-automated-a-Metadata-sync-process-between-a-PROD/td-p/178665" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/Has-anyone-automated-a-Metadata-sync-process-between-a-PROD/td-p/178665&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;package Xvfb would be required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 10:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-ExportPackage-and-ImportPackage-headless/m-p/285199#M5470</guid>
      <dc:creator>ronan</dc:creator>
      <dc:date>2016-07-18T10:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Running ExportPackage (and ImportPackage) headless</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-ExportPackage-and-ImportPackage-headless/m-p/285374#M5477</link>
      <description>&lt;P&gt;Yes, thank you, I saw that. But it doesn't answer my question; nor am I in a position to install more software on this machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;The documentation for Intelligence Platform batch tools implies that there is a setting for DISPLAY which will do what -disableX11 does in the third maintenance release. If I could work out why it works when I submit the ImportPackage command manually, but not when it's submitted by cron, then I might be closer to a solution.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 20:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-ExportPackage-and-ImportPackage-headless/m-p/285374#M5477</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2016-07-18T20:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Running ExportPackage (and ImportPackage) headless</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-ExportPackage-and-ImportPackage-headless/m-p/285543#M5483</link>
      <description>&lt;P&gt;I'm afraid the documentation quoted below might be misleading.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the DISPLAY variable is used like a mere placeholder then the import/export tool won't work since the underlying java session will look for an X11 session already running and pointing to some real adress/socket stored with the DISPLAY value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will work with the DISPLAY variable only if there is some X11 terminal set up and listening on that value, which amounts to some interactive session requirement : back to square 1 !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless you can't upgrade to 9.4TS1M3 then Xvfb or anything like it will be needed. Please, don't hesitate to confirm with SAS Technical Support. I might be wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI, I've tested these tools in batch modes with SAS 9.2/9.3 on RHEL 5/6 with and without Xvfb.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/17429"&gt;@LaurieF&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Yes, thank you, I saw that. But it doesn't answer my question; nor am I in a position to install more software on this machine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;The documentation for Intelligence Platform batch tools implies that there is a setting for DISPLAY which will do what -disableX11 does in the third maintenance release. If I could work out why it works when I submit the ImportPackage command manually, but not when it's submitted by cron, then I might be closer to a solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2 class="xis-title"&gt;&lt;EM&gt;Set the DISPLAY Variable (UNIX Only)&lt;/EM&gt;&lt;/H2&gt;
&lt;DIV class="xis-topicContent"&gt;&lt;A id="p1qvtna2aoe91bn1o4mr6eclozh5" target="_blank"&gt;&lt;/A&gt;
&lt;DIV id="p13d8sfxv00ux9n1tsz7cw89zeg2" class="xis-paragraph"&gt;&lt;EM&gt;If you are using the batch import or export tool on a UNIX machine, make sure that the DISPLAY variable has been set on the machine. To set the variable, enter a command such as the following:&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV id="p0stxh6rwks336n1dy0k04awlcdd" class="xis-paragraph"&gt;&lt;EM&gt;&lt;CODE&gt;export DISPLAY=&lt;/CODE&gt;&lt;SPAN class="xis-userSuppliedValue"&gt;machine-name&lt;/SPAN&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV id="n0njn6pfls23itn1ke8ze84ougca" class="xis-tip"&gt;
&lt;DIV class="xis-tipGenText"&gt;&lt;EM&gt;Tip&lt;/EM&gt;&lt;/DIV&gt;
&lt;EM&gt;You can use the &lt;SPAN class="xis-xrefSee"&gt;&lt;A title="" href="https://support.sas.com/documentation/cdl/en/bisag/68240/HTML/default/n008xsxs34mvcwn1qrgcmugpzu6i.htm#n1nllqyxjvby9qn1n77286uu6vgf" target="_blank"&gt;-disableX11&lt;/A&gt; &lt;/SPAN&gt;option to run the batch import or export tool on UNIX without setting the DISPLAY variable. This option is available with the third maintenance release for SAS 9.4.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="xis-tip"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/bisag/68240/HTML/default/viewer.htm#n0861tmrlv3nsen164wtorvn6vn2.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/bisag/68240/HTML/default/viewer.htm#n0861tmrlv3nsen164wtorvn6vn2.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 15:31:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-ExportPackage-and-ImportPackage-headless/m-p/285543#M5483</guid>
      <dc:creator>ronan</dc:creator>
      <dc:date>2016-07-19T15:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Running ExportPackage (and ImportPackage) headless</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-ExportPackage-and-ImportPackage-headless/m-p/285658#M5487</link>
      <description>&lt;P&gt;&amp;lt;nods&amp;gt; I had a chat with a SAS Institute chappy yesterday who pretty much said exactly what you have just put forward. Thank you very much. He apologised for the misdirection in the documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I left my X-terminal sessions on both the export and import machines running last night, and they both worked fine, because they both thought they had something to send stuff too, even though neither session ultimately wanted to. Heavy sigh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to chat to the Unix sysadmin today to see what he suggests. They&amp;nbsp;&lt;EM&gt;might&lt;/EM&gt; have a dummy DISPLAY value to use (the SAS guy said it was possible, but unlikely), but I will also ask about Xvfb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Laurie&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 22:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-ExportPackage-and-ImportPackage-headless/m-p/285658#M5487</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2016-07-19T22:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Running ExportPackage (and ImportPackage) headless</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-ExportPackage-and-ImportPackage-headless/m-p/285808#M5498</link>
      <description>You're welcome. Nice workaround : an SSH +X11 session left opened can do the trick &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; .</description>
      <pubDate>Wed, 20 Jul 2016 13:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-ExportPackage-and-ImportPackage-headless/m-p/285808#M5498</guid>
      <dc:creator>ronan</dc:creator>
      <dc:date>2016-07-20T13:18:23Z</dc:date>
    </item>
  </channel>
</rss>

