Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues running the script #7

Open
jeffsani opened this issue Jan 20, 2022 · 11 comments
Open

Issues running the script #7

jeffsani opened this issue Jan 20, 2022 · 11 comments

Comments

@jeffsani
Copy link

jeffsani commented Jan 20, 2022

Resolved issues with the script by CHMOD 744 on all relevant script files. This step should be included in the README

@geethapinnaka
Copy link
Contributor

Can we please know what issues you have faced before changing the permission of the files? And please let us know what is the command that is used to trigger the script?

@jeffsani
Copy link
Author

jeffsani commented Jan 21, 2022 via email

@geethapinnaka
Copy link
Contributor

Can you please share the issue you have faced before changing the permission?

@jeffsani
Copy link
Author

jeffsani commented Jan 21, 2022 via email

@geethapinnaka
Copy link
Contributor

Can you please confirm if you have triggered "bash nspepi_install_script" before triggering "./check_invalid_config"?
We are adjusting the permission of required files to 550 when "bash nspepi_install_script" is triggered. There is no need for 744 permissions.

@jeffsani
Copy link
Author

jeffsani commented Jan 21, 2022 via email

@tknoblock1
Copy link

I receive an error when running bash nspepi_install_script with multiple lines showing command not foundpt: and then line 32 has a problem with the "'do" at the end of line 32. I'm running ADC 12.1 build 62.27. Attached results.
nspepi_install_script issue.txt

@Aman-Agrawal1
Copy link
Collaborator

Can you please shares the steps you tried? I'm not able to reproduce the issue.

root@TODEVNS0004# cd /netscaler/
root@TODEVNS0004# bash nspepi_install_script
Copying the files to /var/nspepi_backup as a backup
Installation successful
root@TODEVNS0004# logout
Done

sh ver
NetScaler NS12.1: Build 62.27.nc, Date: Jul 6 2021, 19:29:04 (64-bit)
Done

@bwdbethke
Copy link

I'm having the same issue as @tknoblock1 but I'm on version: NetScaler NS13.0: Build 87.9.nc, Date: Jul 29 2022, 10:59:37 (64-bit)

I moved/renamed the existing files/dir

mv /netscaler/check_invalid_config /netscaler/check_invalid_config.bak
mv /netscaler/nspepi /netscaler/nspepi.bak
mv /netscaler/nspepi2 /netscaler/nspepi2-bak

then copied over the new files to /netscaler

cp /root/check_invalid_config /netscaler/check_invalid_config
cp /root/nspepi_install_script /netscaler/nspepi_install_script
cp /root/nspepi /netscaler/nspepi
cp -Rv /root/nspepi2 /netscaler/nspepi2

then I chmod 500 on several of the files I saw had different mode than the originals

chmod 550 /netscaler/check_invalid_config
chmod 550 /netscaler/nspepi_install_script
chmod 550 /netscaler/nspepi
chmod 550 /netscaler/nspepi2/config_check_main.py
chmod 550 /netscaler/nspepi2/nspepi_main.py
chmod 550 /netscaler/nspepi2/nspepi_helper

Then I try to run in the install script and it fails like Taylor motioned

root@NETSCALER# 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

@Aman-Agrawal1
Copy link
Collaborator

@bwdbethke , You don't need to move or rename files manually. This should be done by nspepi_install_script script. Can you please tell me how did you copy nspepi_install_script script? Using GIT command? And the OS on which you copied the file?

@M1gh7yP1r473
Copy link

I receive an error when running bash nspepi_install_script with multiple lines showing command not foundpt: and then line 32 has a problem with the "'do" at the end of line 32. I'm running ADC 12.1 build 62.27. Attached results. nspepi_install_script issue.txt

Check out the post at https://discussions.citrix.com/topic/417810-issues-installing-pre-validation-script-for-131-upgrade-solved/#comment-2095929 Problem is the EOL format. Just convert it and reupload the files to Netscaler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants