Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

yamj-rescan error message

Featured Replies

Hello

 

Two nights ago I switched over to unRAID Server Release 5.0-rc12 as I wanted to start switching out my 2TB drives with 3TB drives.  I followed the instructions at http://lime-technology.com/wiki/index.php?title=UnRAID_Server_Version_5.0-beta_Release_Notes Just about everything went smoothly, until I tried to update my yamj index file. 

 

When I type in yamj-rescan at the "root@Tower:~#" prompt, I get

Exception in thread "main" java.lang.NoClassDefFoundError: com/moviejukebox/Movi
eJukebox
Caused by: java.lang.ClassNotFoundException: com.moviejukebox.MovieJukebox
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: com.moviejukebox.MovieJukebox.  Program will exit
.

Running ls -al at the root@Tower:/mnt/user/Media#

total 11
drwxrwxrwx 1 nobody users  248 2013-05-25 16:35 ./
drwxrwxrwx 1 nobody users  152 2013-05-14 20:52 ../
drwxrwxrwx 1 nobody users   96 2013-05-15 19:34 Bluray\ Movies/
drwxrwxrwx 1 nobody users  168 2013-05-07 16:09 Bluray\ TV\ Series/
drwxrwxrwx 1 nobody users  144 2013-05-15 20:02 DVD\ Movies/
drwxrwxrwx 1 nobody users  544 2013-05-15 17:25 DVD\ TV\ Series/
drwxrwxrwx 1 nobody users 5896 2013-05-15 20:46 Jukebox/
drwxrwxrwx 1 nobody users   48 2013-05-25 16:53 YAMJ/
-rw-rw-rw- 1 nobody users  295 2013-05-15 20:46 index.htm

 

Checking inside the YAMJ folder and everything in there belongs to nobody also

total 3280
drwxrwxrwx 1 nobody users      48 2013-05-25 16:53 ./
drwxrwxrwx 1 nobody users     248 2013-05-25 16:35 ../
-rw-rw-rw- 1 nobody users     109 2013-05-25 16:48 .mjbignore
-rw-rw-rw- 1 nobody users     268 2013-05-25 16:48 MovieJukebox.bat
-rwxrwxrwx 1 nobody users     284 2013-05-25 16:48 MovieJukebox.sh*
-rw-rw-rw- 1 nobody users     322 2011-08-15 17:27 My_Library.xml
-rwxrwxrwx 1 nobody users     313 2011-08-15 18:17 My_YAMJ.sh*
-rw-rw-rw- 1 nobody users   11862 2013-05-25 16:48 README.TXT
-rw-rw-rw- 1 nobody users    3260 2013-05-25 16:48 categories-default.xml
-rw-rw-rw- 1 nobody users    1089 2013-05-25 16:48 certification-default.xml
-rw-rw-rw- 1 nobody users    2320 2013-05-25 16:48 example-library.xml
-rw-rw-rw- 1 nobody users  710531 2013-05-15 20:46 filecache.txt
-rw-rw-rw- 1 nobody users    1492 2013-05-25 16:48 genres-default.xml
drwxrwxrwx 1 nobody users    1928 2013-05-25 16:48 lib/
drwxrwxrwx 1 nobody users      48 2013-05-25 16:50 mediaInfo/
drwxrwxrwx 1 nobody users      48 2013-05-25 16:50 mkvToolnix/
-rw-rw-rw- 1 nobody users     162 2013-05-15 20:42 moviejukebox.ERROR.log
-rw-rw-rw- 1 nobody users 2474207 2013-05-15 20:46 moviejukebox.log
-rw-rw-rw- 1 nobody users    1330 2013-03-20 00:15 moviejukebox.properties
-rw-rw-rw- 1 nobody users    1025 2013-05-07 18:55 my-genres.xml
drwxrwxrwx 1 nobody users      48 2013-05-25 16:51 notices/
-rw-rw-rw- 1 nobody users    1416 2013-05-25 16:48 overlay-default.xml
-rw-rw-rw- 1 nobody users    1626 2013-05-25 16:48 playlist.xsl
drwxrwxrwx 1 nobody users     328 2013-05-25 16:48 properties/
-rw-rw-rw- 1 nobody users   85927 2013-05-25 16:48 release_notes.txt
-rw-rw-rw- 1 nobody users    1708 2013-05-25 16:48 rss.xsl
drwxrwxrwx 1 nobody users      48 2013-05-25 16:52 skins/
-rw-rw-rw- 1 nobody users      87 2013-05-25 16:48 version.txt
drwxrwxrwx 1 nobody users      48 2013-05-25 16:53 watched_installer/
root@Tower:/mnt/user/Media/YAMJ#

 

Checking on the /boot/extra directory give me this

total 34920
drwxrwxrwx 2 root root     4096 2013-05-25 17:08 ./
drwxrwxrwx 9 root root     4096 1969-12-31 16:00 ../
-rwxrwxrwx 1 root root 35741627 2009-03-03 06:48 jre-6u11-i586-1_unraid.tgz*
-rwxrwxrwx 1 root root      155 2010-05-25 13:28 yamj-go*
-rwxrwxrwx 1 root root       44 2011-08-15 11:23 yamj-rescan*

 

This is my yamj-go script.

#!/bin/bash
# Install Java and create a link to the 'rescan' command
installpkg /boot/extra/jre-6u11-i586-1_unraid.tgz
ln -s /boot/extra/yamj-rescan /root

 

This is my yamj-rescan script.

#!/bin/bash
/mnt/user/Media/YAMJ/My_YAMJ.sh

 

My_YAMJ.sh file

#/bin/bash

# Include path to Java binary directory
PATH="$PATH:/usr/lib/java/bin"

# Change into YAMJ directory and execute the MovieJukebox script
# The -o option specifies where to put the generated index.htm and Jukebox directory.
cd /mnt/user/Media/YAMJ ; ./MovieJukebox.sh My_Library.xml -o /mnt/user/Media

 

My_Library.xml

<libraries>

  <library>
    <path>/mnt/user/Media</path>
    <playerpath>file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/TOWER:Media</playerpath>
    <exclude name="YAMJ/, Jukebox/"/>
    <description></description>
    <prebuf></prebuf>
    <scrapeLibrary>true</scrapeLibrary>
  </library>

</libraries>

 

and my MovieJukebox.sh

#!/bin/sh
# Intel Mac users : needs java 1.6, set fullpath to java 1.6 instead of default java
# This path is usually : /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java

java -Xms256m -Xmx1024m -classpath .:./resources:./lib/* com.moviejukebox.MovieJukebox "$@"

 

I tried installing the latest beta version of YAMJ and the latest stable version of YAMJ and it doesn't seem to make a difference.  I've also tried the following command and the result is the same.  If anyone can help with this problem, I'd greatly appreciate it and thank you in advance.  :'(

 

su - nobody --shell=usr/bin/bash

then

/boot/extra/yamj-rescan

neither does

chown -h nobody:users /mnt/user/Movies/YAMJ/My_YAMJ.sh /boot/extra/yamj-rescan

That gives me a "Operation not permitted" response. Again, any help would be appreciated and thank you in advance.

syslog-2013-05-25.txt

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.