FAQ  •  Register  •  Login

[SOLVED] ClearOS; Cannot run program ffmpeg

<<

Syntax

Serviio newbie

Posts: 9

Joined: Wed Sep 14, 2011 9:41 pm

Post Mon Dec 12, 2011 9:36 pm

[SOLVED] ClearOS; Cannot run program ffmpeg

Hi All,

Encountering the following problem....

I set up a service to start serviio on system start up. The service (see code below) is set up by example from clearfoundation forum. The service it self works fine (starting, stopping etc). However on start I get the error in the serviio.log stating Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory (see below for complete log).

When I run ffmpeg from the prompt it shows its version etc., so the PATH should be fine I guess.

I think the error is caused as the system on start up logs in as serviio user which cannot locate the file?? When I run serviio.sh manually from ../serviio/bin, serviio runs perfectly, but in this case I'm logged in as root. As I'm getting tired to manually start serviio again, I really wishes the service will run the same perfect way! Any suggestions to solve this are appreciated.

-Frank

Service script
  Code:
#! /bin/sh
#
# /etc/init.d/serviio
#
#
### BEGIN INIT INFO
# Provides: serviio
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start the serviio DLNA server in headless mode
### END INIT INFO

SERVIIO_HOME="/usr/share/serviio"
SERVIIO_DAEMON="serviio.sh"
SERVIIO_BIN="$SERVIIO_HOME/bin/$SERVIIO_DAEMON"
SERVIIO_USER="serviio"

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

check() {
        # Check that we're a privileged user
        [ $(id -u) = 0 ] || exit 4

        # Check if SERVIIO_HOME exists
        test -d "$SERVIIO_HOME" || exit 5

        # Check if SERVIIO_BIN is executable
        test -x "$SERVIIO_BIN" || exit 5
}

start() {
        check

        echo -n "Starting Serviio DLNA server: "
        /usr/bin/sudo -u $SERVIIO_USER -H $SERVIIO_BIN -headless &

        RETVAL=$?
        if [ $RETVAL -eq 0 ]; then
            touch /var/lock/subsys/serviio.sh
            echo_success
        else
            echo_failure
        fi
        echo
        return $RETVAL
}

stop() {
        check

        echo -n "Shutting down Serviio DLNA daemon: "
        killproc "$SERVIIO_BIN"
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/serviio.sh
        echo
        return $RETVAL
}

restart() {
        stop
        start
}


case "$1" in
start)
        start
        ;;
stop)
        stop
        ;;
force-reload)
        restart
        ;;
restart)
        restart
        ;;
condrestart)
        if [ -f /var/lock/subsys/serviio.sh ]; then
            restart
        fi
        ;;
status)
        status serviio.sh
        ;;
*)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|force-reload}"
        RETVAL=2
esac

exit $RETVAL


Serviio.log
  Code:
2011-12-12 21:49:03,166 ERROR [ApplicationInstanceManager] Error connecting to local port for single instance notification
2011-12-12 21:49:03,192 ERROR [ApplicationInstanceManager] No route to host
java.net.NoRouteToHostException: No route to host
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(Unknown Source)
   at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
   at java.net.PlainSocketImpl.connect(Unknown Source)
   at java.net.SocksSocketImpl.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at java.net.Socket.<init>(Unknown Source)
   at java.net.Socket.<init>(Unknown Source)
   at org.serviio.ApplicationInstanceManager.registerInstance(ApplicationInstanceManager.java:105)
   at org.serviio.MediaServer.checkForRunningInstances(MediaServer.java:242)
   at org.serviio.MediaServer.main(MediaServer.java:93)
