emilsvennesson / script.module.inputstreamhelper

A simple Kodi module that makes life easier for add-on developers relying on InputStream based add-ons and DRM playback.
MIT License
134 stars 49 forks source link

Inputstream-helper 0.7.0 fails to install/update widevine [Erro N 02] no such file or directory #575

Open hbbernardo opened 1 day ago

hbbernardo commented 1 day ago

Hi

The newest version of Inputstream-helper 0.7.0 fails to install/update Widevine on the latest nightly of Libreelec.

A message saying that [Erro N 02] no such file or directory is displayed.

IMG_20241005_143718624_BURST000_COVER.jpg

Log is below:

https://paste.libreelec.tv/easy-colt.log

Please, let me know if I can be of any more help

Regards.

emilsvennesson commented 1 day ago

Hi!

I am not sure why this would happen. Did you manually remove any backups at one point? This exception should definitely be caught gracefully though.

Can you try with commit https://github.com/emilsvennesson/script.module.inputstreamhelper/commit/8a3bdd9b0ecf787bbdeb421936ce60a705b863c7?

hbbernardo commented 1 day ago

Hi!

I am not sure why this would happen. Did you manually remove any backups at one point? This exception should definitely be caught gracefully though.

Can you try with commit https://github.com/emilsvennesson/script.module.inputstreamhelper/commit/8a3bdd9b0ecf787bbdeb421936ce60a705b863c7?

Hi

Thanks for the quick reply.

I'm the one who reported the distills issue on the 0.6.x version that you fixed by releasing the 0.7.0.

Only today did the newest version of Inputstream-helper appear as an update to be installed.

Then I went to try to test it and found this issue I just reported. Before coming here I tried to troubleshoot this by removing widevine and manually installing using the Inputstream-helper menu to no avail.

About the commit I'm afraid unless you can provide me a newer version that can be manually installed by my end I can't do much of that information alone.

I am here to help if you see another way I can better debug this.

emilsvennesson commented 1 day ago

It should be possible to install from .zip using: https://github.com/emilsvennesson/script.module.inputstreamhelper/archive/8a3bdd9b0ecf787bbdeb421936ce60a705b863c7.zip

hbbernardo commented 1 day ago

It should be possible to install from .zip using: https://github.com/emilsvennesson/script.module.inputstreamhelper/archive/8a3bdd9b0ecf787bbdeb421936ce60a705b863c7.zip

I'm having a different behavior now.

I installed the zip version with the commit. Then I removed widevine from the Inputstream-helper menu. Then reinstalled it.

It went almost to the end of the progression bar when it got stucked. My Libreelec didn't crash.

I wait a little more. Then I SSH'd to make a copy of the kodi.log and to my surprise the file size is already in the 640MB and it keeps growing.

Any suggestions?

emilsvennesson commented 1 day ago

Hmm, is the file size of kodi.log 640MB? What does tail -n 20 kodi.log show?

hbbernardo commented 1 day ago

Hmm, is the file size of kodi.log 640MB?

Greater then that. I was able to make a copy and compressed it to 5MB.

If you are interested here it is.

https://mega.nz/file/RtICTLZL#CyY37uXQOeLhARIvrOekje7BoBorl0alQGZL5X_s_vU

hbbernardo commented 1 day ago

Hmm, is the file size of kodi.log 640MB? What does tail -n 20 kodi.log show?

I did it all over again.

Here's the output of tail -n 20 Kodi.log

2024-10-05 16:12:10.914 T:1424 critical : [script.module.inputstreamhelper] Error removing tree: [Errno 2] No such file or directory: '/storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup/15699.72.0.0' 2024-10-05 16:12:10.914 T:1424 debug : [script.module.inputstreamhelper] Removing oldest backup which is not installed: 15699.72.0.0 2024-10-05 16:12:10.914 T:1424 critical : [script.module.inputstreamhelper] Error removing tree: [Errno 2] No such file or directory: '/storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup/15699.72.0.0' 2024-10-05 16:12:10.914 T:1424 debug : [script.module.inputstreamhelper] Removing oldest backup which is not installed: 15699.72.0.0 2024-10-05 16:12:10.915 T:1424 critical : [script.module.inputstreamhelper] Error removing tree: [Errno 2] No such file or directory: '/storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup/15699.72.0.0' 2024-10-05 16:12:10.915 T:1424 debug : [script.module.inputstreamhelper] Removing oldest backup which is not installed: 15699.72.0.0 2024-10-05 16:12:10.915 T:1424 critical : [script.module.inputstreamhelper] Error removing tree: [Errno 2] No such file or directory: '/storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup/15699.72.0.0'

