Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Twonky does not start (Go File)

Featured Replies

Hi,

 

i have installed the Unraid Twonky Media Server.

I have copy this line in my Config Go File, but the Twonky program does not start until i manuel write the same line with telnet at my server.

Why does Twonky does not start automatic?

 

#!/bin/bash

# Start the Management Utility

/usr/local/sbin/emhttp &

/boot/unmenu/uu

/boot/twonkymedia/twonkymedia

 

Unmenu starts but Twonkey does not start :(

 

Second problem: After a restart i lost all configuration, so i copy the var/twonkymedia to a new user share and edit the ini (twonkymedia) and the go (Unraid config) file, but every restart i lost it again.

 

/boot/twonkymedia/twonkymedia -inifile /boot/twonkymedia/twonkymedia-server.ini

 

With this line, Twonky also does not start automatic

  • Author

This is my twonkymedia-server.ini file:

 

#! TwonkyVision ini file / charset UTF-16

#! change settings by commandline or by editing this file

#! version 5.1

[main]

# accessuser

accessuser=

 

# accesspwd

accesspwd=

 

# autotree

autotree=3

 

# cachedir

cachedir=/mnt/user/twonky/twonkymedia/db/cache

 

# cachemaxsize

cachemaxsize=

 

# Registration key

cdkey=xxx

 

# clearclientsonrestart

clearclientsonrestart=0

 

# Enable sharing for new media receivers automatically

clientautoenable=1

 

# codepage

codepage=932

 

# Compilation directories

compilationsdir=Compilations,Sampler

 

# contentbase

contentbase=/

 

# Content Locations

contentdir=+A|/

 

# dbdir

dbdir=/mnt/user/twonky/twonkymedia

 

# dyndns

dyndns=

 

# enableweb

enableweb=2

 

# followlinks

followlinks=0

 

# Server name

friendlyname=

 

# HTTP Server Port

httpport=

 

# httpremoteport

httpremoteport=

 

# ignoredir

ignoredir=AppleDouble,AppleDB,AppleDesktop,TemporaryItems

 

# ip

ip=

 

# ituneslib

ituneslib=

 

# Language

language=en

 

# rtpport

rtpport=

 

# Restart on NIC changes

nicrestart=0

 

# platform

platform=i386_341_225

 

# Rescan in minutes

scantime=-1

 

# startupmb

startupmb=1

 

# streambuffer

streambuffer=16384

 

# enable upload

uploadenabled=1

 

# uploadmusicdir

uploadmusicdir=/mnt/user/twonky/twonkymedia/twonkymedia-server-uploaded-music

 

# uploadpicturedir

uploadpicturedir=/mnt/user/twonky/twonkymedia/twonkymedia-server-uploaded-pictures

 

# uploadvideodir

uploadvideodir=/mnt/user/twonky/twonkymedia/twonkymedia-server-uploaded-videos

 

# onlinedir

onlinedir=/mnt/user/twonky/twonkymedia/twonkymedia-server-online-data

 

# v

v=0

 

# webnodes

webnodes=MPV

 

# webpicturenum

webpicturenum=0

 

# mediastatisticsenabled

mediastatisticsenabled=0

 

# mediastatisticsdir

mediastatisticsdir=/mnt/user/twonky/twonkymedia/media-statistics/

 

# defaultview

defaultview=advanceddefault

 

# bgtrans

bgtrans=

 

# bgtransdir

bgtransdir=/mnt/user/twonky/twonkymedia/twonkymedia-server-transcoding-data

 

# bgtransrpcport

bgtransrpcport=9030

 

# bgtransmaxsizemb

bgtransmaxsizemb=10000

 

# rmdrives

rmdrives=

 

# rmhomedrive

rmhomedrive=/mnt/user/twonky/twonkymedia

 

# Auto-share removable media

rmautoshare=0

 

# ssdpttl

ssdpttl=4

 

# checkexternalitems

checkexternalitems=

 

# maxitems

maxitems=0

 

# suppressmenu

suppressmenu=

 

 

 

It is probably installed on a user share or mounted disk, and during the go scripts execution, the disks ar not mounted yet.

 

If you can find a twonky plugin, it should work, because plugins are started when the disks are mounted.

  • Author

it is installed at my flash usb, which has the unraid software on it.

Are you sure?

/mnt/user/twonky/

Looks like a shared folder from the array to me.

Are you sure?

/mnt/user/twonky/

Looks like a shared folder from the array to me.

 

Not having used twonk, I agree with jowi.  The install file appears to be stored on your boot media, but directory you're running twonky from appears to be a user share.  You could try adding the following to your go file before /boot/twonkymedia/twonkymedia:

 

sleep 120

 

This will cause the file to wait 2 minutes (until, hopefully, your user shares are mounted), and then launch twonky

 

 

  • 2 weeks later...

That's fine.  The var/ location gets wiped out during a reboot, it's stored in memory.

 

The issue you're likely running into is that the share location isn't mounted when the software tries to start.  Putting the sleep 120 command in before running the command to start Twonky should provide enough time for the array to start.

 

 

That's fine.  The var/ location gets wiped out during a reboot, it's stored in memory.

 

The issue you're likely running into is that the share location isn't mounted when the software tries to start.  Putting the sleep 120 command in before running the command to start Twonky should provide enough time for the array to start.

 

My go script, as it seems relevant:-

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &

#Load unmenu (Works with or without array being up)
/boot/unmenu/uu


#Wait until array is started
until `cat /proc/mdcmd 2>/dev/null | grep -q -a "STARTED" ` ; do echo ">>>waiting..." ; sleep 1 ; done ; echo ">>>STARTED."

#Install whatever is in "Packages", I personally have nothing but I'd rather leave it than fuck something up
cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c 
#Install plex
installpkg /boot/extras/PlexMediaServer*.txz
#Email notifying me that the server is up (Takes forever to boot, I don't feel like refreshing \\tower\ this whole time):-
echo -e "Subject: unRAID Status Report: Boot email #1\n\nThis message is a status update for your unraid box" | ssmtp -d root #Also too lazy to work out how to acquire the name of the box, like the email status plugin.
#Wait a bit, plex is a bit buggy
sleep 30s
#Second email, just in case for whatever reason the below items hang *cough* plex *cough*
echo -e "Subject: unRAID Status Report: Boot email #2\n\nThis message is a status update for your unraid box" | ssmtp -d root
#Launch plex
/etc/rc.d/rc.plexmediaserver start

#Copy WOL
cp "/mnt/user/Nicks files/WOL.py" "/tmp/WOL.py"

#Allow it to be executed and read
chmod 555 "/tmp/WOL.py"

#Launch WOL
screen -dms "WOL" /usr/bin/python /tmp/WOL.py

#Last email

 

If you see any html tagging in there, tell me, when copying it via my VNC client to my laptop it randomly dumped loads of <br>s and encoding values to the document, I think I got read of them all.

 

EDIT: Wow... I just realized some why the last email never comes, I've been thinking all this time that screen was hanging for some reason...

 

...Wow. brbwhileifixit

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.