Jump to content
Welcome to our new Citrix community!

Issues installing pre-validation script for 13.1 upgrade (SOLVED)


Hailey Horsley

Recommended Posts

I was able to resolve this myself, but wanted to drop it here for the next person who, like me, may not be well versed with scripts. 

 

Whenever I tried to install the nspepi script, I would get the following:

 

root@testOOB# bash nspepi_install_script
: command not foundpt: line 2:
: command not foundpt: line 6:
: command not foundpt: line 13:
: command not foundpt: line 18:
: command not foundpt: line 25:
'spepi_install_script: line 32: syntax error near unexpected token `do
'spepi_install_script: line 32: `    for file in "${file_list_to_copy[@]}"; do


The "command not found" is just empty lines.  The syntax error ended up being an issue with the line endings. Easy fix is to open it in Notepad++, and go to 

Edit -> EOL Conversion -> Unix (LF)

 

 

I also needed to do the EOL conversion for all of the other files (including what's in the nspepi2 folder), as I kept getting the following for the other commands:

 

root@testOOB# check_invalid_config /nsconfig/ns.conf
-bash: /netscaler/check_invalid_config: /usr/bin/perl^M: bad interpreter: No such file or directory

 

root@testOOB# nspepi -f /nsconfig/ns.conf
: No such file or directory

 

 

For reference, I am currently on 12.1 64.16

Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...
On 12/19/2022 at 8:20 AM, Hailey Horsley said:

I was able to resolve this myself, but wanted to drop it here for the next person who, like me, may not be well versed with scripts. 

 

Whenever I tried to install the nspepi script, I would get the following:

 

root@testOOB# bash nspepi_install_script
: command not foundpt: line 2:
: command not foundpt: line 6:
: command not foundpt: line 13:
: command not foundpt: line 18:
: command not foundpt: line 25:
'spepi_install_script: line 32: syntax error near unexpected token `do
'spepi_install_script: line 32: `    for file in "${file_list_to_copy[@]}"; do


The "command not found" is just empty lines.  The syntax error ended up being an issue with the line endings. Easy fix is to open it in Notepad++, and go to 

Edit -> EOL Conversion -> Unix (LF)

 

 

I also needed to do the EOL conversion for all of the other files (including what's in the nspepi2 folder), as I kept getting the following for the other commands:

 

root@testOOB# check_invalid_config /nsconfig/ns.conf
-bash: /netscaler/check_invalid_config: /usr/bin/perl^M: bad interpreter: No such file or directory

 

root@testOOB# nspepi -f /nsconfig/ns.conf
: No such file or directory

 

 

For reference, I am currently on 12.1 64.16

Ran into this same issue today, and your solution fixed it! Thanks very much!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...