emilsvennesson commented 1 day ago

Please try with https://github.com/emilsvennesson/script.module.inputstreamhelper/archive/refs/heads/catch-fnf-error.zip.

Also, could you please give me the output of ls -la /storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup?

emilsvennesson commented 1 day ago

Run the ls command before trying the new .zip, because that might remove what I am looking for haha!

hbbernardo commented 1 day ago

Run the ls command before trying the new .zip, because that might remove what I am looking for haha!

I hope it's not too late.

I had already updated the .zip file but didn't executed.

Here's it;

LibreELEC (community): nightly-20241005-8b22d03 (RPi5.aarch64) LibreELEC:~ # ls -la /storage/.kodi/userdata/addon_data/script.module.inputstreamhel per/backup? ls: /storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup?: No such file or directory LibreELEC:~ #

hbbernardo commented 1 day ago

Sorry. I made an obvious error on the previous one.

Here's it:

LibreELEC:~ # ls -la /storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup total 8 drwxr-xr-x 8 root root 1024 Oct 5 14:14 . drwxr-xr-x 4 root root 1024 Oct 5 16:04 .. drwxr-xr-x 2 root root 1024 Apr 16 20:26 15699.72.0 drwxr-xr-x 2 root root 1024 Apr 20 00:14 15786.48.0 drwxr-xr-x 2 root root 1024 May 26 20:23 15823.60.0 drwxr-xr-x 2 root root 1024 Jul 3 19:22 15886.44.0 drwxr-xr-x 2 root root 1024 Sep 3 23:52 15917.71.0 drwxr-xr-x 2 root root 1024 Oct 5 14:14 15964.59.0 LibreELEC:~ #

hbbernardo commented 1 day ago

Can I proceed with the test of the newest version?

emilsvennesson commented 1 day ago

Thanks! Yes, please do. :-)

hbbernardo commented 1 day ago

I believe widevine west successfully installed.

However I have no video. Only the loading icon.

No sound either.

Here's the output from tail:

LibreELEC:~/.kodi/temp # tail -n 20 kodi.log 2024-10-05 16:40:30.519 T:1546 info : Skipped 9475 duplicate messages.. 2024-10-05 16:40:30.519 T:1546 debug : CVideoPlayerVideo - video decoder returned error 2024-10-05 16:40:33.036 T:1347 info : Skipped 2384 duplicate messages.. 2024-10-05 16:40:33.036 T:1347 debug : CheckIdle - Closing session to http://127.0.0.1 (easy=0x7ffe847774b0, multi=0x7ffe842da870) 2024-10-05 16:40:33.036 T:1546 debug : CVideoPlayerVideo - video decoder returned error 2024-10-05 16:40:33.670 T:1540 info : Skipped 601 duplicate messages.. 2024-10-05 16:40:33.670 T:1540 debug : Thread JobWorker 140731368943232 terminating (autodelete) 2024-10-05 16:40:33.671 T:1546 debug : CVideoPlayerVideo - video decoder returned error 2024-10-05 16:40:34.036 T:1347 info : Skipped 346 duplicate messages.. 2024-10-05 16:40:34.036 T:1347 debug : CheckIdle - Closing session to https://ipv4-c004-ssa001-itsbrasil-isp.1.oca.nflxvideo.net (easy=0x7ffe84813e10, multi=0x7ffe848152b0) 2024-10-05 16:40:34.037 T:1546 debug : CVideoPlayerVideo - video decoder returned error 2024-10-05 16:40:34.038 T:1347 debug : CheckIdle - Closing session to https://ipv4-c004-ssa001-itsbrasil-isp.1.oca.nflxvideo.net (easy=0x7ffe80068d00, multi=0x7ffe80013050) 2024-10-05 16:40:34.038 T:1546 debug : CVideoPlayerVideo - video decoder returned error 2024-10-05 16:40:34.040 T:1347 info : Skipped 1 duplicate messages.. 2024-10-05 16:40:34.040 T:1347 debug : CheckIdle - Closing session to https://ipv4-c002-ssa001-itsbrasil-isp.1.oca.nflxvideo.net (easy=0x7ffe2915c640, multi=0x7ffe290ad9e0) 2024-10-05 16:40:34.041 T:1546 debug : CVideoPlayerVideo - video decoder returned error 2024-10-05 16:40:44.042 T:1546 info : Skipped 9480 duplicate messages.. 2024-10-05 16:40:44.042 T:1546 debug : CVideoPlayerVideo - video decoder returned error 2024-10-05 16:40:54.042 T:1546 info : Skipped 9474 duplicate messages.. 2024-10-05 16:40:54.042 T:1546 debug : CVideoPlayerVideo - video decoder returned error LibreELEC:~/.kodi/temp #

