Plex docker YouTube-dl Synology

Server Version#: Version 4.12.3
Player Version#: Version 1.5

I have a Plex MM server running on a Synology DSM, and its working great for all me music, movies and tv shows.

Yesterday I use YouTube-dl from GitHub on my Mac and download a few videos from a YouTube chanel, then copy to my multimedia folder on Plex. After a few minutes the videos were available on my Plex library and I was happy.

Today I set a Task on my Synology to everyday at 5am run a user script like this:

echo "start downloading"
cd /
cd /volume1/myfoler
youtube-dl https://www.youtube.com/playlist?list --playlist-start 1 --playlist-end 1 -format mp4

The Task run my own user, and videos get there with no problem, but they just don’t apear on library. Ig I check the file on Plex filesystem is there, but I the videos I think they are no readable on Plex. I can open in my PC or with Synology video player.

Since the MM folder have to be own by http user, so I change the script to make user http run the script:

sudo -H -u http youtube-dl https://www.youtube.com/playlist?list=PLK--playlist-start 1 --playlist-end 1 -format mp4

don’t load it also.

I even try manually user chown and chmod 777 on the files and folders, and also don’t work.

What I’m missing?

regards, LL

Careful here.

  1. On Synology, use of sudo is dangerous. User Plex doesn’t have privileges anymore.

  2. What about the naming and structure of what you’re downloading? If the names aren’t right, it won’t appear at all. I

  3. If you’re mixing different types of content in the same folder, anything can happen which also includes nothing matching.

I’m going to need to see the DEBUG (not VERBOSE) logs please ?

Good morning,

link to debug file

The debug file was started 2 minutos before add new files no library.

I have change the user to my user so then I can let use without sudo.

I check the debug file, and it don’t mention anytime the new files. But it mention the library and not the files.

If you browse to the library folder, you can find the files right there: folders pic, showing the files

Like any other files on the Plex library, has the same permissions and own to my username.

So I don’t know. all my other multimedia files, like videos and photos were added easily.

I’m pretty sure I’m doing something not in the right or best way.

thanks, LL

Please use Settings - Server - Troubleshooting - Download Logs

I need the server ZIP file not the Web text file.

Hello,

this is the link of my logs: Plex Logs

You can also tell me what to looking for?

Kind regards, LL

Your server has lost connectivity to the internet / DNS lookup

Jan 24, 2020 12:21:58.371 [0x7f8ff4ff9700] DEBUG - HTTP requesting POST http://127.0.0.1:32600/devices/discover
Jan 24, 2020 12:21:58.897 [0x7f9071ffb700] ERROR - Error issuing curl_easy_perform(handle): 6
Jan 24, 2020 12:21:58.897 [0x7f9071ffb700] WARN - HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (0, No error) (Could not resolve host: plex.tv)
Jan 24, 2020 12:21:58.897 [0x7f9071ffb700] ERROR - Error parsing content.
Jan 24, 2020 12:21:58.897 [0x7f9071ffb700] ERROR - Error parsing XML: Error parsing file.
Jan 24, 2020 12:21:58.953 [0x7f90637fe700] ERROR - Error issuing curl_easy_perform(handle): 6
Jan 24, 2020 12:21:58.953 [0x7f90637fe700] WARN - HTTP error requesting GET https://plex.tv/api/v2/

and

