Setting up uPnP with minidlna on the freenas nightlies post-09/25/2011

Status
Not open for further replies.

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,970
Where are these builds located? I'd like to try a build with the MULTIMEDIA option already added. I used minidlna using the pkg_add method, but as described by other users it gets destroyed upon restart.

Thanks!
I haven't seen any produced. If you like I can setup a place for you to download a copy I compiled. It would be an iso file. Let me know and I can get it setup on a file server for you to download. It will be r8759 with MULTIMEDIA set. You will still have to do the other setup on the first page of this thread, should take only 10 minutes. I just started the build and I'm hoping it works well, meaning it actually runs okay, and I'd test out the build a little before I put it online.

-Mark
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,970
Built r8759 and am having a problem. It looks like minidlna was updated to start with and I can get minidlna to run however once I try to access the server from a media player the minidlna program exits with this message:
Code:
Nov 22 06:41:08 freenas kernel: pid 4230 (minidlna), uid 0: exited on signal 10
Also it looks like the user 'dlna' does not stick once added. I'll have to look into it more and I'll create another build in the meantime.
 
L

lrusak

Guest
Built r8759 and am having a problem. It looks like minidlna was updated to start with and I can get minidlna to run however once I try to access the server from a media player the minidlna program exits with this message:
Code:
Nov 22 06:41:08 freenas kernel: pid 4230 (minidlna), uid 0: exited on signal 10
Also it looks like the user 'dlna' does not stick once added. I'll have to look into it more and I'll create another build in the meantime.

Thanks for the heads up! I could compile the build myself but figured why bother if someone else has already done it! let me know what you find out. Thanks
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,970
This will take a bit of time to figure out what is going on. Whenever I try to use my Windows Media Player it causes the above error message. When I try to use my Sony PS3 it just doesn't show any movies but at least minidlna doesn't throw an error. Not sure what is going on. I'm sure I'll get some more time to fiddle with it during Thanksgiving.
 
G

gcooper

Guest
This will take a bit of time to figure out what is going on. Whenever I try to use my Windows Media Player it causes the above error message. When I try to use my Sony PS3 it just doesn't show any movies but at least minidlna doesn't throw an error. Not sure what is going on. I'm sure I'll get some more time to fiddle with it during Thanksgiving.

Signal 10 = SIGBUS.

1. Are you pkg_add'ing it?
2. How and when did you build the image?
3. Can you ktrace the process?
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,970
Signal 10 = SIGBUS.

1. Are you pkg_add'ing it?
2. How and when did you build the image?
3. Can you ktrace the process?
I did a normal build like I always do, nothing fancy at all, just add MULTIMEDIA which of course does the trick to adding the media files, and then the regular do_build with no parameters, and I started with an empty trunk directory so all new files would be pulled. As for when, well that was 11/22/2011 @ 5:29AM and is build version r8759M.

minidlna has changed, the minidlna.conf file is different as it now points to a media directory of /opt and the server name is commented out and there are some extra options listed at the bottom of the file. And I don't need to change the minidlna 'command_args' value either to get it to run. I did try to change the command_args to -R and even delete them.

I'm sure I could run ktrace if I knew how to. Please keep in mind I'm not a linux/BSD person and it's still a bit new to me. If you toss me a bone I'll give it a try and submit my results.

I didn't check to see if this is a newer version of minidlna but I suspect it's either that or I was thinking you made some alterations.

Last thing, I didn't have this issue with build 8720 but that version had other issues (now fixed) preventing it from being a good candidate to give a copy to to test with.

My next course of action is to build again from scratch and see if anything changes. It's possible there was something off just for that one build version (not holding my breath) causing the problem.

-Mark
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,970
Just to follow up, a newer version of minidlna is being used now which is causing the issues with trying to set it up to run properly. It always fails with a SIG 10 error when trying to use Windoze Media Player, it will run for a short time on my PS3 but then fails to list any media. I'm not too pleased with this newer version of minidlna. So how do I migrate it back to the previous version all while using the latest build? I'm going to try something, not sure it will work.
 
