"unable to access jarfile" error in 4.0

General discussions.

Moderator: moderators

"unable to access jarfile" error in 4.0

Postby dobson » Thu Apr 29, 2010 3:30 am

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. . .
Last edited by dobson on Sat May 15, 2010 2:20 pm, edited 3 times in total.
dobson
 
Posts: 46
Joined: Tue Apr 14, 2009 10:10 pm

Postby dobson » Thu Apr 29, 2010 3:57 am

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.
dobson
 
Posts: 46
Joined: Tue Apr 14, 2009 10:10 pm

Postby jeremy » Fri May 14, 2010 3:53 pm

thx for the info,
the trick also worked for me :D
jeremy
 
Posts: 19
Joined: Fri May 14, 2010 10:45 am
Location: Holland

Postby dobson » Sat May 15, 2010 2:21 pm

glad it helped... Sindre, can you enlighten us on what might be going on here?
dobson
 
Posts: 46
Joined: Tue Apr 14, 2009 10:10 pm

Postby jeremy » Wed May 19, 2010 8:23 am

dobson, what kind of OS are you running ?
im running freenas 0.7
jeremy
 
Posts: 19
Joined: Fri May 14, 2010 10:45 am
Location: Holland

Postby dobson » Wed May 19, 2010 2:35 pm

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...)
dobson
 
Posts: 46
Joined: Tue Apr 14, 2009 10:10 pm

Postby removablebrain » Mon Jul 19, 2010 9:18 pm

thank you VERY much for this. Working great now thanks to your find!

10.4.11 standalone
removablebrain
 
Posts: 2
Joined: Sun Aug 09, 2009 5:09 pm

Postby jasonkendall » Sun Sep 26, 2010 4:29 pm

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?
jasonkendall
 
Posts: 5
Joined: Fri Sep 24, 2010 2:13 am

Postby dobson » Mon Sep 27, 2010 6:09 am

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`
dobson
 
Posts: 46
Joined: Tue Apr 14, 2009 10:10 pm

Postby eRJe » Tue Sep 28, 2010 1:35 pm

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
eRJe
 
Posts: 10
Joined: Tue Sep 28, 2010 1:20 pm


Return to General

Who is online

Users browsing this forum: No registered users and 12 guests