Any ideas?

emilsvennesson commented 1 day ago

No idea. I am afraid you would have to report playback issues to the Netflix Kodi maintainers. :/

Could you also please test to do an install from https://github.com/emilsvennesson/script.module.inputstreamhelper/archive/refs/heads/ver-parsing.zip? I hope this fixes the real issue (see https://github.com/emilsvennesson/script.module.inputstreamhelper/pull/577).

hbbernardo commented 1 day ago

No idea. I am afraid you would have to report playback issues to the Netflix Kodi maintainers. :/

Could you also please test to do an install from https://github.com/emilsvennesson/script.module.inputstreamhelper/archive/refs/heads/ver-parsing.zip? I hope this fixes the real issue (see https://github.com/emilsvennesson/script.module.inputstreamhelper/pull/577).

I will do it

Just to report more correctly. This issue I mentioned last it only happens when I try to resume a title.

It plays perfectly when playing from the beginning.

I will let you know if something new appears after I install this last version.

hbbernardo commented 1 day ago

No idea. I am afraid you would have to report playback issues to the Netflix Kodi maintainers. :/

Could you also please test to do an install from https://github.com/emilsvennesson/script.module.inputstreamhelper/archive/refs/heads/ver-parsing.zip? I hope this fixes the real issue (see https://github.com/emilsvennesson/script.module.inputstreamhelper/pull/577).

I removed Widevine from the Inputstream-helper menu.

Rebooted my Pi5/Libreelec Piers Nightly

From the Netflix addon I try to play a title and the Inputstream-helper addon took over the job as always did and finished the job like it used to.

Playback starts.

It seems solved.

Does it look the same to you?

Is there any more I can do?

emilsvennesson commented 1 day ago

Thank you! Can you do another ls -la /storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup? The 15699.72.0.0 folder should hopefully have been removed now.

hbbernardo commented 1 day ago

Thank you! Can you do another ls -la /storage/.kodi/userdata/addon_data/script.module.inputstreamhelper/backup? The 15699.72.0.0 folder should hopefully have been removed now.

LibreELEC:~ # ls -la /storage/.kodi/userdata/addon_data/script.module.inputstreamhel per/backup total 7 drwxr-xr-x 7 root root 1024 Oct 5 17:11 . drwxr-xr-x 3 root root 1024 Oct 5 17:11 .. drwxr-xr-x 2 root root 1024 Apr 20 00:14 15786.48.0 drwxr-xr-x 2 root root 1024 May 26 20:23 15823.60.0 drwxr-xr-x 2 root root 1024 Jul 3 19:22 15886.44.0 drwxr-xr-x 2 root root 1024 Sep 3 23:52 15917.71.0 drwxr-xr-x 2 root root 1024 Oct 5 14:14 15964.59.0 LibreELEC:~ #

emilsvennesson commented 1 day ago

Thank you! A fix for this issue will be included in 0.7.1.

Regarding the playback issues on Netflix; this is probably an issue in inputstream.adaptive, so I'd suggest you search on that Github repo for similar issues.

hbbernardo commented 1 day ago

Thank you! A fix for this issue will be included in 0.7.1.

Regarding the playback issues on Netflix; this is probably an issue in inputstream.adaptive, so I'd suggest you search on that Github repo for similar issues.

I'm truly grateful I could assist in resolving this issue.

Regarding the playback issue, I've already submitted a ticket to the Netflix Addon repository while waiting for your recent responses. You can find it here: https://github.com/CastagnaIT/plugin.video.netflix/issues/1722.

I’ll await a reply from the developer, who I believe is the same for both repositories.

If it's not too much trouble, I would sincerely appreciate it if you could kindly put in a word on our behalf, as early adopters of Kodi Piers. Your support would mean a lot to us.