cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Java (Java Agent, Installation, JVM, and Controller Installation)

Syntax Error During Installation

SOLVED
matthew.carlson
Producer

Syntax Error During Installation

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.

By replying you agree to the Terms and Conditions of the AppDynamics Community.
Syntax Error During Installation
5 REPLIES 5
Peter.Holditch
Moderator

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.

 



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
matthew.carlson
Producer

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.

Peter.Holditch
Moderator

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



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
gurmitsa
Architect

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

matthew.carlson
Producer

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>