2011-12-12 21:49:03,198 INFO  [MediaServer] ------------------------------------------------------------------------
2011-12-12 21:49:03,198 INFO  [MediaServer] Serviio DLNA media streaming server v 0.6.0.1 (rev. 8e4ee98bff12)
2011-12-12 21:49:03,198 INFO  [MediaServer] Petr Nejedly 2009-2011
2011-12-12 21:49:03,198 INFO  [MediaServer] http://www.serviio.org
2011-12-12 21:49:03,198 INFO  [MediaServer]
2011-12-12 21:49:03,198 INFO  [MediaServer] Java 1.6.0_29-Sun Microsystems Inc.
2011-12-12 21:49:03,198 INFO  [MediaServer] OS Linux i386 2.6.18-194.8.1.v5PAE
2011-12-12 21:49:03,198 INFO  [MediaServer] File encoding: UTF-8
2011-12-12 21:49:03,199 INFO  [MediaServer] Headless mode enabled: true
2011-12-12 21:49:03,199 INFO  [MediaServer] User home dir: /usr/share/serviio
2011-12-12 21:49:03,199 INFO  [MediaServer] Temp dir: /tmp
2011-12-12 21:49:03,199 INFO  [MediaServer] ------------------------------------------------------------------------
2011-12-12 21:49:03,268 INFO  [RestletServer] Starting Restlet server exposed on 192.168.1.2:23423
2011-12-12 21:49:03,298 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2011-12-12 21:49:04,052 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2011-12-12 21:49:04,317 INFO  [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
2011-12-12 21:49:04,425 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (B-series)' (id=2)
2011-12-12 21:49:04,482 INFO  [ProfilesDefinitionParser] Added profile 'XBox 360' (id=3)
2011-12-12 21:49:04,536 INFO  [ProfilesDefinitionParser] Added profile 'Playstation 3' (id=4)
2011-12-12 21:49:04,592 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (A-series)' (id=5)
2011-12-12 21:49:04,635 INFO  [ProfilesDefinitionParser] Added profile 'DirecTV HD-DVR' (id=6)
2011-12-12 21:49:04,746 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV / player (C/D-series)' (id=7)
2011-12-12 21:49:04,763 INFO  [ProfilesDefinitionParser] Added profile 'LG TV / player' (id=8)
2011-12-12 21:49:04,911 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV' (id=9)
2011-12-12 21:49:05,133 INFO  [ProfilesDefinitionParser] Added profile 'Sony BD Player' (id=10)
2011-12-12 21:49:05,221 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera' (id=12)
2011-12-12 21:49:05,304 INFO  [ProfilesDefinitionParser] Added profile 'Toshiba REGZA' (id=13)
2011-12-12 21:49:05,328 INFO  [ProfilesDefinitionParser] Added profile 'WDTV Live' (id=14)
2011-12-12 21:49:05,341 INFO  [ProfilesDefinitionParser] Added profile 'LaCie LaCinema Media Player' (id=15)
2011-12-12 21:49:05,383 INFO  [ProfilesDefinitionParser] Added profile 'Manta WIFI Centre' (id=16)
2011-12-12 21:49:05,402 INFO  [ProfilesDefinitionParser] Added profile 'Pure Flow' (id=17)
2011-12-12 21:49:05,447 INFO  [ProfilesDefinitionParser] Added profile 'Sharp Aquos' (id=18)
2011-12-12 21:49:05,602 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV 2011' (id=19)
2011-12-12 21:49:05,741 INFO  [ProfilesDefinitionParser] Added profile 'Sony SMP-N100' (id=20)
2011-12-12 21:49:05,752 INFO  [CompositeCacheManager] Creating cache manager from config file: /cache.ccf
2011-12-12 21:49:05,755 INFO  [ThreadPoolManager] thread_pool.default PoolConfiguration = useBoundary = [true] boundarySize = [2000] maximumPoolSize = [150] minimumPoolSize = [4] keepAliveTime = [300000] whenBlockedPolicy = [RUN] startUpSize = [4]
2011-12-12 21:49:05,757 INFO  [CompositeCacheConfigurator] Setting default auxiliaries to null
2011-12-12 21:49:05,757 INFO  [CompositeCacheConfigurator] No special CompositeCacheAttributes class defined for key [jcs.default.cacheattributes], using default class.
2011-12-12 21:49:05,758 INFO  [CompositeCacheConfigurator] setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 100, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-12-12 21:49:05,758 INFO  [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.default.elementattributes], using default class.
2011-12-12 21:49:05,758 INFO  [CompositeCacheConfigurator] setting defaultElementAttributes to [ IS_LATERAL = true, IS_SPOOL = true, IS_REMOTE = true, IS_ETERNAL = true, MaxLifeSeconds = -1, IdleTime = -1, CreateTime = 1323722945758, LastAccessTime = 1323722945758, getTimeToLiveSeconds() = -1, createTime = 1323722945758 ]
2011-12-12 21:49:05,776 INFO  [LRUMemoryCache] initialized LRUMemoryCache for thumbnails
2011-12-12 21:49:05,776 INFO  [CompositeCache] Constructed cache with name [thumbnails] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-12-12 21:49:05,777 INFO  [LRUMemoryCache] initialized LRUMemoryCache for online_feeds
2011-12-12 21:49:05,777 INFO  [CompositeCache] Constructed cache with name [online_feeds] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-12-12 21:49:05,777 INFO  [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.region.local_default.elementattributes], using default class.
2011-12-12 21:49:05,777 INFO  [LRUMemoryCache] initialized LRUMemoryCache for local_default
2011-12-12 21:49:05,777 INFO  [CompositeCache] Constructed cache with name [local_default] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-12-12 21:49:05,777 INFO  [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.region.local_resetafterplay.elementattributes], using default class.
2011-12-12 21:49:05,777 INFO  [LRUMemoryCache] initialized LRUMemoryCache for local_resetafterplay
2011-12-12 21:49:05,777 INFO  [CompositeCache] Constructed cache with name [local_resetafterplay] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-12-12 21:49:05,778 INFO  [CompositeCacheConfigurator] Parsed regions [thumbnails, online_feeds, local_default, local_resetafterplay]
2011-12-12 21:49:05,778 INFO  [CompositeCacheConfigurator] Finished configuration in 22 ms.
2011-12-12 21:49:05,802 INFO  [WebServer] Socket buffer set to 65535 bytes
2011-12-12 21:49:05,802 INFO  [Device] Created UPnP Device with UUID: 83403509-60a4-3ac0-bae1-94340baf2344, bound address: 192.168.1.2
2011-12-12 21:49:05,820 INFO  [PluginCompilerThread] Looking for plugins at /usr/share/serviio/plugins
2011-12-12 21:49:05,820 INFO  [PluginCompilerThread] Started looking for plugins
2011-12-12 21:49:05,826 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2011-12-12 21:49:05,826 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: null
java.lang.NullPointerException
   at org.serviio.external.ProcessExecutor.closeStreams(ProcessExecutor.java:273)
   at org.serviio.external.ProcessExecutor.run(ProcessExecutor.java:162)
   at org.serviio.external.FFMPEGWrapper.ffmpegPresent(FFMPEGWrapper.java:109)
   at org.serviio.MediaServer.main(MediaServer.java:112)
2011-12-12 21:49:05,830 INFO  [PluginCompilerThread] Finished looking for plugins
2011-12-12 21:49:05,932 INFO  [DatabaseManager] Shutting down database
2011-12-12 21:49:06,077 INFO  [AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data
Last edited by Syntax on Tue Jan 17, 2012 8:49 pm, edited 1 time in total.
<<

Syntax

Serviio newbie

Posts: 9

Joined: Wed Sep 14, 2011 9:41 pm

Post Sat Dec 17, 2011 5:44 pm

Re: ClearOS; Cannot run program ffmpeg

Anybody any suggestions?
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Sat Dec 17, 2011 8:55 pm

Re: ClearOS; Cannot run program ffmpeg

Add serviio user to the permissions for ffmpeg directory and files.

Here is a link that talks about permissions.

http://www.elated.com/articles/understanding-permissions/

Here is a link to a youtube video that talks about permissions.

http://clearoslinux.cyacomputerblog.com/2011/12/16/watch-users-groups-and-permissions-in-linux/
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

Syntax

Serviio newbie

Posts: 9

Joined: Wed Sep 14, 2011 9:41 pm

Post Mon Dec 19, 2011 6:13 pm

Re: ClearOS; Cannot run program ffmpeg

Thanks Mark!

After watching the video I suceeded in setting the rights of the ffmepg directory to serviio, Unfortenately without any results.
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Sat Dec 31, 2011 1:43 am

Re: ClearOS; Cannot run program ffmpeg

To me it looks like the ffmpeg binary is in the path for the root user, but not for the serviio daemon user.
su to that user and edit the file ~/.profile to add the ffmpeg folder to the path. Something like:
PATH=$PATH:/usr/local/ffmpegfolder

Without exiting back to the root user, check it by running:
source ~/.profile
ffmpeg


Does it find it ok?
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

Syntax

Serviio newbie

Posts: 9

Joined: Wed Sep 14, 2011 9:41 pm

Post Sat Dec 31, 2011 4:00 pm

Re: ClearOS; Cannot run program ffmpeg

patters wrote:To me it looks like the ffmpeg binary is in the path for the root user, but not for the serviio daemon user.
su to that user and edit the file ~/.profile to add the ffmpeg folder to the path. Something like:
PATH=$PATH:/usr/local/ffmpegfolder

Without exiting back to the root user, check it by running:
source ~/.profile
ffmpeg


Does it find it ok?



I used a symbolic link to solve this see below

  Code:
ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg


Now I get other errors :(

See serviio log here. Hopefully some of you out there has a clue to get a serviio service started and working! BTW best wishes for 2012 (You know my wish already :D )

  Code:
2011-12-31 16:48:34,505 INFO  [MediaServer] ------------------------------------------------------------------------
2011-12-31 16:48:34,505 INFO  [MediaServer] Serviio DLNA media streaming server v 0.6.0.1 (rev. 8e4ee98bff12)
2011-12-31 16:48:34,505 INFO  [MediaServer] Petr Nejedly 2009-2011
2011-12-31 16:48:34,505 INFO  [MediaServer] http://www.serviio.org
2011-12-31 16:48:34,505 INFO  [MediaServer]
2011-12-31 16:48:34,506 INFO  [MediaServer] Java 1.6.0_29-Sun Microsystems Inc.
2011-12-31 16:48:34,506 INFO  [MediaServer] OS Linux i386 2.6.18-194.8.1.v5PAE
2011-12-31 16:48:34,506 INFO  [MediaServer] File encoding: UTF-8
2011-12-31 16:48:34,506 INFO  [MediaServer] Headless mode enabled: true
2011-12-31 16:48:34,506 INFO  [MediaServer] User home dir: /usr/share/serviio
2011-12-31 16:48:34,506 INFO  [MediaServer] Temp dir: /tmp
2011-12-31 16:48:34,506 INFO  [MediaServer] ------------------------------------------------------------------------
2011-12-31 16:48:34,592 INFO  [RestletServer] Starting Restlet server exposed on 192.168.1.2:23423
2011-12-31 16:48:34,622 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2011-12-31 16:48:35,364 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2011-12-31 16:48:35,631 INFO  [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
2011-12-31 16:48:35,738 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (B-series)' (id=2)
2011-12-31 16:48:35,796 INFO  [ProfilesDefinitionParser] Added profile 'XBox 360' (id=3)
2011-12-31 16:48:35,850 INFO  [ProfilesDefinitionParser] Added profile 'Playstation 3' (id=4)
2011-12-31 16:48:35,906 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (A-series)' (id=5)
2011-12-31 16:48:35,949 INFO  [ProfilesDefinitionParser] Added profile 'DirecTV HD-DVR' (id=6)
2011-12-31 16:48:36,052 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV / player (C/D-series)' (id=7)
2011-12-31 16:48:36,070 INFO  [ProfilesDefinitionParser] Added profile 'LG TV / player' (id=8)
2011-12-31 16:48:36,219 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV' (id=9)
2011-12-31 16:48:36,441 INFO  [ProfilesDefinitionParser] Added profile 'Sony BD Player' (id=10)
2011-12-31 16:48:36,530 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera' (id=12)
2011-12-31 16:48:36,613 INFO  [ProfilesDefinitionParser] Added profile 'Toshiba REGZA' (id=13)
2011-12-31 16:48:36,637 INFO  [ProfilesDefinitionParser] Added profile 'WDTV Live' (id=14)
2011-12-31 16:48:36,651 INFO  [ProfilesDefinitionParser] Added profile 'LaCie LaCinema Media Player' (id=15)
2011-12-31 16:48:36,692 INFO  [ProfilesDefinitionParser] Added profile 'Manta WIFI Centre' (id=16)
2011-12-31 16:48:36,712 INFO  [ProfilesDefinitionParser] Added profile 'Pure Flow' (id=17)
2011-12-31 16:48:36,756 INFO  [ProfilesDefinitionParser] Added profile 'Sharp Aquos' (id=18)
2011-12-31 16:48:36,912 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV 2011' (id=19)
2011-12-31 16:48:37,052 INFO  [ProfilesDefinitionParser] Added profile 'Sony SMP-N100' (id=20)
2011-12-31 16:48:37,063 INFO  [CompositeCacheManager] Creating cache manager from config file: /cache.ccf
2011-12-31 16:48:37,066 INFO  [ThreadPoolManager] thread_pool.default PoolConfiguration = useBoundary = [true] boundarySize = [2000] maximumPoolSize = [150] minimumPoolSize = [4] keepAliveTime = [300000] whenBlockedPolicy = [RUN] startUpSize = [4]
2011-12-31 16:48:37,068 INFO  [CompositeCacheConfigurator] Setting default auxiliaries to null
2011-12-31 16:48:37,068 INFO  [CompositeCacheConfigurator] No special CompositeCacheAttributes class defined for key [jcs.default.cacheattributes], using default class.
2011-12-31 16:48:37,068 INFO  [CompositeCacheConfigurator] setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 100, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-12-31 16:48:37,068 INFO  [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.default.elementattributes], using default class.
2011-12-31 16:48:37,069 INFO  [CompositeCacheConfigurator] setting defaultElementAttributes to [ IS_LATERAL = true, IS_SPOOL = true, IS_REMOTE = true, IS_ETERNAL = true, MaxLifeSeconds = -1, IdleTime = -1, CreateTime = 1325346517069, LastAccessTime = 1325346517069, getTimeToLiveSeconds() = -1, createTime = 1325346517069 ]
2011-12-31 16:48:37,087 INFO  [LRUMemoryCache] initialized LRUMemoryCache for thumbnails
2011-12-31 16:48:37,087 INFO  [CompositeCache] Constructed cache with name [thumbnails] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-12-31 16:48:37,088 INFO  [LRUMemoryCache] initialized LRUMemoryCache for online_feeds
2011-12-31 16:48:37,088 INFO  [CompositeCache] Constructed cache with name [online_feeds] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-12-31 16:48:37,088 INFO  [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.region.local_default.elementattributes], using default class.
2011-12-31 16:48:37,088 INFO  [LRUMemoryCache] initialized LRUMemoryCache for local_default
2011-12-31 16:48:37,088 INFO  [CompositeCache] Constructed cache with name [local_default] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-12-31 16:48:37,088 INFO  [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.region.local_resetafterplay.elementattributes], using default class.
2011-12-31 16:48:37,088 INFO  [LRUMemoryCache] initialized LRUMemoryCache for local_resetafterplay
2011-12-31 16:48:37,089 INFO  [CompositeCache] Constructed cache with name [local_resetafterplay] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-12-31 16:48:37,089 INFO  [CompositeCacheConfigurator] Parsed regions [thumbnails, online_feeds, local_default, local_resetafterplay]
2011-12-31 16:48:37,089 INFO  [CompositeCacheConfigurator] Finished configuration in 22 ms.
2011-12-31 16:48:37,114 INFO  [WebServer] Socket buffer set to 65535 bytes
2011-12-31 16:48:37,114 INFO  [Device] Created UPnP Device with UUID: 83403509-60a4-3ac0-bae1-94340baf2344, bound address: 192.168.1.2
2011-12-31 16:48:37,133 INFO  [PluginCompilerThread] Looking for plugins at /usr/share/serviio/plugins
2011-12-31 16:48:37,133 INFO  [PluginCompilerThread] Started looking for plugins
2011-12-31 16:48:37,146 WARN  [FFMPEGWrapper] FFmpeg is not compiled with librtmp support, RTMP streaming will not work.
2011-12-31 16:48:37,149 INFO  [AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data
2011-12-31 16:48:37,164 INFO  [WebServer] WebServer starting on port 8895
2011-12-31 16:48:37,167 INFO  [EventSubscriptionExpirationChecker] Starting EventSubscriptionExpirationChecker
2011-12-31 16:48:37,168 INFO  [EventDispatcher] Starting EventDispatcher
2011-12-31 16:48:37,169 INFO  [DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface eth0 (eth0) and address 192.168.1.2, timeout = 0
2011-12-31 16:48:37,170 INFO  [DiscoveryAdvertisementNotifier] Starting DiscoveryAdvertisementNotifier
2011-12-31 16:48:37,171 INFO  [RendererSearchSender] Searching for Renderer devices
2011-12-31 16:48:37,171 INFO  [RendererExpirationChecker] Starting RendererExpirationChecker
2011-12-31 16:49:03,187 INFO  [FeedUpdaterThread] Started looking for information about online feeds
2011-12-31 16:49:03,193 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2011-12-31 16:49:03,205 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2011-12-31 16:49:08,195 WARN  [DBConnectionPool] Can't create a new connection for jdbc:derby:db;create=true
java.sql.SQLException: Failed to start database 'db' with class loader sun.misc.Launcher$AppClassLoader@45a877, see the next exception for details.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
   at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
   at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at org.serviio.db.DBConnectionPool.newConnection(DBConnetionPool.java:186)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:123)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:113)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:113)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:113)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:149)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:66)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:59)
   at org.serviio.library.dao.MediaItemDAOImpl.getFile(MediaItemDAOImpl.java:130)
   at org.serviio.library.local.service.MediaService.getFile(MediaService.java:45)
   at org.serviio.library.local.metadata.LibraryUpdatesCheckerThread.searchForRemovedAndUpdatedFiles(LibraryUpdatesCheckerThread.java:162)
   at org.serviio.library.local.metadata.LibraryUpdatesCheckerThread.run(LibraryUpdatesCheckerThread.java:96)
