I have a disk mounted in the folder /var/www/peertube/storage/ it was Originally 100GB in size. I decided to increase the disk size to 300GB. After that, the ability to import videos from youtube disappeared and the torrent download stopped working. Errors are returned. But downloading local videos works fine. Rights to the folder /var/www/peertube/storage/ peertube:peertube 775. I showed you more details in the video. Why did this happen and how can I fix it?
Local videos load correctly, so peertube user has write permissions-)
Here is the entry in the fstab file /dev/vdb1 /var/www/peertube/storage/ ext4 defaults 1 2
The parameter ‹ defaults › mounts in modes - exec, auto, rw, nouser, async, nosuid, atime
I see this in your trace: SyntaxError: Non-ASCII character ‹ \x97 › in file /var/www/peertube/versions/peertube-v2.1.1/node_modules/youtube-dl/bin/youtube-dl on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details",« failed »:true,« timedOut »:false,« isCanceled »:false,« killed »:false},« timestamp »:« 2020-04-01T08:33:34.471Z »}
That seems to be a problem of character encoding.
Look at the line 3 of the file /var/www/peertube/versions/peertube-v2.1.1/node_modules/youtube-dl/bin/youtube-dl
I do not know about peertube. I just try to logically find what could be wrong.
As reading the error message. I supposed that the youtube-dl module is the source of the error. Indeed, following the content of the youtube-dl file you sent us, shows that this is a python zip package. It might be dynamically « extracted » by the peertube system. This youtube-dl will then be deployed as a python module structure (folders and files) and the main youtube-dl file (in pseudo sub-folder bin) shall call init.py thanks to an import youtube_dl (see https://github.com/ytdl-org/youtube-dl/blob/master/bin/youtube-dl). The error message tells that there is an non-ascii char in the line 3 of this bin/youtube-dl. According to the source git of youtube-dl, this line is the import youtube_dl
The ascii table does only have 128 char codes (0x00 to 0x7F in hex). So the char number 0x97 is not know in such table. Reason of the error message.
However, the extended ascii could handle such code number. But its not true to say that 0x97 is a specific char in extended ASCII since there could be plethore of different code pages.
if executed through the full path, as [Findus23]
then the result is
peertube@peervideo:~$ /var/www/peertube/versions/peertube-v2.1.1/node_modules/youtube-dl/bin/youtube-dl https://www.youtube.com/watch?v=wcEe5P9QVoc
File "/var/www/peertube/versions/peertube-v2.1.1/node_modules/youtube-dl/bin/youtube-dl", line 2
SyntaxError: Non-ASCII character '\x97' in file /var/www/peertube/versions/peertube-v2.1.1/node_modules/youtube-dl/bin/youtube-dl on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
It is very strange that this worked before expanding the disk. I don’t see any connection yet. In any case, the problem is relevant. I ask for your help!
The problem is resolved.
I downloaded the ** youtube-dl ** file here https://github.com/ytdl-org/youtube-dl/releases/download/2020.03.24/youtube-dl
and replaced it in the /var/www/peertube/versions/peertube-v2.1.1/node_modules/youtube-dl/bin folder
And everything began to work fine. Why the failure occurred precisely after expanding the storage disk I do not know. Many thanks to all for your advice and your help.
Now there is a problem with torrent files.
This torrent file is not supported or too large. Please, make sure it is of the following type: .torrent
There could be many reasons as to why the error message, « Error Compiling Movie. Unknown Error. » gets displayed that it can be difficult to know where to start. Since not all suggestions below would apply to your specific issue, you could skip any step that does not pertain to your particular setup MyPrepaidCenter