L

lrusak

Guest
I'll try to compile a build next week when I have some spare time. I'll try using my mac, iPhone, and xbmc htpc as UPNP players and see how it works and if I get the same error. Thanks for the info
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,970
There is a problem with the minidlna, it's not us here. Here is a reported problem which sounds like the problem I'm experiencing. There is a fix however I'm not certain yet how to implement it. Here is the bug report http://www.freebsd.org/cgi/query-pr.cgi?pr=162526

I'm trying to build an older version right now and maybe it will use the older minidlna file, maybe not.
 
G

gcooper

Guest
There is a problem with the minidlna, it's not us here. Here is a reported problem which sounds like the problem I'm experiencing. There is a fix however I'm not certain yet how to implement it. Here is the bug report http://www.freebsd.org/cgi/query-pr.cgi?pr=162526

I'm trying to build an older version right now and maybe it will use the older minidlna file, maybe not.

I'll fix it today. It's starting to irk me because the port doesn't even work out of the box on FreeBSD 9.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,970
I was going to copy the executable from a previous build over the new version and cross my fingers it worked. I'm not sure how to specify a single file to use the older version.
 
G

gcooper

Guest
I was going to copy the executable from a previous build over the new version and cross my fingers it worked. I'm not sure how to specify a single file to use the older version.

Hmm... if the older version works better, I could patch the port to the older version.

That being said, it would be nice if you could attach gdb to the minidlna process (running -d of course) with a DEBUG image to verify whether or not that's the exact spot where things are crashing. You'll need to execute minidlna like so:

gdb minidlna
set args <what you usually pass in to minidlna -- should just be the pidfile and maybe the conf file>
run

When minidlna stops with SIGBUS, type in bt, and paste the output here.
 

sonisame72

Dabbler
Joined
Aug 14, 2011
Messages
25
I downloaded and installed the latest nightly build of FreeNas 8.2(64 bit version from couple of days ago)

pw user add dlna works, but I dont see any file as /usr/local/etc/minidlna.conf

I am not sure if the latest nightly build have miniDLNA build or do I have to get a custom build as mentioned in the few posts ago?

Please help
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,970
I downloaded and installed the latest nightly build of FreeNas 8.2(64 bit version from couple of days ago)

pw user add dlna works, but I dont see any file as /usr/local/etc/minidlna.conf

I am not sure if the latest nightly build have miniDLNA build or do I have to get a custom build as mentioned in the few posts ago?

Please help

The nightly builds do not have the software built in, this is why you must build a version with MULTIMEDIA set.
 

sonisame72

Dabbler
Joined
Aug 14, 2011
Messages
25
Joe

r8759 with MULTIMEDIA built seem to have some small issues (reading your posts), Can I please get a link to download location for one try.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,970
Hmm... if the older version works better, I could patch the port to the older version.

That being said, it would be nice if you could attach gdb to the minidlna process (running -d of course) with a DEBUG image to verify whether or not that's the exact spot where things are crashing. You'll need to execute minidlna like so:

gdb minidlna
set args <what you usually pass in to minidlna -- should just be the pidfile and maybe the conf file>
run

When minidlna stops with SIGBUS, type in bt, and paste the output here.

I'm not blowing you off, I'm just having problems with my computer. I'm sure it's just me but it sure seems like the builds are getting larger with respect to the amount of space required to compile. I have just switched from a 15GB RAM drive to a SSD with a bit more room. Hopefully that will build the files.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,970
Joe

r8759 with MULTIMEDIA built seem to have some small issues (reading your posts), Can I please get a link to download location for one try.

I'm working on a new build but it's giving me a hard time. Here is one you can use, it works in general, well on my computer. You will still need to set up the file as indicated in posting #19 on page one of this thread. The download will be gone in 30 days which is good because we never want to use old software.

