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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Rounding off the Splunk Dashboard Contest

What does a contest-winning Splunk dashboard look like? In this case, it isn't in a browser tab at all. It ...

A Four Part Event Series: AI + Observability: AI Agents, LLMs, Apps, & Infrastructure

AI &#43; Observability: AI Agents, LLMs, Apps, & Infrastructure The rapid evolution of artificial intelligence ...