Jump to content
XPEnology Community

VideoStation - TheMovieDatabase issue


slushy

Recommended Posts

Posted (edited)

Hello everyone,

 

Wondering if any one has similar issue or it's just me. I've tried many different options, but seems none of that helps. I would apprechate your suggestions and help.

 

 

 

Details below:

 

I'm having an issue with my Xpenology DSM 7.2 64570 installed on ESXi.

 

I have used Redpill loader, setup went fine, activated AME codecs. VideoStation started to work all fine, I can watch the movies etc.

 

But... There is one problem with TMDB plugin, which seems to be not working correctly. I've supplied the API key (same as used on my real DS918+) but I cannot get plugin to work on Xpenology.

 

My observations do far:

- tried different OS - DSM 7.0, 7.1, 7.2, different Xpenology loaders DS918+, DS920+

 

- after supplying API key in VideoStation > Settings > TheMovie Database > Edit > Test Connection - it does show connection successful.

image.thumb.png.a839d75d0b26d768f3e5ea9970bb9759.png

 

- Unfortunately from previous view (Video Info Plugin) testing connection fails with a message "Connection fails".image.thumb.png.9756dec44f0ca945a17ddc1e178bcf4a.png

 

- Tried internet recommendations about static DNS settings or preffering IPv4 addresses in resolution but none of that works.

 

- started reviewing logs on my own and found that there are some access denied in script execution, which is responsible for getting data from TMDB.

"

