question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Partially downloaded files have the executable bit set

See original GitHub issue

Checklist

  • I’m reporting a bug unrelated to a specific site
  • I’ve verified that I’m running yt-dlp version 2022.04.08 (update instructions) or later (specify commit)
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I’ve read the guidelines for opening an issue

Description

I noticed that while a stream download is in progress, the .part files with the partially-download data have the executable permission bit set. This is nonsensical, as the files are not actually executable.

The final download files do not have the executable bit set, making this problem transient and mostly cosmetic.

Verbose log

$ yt-dlp --version
2022.04.08
$ ls -l   # while yt-dlp https://www.youtube.com/channel/UCaJzpFqRQa0Bcu9BWi_drKw -f bestaudio is active in another terminal
[SNIP]
-rw-r--r-- 1 stirlitz stirlitz 3539889 2019-11-23  'The X2 Anthem GM [Cw_KFkaDRtA].webm'
-rwxr-xr-x 1 stirlitz stirlitz  261120 04-18 17:21 'Thinking of You [yoXZMdmUlyQ].webm.part'
-rw-r--r-- 1 stirlitz stirlitz 3544772 2020-05-19  'Time Machine 2019 [3zjtMpBkVSE].webm'
[SNIP]

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pukkandancommented, Apr 19, 2022

I thought it wouldn’t be particularly relevant.

The verbose head is always relevant, at least to get the exact version info

[debug] yt-dlp version 2022.04.08 [7884ade65] (source)
[debug] Lazy loading extractors is disabled
[debug] Git HEAD: 6f638d325
[debug] Python version 3.10.4 (CPython 64bit) - Windows-10-10.0.22000-SP0
1reaction
pukkandancommented, Apr 18, 2022

Even you don’t provide verbose log!? 😭

The issue is supposed to be fixed by https://github.com/yt-dlp/yt-dlp/commit/98804d034d04d21cbeb8cd43d1e1d90f1cdae836. But Idk whether you are using master or release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why would a source file have the execute bit set?
There is no reason for a C source file to be executable. This may sometimes happen if the file has been transferred from...
Read more >
How to Resume Interrupted Downloads in Google Chrome
In PowerShell, type "wget.exe -h" to load the Wget help menu. Rename the Partially Downloaded File. Before you download a file through Wget,...
Read more >
Download Build Artifacts: : broken file permission mask #6364
Issue Description. Permissions on the files are lost when downloaded to the agent. We have some files set to be executable.
Read more >
unetbootin - There is no application installed for executable files
Right click on unetbootin-linux-583 , click on Properties, choose the tab Permissions. Check the small square Allow executing file as ...
Read more >
Using Background Intelligent Transfer Service (BITS) from .NET
Your program can create new downloads from and uploads to HTTP web servers and SMB file servers. Your program can also monitor BITS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found