cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Syntax Error During Installation

matthew.carlson
Producer

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.

5 REPLIES 5

Peter.Holditch
Moderator
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.

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.

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.

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

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>