cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
985
Views
10
Helpful
4
Replies

check update -d and download command errors

nelkhour
Level 1
Level 1

Hi Everyone,

I upgraded our CSPC collector from 2.3.1 to 2.4. The check update -d and download commands are issuing the following error.

Downloading the requested package...
% Error occured while executing command Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
 at [Source: java.io.StringReader@19fa157c; line: 1, column: 2]

What is causing this error and how can I fix it?

Thank you
Nadim

1 Accepted Solution

Accepted Solutions

CC Cisco
Cisco Employee
Cisco Employee

There is a potential fix that you can apply to solve this issue.

If you haven’t already done so, please go ahead and enable the users collectorlogin and root as these will be very useful in any future troubleshooting.
Please execute the following commands and make sure to save the automatically generated passwords:

pwdreset collectorlogin 180
pwdreset root 180 

Please follow the below instructions to apply the attached patch file:

  • Download to your computer the attached file.
  • Using a program such as WinSCP, transfer the file into the collector, please use the credentials for collectorlogin to log into WinSCP.
  • Place the patch file in the /home/collectorlogin directory for simplicity.
  • Log into an SSH session using the collectorlogin user and password.
  • Once logged in, please enter the following command to enter root mode:
su -
  • When prompted, enter the root password.
  • Change directories to /home/collectorlogin by entering the following command:
cd /home/collectorlogin
  • Confirm that the patch file is present:
ls -larth
  • Unzip the patch file:
unzip LCM_fix_jan2015.zip
  • Change directory into unzipped directory:
cd LCM_fix_jan2015
  • Install the patch:
./install.sh
  • Wait for the process to complete, about 5-7 minutes.
  • After about 7 minutes, please open a new ssh session, this time use the admin credentials.
  • On the admin shell, run the below commands:
conf server-connection disable
conf server-connection enable
check update

If this does not solve the issue, then more than likely this would need to be looked at by a TAC engineer. If you have a valid NLS1/CSAS contract, please feel free to open a TAC case for further troubleshooting.

Regards,

Cesar

View solution in original post

4 Replies 4

CC Cisco
Cisco Employee
Cisco Employee

There is a potential fix that you can apply to solve this issue.

If you haven’t already done so, please go ahead and enable the users collectorlogin and root as these will be very useful in any future troubleshooting.
Please execute the following commands and make sure to save the automatically generated passwords:

pwdreset collectorlogin 180
pwdreset root 180 

Please follow the below instructions to apply the attached patch file:

  • Download to your computer the attached file.
  • Using a program such as WinSCP, transfer the file into the collector, please use the credentials for collectorlogin to log into WinSCP.
  • Place the patch file in the /home/collectorlogin directory for simplicity.
  • Log into an SSH session using the collectorlogin user and password.
  • Once logged in, please enter the following command to enter root mode:
su -
  • When prompted, enter the root password.
  • Change directories to /home/collectorlogin by entering the following command:
cd /home/collectorlogin
  • Confirm that the patch file is present:
ls -larth
  • Unzip the patch file:
unzip LCM_fix_jan2015.zip
  • Change directory into unzipped directory:
cd LCM_fix_jan2015
  • Install the patch:
./install.sh
  • Wait for the process to complete, about 5-7 minutes.
  • After about 7 minutes, please open a new ssh session, this time use the admin credentials.
  • On the admin shell, run the below commands:
conf server-connection disable
conf server-connection enable
check update

If this does not solve the issue, then more than likely this would need to be looked at by a TAC engineer. If you have a valid NLS1/CSAS contract, please feel free to open a TAC case for further troubleshooting.

Regards,

Cesar

Hi Cesar,

Thank you for replying back to me and for providing me with the patch and instructions.

One minor note.

To install the patch you need to issue the command:

cd LCM_fix_jan2015

./install.sh

since the copying of the jar file is relative to the LCM_fix_jan2015 directory.

The patch worked and I am in the process of downloading other patch files.

Once again, thank you very much.

Thank you
Nadim

Hi Nadim,

Good catch, I'll update the previous post.

Regards,

Cesar

kbyrd
Level 2
Level 2

I am currently at 2.4 and I am trying to upgrade to 2.6.1.

I get a similar message when running the check update command:

admin# check update
% Error occured while executing command Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
 at [Source: java.io.StringReader@6f41ea57; line: 1, column: 2]

Does the same patch apply to this error as well?

Thanks.