A seemingly simple problem under Debian

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
JimLill
Posts:10
Joined:Fri Jan 25, 2008 1:50 am
A seemingly simple problem under Debian

Post by JimLill » Sat May 07, 2011 2:22 pm

I have been running twonky for years and thought I knew the subtle stuff etc.

I had it running on a Unslung SLUG without issue

A few weeks ago, I also installed it under DD-WRT on a Asus router, no issues

I just switched the SLUG to Debian and now issues when trying to install/run twonky

It balks on finding/running /usr/local/twonkymedia/twonkymedia

It is 6.0.30 and I have tried all the obvious perms things and some of the hints posted on various forums. No go so far.

Maybe the solution is posted here, but I could not find anything via a search...

User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

Re: A seemingly simple problem under Debian

Post by parnott » Sat May 07, 2011 5:41 pm

JimLill wrote:I have been running twonky for years and thought I knew the subtle stuff etc.

I had it running on a Unslung SLUG without issue

A few weeks ago, I also installed it under DD-WRT on a Asus router, no issues

I just switched the SLUG to Debian and now issues when trying to install/run twonky

It balks on finding/running /usr/local/twonkymedia/twonkymedia

It is 6.0.30 and I have tried all the obvious perms things and some of the hints posted on various forums. No go so far.

Maybe the solution is posted here, but I could not find anything via a search...
What do you mean by 'it balks'? What error message do you get?

Also do this-
1) Login into the SLUG as root and do cd /usr/local/twonkymedia
2) Then do ls -alF
3) Then do ls -alF plugins

Post the output of the ls commands.
Last edited by parnott on Sat May 07, 2011 5:51 pm, edited 1 time in total.

JimLill
Posts:10
Joined:Fri Jan 25, 2008 1:50 am

Re: A seemingly simple problem under Debian

Post by JimLill » Sat May 07, 2011 5:46 pm

"It balks on finding/running /usr/local/twonkymedia/twonkymedia".............


SLUG:/usr/local/twonkymedia# /usr/local/twonkymedia/twonkymedia.sh start
Starting /usr/local/twonkymedia/twonkymedia ... /usr/local/twonkymedia/twonkymedia.sh:
line 91: /usr/local/twonkymedia/twonkymedia: No such file or directory

User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

Re: A seemingly simple problem under Debian

Post by parnott » Sat May 07, 2011 5:56 pm

JimLill wrote:"It balks on finding/running /usr/local/twonkymedia/twonkymedia".............


SLUG:/usr/local/twonkymedia# /usr/local/twonkymedia/twonkymedia.sh start
Starting /usr/local/twonkymedia/twonkymedia ... /usr/local/twonkymedia/twonkymedia.sh:
line 91: /usr/local/twonkymedia/twonkymedia: No such file or directory
Sorry I was updating my post.

Login into the SLUG as root then execute the commands-
1) cd /usr/local/twonkymedia
2) ls -alF

Post the output.

JimLill
Posts:10
Joined:Fri Jan 25, 2008 1:50 am

Re: A seemingly simple problem under Debian

Post by JimLill » Sat May 07, 2011 6:16 pm

SLUG:/usr/local/twonkymedia# ls -alF
total 1636
drwxr-sr-x 5 root staff 4096 May 7 12:49 ./
drwxrwsr-x 11 root staff 4096 May 7 06:32 ../
-rw-r--r-- 1 root staff 2768 Dec 3 13:07 Linux-HowTo.txt
-rw-r--r-- 1 root staff 48121 Dec 3 13:07 RevisionHistory
drwxr-sr-x 2 root staff 4096 May 7 08:56 cgi-bin/
-rw-r--r-- 1 root staff 193 Dec 3 13:07 initial_keystore.dat
drwxr-sr-x 2 root staff 4096 May 7 08:56 plugins/
-rw-r--r-- 1 root staff 421 Dec 3 13:07 radio.m3u
drwxr-xr-x 4 root staff 4096 May 7 08:56 resources/
-rwxr-xr-x 1 root staff 4788 Dec 3 18:00 twonkymedia*
-rw-r--r-- 1 root staff 153 Dec 3 23:28 twonkymedia-server-default.ini
-rwxr-xr-x 1 root staff 3775 May 7 08:59 twonkymedia.sh*
-rwxr-xr-x 1 root staff 1571772 Dec 3 18:00 twonkymediaserver*