CAUTION *** This is experimental
http://ge.tt/97ITNXA
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,970
That being said, it would be nice if you could attach gdb to the minidlna process (running -d of course) with a DEBUG image to verify whether or not that's the exact spot where things are crashing. You'll need to execute minidlna like so:

gdb minidlna
set args <what you usually pass in to minidlna -- should just be the pidfile and maybe the conf file>
run

When minidlna stops with SIGBUS, type in bt, and paste the output here.

Did as requested, bt results in "No stack" message.
I used r8892 and the crappy 1.0.22,1 version is still there.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,970
Debug Info

Here is the info using '-d' to start minidlna. I have ensured all required support programs were specifically included as well but that makes no difference.

Code:
[2011/12/03 14:04:42] minidlna.c:1235: debug: HTTP connection from 192.168.1.200:25342
[2011/12/03 14:04:42] upnphttp.c:158: debug: Client found in cache. [type 100/entry 0]
[2011/12/03 14:04:42] upnphttp.c:810: debug: HTTP REQUEST: GET /icons/sm.png HTTP/1.1
Connection: Keep-Alive
User-Agent: Windows-Media-Player-DMS/12.0.7601.17514
Host: 192.168.1.27:8200


[2011/12/03 14:04:42] upnphttp.c:1253: debug: Sending small PNG icon
[2011/12/03 14:04:45] minissdp.c:683: info: SSDP M-SEARCH from 192.168.1.6:49153 ST: uuid:DIRECTV2PC-Media-Server1_0-RID-033052370658, MX: 5, MAN: "ssdp:discover"
[2011/12/03 14:04:46] minissdp.c:683: info: SSDP M-SEARCH from 192.168.1.23:49153 ST: uuid:DIRECTV2PC-Media-Server1_0-RID-028970015864, MX: 5, MAN: "ssdp:discover"
[2011/12/03 14:04:48] minissdp.c:683: info: SSDP M-SEARCH from 192.168.1.23:49153 ST: uuid:DIRECTV2PC-Media-Server1_0-RID-028879923002, MX: 5, MAN: "ssdp:discover"
[2011/12/03 14:04:49] minissdp.c:683: info: SSDP M-SEARCH from 192.168.1.20:49153 ST: uuid:DIRECTV2PC-Media-Server1_0-RID-028879923002, MX: 5, MAN: "ssdp:discover"
[2011/12/03 14:04:50] minissdp.c:683: info: SSDP M-SEARCH from 192.168.1.23:49153 ST: uuid:DIRECTV2PC-Media-Server1_0-RID-033052370658, MX: 5, MAN: "ssdp:discover"
[2011/12/03 14:04:52] minissdp.c:683: info: SSDP M-SEARCH from 192.168.1.6:49153 ST: uuid:DIRECTV2PC-Media-Server1_0-RID-028970015864, MX: 5, MAN: "ssdp:discover"
[2011/12/03 14:04:57] minissdp.c:683: info: SSDP M-SEARCH from 192.168.1.20:49153 ST: uuid:DIRECTV2PC-Media-Server1_0-RID-028970015864, MX: 5, MAN: "ssdp:discover"
[2011/12/03 14:04:58] minissdp.c:683: info: SSDP M-SEARCH from 192.168.1.20:49153 ST: uuid:DIRECTV2PC-Media-Server1_0-RID-033052370658, MX: 5, MAN: "ssdp:discover"
[2011/12/03 14:05:01] minissdp.c:683: info: SSDP M-SEARCH from 192.168.1.6:49153 ST: uuid:DIRECTV2PC-Media-Server1_0-RID-028879923002, MX: 5, MAN: "ssdp:discover"
[2011/12/03 14:05:02] minissdp.c:683: info: SSDP M-SEARCH from 192.168.1.200:65020 ST: urn:schemas-upnp-org:service:ContentDirectory:1, MX: 3, MAN: "ssdp:discover"
[2011/12/03 14:05:03] minidlna.c:1235: debug: HTTP connection from 192.168.1.200:25354
[2011/12/03 14:05:03] upnphttp.c:158: debug: Client found in cache. [type 100/entry 0]
[2011/12/03 14:05:03] upnphttp.c:810: debug: HTTP REQUEST: GET /rootDesc.xml HTTP/1.1
Cache-Control: no-cache
Connection: Close
Pragma: no-cache
Accept: text/xml, application/xml
Host: 192.168.1.27:8200
User-Agent: Microsoft-Windows/6.1 UPnP/1.0 Windows-Media-Player/12.0.7601.17514 DLNADOC/1.50 (MS-DeviceCaps/1024)