Caused by: java.sql.SQLException: Failed to start database 'db' with class loader sun.misc.Launcher$AppClassLoader@45a877, see the next exception for details.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
   ... 24 more
Caused by: java.sql.SQLException: Derby system shutdown.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
   at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
   ... 21 more
Caused by: ERROR XJ015: Derby system shutdown.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
   at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
   ... 21 more
2011-12-31 16:49:08,230 WARN  [LibraryAdditionsCheckerThread] An error occured while scanning for item to be added, will continue
org.serviio.db.dao.PersistenceException: Cannot mark Repository with id 2 as scanned
   at org.serviio.library.dao.RepositoryDAOImpl.markRepositoryAsScanned(RepositoryDAOImpl.java:159)
   at org.serviio.library.local.service.RepositoryService.markRepositoryAsScanned(RepositoryService.java:108)
   at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.run(LibraryAdditionsCheckerThread.java:79)
Caused by: java.sql.SQLException: Cannot log transaction changes, maybe trying to write to a read only database.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
   at org.serviio.library.dao.RepositoryDAOImpl.markRepositoryAsScanned(RepositoryDAOImpl.java:157)
   ... 2 more
Caused by: java.sql.SQLException: Cannot log transaction changes, maybe trying to write to a read only database.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
   ... 12 more
