Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #27342

Closed (moved)
(moved)
Open
Created Aug 27, 2018 by Trac@tracbot

sbws poor error handling

sbws first run states file not found, but gives no indication as to what file is not found.

test@26e7731456d9:~$ sbws scanner
Traceback (most recent call last):
  File "/usr/lib/python3.5/logging/handlers.py", line 823, in _connect_unixsocket
    self.socket.connect(address)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/sbws", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/sbws/sbws.py", line 53, in main
    configure_logging(args, conf)
  File "/usr/local/lib/python3.5/dist-packages/sbws/util/config.py", line 160, in configure_logging
    logging.config.fileConfig(fd.name)
  File "/usr/lib/python3.5/logging/config.py", line 84, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "/usr/lib/python3.5/logging/config.py", line 148, in _install_handlers
    h = klass(*args)
  File "/usr/lib/python3.5/logging/handlers.py", line 806, in __init__
    self._connect_unixsocket(address)
  File "/usr/lib/python3.5/logging/handlers.py", line 834, in _connect_unixsocket
    self.socket.connect(address)
FileNotFoundError: [Errno 2] No such file or directory

I assume the config file is missing, but don't know for sure.

Trac:
Username: gabe

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking