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

Mediascanner fails #71

Closed 5opr4ni closed 6 months ago

5opr4ni commented 10 months ago

Expected behaviour

When starting media scanner together with CasparCG, scanning of the media folders should be done.

Current behaviour

On CLS Media scanner throws a lot of errors. The media scanner don't start when using the bat script, have to start it manually. On TLS Works fine.



Error messages from Media scanner: {"level":50,"time":1703683232449,"pid":20176,"hostname":"DSGNCG01","name":"scanner","err":{"type":"PouchError","message":"Invalid rev format","stack":"Error\n at new CustomPouchError (C:\snapshot\media-scanner\node_modules\pouchdb-node\lib\index.js:656:21)\n at createError (C:\snapshot\media-scanner\node_modules\pouchdb-node\lib\index.js:665:10)\n at parseRevisionInfo (C:\snapshot\media-scanner\node_modules\pouchdb-node\lib\index.js:4438:12)\n at parseDoc (C:\snapshot\media-scanner\node_modules\pouchdb-node\lib\index.js:4488:17)\n at C:\snapshot\media-scanner\node_modules\pouchdb-node\lib\index.js:5264:20\n at Array.map ()\n at C:\snapshot\media-scanner\node_modules\pouchdb-node\lib\index.js:5260:29\n at tryCode (C:\snapshot\media-scanner\node_modules\pouchdb-node\lib\index.js:5070:11)\n at runWriteOperation (C:\snapshot\media-scanner\node_modules\pouchdb-node\lib\index.js:5133:5)\n at executeNext (C:\snapshot\media-scanner\node_modules\pouchdb-node\lib\index.js:5082:7)","status":400,"name":"bad_request","error":true,"docId":"CHL/MOVIES/40_FF_MAPS_UK"},"msg":"Invalid rev format"}

This should maybe be in the Media scanner repo ;)

4l4R1 commented 9 months ago

I can confirm this error. The scanner.exe included in Caspar 2.4 rc1 gives an error with every file if the old database is deleted beforehand.

{
    "level": 50,
    "time": 1704880162278,
    "pid": 21672,
    "hostname": "EM-02005095",
    "name": "scanner",
    "err": {
        "type": "PouchError",
        "message": "Invalid rev format",
        "stack": "Error\n    at new CustomPouchError (C:\\snapshot\\media-scanner\\node_modules\\pouchdb-node\\lib\\index.js:656:21)\n    at createError (C:\\snapshot\\media-scanner\\node_modules\\pouchdb-node\\lib\\index.js:665:10)\n    at parseRevisionInfo (C:\\snapshot\\media-scanner\\node_modules\\pouchdb-node\\lib\\index.js:4438:12)\n    at parseDoc (C:\\snapshot\\media-scanner\\node_modules\\pouchdb-node\\lib\\index.js:4488:17)\n    at C:\\snapshot\\media-scanner\\node_modules\\pouchdb-node\\lib\\index.js:5264:20\n    at Array.map (<anonymous>)\n    at C:\\snapshot\\media-scanner\\node_modules\\pouchdb-node\\lib\\index.js:5260:29\n    at tryCode (C:\\snapshot\\media-scanner\\node_modules\\pouchdb-node\\lib\\index.js:5070:11)\n    at runWriteOperation (C:\\snapshot\\media-scanner\\node_modules\\pouchdb-node\\lib\\index.js:5133:5)\n    at executeNext (C:\\snapshot\\media-scanner\\node_modules\\pouchdb-node\\lib\\index.js:5082:7)",
        "status": 400,
        "name": "bad_request",
        "error": true,
        "docId": "AMB"
    },
    "msg": "Invalid rev format"
}
Julusian commented 9 months ago

Fixed in v1.3.2

Ill leave this open until there is a new release of server to aid discovery for other users.

5opr4ni commented 8 months ago

Thanks!

Now it works even though it ends at -1, but that I can live with.

I am a big fan Julian.

Julusian commented 6 months ago

The fixed version is in the 2.4.0 release of casparcg, so this can be closed