[GH-ISSUE #3225] youtube-dl abruptly terminates on firejail 0.9.60-1 without saying anything; works with --noprofile; Fedora 30; youtube-dl version 2020.01.24 #2023

Closed
opened 2026-05-05 08:41:40 -06:00 by gitea-mirror · 11 comments
Owner

Originally created by @MystesofEternity on GitHub (Feb 14, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3225

Info:
Fedora 30
Firejail version 0.9.60-1
youtube-dl version 2020.01.24

Command executed:
firejail --seccomp --netfilter=/etc/firejail/nolocal.net youtube-dl --help

Command expectation:
Help text provided by youtube-dl will show.

Command result:
Command ended without any feedback.

--noprofile works for reasons I am incapable of identifying.

Previously, I used firejail-0.9.58.2-1 and it worked flawlessly with youtube-dl.
Installing firejail-0.9.60-1 caused this issue for me. However, firejail-0.9.60-1 works flawlessly with my Firefox 72

Originally created by @MystesofEternity on GitHub (Feb 14, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3225 Info: Fedora 30 Firejail version 0.9.60-1 youtube-dl version 2020.01.24 Command executed: firejail --seccomp --netfilter=/etc/firejail/nolocal.net youtube-dl --help Command expectation: Help text provided by youtube-dl will show. Command result: Command ended without any feedback. --noprofile works for reasons I am incapable of identifying. Previously, I used firejail-0.9.58.2-1 and it worked flawlessly with youtube-dl. Installing firejail-0.9.60-1 caused this issue for me. However, firejail-0.9.60-1 works flawlessly with my Firefox 72
gitea-mirror 2026-05-05 08:41:40 -06:00
Author
Owner

@rusty-snake commented on GitHub (Feb 14, 2020):

What happens if you start it "normal" with firejail youtube-dl --help?
For me this is working. Fedora 31 ytdl 2020.01.24 firejail git.

<!-- gh-comment-id:586274542 --> @rusty-snake commented on GitHub (Feb 14, 2020): What happens if you start it "normal" with `firejail youtube-dl --help`? For me this is working. Fedora 31 ytdl 2020.01.24 firejail git.
Author
Owner

@MystesofEternity commented on GitHub (Feb 17, 2020):

The problem persists even if I use just firejail youtube-dl --help
It might be a Fedora 30-only problem at this version of firejail D:
As much as I'd like to upgrade to Fedora 31, the Fedora 31 template for the security-oriented Xen hypervisor that I am using is still in the middle of testing and I cannot upgrade yet RIP

I'm all game if ever you need more logs or stuff from me but I'm also fine with leaving this problem in the dark since I can pretty much live with --noprofile until the Fedora 31 template that I am waiting for graduates out of testing.

<!-- gh-comment-id:586900059 --> @MystesofEternity commented on GitHub (Feb 17, 2020): The problem persists even if I use just `firejail youtube-dl --help` It might be a Fedora 30-only problem at this version of firejail D: As much as I'd like to upgrade to Fedora 31, the Fedora 31 template for the security-oriented Xen hypervisor that I am using is still in the middle of testing and I cannot upgrade yet RIP I'm all game if ever you need more logs or stuff from me but I'm also fine with leaving this problem in the dark since I can pretty much live with --noprofile until the Fedora 31 template that I am waiting for graduates out of testing.
Author
Owner

@rusty-snake commented on GitHub (Feb 17, 2020):

I've three points:

  1. To exclude self-made issuses: has you edited any profile or .local files?
  2. If you watch journalctl --follow while trying ytdl, is there anything related logged?
  3. If none of the above helps, you will need to comment everything and uncomment line for line to find the problematic line.
<!-- gh-comment-id:586995677 --> @rusty-snake commented on GitHub (Feb 17, 2020): I've three points: 1. To exclude self-made issuses: has you edited any profile or .local files? 2. If you watch `journalctl --follow` while trying ytdl, is there anything related logged? 3. If none of the above helps, you will need to comment everything and uncomment line for line to find the problematic line.
Author
Owner

@MystesofEternity commented on GitHub (Feb 22, 2020):

@rusty-snake I did as you said and here are the results:

  1. Nope, I have no reason to do that as of yet
  2. Tried to watch journalctl --follow but nothing came up when I executed the commands that caused this problem.
  3. After commenting out one by one, I was able to narrow it down to this line:
    private-bin youtube-dl,python*,ffmpeg

IDK why this line causes the problem, it's quite weird. Maybe cause I don't have ffmpeg installed?

<!-- gh-comment-id:589940765 --> @MystesofEternity commented on GitHub (Feb 22, 2020): @rusty-snake I did as you said and here are the results: 1. Nope, I have no reason to do that as of yet 2. Tried to watch `journalctl --follow` but nothing came up when I executed the commands that caused this problem. 3. After commenting out one by one, I was able to narrow it down to this line: `private-bin youtube-dl,python*,ffmpeg` IDK why this line causes the problem, it's quite weird. Maybe cause I don't have ffmpeg installed?
Author
Owner

@rusty-snake commented on GitHub (Feb 22, 2020):

firejail --build youtube-dl --help | grep private-bin

<!-- gh-comment-id:589983686 --> @rusty-snake commented on GitHub (Feb 22, 2020): `firejail --build youtube-dl --help | grep private-bin`
Author
Owner

@MystesofEternity commented on GitHub (Feb 24, 2020):

Executed that and got this output:
private-bin python2.7,

<!-- gh-comment-id:590247374 --> @MystesofEternity commented on GitHub (Feb 24, 2020): Executed that and got this output: private-bin python2.7,
Author
Owner

@rusty-snake commented on GitHub (Feb 24, 2020):

Looks you have the python2 version of ytdl, thats seems to be the reason. I have the python3 version.

<!-- gh-comment-id:590251199 --> @rusty-snake commented on GitHub (Feb 24, 2020): Looks you have the python2 version of ytdl, thats seems to be the reason. I have the python3 version.
Author
Owner

@MystesofEternity commented on GitHub (Feb 24, 2020):

Oh what, I don't even know if I'm getting the python2 version or the python3
All I do is go to the releases page and get the plain youtube-dl
https://github.com/ytdl-org/youtube-dl/releases/download/2020.02.16/youtube-dl

I tried getting the tar.gz archive and it contained two different youtube-dl binaries; one in the main directory of the extracted archive and one located within the bin folder.

How do I tell which is the python3 version?

<!-- gh-comment-id:590312614 --> @MystesofEternity commented on GitHub (Feb 24, 2020): Oh what, I don't even know if I'm getting the python2 version or the python3 All I do is go to the releases page and get the plain youtube-dl https://github.com/ytdl-org/youtube-dl/releases/download/2020.02.16/youtube-dl I tried getting the tar.gz archive and it contained two different youtube-dl binaries; one in the main directory of the extracted archive and one located within the bin folder. How do I tell which is the python3 version?
Author
Owner

@rusty-snake commented on GitHub (Feb 24, 2020):

You have at least four ways to install ytdl:

  1. with dnf (as I do)
  2. with pip
  3. manually from https://github.com/ytdl-org/youtube-dl/releases
  4. with wget and https://yt-dl.org/downloads/latest/youtube-dl

https://ytdl-org.github.io/youtube-dl/download.html

<!-- gh-comment-id:590320215 --> @rusty-snake commented on GitHub (Feb 24, 2020): You have at least four ways to install ytdl: 1. with dnf (as I do) 2. with pip 3. manually from https://github.com/ytdl-org/youtube-dl/releases 4. with wget and https://yt-dl.org/downloads/latest/youtube-dl https://ytdl-org.github.io/youtube-dl/download.html
Author
Owner

@rusty-snake commented on GitHub (Feb 24, 2020):

Oh what, I don't even know if I'm getting the python2 version or the python3
All I do is go to the releases page and get the plain youtube-dl
https://github.com/ytdl-org/youtube-dl/releases/download/2020.02.16/youtube-dl

This file uses #!/usr/bin/env python as shebang.
/usr/bin/python is an symlink to python3 for Arch and Fedora 31, for Debian, Ubuntu, Fedora 30, .. it is still python2.

<!-- gh-comment-id:590322452 --> @rusty-snake commented on GitHub (Feb 24, 2020): > Oh what, I don't even know if I'm getting the python2 version or the python3 > All I do is go to the releases page and get the plain youtube-dl > https://github.com/ytdl-org/youtube-dl/releases/download/2020.02.16/youtube-dl This file uses `#!/usr/bin/env python` as shebang. /usr/bin/python is an symlink to python3 for Arch and Fedora 31, for Debian, Ubuntu, Fedora 30, .. it is still python2.
Author
Owner

@MystesofEternity commented on GitHub (Feb 27, 2020):

Thank you for this! I have totally forgotten about that change to python defaults so this really helped me realize things.

That should just about solve this case I believe, I am grateful for your close assistance in solving this mystery!

<!-- gh-comment-id:591776230 --> @MystesofEternity commented on GitHub (Feb 27, 2020): Thank you for this! I have totally forgotten about that change to python defaults so this really helped me realize things. That should just about solve this case I believe, I am grateful for your close assistance in solving this mystery!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2023
No description provided.