[2011/12/03 14:05:03] upnphttp.c:1131: debug: HTTP RESPONSE: HTTP/1.1 200 OK
Content-Type: text/xml; charset="utf-8"
Connection: close
Content-Length: 2226
Server: FreeBSD/8.2-RELEASE-p4 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.0

<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0"><specVersion><major>1</major><minor>0</minor></specVersion><device><deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType><friendlyName>My DLNA Server</friendlyName><manufacturer>Justin Maggard</manufacturer><manufacturerURL>http://www.FreeBSD.org/</manufacturerURL><modelDescription>MiniDLNA on FreeBSD</modelDescription><modelName>Windows Media Connect compatible (MiniDLNA)</modelName><modelNumber>1</modelNumber><modelURL>http://www.FreeBSD.org/</modelURL><serialNumber>12345678</serialNumber><UDN>uuid:4d696e69-444c-164e-9d41-000c29a1d81d</UDN><dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMS-1.50</dlna:X_DLNADOC><presentationURL>http://192.168.1.27:8200/</presentationURL><iconList><icon><mimetype>image/png</mimetype><width>48</width><height>48</height><depth>24</depth><url>/icons/sm.png</url></icon><icon><mimetype>image/png</mimetype><width>120</width><height>120</height><depth>24</depth><url>/icons/lrg.png</url></icon><icon><mimetype>image/jpeg</mimetype><width>48</width><height>48</height><depth>24</depth><url>/icons/sm.jpg</url></icon><icon><mimetype>image/jpeg</mimetype><width>120</width><height>120</height><depth>24</depth><url>/icons/lrg.jpg</url></icon></iconList><serviceList><service><serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</serviceType><serviceId>urn:upnp-org:serviceId:ContentDirectory</serviceId><controlURL>/ctl/ContentDir</controlURL><eventSubURL>/evt/ContentDir</eventSubURL><SCPDURL>/ContentDir.xml</SCPDURL></service><service><serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType><serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId><controlURL>/ctl/ConnectionMgr</controlURL><eventSubURL>/evt/ConnectionMgr</eventSubURL><SCPDURL>/ConnectionMgr.xml</SCPDURL></service><service><serviceType>urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1</serviceType><serviceId>urn:microsoft.com:serviceId:X_MS_MediaReceiverRegistrar</serviceId><controlURL>/ctl/X_MS_MediaReceiverRegistrar</controlURL><eventSubURL>/evt/X_MS_MediaReceiverRegistrar</eventSubURL><SCPDURL>/X_MS_MediaReceiverRegistrar.xml</SCPDURL></service></serviceList></device></root>
[2011/12/03 14:05:03] minidlna.c:1235: debug: HTTP connection from 192.168.1.200:25355
[2011/12/03 14:05:03] upnphttp.c:158: debug: Client found in cache. [type 100/entry 0]
[2011/12/03 14:05:03] upnphttp.c:810: debug: HTTP REQUEST: GET /ContentDir.xml HTTP/1.1
Cache-Control: no-cache
Connection: Close
Pragma: no-cache
Accept: text/xml, application/xml
User-Agent: Microsoft-Windows/6.1 UPnP/1.0 Windows-Media-Player/12.0.7601.17514 DLNADOC/1.50 (MS-DeviceCaps/1024)
Host: 192.168.1.27:8200


