Adding credentials to ServerWMC breaks windows PVR.WMC
#1
While trying to get PVR.WMC to work on my Raspberry Pi, I added credentials to ServerWMC's "Folders" tab. Now trying to watch LiveTV on my windows version of XBMC causes no stream to appear in the PVR client. Checking ServerWMC's status indicates it is streaming to the client.

Removing the credentials allows windows version to work fine.

Not sure what info anybody will need to figure this one out, but here's the log file from the client when the credentials are added:

http://www.xbmclogs.com/show.php?id=92275
Reply
#2
Serverwmc should be ignoring the credentials if the client is windows - at least last I checked that is what it did. Maybe I broke it somehow. Please post a link to the server log, not the xbmc log, after a failed attempt to stream to a windows client with credentials on.

FYI, In the log you posted for xbmc it looks like serverwmc isn't even running.
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#3
Log file from Server:


2013/12/01 12:38:58.134 OpenLiveStream> error: System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path)
at System.IO.Path.Combine(String path1, String path2)
at ServerWMC.Worker.RecService.Convert2ClientPath(String inPath)
at ServerWMC.Worker.RecService.OpenLiveStream(String[] args)
Reply
#4
(2013-12-01, 19:42)deastburn Wrote: Log file from Server:


2013/12/01 12:38:58.134 OpenLiveStream> error: System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path)
at System.IO.Path.Combine(String path1, String path2)
at ServerWMC.Worker.RecService.Convert2ClientPath(String inPath)
at ServerWMC.Worker.RecService.OpenLiveStream(String[] args)

Can you put the full server log on pastebin.com and post a link to it here instead?
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#5
http://www.xbmclogs.com/show.php?id=92303
Reply
#6
(2013-12-01, 19:54)deastburn Wrote: http://www.xbmclogs.com/show.php?id=92303

This isn't the entire log right? I want the entire server log, not just where you start the live stream.
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#7
maybe i'm not getting the log right? What I did was:

go to the server application, click on "Debug", click on "Open Current Log File", selected all, copied to clipboard, went to the debug log site and pasted.

I'll try again; maybe I messed something up:
http://www.xbmclogs.com/show.php?id=92308
Reply
#8
Not sure what happened before, but its there now. Let me see what's going on, I'll get back to you.
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#9
deastburn

It thinks there is an illegal char in the path. but I can't find it. I have an idea where the bug might be though. I can't see your password in the log (for obvious reasons). Does your password have an illegal file character? In other words, a char that windows would not allow in a file or directory name.

If you don't think it does, then try just retyping the password in credentials just in case something slipped in there.
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#10
My password has a pipe symbol and an exclamation point in it. I'll change it and see if that makes it work. Is this a limitation of something or is it a bug that can be fixed?

Thanks for all your help with this Krusty!
Reply
#11
(2013-12-01, 21:06)deastburn Wrote: My password has a pipe symbol and an exclamation point in it. I'll change it and see if that makes it work. Is this a limitation of something or is it a bug that can be fixed?

Thanks for all your help with this Krusty!

Exclamation point is not a problem. The pipe symbol however is deadly.

There is a bug in my code that you have uncovered for illegal file characters in the password. Credentials are embedded in the path that's why its a problem. In windows this bug is causing it to throw an exception even though windows will just ignore the credentials later on. But it seems to me that putting illegal file characters in the path is just asking for trouble on non-windows systems too. I need to think about what to do, but either way - thanks for catching this bug.

The funny thing is the pipe symbol '|' in particular is how I delimit fields in the data that is transmitted to the client - so you picked the worst possible character you could include. I don't know why your pi was okay using it, I need to think on that too.
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#12
@deastburn in xbmc on *nix system go to file manager then add source and browse to recorded TV share, when prompted for user and pass put in your user and pass with the illegal characters then tell it to save credentials. Now go to your xbmc userdata directory and find passwords.xml, open it with a text editor, what has xbmc replaced the pipe character with?? It's probably %something. You can now delete password.xml (or not as with it you will not need credentials in serverWMC)
If I have been of help, please add to my reputation as a way of saying thanks, it's free.
Reply
#13
Just want to say that my Pi isn't working...yet.

So don't go on any wild goose chases trying to figure out why it works on the Pi.
Reply
#14
@Krusty:

I changed my password to alpha numeric only, but my windows client still can't play the stream when the credentials are enabled. Here's the log from the server:

http://xbmclogs.com/show.php?id=92494


[edit]
I fixed my problem:
now that I've changed my password on the server, my client can't connect to the share. After saving credentials to access the share, my windows client can now play the stream.
Reply

Logout Mark Read Team Forum Stats Members Help
Adding credentials to ServerWMC breaks windows PVR.WMC0