Skip to content
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

running tuna multiple times fails #44

Closed
matkoniecz opened this issue Jun 13, 2019 · 2 comments
Closed

running tuna multiple times fails #44

matkoniecz opened this issue Jun 13, 2019 · 2 comments

Comments

@matkoniecz
Copy link

I started tuna once (to see state before change) and then again (to see state after change)

It resulted in

Traceback (most recent call last):
  File "/home/mateusz/.local/bin/tuna", line 10, in <module>
    sys.exit(main())
  File "/home/mateusz/.local/lib/python3.5/site-packages/tuna/cli.py", line 33, in main
    start_server(args.infile, args.browser, args.port)
  File "/home/mateusz/.local/lib/python3.5/site-packages/tuna/main.py", line 212, in start_server
    httpd = HTTPServer(("", port), StaticServer)
  File "/usr/lib/python3.5/socketserver.py", line 440, in __init__
    self.server_bind()
  File "/usr/lib/python3.5/http/server.py", line 138, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/usr/lib/python3.5/socketserver.py", line 454, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
@nschloe
Copy link
Owner

nschloe commented Jun 27, 2019

Ah, you'll just have to use another port, e.g., tuna -p 8001.

@nschloe nschloe closed this as completed Jun 27, 2019
@nschloe
Copy link
Owner

nschloe commented Oct 7, 2019

FYI, tuna now automatically selects a free port.

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