<?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: SAS MID Tier Services script error in Architecture</title>
    <link>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/403008#M123</link>
    <description>&lt;P&gt;Hi Vbkm,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the help. I have executed the script from below mentioned location .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have seen port connection error as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;11 Oct 2017 11:30:56,840 INFO com.sas.appserver.utils.PortUtils - isPortAvailable(sasfraud server,8080) &amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;11 Oct 2017 11:30:56,842 INFO com.sas.appserver.utils.PortUtils - Connection refused&lt;BR /&gt;11 Oct 2017 11:30:56,842 INFO com.sas.appserver.utils.PortUtils - isAvailable=true&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like the above port many other ports which are related to Mid Tier. I have requested network team to resolve this issue. Hopefully this works i guess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Sandeep&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2017 02:22:23 GMT</pubDate>
    <dc:creator>sandeep_reddy</dc:creator>
    <dc:date>2017-10-11T02:22:23Z</dc:date>
    <item>
      <title>SAS MID Tier Services script error</title>
      <link>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/402605#M120</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am getting below error while executing the mid tier services script while starting.&lt;/P&gt;
&lt;P&gt;Starting SAS Web App Server: SASServer11_1&lt;BR /&gt;(this can take a while)&lt;BR /&gt;/sas/config/mid/Lev1/sas.servers.mid: line 192: [: users: integer expression expected&lt;BR /&gt;waiting 30 ...&lt;BR /&gt;/sas/config/mid/Lev1/sas.servers.mid: line 192: [: users: integer expression expected&lt;BR /&gt;waiting 30 ...&lt;BR /&gt;/sas/config/mid/Lev1/sas.servers.mid: line 192: [: users: integer expression expected&lt;BR /&gt;waiting 30 ...&lt;BR /&gt;/sas/config/mid/Lev1/sas.servers.mid: line 192: [: users: integer expression expected&lt;BR /&gt;waiting 30 ...&lt;BR /&gt;/sas/config/mid/Lev1/sas.servers.mid: line 192: [: users: integer expression expected&lt;BR /&gt;waiting 60 ...&lt;BR /&gt;/sas/config/mid/Lev1/sas.servers.mid: line 192: [: users: integer expression expected&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I opened the script and checked in the line 192 ,there is only a if then statement which is a valid one i believe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ROLLCHK=`ls -l $SASWEBAPPSRV_DIR/$SASWEBAPPINSTANCE/logs/server.log`&lt;BR /&gt; # clear leading blanks, then strip trailing filename&lt;BR /&gt; ROLLCHK=`echo $ROLLCHK | tr -s ' ' | cut -d ' ' -f 5`&lt;/P&gt;
&lt;P&gt;if [ $ROLLCHK -lt $ROLLMARK ];&lt;BR /&gt; then&lt;BR /&gt; {&lt;BR /&gt; echo "Note: $SASWEBAPPINSTANCE server.log rolled over during startup."&lt;BR /&gt; MYMARK=1&lt;BR /&gt; }&lt;BR /&gt; fi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please can someone help me on this please. Though the services status is howing as UP but no mid tier application is opening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Sandeep&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 05:16:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/402605#M120</guid>
      <dc:creator>sandeep_reddy</dc:creator>
      <dc:date>2017-10-10T05:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MID Tier Services script error</title>
      <link>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/402841#M121</link>
      <description>&lt;P&gt;Without going through the entire script its hard to say what happened but there's an alternative way on starting your mid-tier services if that's what you want to do right now:&lt;/P&gt;&lt;P&gt;You can use scripting tool to start the services:&lt;/P&gt;&lt;P&gt;config/Lev2/Web/Scripts/AppServer/appsrvconfig.sh start&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or can start individual instances if you wish to go that route!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 16:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/402841#M121</guid>
      <dc:creator>vbkm</dc:creator>
      <dc:date>2017-10-10T16:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MID Tier Services script error</title>
      <link>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/402901#M122</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10246"&gt;@sandeep_reddy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/135486"&gt;@vbkm&lt;/a&gt;, to start the servers independently might actually help. In other hand, I can see other route of actions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- If it is true that the if then statement is on line 192 of the script, it can match with the error, because the error means a integer was expected and a character was received. I do not think you need to go deeper into this exact error message, but if you really want to, you can always make a backup copy of the script and modify it to see the contents of the variables that does not seem to match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- what I would do, is to check the server.log file of the failing SASServer11_1. And if you cannot see this log, perhaps there is something wrong in the config (have you modified its config recently?) or permissions on the filesystem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- and, of course, if everything else fails or it takes too much time, you can always rely on the excellent knowledge by SAS Technical Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Juan&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 19:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/402901#M122</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2017-10-10T19:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MID Tier Services script error</title>
      <link>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/403008#M123</link>
      <description>&lt;P&gt;Hi Vbkm,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the help. I have executed the script from below mentioned location .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have seen port connection error as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;11 Oct 2017 11:30:56,840 INFO com.sas.appserver.utils.PortUtils - isPortAvailable(sasfraud server,8080) &amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;11 Oct 2017 11:30:56,842 INFO com.sas.appserver.utils.PortUtils - Connection refused&lt;BR /&gt;11 Oct 2017 11:30:56,842 INFO com.sas.appserver.utils.PortUtils - isAvailable=true&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like the above port many other ports which are related to Mid Tier. I have requested network team to resolve this issue. Hopefully this works i guess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Sandeep&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 02:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/403008#M123</guid>
      <dc:creator>sandeep_reddy</dc:creator>
      <dc:date>2017-10-11T02:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MID Tier Services script error</title>
      <link>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/403218#M124</link>
      <description>You can check if that port number is accepting any connections or may be some orphan process is running on that port which generally creates trouble when starting new instance using netstat or lsof commands (linux)</description>
      <pubDate>Wed, 11 Oct 2017 15:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/403218#M124</guid>
      <dc:creator>vbkm</dc:creator>
      <dc:date>2017-10-11T15:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MID Tier Services script error</title>
      <link>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/403789#M125</link>
      <description>&lt;P&gt;Hi Vbkm,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the sas.servers.mid script which i using to start mid tier services.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if [ $ROLLCHK -lt $ROLLMARK ];/* this is the line at 192 and both the comparison values are same */&lt;BR /&gt; then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still when i start the services ,i am getting as [: users: integer expression expected .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Sandeep&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 04:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/403789#M125</guid>
      <dc:creator>sandeep_reddy</dc:creator>
      <dc:date>2017-10-13T04:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MID Tier Services script error</title>
      <link>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/403864#M126</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10246"&gt;@sandeep_reddy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please modify lines 152 and 188 of sas.servers.mid to use "ls -n" instead of "ls -l" when querying the server.log file to get around this problem:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From&lt;BR /&gt;ROLLMARK=`ls -l $SASWEBAPPSRV_DIR/$SASWEBAPPINSTANCE/logs/server.log`&lt;BR /&gt;ROLLCHK=`ls -l $SASWEBAPPSRV_DIR/$SASWEBAPPINSTANCE/logs/server.log`&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;To&lt;BR /&gt;ROLLMARK=`ls -n $SASWEBAPPSRV_DIR/$SASWEBAPPINSTANCE/logs/server.log`&lt;BR /&gt;ROLLCHK=`ls -n $SASWEBAPPSRV_DIR/$SASWEBAPPINSTANCE/logs/server.log`&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;It appears that either user or group names contain spaces.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 11:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/403864#M126</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2017-10-13T11:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MID Tier Services script error</title>
      <link>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/403865#M127</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any chance you could refer the re to the SAS note?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 11:35:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/403865#M127</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2017-10-13T11:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS MID Tier Services script error</title>
      <link>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/403866#M128</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35204"&gt;@JuanS_OCS&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no SAS note. The POSIX/IEEE standard (IEEE Std 1003.1-2001) for Unix prohibits white spaces in usernames and group names.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 11:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Architecture/SAS-MID-Tier-Services-script-error/m-p/403866#M128</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2017-10-13T11:41:27Z</dc:date>
    </item>
  </channel>
</rss>

