Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I installed firefly the stand alone easy way.. followed step by step..
didn't login right away..
changed my password
added startup script to the fun_plug
restarted DNS-323
tried loggin in to x.x.x.x:3689 in firefox and nothing..
started up the regular dns-323 itunes server again..
tried loggin in to x.x.x.x:3689 in firefox and got a prompt for username and pswd, login didn't work.. with "admin" as username and pswd. Also tried other combinations.
Do I need to reinstall or what?
Thanks!
Offline
The FireFly takes some time to startup, maybe you didn't wait long enough? I havn't personally tested the standalone fun_plug in the Wiki so I cannot say that it works. Anyway, as you later could connect on :3639 it sounds as if it is up and running.
Doublecheck your mt-daapd.conf, make sure you edit it with a proper editor (Notepad++) and saved in in 'unix format'.
Disable the start of mt-daapd in your fun_plug, reboot and telnet to the device and execute:
cd /mnt/HD_a2 export PATH=/mnt/HD_a2/lnx_bin:$PATH export LD_LIBRARY_PATH=/mnt/HD_a2/lnx_bin/lib /mnt/HD_a2/lnx_bin/mt-daapd -f -c /mnt/HD_a2/lnx_bin/mt-daapd.conf
Check the output for errors.
Connect to the FireFly using http:\\...:3639 and, monitor the output in the Telnet window.
If this works for you, enable the mt-daapd in the fun_plug and reboot. Wait, wait, wait and then connect.
If it doesn't work, start wit argument "-d 9" and post the output here....
HTH/Apan
Offline
Once its installed do I need to start itunes server through the dns-323 gui?
Or is firefly totally independent?
Thanks
Offline
Marco wrote:
Once its installed do I need to start itunes server through the dns-323 gui?
Or is firefly totally independent?
Thanks
No, iTunesServer and FireFly should not be running at the same time. FireFly is mt-daapd which is the iTunes Server of DNS-323, only a more recent version. Once you got FireFly running you can only access it through port :3639. If you shut down the server you need to reboot the DNS or re-start FireFly using telnet access.
So; disable iTunesServer, install FireFly and never ever start iTunesServer when FireFly is running....
/Apan
Offline
What happens if you start the dns itunes server after installing firefly?
Offline
This is what I have in my fun_plug.. anything wrong?
#
# Minimal fun_plug, only enables telnet
#
# Requires: /mnt/HD_a2/starttelnet.sh
# /mnt/HD_a2/lnx_bin/busybox3
# /mnt/HD_a2/lnx_bin/utelnetd
#
#
# Uncomment next line if you want "proof of concept".
# A filem dmesg.out will be located on \\NAS\HDD_1 or
# \\NAS\Volume_1 depnding on firmware version.
#
# dmesg > /mnt/HD_a2/dmesg.out
#
# Start the telnet deamon
#
/mnt/HD_a2/starttelnet.sh
#!/bin/sh
if [ -f /mnt/HD_a2/lnx_bin/mt-daapd ]
then
export PATH=/mnt/HD_a2/lnx_bin:$PATH
export LD_LIBRARY_PATH=/mnt/HD_a2/lnx_bin/lib
/mnt/HD_a2/lnx_bin/mt-daapd -c /mnt/HD_a2/lnx_bin/mt-daapd.conf
fi
Offline
Marco wrote:
What happens if you start the dns itunes server after installing firefly?
It'll fail. Starting both these applications will cause a race towards the port they're both listening to, 3639. I doubt anything will break, but two programs sharing the same resources will most likely cause odd things to happen.
Even using the iTunes WEB Interface from D-Link when FireFly is running will most likely give strange results - maybe even corruption.
So; stay off iTunes when FireFly is running.
Marco wrote:
This is what I have in my fun_plug.. anything wrong?
Looks almost ok, move your shebang (#!/bin/sh) to the first line of the file.
But first make sure you get it working from telnet with the -f option before putting this in the fun_plug.
/Apan
Last edited by Apskaft (2007-03-07 18:36:14)
Offline
I can get firefly running with telnet.. but not with the fun_plug.. I've tried moving the shebang to the top.. any clues?
Offline
Marco wrote:
I can get firefly running with telnet.. but not with the fun_plug.. I've tried moving the shebang to the top.. any clues?
Unfortunately, no. I'm not a regular FireFly user. I just compiled it for fun. I can take a look at it this weekend and my approach will be to add 'echo XXX >> file.log' here and there in the fun_plug. And, I'll also enable the log option in the mt-daapd.conf to see if it has some fruitful information. If logs are produced properly but information is not good enough, I'd enabled "-d 9" to get even better logging.
I really can't see why it shouldn't work in the fun_plug. All variables are exported properly so it should start....
edit: I'd also add a 'ps -edf >> ps.log' just before starting the mt-daapd just to see which other processes are running. Also, I'd try to switch to another port. It migh be so, shouldn't really, that (original) mt-daapd is started at boot regardless of setting - and later killed by webs. That would cause FireFly to not start properly since resources are busy.
/Apan
Last edited by Apskaft (2007-03-09 08:18:43)
Offline
Hello,
I have a similar problem:
- used the firelfy archive from the wiki
- followed all instructions (stopped iTunes server first)
- started firefly
=======================
/mnt/HD_a2 # /mnt/HD_a2/lnx_bin/mt-daapd -f -c /mnt/HD_a2/lnx_bin/mt-daapd.conf
Firefly Version svn-1498: Starting with debuglevel 2
Starting rendezvous daemon
Starting signal handler
Error: enum_begin failed (error 1): Misc SQL Error: no such table: config
Can't get db version. New database?
Initializing database
Error: enum_begin failed (error 1): ?
Error: enum_begin failed (error 1): ?
Full reload...
Starting mp3 scan
opendir: No such file or directory
Starting playlist scan
Updating playlists
Error scanning MP3 files: No such file or directory
Scanned 0 songs in 0 seconds
Starting web server from /mnt/HD_a2/lnx_bin/admin-root on port 3689
Registering rendezvous names
Serving 0 songs. Startup complete in 0 seconds
==========================
BUT I can't connect from my web brower. I am asked to enter user and pwd (using "admin" and "mt-daap"), but this fails (I tried also with "root'):
============================
Registering rendezvous names
Serving 0 songs. Startup complete in 0 seconds
Thread 0: Entering ws_returnerror (401: Unauthorized)
Thread 1: Entering ws_returnerror (401: Unauthorized)
Thread 2: Entering ws_returnerror (401: Unauthorized)
Thread 3: Entering ws_returnerror (401: Unauthorized)
Thread 4: Entering ws_returnerror (401: Unauthorized)
Thread 5: Entering ws_returnerror (401: Unauthorized)
......
============================
I have 4 mt-daap processes running. What's wrong?
============================
/ # ps -edf
PID USER COMMAND
1 root init
2 root [ksoftirqd/0]
3 root [events/0]
4 root [khelper]
5 root [kthread]
11 root [kblockd/0]
14 root [khubd]
50 root [pdflush]
51 root [pdflush]
53 root [aio/0]
52 root [kswapd0]
190 root [scsi_eh_0]
191 root [scsi_eh_1]
192 root [scsi_eh_2]
193 root [scsi_eh_3]
204 root [mtdblockd]
219 root [kcryptd/0]
220 root [kmirrord/0]
248 root [loop0]
755 root atd
758 root smbd -D
760 root nmbd -D
827 root [md0_raid1]
902 root chkbutton
909 root /sys/custom/upnp/upnp 0 D-Link Corporation http://www.redsonic.com D-Link Network Storage Enclosure DNS-323 103
918 root /web/webs
951 root op_server 3 3 3
954 root -sh
993 root lpd Waiting
1050 root crond
1070 root ftpd: accepting connections on port 21
1096 root /bin/sh /mnt/HD_a2/fun_plug.d/bin/fanctl.sh
1118 root /mnt/HD_a2/fun_plug.d/bin/rsync --daemon --config=/mnt/HD_a2/fun_plug.d/etc/rsyncd.conf
1140 root /mnt/HD_a2/fun_plug.d/bin/telnetd -l /mnt/HD_a2/fun_plug.d/bin/sh
1151 1 /mnt/HD_a2/fun_plug.d/bin/portmap
1155 1000 /mnt/HD_a2/fun_plug.d/bin/unfsd -e /mnt/HD_a2/fun_plug.d/etc/exports -d
1647 root /usr/sbin/sshd
2175 root /mnt/HD_a2/fun_plug.d/bin/sh
2331 root /mnt/HD_a2/lnx_bin/mt-daapd -f -c /mnt/HD_a2/lnx_bin/mt-daapd.conf
2332 root /mnt/HD_a2/lnx_bin/mt-daapd -f -c /mnt/HD_a2/lnx_bin/mt-daapd.conf
2333 root /mnt/HD_a2/lnx_bin/mt-daapd -f -c /mnt/HD_a2/lnx_bin/mt-daapd.conf
2334 root /mnt/HD_a2/lnx_bin/mt-daapd -f -c /mnt/HD_a2/lnx_bin/mt-daapd.conf
2677 root sleep 100
2706 root /mnt/HD_a2/fun_plug.d/bin/sh
2711 root ps -edf
/ #
============================
Thanks for your help
Offline
Oups, sorry. Missing "d" at the end of the password. OK now!
Offline
Hi! I really appreciate your work with Firefly Apskaft. Unfortunately, like Marco I can't get it to run automatically with the fun_plug lines.
Offline
Maxerl wrote:
Hi! I really appreciate your work with Firefly Apskaft. Unfortunately, like Marco I can't get it to run automatically with the fun_plug lines.
I had this happen to every time I used windows NotePad to edit my funplug. I think read more on the wiki and found out that was bad. So using the right editor and saving as a UNIX format (LF Only) made it work every time since then. I used the free version of EditPad (lite). Just figured you can double check the easy stuff
Offline