/var/log/bash_err.log:84353:" -> (23505)"/bin/bash -p /var/packages/VideoStation/target/plugins/syno_themoviedb/loader.sh --type movie --lang enu --input {"title":"Poufne lekcje perskiego (2020)"}
/var/log/bash_err.log:84354:" -> (23507)"/bin/bash -p /var/packages/VideoStation/target/plugins/syno_themoviedb/loader.sh --type movie --lang enu --input {"title":"Poufne lekcje perskiego (2020)"}
/var/log/bash_err.log:84355:" ] /var/packages/VideoStation/target/plugins/syno_themoviedb/loader.sh: line 8: /sbin/sed: Permission denied
/var/log/bash_err.log:84356:2024-03-12T21:21:44+01:00 SynologyMedia bash[23512]: BASH_ERR: report_error [ (23509)"/bin/bash -p /var/packages/VideoStation/target/plugins/syno_themoviedb/loader.sh --type movie --lang enu --input {"title":"Poufne lekcje perskiego (2020)"}

"

 

 

 

Edited by slushy
More details addition
Link to comment
Share on other sites

В 13.03.2024 в 18:49, slushy сказал:

- Unfortunately from previous view (Video Info Plugin) testing connection fails with a message "Connection fails".

check by SSH: nslookup api.themoviedb.org

 

do you see some like this?

...

Name:   api.themoviedb.org
Address: 13.227.219.100
Name:   api.themoviedb.org
Address: 13.227.219.32
Name:   api.themoviedb.org
Address: 13.227.219.43

...

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Same problem here.

 

I have been going in circles to try to resolve this but nothing seems to work. I've read all that I can find about people facing the same situation but none of the suggestions have worked for me. I've tried changing the DNS settings, NTP settings, I've tried resolving IPv4 first, disabling IPv6, I've tried regenerating the NAS certificate... I don't think there is anything I have not tried. I have even used a switch with port mirroring to capture the NAS network communication using Wireshark and what I realized is that... the problem is anything but connectivity!

 

On the TMDB API key form, the test function returns successful validation, and when I look at the Wireshark traffic there is indeed a DNS query and then active communication with api.themoviedb.org. Then I use the test function in the plugin list and the connection fails, moreover there is absolutely no communication with the internet, just an exchange between the NAS and the user browser saying that the test failed. The same case happened when I tried to install a 3rd-party metadata plugin in VideoStation, it says there is no internet connectivity... which is false, and again, Wireshark shows that there was no attempt to communicate outside the local network.

 

Taking this a bit further, using SSH to test either the default TMDB plugin (or a third-party plugin dropped through SCP) works fine in the terminal, meaning that a perfect JSON response is received with all the expected metadata. So, my question at the moment is why Synology's VideoStation seemingly invents connectivity issues where there are none, and if there is anything that can be done about it? I assume that the issue must be at the binary level of VideoStation itself so I'm not getting my hopes up.

Link to comment
Share on other sites

Apparently this is an issue...

 

Serial console

[  143.799058] audit: type=1400 audit(1715530151.021:2): apparmor="DENIED" operation="exec" profile="videostation_default_plugin" name="/usr/sbin/sed" pid=15874 comm="bash" requested_mask="x" denied_mask="x" fsuid=228233 ouid=0
[  143.803147] audit: type=1400 audit(1715530151.025:3): apparmor="DENIED" operation="open" profile="videostation_default_plugin" name="/usr/sbin/sed" pid=15874 comm="bash" requested_mask="r" denied_mask="r" fsuid=228233 ouid=0
[  143.810459] audit: type=1400 audit(1715530151.032:4): apparmor="DENIED" operation="exec" profile="videostation_default_plugin" name="/usr/sbin/sed" pid=15879 comm="bash" requested_mask="x" denied_mask="x" fsuid=228233 ouid=0
[  143.814240] audit: type=1400 audit(1715530151.036:5): apparmor="DENIED" operation="open" profile="videostation_default_plugin" name="/usr/sbin/sed" pid=15879 comm="bash" requested_mask="r" denied_mask="r" fsuid=228233 ouid=0
[  143.820832] audit: type=1400 audit(1715530151.043:6): apparmor="DENIED" operation="exec" profile="videostation_default_plugin" name="/usr/sbin/sed" pid=15884 comm="bash" requested_mask="x" denied_mask="x" fsuid=228233 ouid=0
[  143.825004] audit: type=1400 audit(1715530151.047:7): apparmor="DENIED" operation="open" profile="videostation_default_plugin" name="/usr/sbin/sed" pid=15884 comm="bash" requested_mask="r" denied_mask="r" fsuid=228233 ouid=0
[  143.831772] audit: type=1400 audit(1715530151.054:8): apparmor="DENIED" operation="exec" profile="videostation_default_plugin" name="/usr/sbin/sed" pid=15889 comm="bash" requested_mask="x" denied_mask="x" fsuid=228233 ouid=0
[  143.835655] audit: type=1400 audit(1715530151.057:9): apparmor="DENIED" operation="open" profile="videostation_default_plugin" name="/usr/sbin/sed" pid=15889 comm="bash" requested_mask="r" denied_mask="r" fsuid=228233 ouid=0
[  143.843663] audit: type=1400 audit(1715530151.065:10): apparmor="DENIED" operation="exec" profile="videostation_default_plugin" name="/usr/sbin/sed" pid=15894 comm="bash" requested_mask="x" denied_mask="x" fsuid=228233 ouid=0
[  143.847538] audit: type=1400 audit(1715530151.069:11): apparmor="DENIED" operation="open" profile="videostation_default_plugin" name="/usr/sbin/sed" pid=15894 comm="bash" requested_mask="r" denied_mask="r" fsuid=228233 ouid=0

 

 

/var/log/messages

2024-05-12T17:09:11+01:00 VM-NAS plugin_runner[15868]: plugin_runner.cpp:82 Failed to execute plugin runner: /bin/env HOME=/ SHELL=/bin/false /bin/bash -p /var/packages/VideoStation/target/plugins/syno_plugin_tester/loader.sh --type movie --lang enu --input {"original_available":"2001-11-16","title":"Harry Potter"}
 --limit 1 --apikey xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --path /var/packages/VideoStation/target/plugins/syno_themoviedb/loader.sh --pluginid com.synology.TheMovieDb
2024-05-12T17:09:11+01:00 VM-NAS plugin_runner[15943]: plugin_runner.cpp:82 Failed to execute plugin runner: /bin/env HOME=/ SHELL=/bin/false /bin/bash -p /var/packages/VideoStation/target/plugins/syno_plugin_tester/loader.sh --type tvshow --lang enu --input {"original_available":"2011-04-17","title":"Game of Thrones"}
 --limit 1 --apikey xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --path /var/packages/VideoStation/target/plugins/syno_themoviedb/loader.sh --pluginid com.synology.TheMovieDb

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...