Page 1 of 1
Twonky doesn't accept license
Posted: Thu Aug 11, 2011 7:44 pm
by lirumlarum
Hey guys,
I bought the Twonky Server License for Twonky Server 6.x.
When I try to activate the key, Twonky tells me that the server is registered.
But after every reboot Twonky tells me the "Your trial version has expired."
I installed this zip file twonkymedia-kirkwood-6.0.30.zip, on a Synology DS209 using the shell.
Can pleeeeaaasse anyone help me?

Re: Twonky doesn't accept license
Posted: Fri Aug 12, 2011 7:11 pm
by Twonky_Rick
Make sure your NAS has access to the Internet and your firewall is not blocking Twonky. Then restart your NAS. If that doesn't fix things, let me know.
- Rick
Re: Twonky doesn't accept license
Posted: Sat Aug 13, 2011 12:36 am
by parnott
Move the Twonky appdata directory out of /var. Chances are that the /var directory is recreated on each reboot. Most NAS devices do this. So all the Twonky operational data gets wiped out.
I don't know how Synology devices are configured, but if you search in these forums for appdata you will get some pretty good hints about what you need to change.
Re: Twonky doesn't accept license
Posted: Sat Aug 13, 2011 12:24 pm
by lirumlarum
[quote="TMM_Product_Manager"] If that doesn't fix things, let me know. [/quote]
Hi Rick,
thank you for your answer

But the NAS has a connection to the internet.
I downloaded the Twonky Package directly with the shell.
Maybe it is helpfull for you to know how I installed Twonky.
See this manual (it's german but you will understand the commands)
http://www.port11.de/content/twonkymedi ... stallieren
Regards, Alex
Re: Twonky doesn't accept license
Posted: Sat Aug 13, 2011 12:27 pm
by lirumlarum
[quote="parnott"]Move the Twonky appdata directory out of /var. Chances are that the /var directory is recreated on each reboot. Most NAS devices do this. [/quote]
Hi parnott,
thanks for your help

But the Twonky files are at /usr/local/Twonkymedia
Maybe the instruction I used to install Twonky may help you to figure out my problem.
See the link in my previous posting.
Regards, Alex
Re: Twonky doesn't accept license
Posted: Sat Aug 13, 2011 3:55 pm
by parnott
/usr/local/Twonkymedia is the install directory.
The first time Twonky Server is run it creates the appdata directory, typically it is /var/twonkymedia. This diectory contains the configuration files, the media database and various other directories. If the /var directory gets recreated when the NAS is rebooted then you loose the configuration files, etc.
The -appdata command option allows you to relocate where Twonky stores this data.
The easiest way to determine if the /var directory is being recreated on rebooting your NAS is-
1) Go to the Twonky configuration page and enter your license key and save the change.
2) Open a telnet or ssh session to your NAS and login as root.
3) Locate the twonky server config file with the command- find / -name twonkymedia-server.ini
4) Examine this file (cat or vi) and look for the cdkey= line, it should contain your license key, if it does not then there is something else going wrong (don't know what that could be)
5) Reboot your NAS
6) Examine the twonkymedia-server.ini file again, if the cdkey= line no longer contains your license key then the /var directory is being recreated when your NAS is rebooted and you must relocate the appdata to a permanent location.
Re: Twonky doesn't accept license
Posted: Thu Aug 18, 2011 7:54 am
by lirumlarum
Hi parnott,
thank your for your detailed instruction

I will try it on the weekend and give you feedback here
Where do I have to enter the -appdata command? In the shell?
Re: Twonky doesn't accept license
Posted: Thu Aug 18, 2011 9:42 pm
by parnott
You need to modify the Twonky startup script to include the -appdata switch on the command that runs Twonky.
From the link you provided the startup script for your NAS should be-
/usr/local/twonkymedia/twonkymedia.sh
In that file will be the command that starts Twonky server, something like-
/usr/local/twonkymedia/twonkymedia -D
You need to change this to include the -appdata option, e.g.-
/usr/local/twonkymedia/twonkymedia -D -appdata /my/path/to/twonky/appdata
Re: Twonky doesn't accept license
Posted: Sat Aug 20, 2011 10:56 am
by lirumlarum
Hi Parnott,
thank you soooooo much for your help!!
I will try your tipps in the next days and give you some feedback (I hope I can give you a positive feedback)
Regards, Alex