Calibre-server respawning


Since I've upgraded to 3.3, calibre-server shuts down on start.

When I run:

#sudo start calibre-server

I see this in syslog:

Jul 9 22:58:30 linux-2016 kernel: [66459.278885] init: calibre-server main process ended, respawning
Jul 9 22:58:31 linux-2016 kernel: [66459.719135] init: calibre-server main process (42901) terminated with status 2
Jul 9 22:58:31 linux-2016 kernel: [66459.719147] init: calibre-server main process ended, respawning
Jul 9 22:58:31 linux-2016 kernel: [66460.157340] init: calibre-server main process (42907) terminated with status 2
Jul 9 22:58:31 linux-2016 kernel: [66460.157353] init: calibre-server respawning too fast, stopped

Oddly enough, when I run calibre-server from the command-line directly, as my logged-in user, it works fine, whether or not I add the --daemonize flag.

But when I run calibre-server as root, using sudo, I get an error:

$ sudo calibre-server
Failed to bind to 0.0.0.0 with error: No socket could be created -- (('0.0.0.0', 8080): [Errno 98] Address already in use). Trying to bind to the default interface: 192.168.0.135 instead
Traceback (most recent call last):
  File "site.py", line 77, in main
  File "site-packages/calibre/srv/standalone.py", line 209, in main
  File "site-packages/calibre/srv/loop.py", line 472, in serve_forever
  File "site-packages/calibre/srv/loop.py", line 438, in initialize_socket
  File "site-packages/calibre/srv/loop.py", line 423, in do_bind
error: No socket could be created -- (('192.168.0.135', 8080): [Errno 98] Address already in use)

The interesting thing is that I'm not having a problem binding to port 8080 when I run calibre-server as an ordinary user, only when I do so as root.

I'm running:

Linux Mint 17.3 Rosa 64-bit
Kernel3.19.0-32-generic x86_64
MATE 1.12.0

Think Tank