<?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: How does a Linux batch job connect to metadata? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/507661#M14777</link>
    <description>&lt;P&gt;Thanks Jan! ... I'm glad I was able to help&amp;nbsp;a little&amp;nbsp;but I think you should have probably marked your own response as the answer to the post .... since it actually contained the real answer! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Oct 2018 07:23:17 GMT</pubDate>
    <dc:creator>PaulHomes</dc:creator>
    <dc:date>2018-10-26T07:23:17Z</dc:date>
    <item>
      <title>How does a Linux batch job connect to metadata?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499000#M14431</link>
      <description>&lt;P&gt;Dear fellow admins,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On one of our grid environments (SAS 9.4M4, Linux, LSF 9.1.3, Kerberos authentication), batch jobs give the message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Unable to establish a SAS Metadata Server connection.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have re-deployed this one after 7 grid environments that work properly and now I get this. Pre-assigned libraries don't work where they do al the others environments&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I must admit to not being able to entirely explain the anatomy of how a batch job connects to the metadata server in absence of user credentials. I would think a trusted peer sort of thing but that doesn't apply to this kind of server.The metaautoresources option is set to SASApp. The other (IOM) servers work properly. File metadataConfig.xml is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I am a bit lost. I was a bit reluctant to ask this question, afraid of RTFM responses and a facepalm moment for asking about something so obvious. But I have to come clean as time becomes an issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So there you have it: can someone explain this and help me diagnose the issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance,&lt;/P&gt;
&lt;P&gt;-- Jan.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 10:23:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499000#M14431</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2018-09-26T10:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: How does a Linux batch job connect to metadata?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499001#M14432</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12460"&gt;@jklaverstijn&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the Batch server is not&amp;nbsp;exactly an IOM SAS server. That is why, when you deploy the DI jobs, they would contain at the begining the connection to the metadata, because they require it at execution time. Same goes for batch jobs launched with just SAS Foundation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This&amp;nbsp;might help:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/32/507.html" target="_blank"&gt;http://support.sas.com/kb/32/507.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Problem Note 32507: Batch jobs that fail to connect to a SAS Metadata Server might issue a misleading warning message intead of an error&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does it help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Juan&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 10:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499001#M14432</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2018-09-26T10:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: How does a Linux batch job connect to metadata?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499012#M14433</link>
      <description>&lt;P&gt;Hi Juan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for chiming in. I have seen that note and it doesn't help me any further. I test with a job that does&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options group=meta;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It shows all options (server, port, repos, ...) correctly set and no metauser or metapassword. This agrees with other environments where it does work. One of the reasons why I am so confused.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers Jan.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 10:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499012#M14433</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2018-09-26T10:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: How does a Linux batch job connect to metadata?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499015#M14434</link>
      <description>&lt;P&gt;That is quite interesting, Jan.&lt;/P&gt;
