-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
"show run all", "show run ports", "show run interfaces" are not showing running configs in 201911 image #6982
Comments
This should have been fixed by PR:5289 |
1 task
@tahmed-dev - PR:5289 was already there. |
lguohan
pushed a commit
that referenced
this issue
Mar 10, 2021
…sing sudo. (#7002) Closes issue #6982. The issue was root caused as we were using the unix_socket for reading from DB as a default mechanism (#5250). The redis unix socket is created as follows. admin@str--acs-1:~$ ls -lrt /var/run/redis/redis.sock srwxrw---- 1 root redis 0 Mar 6 01:57 /var/run/redis/redis.sock So it used to work fine for the user "root" or if user is part of redis group ( admin was made part of redis group by default ) Check if the user is with sudo permissions then use the redis unix socket, else fallback to tcp socket.
lguohan
pushed a commit
that referenced
this issue
Mar 10, 2021
…sing sudo. (#7002) Closes issue #6982. The issue was root caused as we were using the unix_socket for reading from DB as a default mechanism (#5250). The redis unix socket is created as follows. admin@str--acs-1:~$ ls -lrt /var/run/redis/redis.sock srwxrw---- 1 root redis 0 Mar 6 01:57 /var/run/redis/redis.sock So it used to work fine for the user "root" or if user is part of redis group ( admin was made part of redis group by default ) Check if the user is with sudo permissions then use the redis unix socket, else fallback to tcp socket.
abdosi
pushed a commit
that referenced
this issue
Mar 10, 2021
…sing sudo. (#7002) Closes issue #6982. The issue was root caused as we were using the unix_socket for reading from DB as a default mechanism (#5250). The redis unix socket is created as follows. admin@str--acs-1:~$ ls -lrt /var/run/redis/redis.sock srwxrw---- 1 root redis 0 Mar 6 01:57 /var/run/redis/redis.sock So it used to work fine for the user "root" or if user is part of redis group ( admin was made part of redis group by default ) Check if the user is with sudo permissions then use the redis unix socket, else fallback to tcp socket.
raphaelt-nvidia
pushed a commit
to raphaelt-nvidia/sonic-buildimage
that referenced
this issue
May 23, 2021
…sing sudo. (sonic-net#7002) Closes issue sonic-net#6982. The issue was root caused as we were using the unix_socket for reading from DB as a default mechanism (sonic-net#5250). The redis unix socket is created as follows. admin@str--acs-1:~$ ls -lrt /var/run/redis/redis.sock srwxrw---- 1 root redis 0 Mar 6 01:57 /var/run/redis/redis.sock So it used to work fine for the user "root" or if user is part of redis group ( admin was made part of redis group by default ) Check if the user is with sudo permissions then use the redis unix socket, else fallback to tcp socket.
carl-nokia
pushed a commit
to carl-nokia/sonic-buildimage
that referenced
this issue
Aug 7, 2021
…sing sudo. (sonic-net#7002) Closes issue sonic-net#6982. The issue was root caused as we were using the unix_socket for reading from DB as a default mechanism (sonic-net#5250). The redis unix socket is created as follows. admin@str--acs-1:~$ ls -lrt /var/run/redis/redis.sock srwxrw---- 1 root redis 0 Mar 6 01:57 /var/run/redis/redis.sock So it used to work fine for the user "root" or if user is part of redis group ( admin was made part of redis group by default ) Check if the user is with sudo permissions then use the redis unix socket, else fallback to tcp socket.
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
CLI "show run all", "show run ports", "show run interfaces" are outputting errors
Steps to reproduce the issue:
Describe the results you received:
ritahui@TestDUT:~$ show run all | more
Traceback (most recent call last):
File "/usr/local/bin/sonic-cfggen", line 416, in
main()
File "/usr/local/bin/sonic-cfggen", line 339, in main
configdb.connect()
File "/usr/local/lib/python2.7/dist-packages/swsssdk/configdb.py", line 74, in connect
self.db_connect('CONFIG_DB', wait_for_init, retry_on)
File "/usr/local/lib/python2.7/dist-packages/swsssdk/configdb.py", line 69, in db_connect
SonicV2Connector.connect(self, self.db_name, retry_on)
File "/usr/local/lib/python2.7/dist-packages/swsssdk/dbconnector.py", line 250, in connect
self.dbintf.connect(db_id, retry_on)
File "/usr/local/lib/python2.7/dist-packages/swsssdk/interface.py", line 171, in connect
self._onetime_connect(db_id)
File "/usr/local/lib/python2.7/dist-packages/swsssdk/interface.py", line 183, in _onetime_connect
client.config_set('notify-keyspace-events', self.KEYSPACE_EVENTS)
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 719, in config_set
return self.execute_command('CONFIG SET', name, value)
File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 673, in execute_command
connection.send_command(*args)
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 610, in send_command
self.send_packed_command(self.pack_command(*args))
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 585, in send_packed_command
self.connect()
File "/usr/local/lib/python2.7/dist-packages/redis/connection.py", line 489, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 13 connecting to unix socket: /var/run/redis/redis.sock. Permission denied.
Describe the results you expected:
Running config should be displayed. In earlier version
ritahui@TestDUT2:~$ show run all
{
"AAA": {
"authentication": {
"login": "tacacs+"
}
},
Output of
show version
:SONiC Software Version: SONiC.20191130.59
Distribution: Debian 9.13
Kernel: 4.9.0-14-2-amd64
Build commit: 7d7bdb0aa
Build date: Sat Jan 30 01:57:15 UTC 2021
Built by: sonicbld@new-worker-20
Platform: x86_64-arista_7060_cx32s
HwSKU: Arista-7060CX-32S-Q32
ASIC: broadcom
Serial Number: SSJ17490433
Uptime: 19:22:32 up 9:48, 1 user, load average: 1.35, 1.58, 1.86
Docker images:
REPOSITORY TAG IMAGE ID SIZE
docker-fpm-frr 20191130.59 68ab97ac7cf1 326MB
docker-fpm-frr latest 68ab97ac7cf1 326MB
docker-orchagent 20191130.59 eae6c7670cb5 333MB
docker-orchagent latest eae6c7670cb5 333MB
docker-teamd 20191130.59 4c483a004ef5 315MB
docker-teamd latest 4c483a004ef5 315MB
docker-syncd-brcm 20191130.59 6b3f7b0cc54e 437MB
docker-syncd-brcm latest 6b3f7b0cc54e 437MB
docker-acms 20191130.59 ee39c1f0179d 184MB
docker-acms latest ee39c1f0179d 184MB
docker-platform-monitor 20191130.59 630127d00052 358MB
docker-platform-monitor latest 630127d00052 358MB
docker-lldp-sv2 20191130.59 6590b6fcf372 312MB
docker-lldp-sv2 latest 6590b6fcf372 312MB
docker-snmp-sv2 20191130.59 eb71d7d877db 351MB
docker-snmp-sv2 latest eb71d7d877db 351MB
docker-sonic-telemetry 20191130.59 a4a4f59c5e50 353MB
docker-sonic-telemetry latest a4a4f59c5e50 353MB
docker-router-advertiser 20191130.59 95bdb0004b53 290MB
docker-router-advertiser latest 95bdb0004b53 290MB
docker-dhcp-relay 20191130.59 41011ffad614 300MB
docker-dhcp-relay latest 41011ffad614 300MB
docker-database 20191130.59 ebf7962d195a 290MB
docker-database latest ebf7962d195a 290MB
k8s.gcr.io/pause 3.2 80d28bedfe5d 683kB
The text was updated successfully, but these errors were encountered: