Unable to access jarfile

Need help? Post your questions here.

Moderator: moderators

Unable to access jarfile

Postby leeherron » Sun Sep 12, 2010 5:44 pm

Using standalone version of 4.1 (subsonic-4.1-standalone.tar.gz) on a non-x install of Slackware 13.0

Have 4.0.1 working fine, but when trying to launch 4.1, I get the following:

Result from command line:

dirname: missing operand
Try `dirname --help' for more information.
Started Subsonic [PID 3261, /var/subsonic/subsonic_sh.log]

Inside the log file:
"Unable to access jarfile subsonic-booter-jar-with-dependencies.jar"
leeherron
 
Posts: 7
Joined: Thu Sep 02, 2010 12:12 am

Postby Medic6666 » Tue Sep 14, 2010 12:16 am

I get the same error with Fedora. If anyone has a answer to this please let us know. ;0)
Medic6666
 
Posts: 7
Joined: Mon Feb 22, 2010 11:15 pm

Postby leeherron » Thu Sep 23, 2010 4:38 pm

Seriously, no one has an answer for this?

It is a big in the way subsonic.sh launches from the commandline in standalone mode. I managed to hack it to work, but the problem should be addressed.
leeherron
 
Posts: 7
Joined: Thu Sep 02, 2010 12:12 am

Postby Medic6666 » Fri Sep 24, 2010 8:00 pm

i went back to 4.01 which works for me.

what was the hack you did to 4.1 that got it too work. Just so I can give it a go
Medic6666
 
Posts: 7
Joined: Mon Feb 22, 2010 11:15 pm

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

Hi,

run into the same problem like you, to solve the following error:
Code: Select all
Unable to access jarfile subsonic-booter-jar-with-dependencies.jar

add the absolute path in subsonic.sh e.g.
Code: Select all
-jar /usr/share/subsonic/subsonic-booter-jar-with-dependencies.jar > ${LOG} 2>&1 &

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

can be solved by adding the option -f
Code: Select all
cd $(dirname $0)
if [ -e /bin/readlink ] || [ -e /usr/bin/readlink ]; then
    cd $(dirname $(readlink -f $0))
fi


Good luck,
eRJe
eRJe
 
Posts: 10
Joined: Tue Sep 28, 2010 1:20 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests