Page 1 of 1

"unable to access jarfile" error in 4.0

PostPosted: Thu Apr 29, 2010 3:30 am
by dobson
in trying a "fresh" install of the standalone version on a mac osx10.4 server (into /var/subsonic/standalone as described on the website), I came across the following error mentioned previously in this post:

Code: Select all
unable to access jarfile subsonic-booter-jar-with-dependencies.jar


that error was the only thing listed in the subsonic_sh.log.
and the terminal gave the following message upon execution of the subsonic.sh script:
Code: Select all
readlink: illegal option --f
usage: readlink [-n] [file ...]
usage: dirname path
Started Subsonic [PID 6672, /var/subsonic/subsonic_sh.log]

but subsonic did not actually start.
I went into the new (4.0b1/4.0final) subsonic.sh script to see what had changed and the only major thing I found was the following code:
Code: Select all
cd $(dirname $0)
if [ -e /bin/readlink ] || [ -e /usr/bin/readlink ]; then
    cd $(dirname $(readlink -f $0))
fi

which took the place of the previous (3.9) code:
Code: Select all
cd 'dirname $0'


so I replaced that one section of the new script with the previous code and tried it again. everything started fine. . .

I mentioned this mainly in case anyone else has the same problem, and also for Sindre: i'm not sure what the new "cd $(dirname $0) . . . " section is meant to accomplish, but somehow it's preventing me from starting up subsonic. . . I'd be curious to hear an explanation of you have one! otherwise, the workaround seems to work fine. . .

PostPosted: Thu Apr 29, 2010 3:57 am
by dobson
correction!

the code from the 3.9 startup script is actually:
Code: Select all
cd `dirname $0`

and NOT
Code: Select all
cd 'dirname $0'

(note the slanted single quote in the correct version)

also: i should point out that I have no idea what I'm talking about... I just know that it seemed to fix something, I have no idea why. would love to hear any thoughts.

PostPosted: Fri May 14, 2010 3:53 pm
by jeremy
thx for the info,
the trick also worked for me :D

PostPosted: Sat May 15, 2010 2:21 pm
by dobson
glad it helped... Sindre, can you enlighten us on what might be going on here?

PostPosted: Wed May 19, 2010 8:23 am
by jeremy
dobson, what kind of OS are you running ?
im running freenas 0.7

PostPosted: Wed May 19, 2010 2:35 pm
by dobson
i get the error on both my mac os x 10.4.9 server, as well as a 10.6.3 macbook pro (using the standalone installation...)

PostPosted: Mon Jul 19, 2010 9:18 pm
by removablebrain
thank you VERY much for this. Working great now thanks to your find!

10.4.11 standalone

PostPosted: Sun Sep 26, 2010 4:29 pm
by jasonkendall
I have tried this with no luck. I still get the error:
Unable to access jarfile subsonic-booter-jar-with-dependencies.jar

Any other suggestions?

PostPosted: Mon Sep 27, 2010 6:09 am
by dobson
what operating system and subsonic version are you using?

just to be sure... you did update your subsonic.sh startup script with the
replacement as mentioned in the second post here (using the angled single quotes above the tab key) right?

Code: Select all
cd `dirname $0`

PostPosted: Tue Sep 28, 2010 1:35 pm
by eRJe
Hi,

To solve your problem with
Code: Select all
Unable to access jarfile subsonic-booter-jar-with-dependencies.jar

or
Code: Select all
dirname: missing operand
Try `dirname --help' for more information.


please see my other post http://forum.subsonic.org/forum/viewtopic.php?p=15276#15276