Caused by: ERROR XSTB2: Cannot log transaction changes, maybe trying to write to a read only database.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.store.raw.xact.Xact.logAndDo(Unknown Source)
   at org.apache.derby.impl.store.raw.data.LoggableActions.doAction(Unknown Source)
   at org.apache.derby.impl.store.raw.data.LoggableActions.actionUpdate(Unknown Source)
   at org.apache.derby.impl.store.raw.data.StoredPage.doUpdateAtSlot(Unknown Source)
   at org.apache.derby.impl.store.raw.data.BasePage.updateAtSlot(Unknown Source)
   at org.apache.derby.impl.store.access.conglomerate.GenericConglomerateController.replace(Unknown Source)
   at org.apache.derby.impl.sql.execute.RowChangerImpl.updateRow(Unknown Source)
   at org.apache.derby.impl.sql.execute.UpdateResultSet.collectAffectedRows(Unknown Source)
   at org.apache.derby.impl.sql.execute.UpdateResultSet.open(Unknown Source)
   at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
   at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
   ... 6 more
2011-12-31 16:49:08,230 WARN  [DBConnectionPool] Can't create a new connection for jdbc:derby:db;create=true
java.sql.SQLException: No suitable driver found for jdbc:derby:db;create=true
   at java.sql.DriverManager.getConnection(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at org.serviio.db.DBConnectionPool.newConnection(DBConnetionPool.java:186)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:123)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:113)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:149)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:66)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:59)
   at org.serviio.library.dao.MediaItemDAOImpl.getFile(MediaItemDAOImpl.java:130)
   at org.serviio.library.local.service.MediaService.getFile(MediaService.java:45)
   at org.serviio.library.local.metadata.LibraryUpdatesCheckerThread.searchForRemovedAndUpdatedFiles(LibraryUpdatesCheckerThread.java:162)
   at org.serviio.library.local.metadata.LibraryUpdatesCheckerThread.run(LibraryUpdatesCheckerThread.java:96)
