CasparCG / media-scanner

A service used with CasparCG Server software for scanning media located on the server. Queried with query and thumbnail commands through CasparCG Server using AMCP.
https://casparcg.com
GNU Lesser General Public License v3.0
31 stars 33 forks source link

CLS command randomly fails and throws an exception #30

Open dotarmin opened 5 years ago

dotarmin commented 5 years ago

Expected behaviour

CLS should return a list of available media files.

Current behaviour

CLS works sometimes and sometimes it randomly throws an exception and makes server v2.2 return 501 CLS FAILED.


Steps to reproduce

  1. Start media-scanner
  2. Start Server v2.2
  3. Write CLS a couple of times or have another system doing it.

From CasparCG Server v2.2 log

[2018-12-06 13:12:26.715] [error]   Exception: C:\Program Files (x86)\Jenkins\workspace\casparcg-server-dep\master\src\protocol\util\http_request.cpp(71): Throw in function struct caspar::http::HTTPResponse __cdecl caspar::http::request(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)
[2018-12-06 13:12:26.715] [error]   Dynamic exception type: class boost::exception_detail::clone_impl<struct caspar::io_error>
[2018-12-06 13:12:26.715] [error]   [struct caspar::tag_msg_info * __ptr64] = Invalid Response
[2018-12-06 13:12:26.715] [error]   [struct caspar::tag_stacktrace_info * __ptr64] =  0# 0x000000013FA2983E in casparcg
[2018-12-06 13:12:26.715] [error]    1# 0x000000013FA58BE0 in casparcg
[2018-12-06 13:12:26.715] [error]    2# 0x000000013FBDE13E in casparcg
[2018-12-06 13:12:26.715] [error]    3# 0x000000013FB9C0FB in casparcg
[2018-12-06 13:12:26.715] [error]    4# 0x000000013FB93576 in casparcg
[2018-12-06 13:12:26.715] [error]    5# 0x000000013FB8C1CC in casparcg
[2018-12-06 13:12:26.715] [error]    6# 0x000000013FBD5D9D in casparcg
[2018-12-06 13:12:26.715] [error]    7# 0x000000013FBD4DAB in casparcg
[2018-12-06 13:12:26.715] [error]    8# 0x000000013FA923C8 in casparcg
[2018-12-06 13:12:26.715] [error]    9# 0x000000013FB0DD9F in casparcg
[2018-12-06 13:12:26.715] [error]   10# 0x000000013FB0AF80 in casparcg
[2018-12-06 13:12:26.715] [error]   11# 0x000000013FA24559 in casparcg
[2018-12-06 13:12:26.715] [error]   12# o__realloc_base in ucrtbase
[2018-12-06 13:12:26.715] [error]   13# BaseThreadInitThunk in kernel32
[2018-12-06 13:12:26.715] [error]   14# RtlUserThreadStart in ntdll
[2018-12-06 13:12:26.715] [error]   
[2018-12-06 13:12:26.715] [error]   
[2018-12-06 13:12:26.715] [error]    0# 0x000000013FA2983E in casparcg
[2018-12-06 13:12:26.715] [error]    1# 0x000000013FA2916F in casparcg
[2018-12-06 13:12:26.715] [error]    2# 0x000000013FF33AD7 in casparcg
[2018-12-06 13:12:26.715] [error]    3# 0x000007FEF5BD1030 in VCRUNTIME140
[2018-12-06 13:12:26.715] [error]    4# is_exception_typeof in VCRUNTIME140
[2018-12-06 13:12:26.715] [error]    5# RtlRestoreContext in ntdll
[2018-12-06 13:12:26.715] [error]    6# 0x000000013FBD4DAB in casparcg
[2018-12-06 13:12:26.715] [error]    7# 0x000000013FA923C8 in casparcg
[2018-12-06 13:12:26.715] [error]    8# 0x000000013FB0DD9F in casparcg
[2018-12-06 13:12:26.715] [error]    9# 0x000000013FB0AF80 in casparcg
[2018-12-06 13:12:26.715] [error]   10# 0x000000013FA24559 in casparcg
[2018-12-06 13:12:26.715] [error]   11# o__realloc_base in ucrtbase
[2018-12-06 13:12:26.715] [error]   12# BaseThreadInitThunk in kernel32
[2018-12-06 13:12:26.715] [error]   13# RtlUserThreadStart in ntdll
[2018-12-06 13:12:26.715] [error]   
[2018-12-06 13:12:26.777] [error]   Failed to execute command: CLS
[2018-12-06 13:12:26.777] [info]    Sent message to 10.23.62.1:501 CLS FAILED\r\n
ronag commented 5 years ago

Invalid Response probably a problem with media scanner

ronag commented 5 years ago

Too bad the error doesn't print what the response code was...

dotarmin commented 5 years ago

Invalid Response probably a problem with media scanner

Do you want the issue in the media-scanner repo instead?

Too bad the error doesn't print what the response code was...

Sent message to 10.23.62.1:501 CLS FAILED\r\n or are you thinking of the http response code it-self?

ronag commented 5 years ago

@dotarmin this seems related to media-scanner. Move issue there and maybe someone else can look at it?