and in plugins

SLUG:/usr/local/twonkymedia/plugins# ls -alF
total 476
drwxr-sr-x 2 root staff 4096 May 7 08:56 ./
drwxr-sr-x 5 root staff 4096 May 7 12:49 ../
-rwx------ 1 root staff 216032 Dec 3 23:07 itunes-import*
-rwx------ 1 root staff 180 Dec 3 23:07 itunes-import.plugin*
-rwx------ 1 root staff 242088 Dec 3 23:12 mediafusion-integration-plugin*
-rwx------ 1 root staff 233 Dec 3 23:12 mediafusion-integration.plugin*

User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

Re: A seemingly simple problem under Debian

Post by parnott » Sat May 07, 2011 6:34 pm

OK that mostly looks mostly right but there is something vaguely familiar about your problem. Unfortunately my Debian system failed recently from a bad power supply so I can't test anything.

Some things to try-
1) chown to root:root for all files in the twonky directory, if you are in the /usr/local/twonkymedia directory I think the command is-
chown -R root:root * (could be wrong though about where the -R goes and it could be -r)
2) In the /usr/local/twonkymedia/twonkymedia.sh script, immediately before twonkymedia is started add - cd /usr/local/twonkymedia

JimLill
Posts:10
Joined:Fri Jan 25, 2008 1:50 am

Re: A seemingly simple problem under Debian

Post by JimLill » Sat May 07, 2011 6:52 pm

variations of my attempts to date, those attempts nor your thoughts work...

and other people have posted about it, but no clear solution

User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

Re: A seemingly simple problem under Debian

Post by parnott » Sat May 07, 2011 7:33 pm

I do recall there is something different about Debian, but as I said I can't remember what. So try-

1) Move the Twonky startup script to the init.d directory
2) Remove the .sh extension. Some Linux variants handle scripts with a .sh extension differently.

JimLill
Posts:10
Joined:Fri Jan 25, 2008 1:50 am

Re: A seemingly simple problem under Debian

Post by JimLill » Sat May 07, 2011 7:35 pm

I wonder if I am running the correct binary (?)....

Debian on a NSLU2 would be:

Linux ARM little endian glibc 2.2.5

- or -

Linux ARM little endian uclibc 0.9.28

I tried both, both act the same

JimLill
Posts:10
Joined:Fri Jan 25, 2008 1:50 am

Re: A seemingly simple problem under Debian

Post by JimLill » Sat May 07, 2011 7:53 pm

surely this is a clue

SLUG:/usr/local/twonkymedia# /usr/local/twonkymedia/twonkymedia
-bash: /usr/local/twonkymedia/twonkymedia: No such file or directory
SLUG:/usr/local/twonkymedia#

but what it tells? ????

User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

Re: A seemingly simple problem under Debian

Post by parnott » Sat May 07, 2011 8:05 pm

Ah well. Then check that the required libraries are installed.

Also try changing to the Twonky directory and try executing Twonky directly (see you have already tried). If you still get the problem then maybe the correct library is not installed or ldconfig needs to be run.

JimLill
Posts:10
Joined:Fri Jan 25, 2008 1:50 am

Re: A seemingly simple problem under Debian

Post by JimLill » Sat May 07, 2011 10:00 pm


User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

Re: A seemingly simple problem under Debian

Post by parnott » Sat May 07, 2011 10:41 pm

JimLill wrote:this may be the answer....

http://www.twonkyforum.com/viewtopic.ph ... 086#p21995
You may be right. Can't hurt to give it a try.

Locked