2011-12-31 16:49:08,258 WARN  [DBConnectionPool] Can't create a new connection for jdbc:derby:db;create=true
java.sql.SQLException: No suitable driver found for jdbc:derby:db;create=true
   at java.sql.DriverManager.getConnection(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at org.serviio.db.DBConnectionPool.newConnection(DBConnetionPool.java:186)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:123)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:149)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:66)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:59)
   at org.serviio.library.dao.MediaItemDAOImpl.isMediaItemPresent(MediaItemDAOImpl.java:62)
   at org.serviio.library.local.service.MediaService.isMediaPresentInLibrary(MediaService.java:37)
   at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:142)
   at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:128)
   at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.run(LibraryAdditionsCheckerThread.java:78)
2011-12-31 16:49:10,233 WARN  [LibraryUpdatesCheckerThread] An error occured while scanning for items to be removed or updated, will continue
java.lang.NullPointerException
   at org.serviio.library.dao.MediaItemDAOImpl.getFile(MediaItemDAOImpl.java:131)
   at org.serviio.library.local.service.MediaService.getFile(MediaService.java:45)
   at org.serviio.library.local.metadata.LibraryUpdatesCheckerThread.searchForRemovedAndUpdatedFiles(LibraryUpdatesCheckerThread.java:162)
   at org.serviio.library.local.metadata.LibraryUpdatesCheckerThread.run(LibraryUpdatesCheckerThread.java:96)
