Skip to content

portstat/teamshow/aclshow sometimes fails to connect to database #42

Open
@sihuihan88

Description

@sihuihan88

When calling the portstat, teamshow or aclshow, sometimes it keeps trying to connect to database and stuck forever. The output is as follows. This issue is random and not happen every time.

^CTraceback (most recent call last):
  File "/usr/bin/portstat", line 333, in <module>
    main()
  File "/usr/bin/portstat", line 285, in main
    portstat = Portstat()
  File "/usr/bin/portstat", line 54, in __init__
    self.db.connect(self.db.COUNTERS_DB)
  File "/usr/local/lib/python2.7/dist-packages/swsssdk/interface.py", line 179, in connect
    self._persistent_connect(db_name)
  File "/usr/local/lib/python2.7/dist-packages/swsssdk/interface.py", line 210, in _persistent_connect
    time.sleep(t_wait)
KeyboardInterrupt
root@str-a7050-acs-1:/home/admin# portstat

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions