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=qlc5Nz7Y7FZv30mNJgIEH8REQc0%3D&amp;Expires=1522437983&amp;AWSAccessKeyId=AKIAIIS3SGXAJWKEDWIQ"></script>'
[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 (1)
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

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 from your request for the "first 20 lines" that this wasn't right, so I just clicked the download link and found the actual download link was https://download-files.appdynamics.com/download-file/enterprise-console/4.4.2.7140/platform-setup-x6....

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

View solution in original post

Peter_Holditch
Builder

Can you post the first 20 or so lines of your platform-setup-x64-linux.sh script please?

From this error message, I am not sure if this has the expected content.

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

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 from your request for the "first 20 lines" that this wasn't right, so I just clicked the download link and found the actual download link was https://download-files.appdynamics.com/download-file/enterprise-console/4.4.2.7140/platform-setup-x6....

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

CommunityUser
Splunk Employee
Splunk Employee

Just curious to know if you tried to use -u and -p parameters with aget to specifiy username and password before downloading?

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Yes. Even when passing --http-user=username and --http-password=password, the downloaded script only shows 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?Signature=1yLW28QQQ%2BTT%2FtTaHXHCX%2F7twrU%3D&amp;Expires=1522856280&amp;AWSAccessKeyId=AKIAIIS3SGXAJWKEDWIQ"></script>
<script type="text/javascript" src="https://appd-aperture-prod.s3-us-west-2.amazonaws.com:443/js/login.js?Signature=seYfUHZCNJKHtgYoKlKuSZs%2BmGA%3D&amp;Expires=1522856280&amp;AWSAccessKeyId=AKIAIIS3SGXAJWKEDWIQ"></script>

<form id="saml-login-form" style="display:none;">
    <input type='hidden' name='csrfmiddlewaretoken' value='EcNQlkgAem3WZUPXtYxKMoxx2LG7Y3QeSFcn4Do1GnDqE8M5ZO2XIj5H7bMpfvZQ' />
    <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>
0 Karma

Peter_Holditch
Builder

Excellent!  I'm glad you're off and running!

If you wish to automate download of the AppDynamics software in the future, the steps to do so are documented here: https://docs.appdynamics.com/display/PRO44/Download+AppDynamics+Software

Warm regards,
Peter

Get Updates on the Splunk Community!

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

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

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...

4 Ways the Splunk Community Helps You Prepare for .conf25

.conf25 is right around the corner, and whether you’re a first-time attendee or a seasoned Splunker, the ...