[2011/12/03 14:05:03] upnphttp.c:1131: debug: HTTP RESPONSE: HTTP/1.1 200 OK
Content-Type: text/xml; charset="utf-8"
Connection: close
Content-Length: 5094
Server: FreeBSD/8.2-RELEASE-p4 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.0

<?xml version="1.0"?>
<scpd xmlns="urn:schemas-upnp-org:service-1-0"><specVersion><major>1</major><minor>0</minor></specVersion><actionList><action><name>GetSearchCapabilities</name><argumentList><argument><name>SearchCaps</name><direction>out</direction><relatedStateVariable>SearchCapabilities</relatedStateVariable></argument></argumentList></action><action><name>GetSortCapabilities</name><argumentList><argument><name>SortCaps</name><direction>out</direction><relatedStateVariable>SortCapabilities</relatedStateVariable></argument></argumentList></action><action><name>GetSystemUpdateID</name><argumentList><argument><name>Id</name><direction>out</direction><relatedStateVariable>SystemUpdateID</relatedStateVariable></argument></argumentList></action><action><name>Browse</name><argumentList><argument><name>ObjectID</name><direction>in</direction><relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable></argument><argument><name>BrowseFlag</name><direction>in</direction><relatedStateVariable>A_ARG_TYPE_BrowseFlag</relatedStateVariable></argument><argument><name>Filter</name><direction>in</direction><relatedStateVariable>A_ARG_TYPE_Filter</relatedStateVariable></argument><argument><name>StartingIndex</name><direction>in</direction><relatedStateVariable>A_ARG_TYPE_Index</relatedStateVariable></argument><argument><name>RequestedCount</name><direction>in</direction><relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable></argument><argument><name>SortCriteria</name><direction>in</direction><relatedStateVariable>A_ARG_TYPE_SortCriteria</relatedStateVariable></argument><argument><name>Result</name><direction>out</direction><relatedStateVariable>A_ARG_TYPE_Result</relatedStateVariable></argument><argument><name>NumberReturned</name><direction>out</direction><relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable></argument><argument><name>TotalMatches</name><direction>out</direction><relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable></argument><argument><name>UpdateID</name><direction>out</direction><relatedStateVariable>A_ARG_TYPE_UpdateID</relatedStateVariable></argument></argumentList></action><action><name>Search</name><argumentList><argument><name>ContainerID</name><direction>in</direction><relatedStateVariable>A_ARG_TYPE_ObjectID</relatedStateVariable></argument><argument><name>SearchCriteria</name><direction>in</direction><relatedStateVariable>A_ARG_TYPE_SearchCriteria</relatedStateVariable></argument><argument><name>Filter</name><direction>in</direction><relatedStateVariable>A_ARG_TYPE_Filter</relatedStateVariable></argument><argument><name>StartingIndex</name><direction>in</direction><relatedStateVariable>A_ARG_TYPE_Index</relatedStateVariable></argument><argument><name>RequestedCount</name><direction>in</direction><relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable></argument><argument><name>SortCriteria</name><direction>in</direction><relatedStateVariable>A_ARG_TYPE_SortCriteria</relatedStateVariable></argument><argument><name>Result</name><direction>out</direction><relatedStateVariable>A_ARG_TYPE_Result</relatedStateVariable></argument><argument><name>NumberReturned</name><direction>out</direction><relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable></argument><argument><name>TotalMatches</name><direction>out</direction><relatedStateVariable>A_ARG_TYPE_Count</relatedStateVariable></argument><argument><name>UpdateID</name><direction>out</direction><relatedStateVariable>A_ARG_TYPE_UpdateID</relatedStateVariable></argument></argumentList></action></actionList><serviceStateTable><stateVariable sendEvents="yes"><name>TransferIDs</name><dataType>string</dataType></stateVariable><stateVariable sendEvents="no"><name>A_ARG_TYPE_ObjectID</name><dataType>string</dataType></stateVariable><stateVariable sendEvents="no"><name>A_ARG_TYPE_Result</name><dataType>string</dataType></stateVariable><stateVariable sendEvents="no"><name>A_ARG_TYPE_SearchCriteria</name><dataType>string</dataType></stateVariable><stateVariable sendEvents="no"><name>A_ARG_TYPE_BrowseFlag</name><dataType>string</dataType><allowedValueList><allowedValue>BrowseMetadata</allowedValue><allowedValue>BrowseDirectChildren</allowedValue></allowedValueList></stateVariable><stateVariable sendEvents="no"><name>A_ARG_TYPE_Filter</name><dataType>string</dataType></stateVariable><stateVariable sendEvents="no"><name>A_ARG_TYPE_SortCriteria</name><dataType>string</dataType></stateVariable><stateVariable sendEvents="no"><name>A_ARG_TYPE_Index</name><dataType>ui4</dataType></stateVariable><stateVariable sendEvents="no"><name>A_ARG_TYPE_Count</name><dataType>ui4</dataType></stateVariable><stateVariable sendEvents="no"><name>A_ARG_TYPE_UpdateID</name><dataType>ui4</dataType></stateVariable><stateVariable sendEvents="no"><name>SearchCapabilities</name><dataType>string</dataType></stateVariable><stateVariable sendEvents="no"><name>SortCapabilities</name><dataType>string</dataType></stateVariable><stateVariable sendEvents="yes"><name>SystemUpdateID</name><dataType>ui4</dataType></stateVariable></serviceStateTable></scpd>
[2011/12/03 14:05:03] minidlna.c:1235: debug: HTTP connection from 192.168.1.200:25356
[2011/12/03 14:05:03] upnphttp.c:158: debug: Client found in cache. [type 100/entry 0]
[2011/12/03 14:05:03] upnphttp.c:810: debug: HTTP REQUEST: SUBSCRIBE /evt/ContentDir HTTP/1.1
Cache-Control: no-cache
Connection: Close
Pragma: no-cache
User-Agent: Microsoft-Windows/6.1 UPnP/1.0
NT: upnp:event
Callback: <http://192.168.1.200:2869/upnp/eventing/izfroyrldf>
Timeout: Second-1800
Host: 192.168.1.27:8200


