LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-11-2019, 03:02 PM   #1
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 XDM/WMaker
Posts: 628

Rep: Reputation: 181Reputation: 181
VLC TuneIn addon fails with errors of LUA require and gnutls.


After upgrading to VLC 3.0.6 I'm having problems with the TuneIn v0.7 addon extension. I placed the playlist and tunein.lua (which includes user/password) under ~/.local/share/vlc/lua/playlist and sd. This will show the TuneIn internet channel, but fails to connect with the following errors about Lua's require and gnutls timeout. I've googled to see if others are having the issue and solved it, but google isn't providing any solutions for these particular issues.

Code:
bash-4.3$ vlc
VLC media player 3.0.6 Vetinari (revision 3.0.6-0-g5803e85f73)
[0000000000f1fa10] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-brian'
[0000000000fb1200] main playlist: playlist is empty
[00007ff790331ad0] lua services discovery error: Error loading script /home/brian/.local/share/vlc/lua/sd/tunein.lua: /home/brian/.local/share/vlc/lua/sd/tunein.lua:20: attempt to call global 'require' (a nil value)
[00007ff778000fe0] http stream error: peer stream 1 error: Cancellation (0x8)
[00007ff778000fe0] access stream error: HTTP connection failure
[00007ff790331ad0] main services discovery error: no suitable access module for `https://opml.radiotime.com/Describe.ashx?c=genres&partnerId=k2YHnXyS'
[00007ff790331ad0] lua services discovery error: Error while running script /home/brian/.local/share/vlc/lua/sd/tunein.lua, function main(): /home/brian/.local/share/vlc/lua/sd/tunein.lua:97: attempt to index local 'tree' (a nil value)
QObject::~QObject: Timers cannot be stopped from another thread
Anyone else overcome this issue or have direction on how to solve the error messages with the latest VLC?

Last edited by bamunds; 02-11-2019 at 03:03 PM.
 
Old 02-11-2019, 04:01 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,592

Rep: Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010
I created an account there to test.
I get the same errors but the "Local Radio" tree still populates properly and I can play the music streams I see in there.
 
Old 02-11-2019, 05:05 PM   #3
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 XDM/WMaker
Posts: 628

Original Poster
Rep: Reputation: 181Reputation: 181
Eric thanks for the quick test from your end.

I'm only getting a Favorites folder which is then blank. If I try to connect multiple times sometimes the local stations folder appers, but opening it is displays nothing. I suspect the gnutls handshake timeout error is closing the https connection authorization resulting in no data for my user. Without the handshake TuneIn won't get Favorites and local stations.

Eric did you try the connection more than once?

I'm using the instructions from the TuneIn README.md. Did you place the files under ~/.local/share/vlc or under /usr/lib64/vlc/lua/playlist and .../sd?

I've tried both. I've verified user ownership of the files and even tried making the three files executable. Nothing seems to help. This did work under the VLC 2.x version with 0.5 TuneIn extension. Should the next step be to go back and reload older versions to verify this isn't a gnutls issue?

Last edited by bamunds; 02-11-2019 at 05:10 PM.
 
Old 02-11-2019, 05:12 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,592

Rep: Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010
I did the following to get the latest (0.7) version in VLC 3.0.6 (my own package):
Code:
$ unzip TuneIn-Radio-VLC-master.zip
$ mkdir ~/.local/share/vlc/lua/sd/
$ cp -ia TuneIn-Radio-VLC-master/tunein.lua ~/.local/share/vlc/lua/sd/
$ mkdir ~/.local/share/vlc/lua/playlist
$ cp -ia TuneIn-Radio-VLC-master/playlist/* ~/.local/share/vlc/lua/playlist/
$ vi ~/.local/share/vlc/lua/sd/tunein.lua # to set the username & password
$ vlc
Yes I restarted VLC several times, and once, the Local Radio did not populate.
 
1 members found this post helpful.
Old 02-11-2019, 05:23 PM   #5
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 XDM/WMaker
Posts: 628

Original Poster
Rep: Reputation: 181Reputation: 181
Eric, thanks again for the speedy reply. I used those similar steps, although I used Thunar to mkdir and copy the files to their folders. I've posted on the VideoLan Linux troubleshooting forum also. Maybe someone will have suggestions. The only other thing solution I saw involved updating certificates. Not sure how that could be an issue, but my current ca-certs are from PV's 2016. ca-certificates-20161130-noarch-1_slack14.2

The only other thing mentioned was using a lua editor for making the username,password addition. But I thought gvim should work for that purpose, as you proved with simple vi.

Thanks for helping start to solve. Cheers
 
Old 02-12-2019, 10:28 AM   #6
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 XDM/WMaker
Posts: 628

Original Poster
Rep: Reputation: 181Reputation: 181
I've downloaded the older VLC 2.x.x files for 14.2 from AlienBob's repository http://www.slackware.com/~alien/slac...c2/pkg64/14.2/. Then upgradepkg to vlc 2.2.8 and npapi-vlc-2017, which removes the 3.0.6 file and installs 2.2.4. The errors have gone away and the TuneIn pluggin again works. I then downloaded the 3.0.6 version and it again caused the errors and lack of connection.

On my wife's Win10 the 3.0.4 VLC is working without issue with the TuneIn v0.7. I've also looked at the VidoeLan.org forums and there aren't issues other than how to put the user and password in to the tunein.lua file. So I suspect there is an issue during upgrade to 3.0.6 and not with the TuneIn extension. I think the next step is to try to locally build 3.0.4 or 3.0.6 and see if that works.

Or are there other settings which changed during the upgrade to 3.0.6 build?

Last edited by bamunds; 02-12-2019 at 10:41 AM.
 
Old 02-12-2019, 03:43 PM   #7
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 574

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Quote:
Originally Posted by bamunds View Post
I think the next step is to try to locally build 3.0.4 or 3.0.6 and see if that works.
I already tried it with the SBo version (3.0.6) and see exactly the same errors as in the first post.

However it is intermittent. On third try, I see "Favorites" section populated with a few stations I had added via web interface; also "Local Radio" seems fully occupied with stations. There is a third "Trending" section which is empty.

chris
Attached Thumbnails
Click image for larger version

Name:	tunein.jpg
Views:	7
Size:	44.5 KB
ID:	29776  

Last edited by chris.willing; 02-12-2019 at 03:55 PM. Reason: Add intermittent success
 
Old 02-12-2019, 03:53 PM   #8
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 XDM/WMaker
Posts: 628

Original Poster
Rep: Reputation: 181Reputation: 181
Chris, thanks for testing with a locally built VLC.
Debugging this issue is probably beyond my skills. I plan to leave this open for some next steps advice from 'experts' of VLC and building. I believe this to be an issue that starts with the gnutls connection handshake failing and then authorization to the users information is properly blocked. The only other issue is that 3.0.6 has a bug that needs to be brought to the VLC upstream.

I did try pnoce's 3.0.4 build from pkgs.org, but it didn't recognize any Internet plugins TuneIn/ICast/Jamendo/Free Music, etc. Maybe that is a clue that something in the build process is dropping compatibility?

I will post any solutions from my post over at videolan.org forum also.

Last edited by bamunds; 02-12-2019 at 04:33 PM.
 
Old 02-13-2019, 04:31 AM   #9
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 574

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
From https://forum.videolan.org/viewtopic.php?t=147460, it seems that the gnutls version is implicated. I tried building gnutls-3.6.6 (as used in current) but couldn't build it easily in 14.2. Therefore I built & installed gnutls-3.5.19 and now the tunein addon works perfectly; the playlist consistently shows lots of categories, all of which are loaded with lots of entries.

The problem with this solution is how reverting to gnutls-3.5.19 might affect other things. I see that when the regular gnutls-3.6.5 came to 14.2, it was due to some security issues, replacing gnutls-3.5.8. A question therefore arises as to whether the security issues were already addressed in 3.5.19 ...

chris
Attached Thumbnails
Click image for larger version

Name:	tunein2.jpg
Views:	9
Size:	82.9 KB
ID:	29780  
 
Old 02-13-2019, 12:58 PM   #10
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 XDM/WMaker
Posts: 628

Original Poster
Rep: Reputation: 181Reputation: 181
Chris, that is an interesting test. I wonder why the old VLC2 works correctly with the latest gnutls and the latest TuneIn, while the latest VLC doesn't work correctly with gnutls? I further wonder if this is an issue of mismatched gnutls handshakes because both TuneIn and YouTube are using older gnutls/tls protocol? Are any of the newer security patches in the handshake sequence and maybe VLC2 has a delay in the processing until TLS is completed? Or perhaps gnutls is making sure the client server connection doesn't get a man-in-the-middle setup. I'm going to look into the security changes in gnutls.

Upstream development is requiring a clean version build from source, before they will provide assistance. I'll attempt that this evening. I have an older machine so hopefully it won't take too long. Cheers.

Last edited by bamunds; 02-13-2019 at 03:06 PM.
 
Old 02-13-2019, 04:05 PM   #11
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 574

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
I just found a better solution after reading another thread about updating ca-certificates ...
I first reverted to the last official gnutls for 14.2 (gnutls-3.6.5-x86_64-1_slack14.2.txz) and checked to verify bad behaviour of tunein. Confirmed.
Then I ran:
Code:
/usr/sbin/update-ca-certificates --fresh
The tunein addon now behaves correctly again.

chris
Attached Thumbnails
Click image for larger version

Name:	tunein3.jpg
Views:	6
Size:	82.4 KB
ID:	29788  

Last edited by chris.willing; 02-13-2019 at 04:06 PM.
 
Old 02-13-2019, 05:43 PM   #12
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 XDM/WMaker
Posts: 628

Original Poster
Rep: Reputation: 181Reputation: 181
@Chris.willing, updating the certificates did NOT help with the reaction on my end. Did you test more than once? Are you running the SBo build that you maintain?

There seem to be a lot of dependencies. I plan to use sboui to make the packages. It will identify all dependencies automagically from the "REQUIRES" field of the .info file. Have you seen any issues with the vlc.info file? sboui also looks at the .info of "REQUIRES" packages to build dependency of dependency. Other than a standard install of 14.2 were there any other packages you had to install to get vlc to build? Where did you find libva 1.7.2? Can I use current's libva-2.2 without issue? I'm building under Slackware64 14.2 on an intel Pentium D using nouveau driver for a NVIDIA GS 8400.

I notice dependency avahi requires group and users, so I'll probably run that one separately. Can I accept all defaults on the other dependencies?

Last edited by bamunds; 02-13-2019 at 05:57 PM.
 
Old 02-13-2019, 06:34 PM   #13
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 574

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Quote:
Originally Posted by bamunds View Post
@Chris.willing, updating the certificates did NOT help with the reaction on my end. Did you test more than once?
I tested twice and it worked both times. I just tried again after your post and it failed. Sorry for false hope.

Quote:
Are you running the SBo build that you maintain?

There seem to be a lot of dependencies. I plan to use sboui to make the packages. It will identify all dependencies automagically from the "REQUIRES" field of the .info file. Have you seen any issues with the vlc.info file? sboui also looks at the .info of "REQUIRES" packages to build dependency of dependency. Other than a standard install of 14.2 were there any other packages you had to install to get vlc to build? Where did you find libva 1.7.2? Can I use current's libva-2.2 without issue? I'm building under Slackware64 14.2 on an intel Pentium D using nouveau driver for a NVIDIA GS 8400.

I notice dependency avahi requires group and users, so I'll probably run that one separately. Can I accept all defaults on the other dependencies?
Yes, I build from source using the SlackBuild I maintain. The full dependency listing is quite long after all dependencies of dependencies are calculated from the .info file but no other packages are needed after that to build vlc. The libva on my desktop is 1.6.2 (standard in 14.2) - not sure whether the nvidia binary installer I use interferes with at all.

Defaults should be OK for all dependencies (I don't change any of them here).

chris
 
Old 02-13-2019, 07:23 PM   #14
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 XDM/WMaker
Posts: 628

Original Poster
Rep: Reputation: 181Reputation: 181
Well, if you are testing with the SBo package, then it probably doesn't make sense for me to also test.

I think at this point I'll simply stay with AlienBob's 2.2.8. I actually use mplayer more than VLC, but mplayer doesn't have a TuneIn plugin for local channels I enjoy listening. With VLC 2.2.8 I can find the URL from TuneIn, plug that into mplayer playlist, and select from there.

I dont' have the time to keep trying to find the solution here. I want to thank you for all the assistance. I'm going to leave this marked unsolved until a better answer or the next release of VLC actually works correctly. Cheers
 
Old 02-14-2019, 10:08 AM   #15
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,592

Rep: Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010Reputation: 6010
Quote:
Originally Posted by bamunds View Post
@Chris.willing, updating the certificates did NOT help with the reaction on my end. Did you test more than once? Are you running the SBo build that you maintain?

There seem to be a lot of dependencies. I plan to use sboui to make the packages. It will identify all dependencies automagically from the "REQUIRES" field of the .info file. Have you seen any issues with the vlc.info file? sboui also looks at the .info of "REQUIRES" packages to build dependency of dependency. Other than a standard install of 14.2 were there any other packages you had to install to get vlc to build? Where did you find libva 1.7.2? Can I use current's libva-2.2 without issue? I'm building under Slackware64 14.2 on an intel Pentium D using nouveau driver for a NVIDIA GS 8400.

I notice dependency avahi requires group and users, so I'll probably run that one separately. Can I accept all defaults on the other dependencies?
Updating the certs made the LUA errors go away here... and I now see an additional "Music" folder that gets populated with other stuff.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VLC and corrupt Lua module errors stoat Linux From Scratch 0 10-24-2015 04:45 AM
[SOLVED] kodi 15.1 relies on gnutls.so.28 instead of gnutls.so.30 1337_powerslacker Slackware 15 09-28-2015 10:07 AM
[SOLVED] Installing gnutls 2.x alongside gnutls 3.x yenn Slackware 3 10-27-2013 07:16 PM
[SOLVED] Getting VLC add ons written in lua to work ajohn Linux - Software 1 08-27-2013 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration