Octoprint and shairport-sync running at the same time


#1

What is the problem?
If I run shairport-sync service, the octoprint web interface will not load, untill I stop the shairport-sync service. And vice versa as well.

What did you already try to solve it?
Reinstall shairport-sync, pkg update && pkg upgrade, rpi-update

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)
Latest octoprint software, Taz6, Pi3 B

2019-01-02 21:45:36,406 - octoprint.startup - INFO - Starting OctoPrint 1.3.10
2019-01-02 21:45:36,407 - octoprint.startup - INFO - ******************************************************************************
2019-01-02 21:45:36,474 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2019-01-02 21:45:36,479 - octoprint.startup - INFO - Blacklist processing done, adding 1 blacklisted plugin versions: roomtemp (any)
2019-01-02 21:45:36,527 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2019-01-02 21:45:38,517 - octoprint.plugin.core - INFO - Found 15 plugin(s) providing 15 mixin implementations, 17 hook handlers
2019-01-02 21:45:38,627 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2019-01-02 21:45:38,656 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
File "/home/pi/oprint/bin/octoprint", line 9, in
load_entry_point('OctoPrint==1.3.10', 'console_scripts', 'octoprint')()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/init.py", line 602, in main
octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
File "/home/pi/oprint/local/lib/python2.7/site-packages/click-6.2-py2.7.egg/click/core.py", line 716, in call
return self.main(*args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/click-6.2-py2.7.egg/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/home/pi/oprint/local/lib/python2.7/site-packages/click-6.2-py2.7.egg/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/pi/oprint/local/lib/python2.7/site-packages/click-6.2-py2.7.egg/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/pi/oprint/local/lib/python2.7/site-packages/click-6.2-py2.7.egg/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/click-6.2-py2.7.egg/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 187, in serve_command
ignore_blacklist)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 108, in run_server
octoprint_server.run()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/init.py", line 258, in run
self._start_intermediary_server()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/init.py", line 1645, in _start_intermediary_server
self._intermediary_server.server_bind()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib/python2.7/SocketServer.py", line 434, in server_bind
self.socket.bind(self.server_address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use


#2

Ironically, OctoPrint and ShairPort cannot share the same port. Looks like you can change the port that ShairPort uses in its configuration file:


#3

Thank you! I changed that port to 5500 and removed the // before it, saved the file and restarted the shairport service and I have both services going now.

I'm very new to all this and am surprised I have gotten even this far. Hopefull what I did was correct and its not just a fluke!

Thank you again!