Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mediascanner fails #71

Closed
5opr4ni opened this issue Dec 27, 2023 · 4 comments
Closed

Mediascanner fails #71

5opr4ni opened this issue Dec 27, 2023 · 4 comments

Comments

@5opr4ni
Copy link

5opr4ni commented Dec 27, 2023

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.


  • Commit: casparcg-server-528389a9ffb27157eacbedc2ecbc7a29446349ea-windows
  • Server version: master
  • Operating system: Windows 11

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 ;)

@Julusian Julusian transferred this issue from CasparCG/server Dec 30, 2023
@4l4R1
Copy link

4l4R1 commented Jan 10, 2024

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
Copy link
Member

Fixed in v1.3.2

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

@5opr4ni
Copy link
Author

5opr4ni commented Feb 28, 2024

Thanks!

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

I am a big fan Julian.

@Julusian
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants