Splunk AppDynamics

Syntax Error During Installation

CommunityUser
Splunk Employee
Splunk Employee

Hi,

I just registered for a trial version of Pro. When I run the platform-setup-x64-linux.sh script, I get the following:

[me@appdyn01 ~]$ sudo ./platform-setup-x64-linux-4.4.2.7140.sh
./platform-setup-x64-linux-4.4.2.7140.sh: line 2: syntax error near unexpected token `<'
./platform-setup-x64-linux-4.4.2.7140.sh: line 2: `<script type="text/javascript" src="https://appd-aperture-prod.s3-us-west-2.amazonaws.com:443/js/library/jquery-2.1.4.min.js?Signature=v...>'


[me@appdyn01 ~]$ cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)

Is anyone else having this issue? I thought the license might have to be in the same directory so I put it there, but I'm getting the same thing.

Labels (3)
0 Karma
1 Solution

CommunityUser
Splunk Employee
Splunk Employee

I figured out the issue.

If I do

wget https://download.appdynamics.com/download/prox/download-file/enterprise-console/4.4.2.7140/platform-setup-x64-linux-4.4.2.7140.sh

or

wget --http-username=<myusername> --http-password=<mypassword> https://download.appdynamics.com/download/prox/download-file/enterprise-console/4.4.2.7140/platform-setup-x64-linux-4.4.2.7140.sh

the content of platform-setup-x64-linux.sh is this:

<script type="text/javascript" src="https://appd-aperture-prod.s3-us-west-2.amazonaws.com:443/js/library/jquery-2.1.4.min.js?$
<script type="text/javascript" src="https://appd-aperture-prod.s3-us-west-2.amazonaws.com:443/js/login.js?Signature=%2FbdCPxj$

<form id="saml-login-form" style="display:none;">
    <input type='hidden' name='csrfmiddlewaretoken' value='WhRxxNNQDNQlh5oX3ldzLYWq5ZWXQGbKfRyhSQMkcrmpamS90zJQvEgIfOAPNwXB' $
    <input type="hidden" name="login-url" value="https://login.appdynamics.com/sso/samlservice/login/download_server/">

    <button type="submit" class="btn btn_org">Log In</button>
</form>

I figured out that when I click the "Download Enterprise Console here:" link from

https://portal.appdynamics.com/account/initialize/onprem/getting-started/

the actual download link redirected to

https://download-files.appdynamics.com/download-file/enterprise-console/4.4.2.7140/platform-setup-x64-linux-4.4.2.7140.sh?Expires=1522689513&Signature=m7lQf0IWJmp4-mmSIrBF4dXkqz3d1hhO64mafELaJcp3OJuPoNqQvTW-43akjwFXjImBxy3qZWEgskzvAHsFUg8R~4RrWYaICs707blQ9sP2f8l1Obzy26nqKG361agqy5xLLR4Kl1bZddk5e-yspBtpSbjKXKqnkObU5vCI129wklHpBsP9-SdPkfHH~OjdqVW-A2rV0EIdhtAAUHXQP2~wWVOV2xzHoPL76dzlmLftarEiHcvh7VjL8ZzK5~lTnvp37oQh0QOT61tOANBZRyh3ylUxAsrKizpeC-mIHY8z4EBp0DGmwTr6-ig9KqC7w63TUa133e-LXGvDJBZBFw__&Key-Pair-Id=APKAI6PWCU7XQZAIYFCA

I downloaded it to my local machine and then copied it to my VM, and now it's working.

View solution in original post

0 Karma

Yogesh_Chouk
Builder

Hi,

We understand you are trying to install enterprise console. 

./platform-setup-x64-linux-4.4.2.7140.sh: line 2: syntax error near unexpected token `<'

It looks like the file is corrupted. Can you please download it again and let us know if you are still having the same issue.

You can check the checksum of the downloaded file and see if it matches with the checksum of the file available on download site. 
$ md5sum controller_64bit_linux.sh

Please follow below docs for more information.

https://docs.appdynamics.com/display/PRO44/Install+the+Enterprise+Console


Thanks,

Yogesh

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I figured out the issue.

If I do

wget https://download.appdynamics.com/download/prox/download-file/enterprise-console/4.4.2.7140/platform-setup-x64-linux-4.4.2.7140.sh

or

wget --http-username=<myusername> --http-password=<mypassword> https://download.appdynamics.com/download/prox/download-file/enterprise-console/4.4.2.7140/platform-setup-x64-linux-4.4.2.7140.sh

the content of platform-setup-x64-linux.sh is this:

<script type="text/javascript" src="https://appd-aperture-prod.s3-us-west-2.amazonaws.com:443/js/library/jquery-2.1.4.min.js?$
<script type="text/javascript" src="https://appd-aperture-prod.s3-us-west-2.amazonaws.com:443/js/login.js?Signature=%2FbdCPxj$

<form id="saml-login-form" style="display:none;">
    <input type='hidden' name='csrfmiddlewaretoken' value='WhRxxNNQDNQlh5oX3ldzLYWq5ZWXQGbKfRyhSQMkcrmpamS90zJQvEgIfOAPNwXB' $
    <input type="hidden" name="login-url" value="https://login.appdynamics.com/sso/samlservice/login/download_server/">

    <button type="submit" class="btn btn_org">Log In</button>
</form>

I figured out that when I click the "Download Enterprise Console here:" link from

https://portal.appdynamics.com/account/initialize/onprem/getting-started/

the actual download link redirected to

https://download-files.appdynamics.com/download-file/enterprise-console/4.4.2.7140/platform-setup-x64-linux-4.4.2.7140.sh?Expires=1522689513&Signature=m7lQf0IWJmp4-mmSIrBF4dXkqz3d1hhO64mafELaJcp3OJuPoNqQvTW-43akjwFXjImBxy3qZWEgskzvAHsFUg8R~4RrWYaICs707blQ9sP2f8l1Obzy26nqKG361agqy5xLLR4Kl1bZddk5e-yspBtpSbjKXKqnkObU5vCI129wklHpBsP9-SdPkfHH~OjdqVW-A2rV0EIdhtAAUHXQP2~wWVOV2xzHoPL76dzlmLftarEiHcvh7VjL8ZzK5~lTnvp37oQh0QOT61tOANBZRyh3ylUxAsrKizpeC-mIHY8z4EBp0DGmwTr6-ig9KqC7w63TUa133e-LXGvDJBZBFw__&Key-Pair-Id=APKAI6PWCU7XQZAIYFCA

I downloaded it to my local machine and then copied it to my VM, and now it's working.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...