Unable to download media content?

Asked by Viswanathan R

In python client , While client send download request to server through getfile() method the response from server is empty instead of downloading content. But, the schedule request and required file request is send to server the server response schedule file and rf content. I don't know the reason to avoid download the media content.

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Viswanathan R
Solved:
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

I expect the file is missing from the server library

Revision history for this message
Viswanathan R (rvisu87) said :
#2

No dude, I was checked, the file is located in server library.

Revision history for this message
Alex Harrington (alexharrington) said :
#3

Anything in the server logs?

Revision history for this message
Viswanathan R (rvisu87) said :
#5

<errormsg>DOMDocument::loadXML() [<a href='domdocument.loadxml'>domdocument.loadxml</a>]: Empty string supplied as input</errormsg>
<errornum>2</errornum>
<errortype>Warning</errortype>
<scriptname>/home/demoxibo/public_html/xibo/lib/data/display.data.class.php</scriptname>
<scriptlinenum>566</scriptlinenum>

Revision history for this message
Alex Harrington (alexharrington) said :
#6

That's not related I don't think

Revision history for this message
Viswanathan R (rvisu87) said :
#7

  <errormsg>fopen(library/316.mp4) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory</errormsg>
<errornum>2</errornum>
<errortype>Warning</errortype>
<scriptname>/home/demoxibo/public_html/xibo/lib/service/xmdssoap.class.php</scriptname>
<scriptlinenum>481</scriptlinenum>

But this file is available in server (library/316.mp4) . I downloaded it thr ftp and even able to play the downloaded file. So the I believe the file is not corrupted. But not sure what could be the reason.

Revision history for this message
Alex Harrington (alexharrington) said :
#8

You're not using a fully qualified path name in the library setting in the
server.

It needs to be

/path/to/library

NOT just

library

Alex

Revision history for this message
Viswanathan R (rvisu87) said :
#9

Sorry no to mention u before. Actually among 40 files uploaded 16 files have downloaded and rest of the files have this error. I believe if url is wrong 16 files also would have failed.

Additionally, schedule.xml and rf.xml is properly updated with required download file list.

Revision history for this message
Alex Harrington (alexharrington) said :
#10

Please correct the file path. It MUST be fully qualified.

Revision history for this message
Viswanathan R (rvisu87) said :
#11

U R Genius.

Let me explain, I was using a demo folder while testing the application and moved the files to live location with in the same server. But unchanged the xmdsURL in siteconfig.

But 16 files was downloading fine - bec those files was again used in the live playlist. So it was downloading those old files from previous library and new content alone not downloaded. Since the database was same for both path schedule xml was updating properly.

LEARNING - always double check the basic setting before going further.