Updated to new Youtube 7.0.7 for Leia but keep getting error [Errno 98] Address Already in Use

The error message keeps popping up every minute.

Any ideas how to fix this?

I am using Tubecast add-on as well. Dunno if it’s related.

https://wiki.coreelec.org/coreelec:ce_support

here is part of the log file:

modifier: 0x0
2024-06-15 19:33:45.403 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:45.403 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:45.512 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:45.513 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:45.527 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:45.527 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:45.528 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:45.560 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:45.672 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:45.673 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:45.688 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:45.703 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:45.703 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:45.704 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:45.832 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:45.833 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:45.848 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:45.860 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:45.860 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:45.860 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:45.984 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:45.985 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:45.994 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:45.994 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:46.000 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:46.027 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:46.136 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:46.137 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:46.152 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:46.170 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:46.170 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:46.170 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:46.296 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:46.297 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:46.312 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:46.327 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:46.327 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:46.327 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:46.560 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:46.561 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:46.577 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:46.594 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:46.594 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:46.594 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:47.024 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:47.025 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:47.040 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:47.044 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:47.044 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:47.044 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:47.176 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:47.177 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:47.177 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:47.177 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:47.192 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:47.210 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:47.336 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:47.337 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:47.344 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:47.344 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:47.352 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:47.377 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:47.656 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:47.657 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:47.672 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:47.691 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:47.691 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:47.691 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:47.816 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:47.817 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:47.832 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:47.844 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:47.844 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:47.844 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:47.976 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:47.977 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:47.977 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:47.977 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:47.992 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:48.010 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:48.136 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:48.137 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:48.152 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:48.153 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:48.153 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:48.153 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:48.296 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:48.297 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:48.312 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:48.320 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:48.320 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:48.321 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:48.464 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms
2024-06-15 19:33:48.465 T:3910193984   DEBUG: Thread Timer start, auto delete: false
2024-06-15 19:33:48.477 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:48.477 T:4085465152   DEBUG: HandleKey: down (0xf081) pressed, action is Down
2024-06-15 19:33:48.480 T:3910193984   DEBUG: Thread Timer 3910193984 terminating
2024-06-15 19:33:48.510 T:4085465152   DEBUG: Keyboard: scancode: 0x6c, sym: 0x0112, unicode: 0x0000, modifier: 0x0
2024-06-15 19:33:48.644 T:3851899712   DEBUG: [plugin.video.youtube] HTTPServer: Starting |127.0.0.1:50152|
2024-06-15 19:33:48.645 T:3851899712   ERROR: [plugin.video.youtube] HTTPServer: Failed to start |127.0.0.1:50152| |[Errno 98] Address already in use|
2024-06-15 19:33:48.677 T:4085465152   DEBUG: ------ Window Init (DialogNotification.xml) ------
2024-06-15 19:33:48.920 T:4071617344   DEBUG: CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 33ms

I am trying to cast from my phone to my TV but it’s not working anymore.

The issue is a side-effect of improving support for Android power saving features that are not properly handled by the Kodi plugin system.

It was already fixed in the plugin, but whether the fix works properly on an unsupported Linux kernel, used in an unsupported distribution, running an unsupported version of Kodi, that uses an unsupported version of Python is anyone’s guess.

I have no way of testing it, and can’t even look into it if you don’t follow the instructions given to you regarding how to provide the basic minimum details required for troubleshooting.