cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
553
Views
0
Helpful
4
Replies

Unable to reload to previous version in NSO. Failing with exit code127

anandmi
Cisco Employee
Cisco Employee

[root@cups-lab-nso-02 ~]# systemctl status ncs.service
● ncs.service - LSB: NCS
Loaded: loaded (/etc/rc.d/init.d/ncs; generated)
Active: failed (Result: exit-code) since Tue 2023-05-23 09:52:00 IST; 17s ago
Docs: man:systemd-sysv-generator(8)
Process: 650468 ExecStart=/etc/rc.d/init.d/ncs start (code=exited, status=127)

May 23 09:52:00 cups-lab-nso-02.novalocal systemd[1]: Starting LSB: NCS...
May 23 09:52:00 cups-lab-nso-02.novalocal ncs[650468]: Starting ncs: /etc/rc.d/init.d/ncs: line 65: /opt/ncs/current/ncsrc: No such file or directory
May 23 09:52:00 cups-lab-nso-02.novalocal su[650473]: (to admin) root on none
May 23 09:52:00 cups-lab-nso-02.novalocal su[650473]: pam_unix(su:session): session opened for user admin by (uid=0)
May 23 09:52:00 cups-lab-nso-02.novalocal ncs[650468]: bash: /opt/ncs/current/bin/ncs: No such file or directory
May 23 09:52:00 cups-lab-nso-02.novalocal su[650473]: pam_unix(su:session): session closed for user admin
May 23 09:52:00 cups-lab-nso-02.novalocal systemd[1]: ncs.service: Control process exited, code=exited status=127
May 23 09:52:00 cups-lab-nso-02.novalocal systemd[1]: ncs.service: Failed with result 'exit-code'.
May 23 09:52:00 cups-lab-nso-02.novalocal systemd[1]: Failed to start LSB: NCS.
[root@cups-lab-nso-02 ~]# NCS_RELOAD_PACKAGES=true /etc/init.d/ncs start
Starting ncs (via systemctl): Job for ncs.service failed because the control process exited with error code.
See "systemctl status ncs.service" and "journalctl -xe" for details.
[FAILED]

 

1 Accepted Solution

Accepted Solutions

Thanks for your help. Link has been established now. I just did the process back again.

# cd /opt/ncs
# rm -f current
# ln -s ncs-NEWVERSION current

 

View solution in original post

4 Replies 4

radioman
Spotlight
Spotlight

You have a problem with finding the ncs binary its self, did you point back the symlink at /opt/ncs/current, to the correct previous version install location ?

It cannot be done because there is no folder current at the location.

 

If you can't create the symlink, as described in the Administration guide under Upgrading, you have some underlying problem with your OS

Thanks for your help. Link has been established now. I just did the process back again.

# cd /opt/ncs
# rm -f current
# ln -s ncs-NEWVERSION current