2011-12-31 16:49:10,233 WARN  [DBConnectionPool] Can't create a new connection for jdbc:derby:db;create=true
java.sql.SQLException: No suitable driver found for jdbc:derby:db;create=true
   at java.sql.DriverManager.getConnection(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at org.serviio.db.DBConnectionPool.newConnection(DBConnetionPool.java:186)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:123)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:149)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:66)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:59)
   at org.serviio.library.dao.MediaItemDAOImpl.isMediaItemPresent(MediaItemDAOImpl.java:62)
   at org.serviio.library.local.service.MediaService.isMediaPresentInLibrary(MediaService.java:37)
   at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:142)
   at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:128)
   at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.run(LibraryAdditionsCheckerThread.java:78)
<<

thejazzman

Streaming enthusiast

Posts: 30

Joined: Wed Dec 28, 2011 11:57 pm

Post Fri Jan 06, 2012 2:39 pm

Re: ClearOS; Cannot run program ffmpeg

I had similar on a different OS, I'm guessing that it's a permission issue to the db folder within serviio.

So it could be resolved with a chown serviio -R /usr/share/serviio
which I believe is the path to your serviio install.
<<

Syntax

Serviio newbie

Posts: 9

Joined: Wed Sep 14, 2011 9:41 pm

Post Tue Jan 17, 2012 8:48 pm

Re: ClearOS; Cannot run program ffmpeg

thejazzman wrote:I had similar on a different OS, I'm guessing that it's a permission issue to the db folder within serviio.

So it could be resolved with a chown serviio -R /usr/share/serviio
which I believe is the path to your serviio install.



Great its working now, still strange as I thought I had 'chowned' it earlier
Thx jazzman

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 17 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.