Skip to content

sonic-cli commands resulting error messages [/tmp/klish.fifo.62.TUKsQ0: 1: /tmp/klish.fifo.62.TUKsQ0: python: not found] #6549

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

Open
vemulabalaji opened this issue Jan 25, 2021 · 2 comments
Assignees

Comments

@vemulabalaji
Copy link

Description

Steps to reproduce the issue:

  1. Load 202012 image on ACCTON board.
  2. change to super user, using sudo command
  3. Go to sonic-cli by executing sonic-cli.

Describe the results you received:
root@sonic:/# sonic-cli
sonic# show system cpu
/tmp/klish.fifo.62.8rCDDe: 1: /tmp/klish.fifo.62.8rCDDe: python: not found
sonic# show system memory
/tmp/klish.fifo.62.TUKsQ0: 1: /tmp/klish.fifo.62.TUKsQ0: python: not found
sonic# show system processes
/tmp/klish.fifo.62.EVERwb: 1: /tmp/klish.fifo.62.EVERwb: python: not found
sonic#
sonic# show platform syseeprom
/tmp/klish.fifo.62.Wc61oH: 1: /tmp/klish.fifo.62.Wc61oH: python: not found
sonic#

Describe the results you expected:
Proper system details to be displayed.

Additional information you deem important (e.g. issue happens only occasionally):
Observed always.
Output of show version:

```

root@sonic:/# show version

SONiC Software Version: SONiC.202012.0-dirty-20210121.151533
Distribution: Debian 10.7
Kernel: 4.19.0-9-2-amd64
Build commit: c40e43a
Build date: Thu Jan 21 14:37:37 UTC 2021
Built by: balaji@sfstypc01

Platform: x86_64-accton_as7716_32x-r0
HwSKU: Accton-AS7716-32X
ASIC: broadcom
ASIC Count: 1
Serial Number: 771632X1716006
Uptime: 15:11:58 up 3 days, 6:12, 1 user, load average: 1.10, 0.66, 0.67

Docker images:
REPOSITORY TAG IMAGE ID SIZE
docker-syncd-brcm 202012.0-dirty-20210121.151533 31da68bbc647 640MB
docker-syncd-brcm latest 31da68bbc647 640MB
docker-teamd 202012.0-dirty-20210121.151533 3b70ff11e03b 404MB
docker-teamd latest 3b70ff11e03b 404MB
docker-router-advertiser 202012.0-dirty-20210121.151533 da3a0568a09d 394MB
docker-router-advertiser latest da3a0568a09d 394MB
docker-platform-monitor 202012.0-dirty-20210121.151533 f3d6085b5aac 602MB
docker-platform-monitor latest f3d6085b5aac 602MB
docker-lldp 202012.0-dirty-20210121.151533 2e77354b69e3 434MB
docker-lldp latest 2e77354b69e3 434MB
docker-snmp 202012.0-dirty-20210121.151533 600b1390f5a4 434MB
docker-snmp latest 600b1390f5a4 434MB
docker-database 202012.0-dirty-20210121.151533 838418af03c5 394MB
docker-database latest 838418af03c5 394MB
docker-sonic-mgmt-framework 202012.0-dirty-20210121.151533 522f8bd8d879 610MB
docker-sonic-mgmt-framework latest 522f8bd8d879 610MB
docker-orchagent 202012.0-dirty-20210121.151533 a40bdb01250b 422MB
docker-orchagent latest a40bdb01250b 422MB
docker-nat 202012.0-dirty-20210121.151533 389bde0b5fb8 407MB
docker-nat latest 389bde0b5fb8 407MB
docker-dhcp-relay 202012.0-dirty-20210121.151533 4f334a65ad3f 401MB
docker-dhcp-relay latest 4f334a65ad3f 401MB
docker-sonic-telemetry 202012.0-dirty-20210121.151533 362cd36da3e6 468MB
docker-sonic-telemetry latest 362cd36da3e6 468MB
docker-fpm-frr 202012.0-dirty-20210121.151533 7e4bb8f1ea5e 421MB
docker-fpm-frr latest 7e4bb8f1ea5e 421MB
docker-sflow 202012.0-dirty-20210121.151533 2c01d3ffcab1 405MB
docker-sflow latest 2c01d3ffcab1 405MB

root@sonic:/#
```

**Attach debug file `sudo generate_dump`:**

```
root@sonic:/# generate_dump

/usr/local/bin/generate_dump: line 89: syntax error near unexpected token fi' /usr/local/bin/generate_dump: line 89: fi'
root@sonic:/#
```

@vemulabalaji
Copy link
Author

Please let me know any other logs/details are required.

@ben-gale
Copy link
Collaborator

ben-gale commented Feb 5, 2021

Per @kwangsuk, this is a Python 3 thing. This PR fixes it - [(https://github.com/sonic-net/sonic-mgmt-framework/pull/76)] - however [https://github.com//pull/6148] is also needed, and this still hasn't merged.

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

2 participants