Jan 24, 2020 12:22:01.103 [0x7f90357fa700] DEBUG - [com.plexapp.system] HTTP reply status 200, with 0 bytes of content.
Jan 24, 2020 12:22:04.590 [0x7f9062ffd700] ERROR - Error issuing curl_easy_perform(handle): 6
Jan 24, 2020 12:22:04.590 [0x7f9062ffd700] WARN - HTTP error requesting GET http://plex.tv/pms/:/ip (0, No error) (Could not resolve host: plex.tv)
Jan 24, 2020 12:22:04.590 [0x7f9062ffd700] ERROR - PublicAddressManager: Unable to get public IP adddress from myPlex (httpCode=-6): 
Jan 24, 2020 12:22:04.591 [0x7f9062ffd700] DEBUG - MyPlex: Updating device connections (from timer: 0)
Jan 24, 2020 12:22:04.591 [0x7f9062ffd700] DEBUG - HTTP requesting PUT https://plex.tv/devices/1190176c3eeaa52b6c8efe233de6198571c1bcbe?Connection[][uri]=http://192.168.178.3:32400&httpsEnabled=1&httpsRequired=0&natLoopbackSupported=0&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Jan 24, 2020 12:22:04.594 [0x7f90377fe700] ERROR - Error issuing curl_easy_perform(handle): 6
Jan 24, 2020 12:22:04.594 [0x7f90377fe700] WARN - HTTP error requesting GET https://plex.tv/api/v2/user?includeSubscriptions=1&includeProviders=1 (0, No error) (Could not resolve host: plex.tv)
Jan 24, 2020 12:22:04.594 [0x7f90377fe700] DEBUG - MyPlex: using cached data for request for https://plex.tv/api/v2/user?includeSubscriptions=1&includeProviders=1

Error 6 = DNS lookup failure.

Check the settings in Control Panel - Network

Good evening,

The power fail at that time, everything take about a minute to get online.

I use pi-hole but I check there is no block to Plex servers.

When you get a chance? Turn off UPNP advertising on this device?

It’s consuming your log buffer.

Jan 24, 2020 16:27:39.397 [0x7f90357fa700] DEBUG - HTTP requesting GET http://192.168.178.5:8080/upnp
Jan 24, 2020 16:27:39.416 [0x7f90357fa700] DEBUG - HTTP 404 response from GET http://192.168.178.5:8080/upnp
Jan 24, 2020 16:27:39.416 [0x7f90357fa700] ERROR - SSDP: Error parsing device schema for http://192.168.178.5:8080/upnp
Jan 24, 2020 16:28:09.397 [0x7f90357fa700] DEBUG - NetworkServiceBrowser: Parsing SSDP schema for http://192.168.178.5:8080/upnp
Jan 24, 2020 16:28:09.397 [0x7f90357fa700] DEBUG - HTTP requesting GET http://192.168.178.5:8080/upnp
Jan 24, 2020 16:28:09.412 [0x7f90357fa700] DEBUG - HTTP 404 response from GET http://192.168.178.5:8080/upnp
Jan 24, 2020 16:28:09.412 [0x7f90357fa700] ERROR - SSDP: Error parsing device schema for http://192.168.178.5:8080/upnp
Jan 24, 2020 16:28:39.398 [0x7f90357fa700] DEBUG - NetworkServiceBrowser: Parsing SSDP schema for http://192.168.178.5:8080/upnp
Jan 24, 2020 16:28:39.399 [0x7f90357fa700] DEBUG - HTTP requesting GET http://192.168.178.5:8080/upnp
Jan 24, 2020 16:28:39.423 [0x7f90357fa700] DEBUG - HTTP 404 response from GET http://192.168.178.5:8080/upnp
Jan 24, 2020 16:28:39.423 [0x7f90357fa700] ERROR - SSDP: Error parsing device schema for http://192.168.178.5:8080/upnp
Jan 24, 2020 16:29:09.399 [0x7f90357fa700] DEBUG - NetworkServiceBrowser: Parsing SSDP schema for http://192.168.178.5:8080/upnp
Jan 24, 2020 16:29:09.399 [0x7f90357fa700] DEBUG - HTTP requesting GET http://192.168.178.5:8080/upnp
Jan 24, 2020 16:29:09.424 [0x7f90357fa700] DEBUG - HTTP 404 response from GET http://192.168.178.5:8080/upnp
Jan 24, 2020 16:29:09.424 [0x7f90357fa700] ERROR - SSDP: Error parsing device schema for http://192.168.178.5:8080/upnp
Jan 24, 2020 16:29:39.401 [0x7f90357fa700] DEBUG - NetworkServiceBrowser: Parsing SSDP schema for http://192.168.178.5:8080/upnp

… more to come as I process the logs.

Good morning,

I disable the UPNP. The IP .5 is a raspberry pi. It should not get any problems with it.

Now is solved.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.