Unable to clear port following crash

Hi all,

Bit of a strange one. I use the Mar 2022 version because of CEC issues and run the Emby Next Gen addon. The other day I had a crash and it froze. This happens like twice a year so I did the usual pulling the power, waiting a bit of time and plugging it back in.

I then started to get an error popup from the Emby Next Gen and to check the logs. After checking the logs I saw below:

2025-03-02 21:16:28.939 T:3357 ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class ‘OSError’>
Error Contents: [Errno 98] Address already in use
Traceback (most recent call last):
File “/home/osmc/.kodi/addons/plugin.video.emby-next-gen/service.py”, line 2, in
webservice.start()
File “/home/osmc/.kodi/addons/plugin.video.emby-next-gen/hooks/webservice.py”, line 33, in start
Socket.bind((‘127.0.0.1’, 57342))
OSError: [Errno 98] Address already in use
–>End of Python script error report<–

So I did several further controlled restarts and shutdowns but it wouldnt go away.

I gave up and then tried a fresh install using the OSMC installer (with March 2022), added the addon again but it still says its in use and locked? Surely this should of wiped it clean? Or is there another OS level here which requires manual intervention via ssh to unblock?

Ive done a ton of googling to no avail. Any help would be appreciated.

Thanks

Logs: http://paste.osmc.tv/usexecaxeb

I would suggest contacting the developer of this add-on. There are no standard OSMC services that would occupy that port.

Thanks. Should a restart or clean installation of OSMC clear any locks on the ports? Would like to confirm this too.

A port is a software defined interface, so a reinstall surely would “clear” it

1 Like

Even rebooting would do this.

I suspect the add-on might be trying to bind to it twice. I would suggest contacting the developer as I suspect it would not be an isolated issue

Thank you for the pointers. Appreciated. Will head over to the addons forum.