[2011/12/03 14:05:03] upnphttp.c:681: debug: ProcessHTTPSubscribe /evt/ContentDir
[2011/12/03 14:05:03] upnphttp.c:683: debug: Callback 'http://192.168.1.200:2869/upnp/eventing/izfroyrldf' Timeout=1800
[2011/12/03 14:05:03] upnphttp.c:684: debug: SID ''
[2011/12/03 14:05:03] upnpevents.c:153: debug: addSubscriber(/evt/ContentDir, http://192.168.1.200:2869/upnp/eventing/izfroyrldf, 1800)
Bus error
[Mark@tfreenas] /etc/local#


PKG_INFO shows minidlna-1.0.22,1 is installed.
I had changed the port_date field to November 30th to grab see if it would change anything but it didn't. We need to roll back to 2010.12.12 version until we figure out this issue but I don't know how to roll back a single port. I can remove the newer port and install the old port via PKG_DELETE and PKG_ADD but it doesn't survive reboot as expected.
 
G

gcooper

Guest
I'm not blowing you off, I'm just having problems with my computer. I'm sure it's just me but it sure seems like the builds are getting larger with respect to the amount of space required to compile. I have just switched from a 15GB RAM drive to a SSD with a bit more room. Hopefully that will build the files.

No worries. Downgrading the port in the FreeNAS repo today until we can iron out what the actual problem is. I have access to Windows 7 Home Premium so if I know the exact setup steps so I can repro your scenario, I can probably fix the problem.
 
Status
Not open for further replies.
Top