&lt;P&gt;And, can you connect with this user to metadata, with SAS Management Console in that environment? I would assume yes.&lt;/P&gt;
&lt;P&gt;And with EG, as example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if you check if this user has issued a proper Kerberos TGT ticket? With the kinit, klist commands.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you cannot get an answer soon enough, I would recommend to extend the log information level of the metadata server, for short time, and test the connections again. The log should be able to tell us more.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 11:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499015#M14434</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2018-09-26T11:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: How does a Linux batch job connect to metadata?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499046#M14441</link>
      <description>&lt;P&gt;What makes you say&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=bisecag&amp;amp;docsetTarget=p0fjxpy29s4ksyn1i2d2uwta77jy.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;Trusted Peer Connections&lt;/A&gt;&amp;nbsp;doesn’t apply?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 12:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499046#M14441</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2018-09-26T12:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: How does a Linux batch job connect to metadata?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499115#M14444</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes thanks you got me there. I will have to rethink that. Trustedpeer is also for batch jobs and is likely how it works. I will look into how this may fail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 14:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499115#M14444</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2018-09-26T14:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: How does a Linux batch job connect to metadata?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499330#M14450</link>
      <description>&lt;P&gt;Hi Jan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd start by looking at Lev1/SASMeta/MetadataServer/trustedPeers.xml to see who the SAS Metadata Server has been configured to accept as trusted peers.&amp;nbsp;Has it been modified from the defaults of the initial install?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then check the series of config files used (with a starting point of sasbatch.sh) on the problem node and especially Lev1/metadataConfig.xml to see if it is pointing to the wrong metadata server. Also check&amp;nbsp;DNS resolution for the metadata server node host name(s) is working as expected on that node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As Juan suggested, have a look at the metadata server logs. Is there a failed connection on the metadata server from the problem node when the job is run? Is there any connection registered at all? If so, as whom? Does it fail with a specific error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Verify who the Linux process owner of the batch job is? Do they have a corresponding SAS metadata identity?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try running a simple test by SSH-ing into the machine as the same Linux user id and running something like this to see if the metadata libraries can be assigned:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/opt/sas/config/Lev1/SASApp/BatchServer/sasbatch.sh -sysin ~/simple-proc-options.sas -log ~/simple-proc-options.log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;BR /&gt;Paul&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 00:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/499330#M14450</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2018-09-27T00:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: How does a Linux batch job connect to metadata?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/500083#M14490</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the elaborate answer. I have done most of these tests and nothing stands out. There is a mis-configuration, I just haven't found it yet. I do now know the answer to my basic question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Q: How does a batch job connect to the metadata server in the absence of a password?&lt;/P&gt;
&lt;P&gt;A: Trusted peer authentication&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes, a bit of a "DOH!" moment for me here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will have to dig even deeper. I will keep you guys posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 08:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/500083#M14490</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2018-09-29T08:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: How does a Linux batch job connect to metadata?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/500602#M14512</link>
      <description>&lt;P&gt;No worries Jan. Perhaps turn up the level of logging for the metadata server and batch process, trace the process/connection, and see if anything stands out.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 23:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/500602#M14512</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2018-10-01T23:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: How does a Linux batch job connect to metadata?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/500947#M14524</link>
      <description>&lt;P&gt;Check the methods below, if it could be helpful in debugging&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc metaoperate
server="sasmetadataservername"
port=8561
userid="id"
password="pwd"
action=status;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;recently we had fixed the access issue for Ad users using the links below,&amp;nbsp;above method was helpful to ensure sas meta config changes were effective&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/39/891.html" target="_blank"&gt;http://support.sas.com/kb/39/891.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/51/911.html" target="_blank"&gt;http://support.sas.com/kb/51/911.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did u manage to find fix?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 20:24:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/500947#M14524</guid>
      <dc:creator>saivenkat</dc:creator>
      <dc:date>2018-10-02T20:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: How does a Linux batch job connect to metadata?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/507425#M14764</link>
      <description>&lt;P&gt;Well, I finally found it and it was less than obvious. It turned out that we had an inconsistent mix of values for the&amp;nbsp;&lt;SPAN&gt;NETENCRYPTALGORITHM option. After systematically eliminating lines from that file it turned out to be related to this option. This revealed that several other components, the metadata server being one of them, had this option set to SASProprietary. The batch server had AES in its config. Our internal requirement is AES for everything. Once we fixed this things started working again.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So, in the end it was a simple solution to a tough problem. Which is not unusual at all.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks to all for contributing. Understanding the physics of trustedpeer authentication allowed me to rethink my misconceptions and zoom in on this configuration setting. Therefore I will accept&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18432"&gt;@PaulHomes&lt;/a&gt;&amp;nbsp;contribution as the solution. It steered me in the right direction.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Jan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 08:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/507425#M14764</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2018-10-25T08:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: How does a Linux batch job connect to metadata?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/507661#M14777</link>
      <description>&lt;P&gt;Thanks Jan! ... I'm glad I was able to help&amp;nbsp;a little&amp;nbsp;but I think you should have probably marked your own response as the answer to the post .... since it actually contained the real answer! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 07:23:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-does-a-Linux-batch-job-connect-to-metadata/m-p/507661#M14777</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2018-10-26T07:23:17Z</dc:date>
    </item>
  </channel>
</rss>

