• February 24, 2025, 04:19:13 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: UPNP server database file is constantly being deleted  (Read 3512 times)

infinitejones

  • Level 1 Member
  • *
  • Posts: 1
UPNP server database file is constantly being deleted
« on: January 07, 2012, 10:55:50 PM »

I got a DNS-320 a few days ago and I've transfered about 150gb of media files, and installed fun_plug 0.5.

Response times over my LAN for the web interface, Ajaxplorer, and file browsing via NFS and AFP, are really slow. (BTW I have one Mac laptop and one Linux machine - no Windows, hence no SAMBA).

In trying to diagnose it, I'm running htop via ssh on the server, and about once every three seconds a process starts which uses 100% CPU for a second or so - the command line is one of the following (apparently at random):

sh -c rm -rf /mnt/HD/HD_a2/.upnpav-db
sh -c rm -rf /mnt/HD/HD_a4/.upnpav-db
sh -c rm -rf /mnt/HD/HD_b4/.systemfile/.upnpav-db


So for some reason, that's removing a file, which I assume is a database being created by the UPNP server (which I did activate when I set up the server initially).

This makes sense, because when I go into the UPNP AV Server page of the web interface, the blue bar labelled "System is building up your media library" is constantly there, progressing about as far as 57% before dropping back down to 0% or 4% or something - roughly in time with the processes above hitting 100% CPU in htop.

Because the blue bar never reaches 100%, the controls for turning the server on or off, and/or changing the directories it scans, never appear. So I can't de-activate it from the web interface.

So - my questions are:

1) Why is that process constantly deleting the database(s) that UPNP AV Server creates?
2) More importantly - how can I stop the UPNP Server from the command line?

I'd rather just stop the server to see if that's what causing the slow response times, and worry about the deleting process later, but any insight on either would be much appreciated!

Thanks v much

UPDATE - I found /usr/local/modules/script/upnp_av.sh, which has two options (start or stop), so I did /usr/local/modules/script/upnp_av.sh stop and got a terminal message saying "Killed"

But... the deleting command is still appearing in htop, and within about five seconds, the UPNP server has started again. If I do another /usr/local/modules/script/upnp_av.sh stop, I get the Killed message again - even though I haven't done /usr/local/modules/scripts/upnp_av.sh start!

Any ideas?
« Last Edit: January 07, 2012, 11:04:06 PM by infinitejones »
Logged