Page 1 of 1

plugins under linux

PostPosted: Thu Dec 27, 2012 5:47 am
by glenb
i installed serviio on linux 12.04; with all instructions for other packages; and setup a few online sources; it seems the server is not seeing the plugin files. i have the whole plugin list in the plugins directory. but the log shows:

java.io.IOException: Cannot parse resource from http://www.cbs.com/shows/elementary/video/. Message: No plugin for web resource http://www.cbs.com/shows/elementary/video/ has been found.

serviio is installed in a directory under my home directory and i ran it from the console; it does find and play the media files i set up. am i missing something in the setup ?

Re: plugins under linux

PostPosted: Thu Dec 27, 2012 3:27 pm
by guyome
I have the same kind of problem. I installed everything correctly ( at least I thing so) and everything works but plugins. It reconizes the plugin but never the url.

For example with the plugin for Arte I get:

  Code:
INFO  [PluginCompilerThread] Added Feed plugin Arte (Arte.groovy), version: 1


But when I setup a url I get that:

  Code:
java.io.IOException: Cannot parse resource from http://videos.arte.tv/fr/do_delegate/videos/artejournal/index--3188708,view,rss.xml. Message: No plugin for web resource http://videos.arte.tv/fr/do_delegate/videos/artejournal/index--3188708,view,rss.xml has been found.
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:179)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:186)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:159)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:96)



Any idea how to fix that ?

PS: I use the last version of both serviio and Arte plugin (but I get the same problem for the wat and pluzz plugin)

Re: plugins under linux

PostPosted: Thu Dec 27, 2012 5:15 pm
by glenb
i am using ubuntu so when i get some time i will compile ffmpeg and see if anything changes. i'll report back if that turns out to fix things.

Re: plugins under linux

PostPosted: Fri Dec 28, 2012 12:23 am
by zip
FFmpeg has nothing to do with this error. It looks the plugin's regex doesn't match the URL. It works in a regex simulator. Try updating your Java, just in case.

Re: plugins under linux

PostPosted: Wed Jan 02, 2013 2:06 pm
by guyome
Hello,

So I upgrade my version of java from the Oracle website.

  Code:
2013-01-02 14:42:30,817 INFO  [MediaServer] ------------------------------------------------------------------------$
2013-01-02 14:42:30,821 INFO  [MediaServer] Serviio DLNA media streaming server v 1.1 (rev. 6ba0dd933a8e+)$
2013-01-02 14:42:30,821 INFO  [MediaServer] Petr Nejedly 2009-2012$
2013-01-02 14:42:30,822 INFO  [MediaServer] http://www.serviio.org$
2013-01-02 14:42:30,822 INFO  [MediaServer] $
2013-01-02 14:42:30,822 INFO  [MediaServer] Java 1.6.0_37-Sun Microsystems Inc.$
2013-01-02 14:42:30,823 INFO  [MediaServer] OS Linux i386 2.6.32-30-generic-pae$
2013-01-02 14:42:30,823 INFO  [MediaServer] File encoding: UTF-8$
2013-01-02 14:42:30,825 INFO  [MediaServer] Headless mode enabled: true$
2013-01-02 14:42:30,825 INFO  [MediaServer] User: upnp$
2013-01-02 14:42:30,826 INFO  [MediaServer] User home dir: /home/upnp$
2013-01-02 14:42:30,826 INFO  [MediaServer] Temp dir: /tmp$
2013-01-02 14:42:30,826 INFO  [MediaServer] ------------------------------------------------------------------------


and the plugins are well fund.

  Code:
2013-01-02 14:43:20,294 INFO  [PluginCompilerThread] Added Feed plugin Arte (Arte.groovy), version: 1
2013-01-02 14:43:21,469 INFO  [PluginCompilerThread] Added Web Resouce plugin M6replay (M6replay.groovy), version: 1
2013-01-02 14:43:21,866 INFO  [PluginCompilerThread] Added Feed plugin WAT (WAT.groovy), version: 13


But I still have the same error with the flux (the urls come from serviio forum):

  Code:
2013-01-02 15:02:01,953 DEBUG [OnlineLibraryManager] Resource http://videos.arte.tv/fr/do_delegate/videos/artejournal/index-3188708,view,rss.xml not in cache yet, loading it
2013-01-02 15:02:01,953 DEBUG [WebResourceParser] Parsing web resource 'http://videos.arte.tv/fr/do_delegate/videos/artejournal/index-3188708,view,rss.xml'
2013-01-02 15:02:01,975 WARN  [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Cannot parse resource from http://videos.arte.tv/fr/do_delegate/videos/artejournal/index-3188708,view,rss.xml. Message: No plugin for web resource http://videos.arte.tv/fr/do_delegate/videos/artejournal/index-3188708,view,rss.xml has been found.
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:179)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:186)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:159)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:96)


However, it seems that the regex from the plugins match the url

  Code:
final VALID_FEED_URL = '(^http://videos.arte.tv.*rss.xml$)'


So, I don't what I can do to fix that...

Re: plugins under linux

PostPosted: Wed Jan 02, 2013 3:21 pm
by zip
NOt sure if it'll help but try to change the regex to

  Code:
final VALID_FEED_URL = '(^http://videos\\.arte\\.tv.*rss\\.xml$)'

Re: plugins under linux

PostPosted: Sun Jan 06, 2013 7:59 pm
by guyome
It helped not I even try with the full url (http://videos.arte.tv/fr/do_delegate/vi ... ew,rss.xml) without any success. How can I debug that ?

Re: plugins under linux

PostPosted: Sun Jan 06, 2013 8:26 pm
by zip
h... so no plugins work for of you? like YouTube?

Re: plugins under linux

PostPosted: Mon Jan 07, 2013 8:01 am
by guyome
None of the plugins I tested work. I've tried with your youtube plugin and the url

  Code:
http://gdata.youtube.com/feeds/api/standardfeeds/top_rated


Serviio found the plugin
  Code:
2013-01-07 08:54:20,692 INFO  [PluginCompilerThread] Added Feed plugin YouTube (Youtube.groovy), version: 1


but I get the same error

  Code:
java.io.IOException: Cannot parse resource from http://gdata.youtube.com/feeds/api/standardfeeds/top_rated. Message: No plugin for web resource http://gdata.youtube.com/feeds/api/standardfeeds/top_rated has been found.
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:179)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:186)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:159)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:96)


Besides, I serviio is running on a old ubuntu 10.04.4 and I get also this kind of error:

  Code:
2013-01-07 08:56:06,286 WARN  [prefs] Could not lock User prefs. Unix error code 2.
2013-01-07 08:56:06,286 WARN  [prefs] Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.

Re: plugins under linux

PostPosted: Mon Jan 07, 2013 8:15 am
by will
First error is because YouTube is an RSS feed not Web Resource, change that in the console and try again.

Second error is because you are running serviio under a user account without a home directory.

Re: plugins under linux

PostPosted: Mon Jan 07, 2013 6:01 pm
by guyome
Thanks will. You had all right and I feel stupid then.

You should perhaps precise this in the support pages especially when you write:

This type of resource [Web resources] includes any online content that is accessible and requires a special Web resource plugin.


It is confusing since I thought then all plugins should be a web resource.

Re: plugins under linux

PostPosted: Mon Jan 07, 2013 6:15 pm
by will
'Typically' if you open the url up and you have a list of items one after the other it is a Feed (and most feeds don't need plugins), vs if you open it up and its a proper website which you browse around, its a Web Resource.