--cookies-from-browser: Firefox: Custom Profile: "could not find firefox cookies database"
Author: ZianCreated Oct 1, 2026Updated Oct 1, 2026
Labelsbugtriage
Checklist
- I've read the NO AI / NO LLM POLICY and understand I may be blocked from the repository if it is violated
- I'm reporting a bug unrelated to a specific site
- I've verified that I have updated yt-dlp to nightly or master (update instructions)
- I've searched known issues, the FAQ, and the bugtracker for similar issues including closed ones. DO NOT post duplicates
Provide a description that is worded well enough to be understood
After providing the name of a Firefox profile to --cookies-from-browser, yt-dlp says "could not find firefox cookies database".
Steps to reproduce the problem: Run the following command: yt-dlp.exe --cookies-from-browser firefox:"Redacted Phrase" https://www.example.net
Expected Result: yt-dlp should locate the cookies from the profile named "Redacted Phrase" without showing an error message.
Actual Result: ERROR: could not find firefox cookies database in 'C:\Users\Zian\AppData\Roaming\Mozilla\Firefox\Profiles\Redacted Phrase', 'C:\Users\Zian\AppData\Local\Packages\Mozilla.Firefox_n80bbvh6b1yt2\LocalCache\Roaming\Mozilla\Firefox\Profiles\Redacted Phrase'
Workaround:
- Open a new browser tab.
- Go to about:profiles.
- Locate the "Root Path" of the desired profile. Example value: C:\Users\Zian\AppData\Roaming\Mozilla\Firefox\Profiles\vru7w2wr.Redacted Phrase
- Use the value from step 3 in --cokies-from-browser instead of the name of the profile.
Provide verbose output that clearly demonstrates the problem
- Run your yt-dlp command with -vU flag added (
yt-dlp -vU <your command line>) - If using API, add
'verbose': TruetoYoutubeDLparams instead - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
[debug] Command-line config: ['-vU', '--cookies-from-browser', 'firefox:Redacted Phrase', 'https://www.example.net']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version [email protected] from yt-dlp/yt-dlp-nightly-builds [51bab8a01] (win_exe)
[debug] Python 3.10.11 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1t 7 Feb 2023)
[debug] exe versions: ffmpeg 4.2.3
[debug] Optional libraries: Cryptodome-3.23.0, brotli-1.2.0, certifi-2026.07.22, curl_cffi-0.16.0, mutagen-1.48.1, requests-2.34.2, sqlite3-3.40.1, urllib3-2.7.0, websockets-16.1.1, yt_dlp_ejs-0.8.0
[debug] JS runtimes: none
[debug] Proxy map: {}
Extracting cookies from firefox
ERROR: could not find firefox cookies database in 'C:\\Users\\Zian\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\Redacted Phrase', 'C:\\Users\\Zian\\AppData\\Local\\Packages\\Mozilla.Firefox_n80bbvh6b1yt2\\LocalCache\\Roaming\\Mozilla\\Firefox\\Profiles\\Redacted Phrase'
Traceback (most recent call last):
File "yt_dlp\cookies.py", line 99, in load_cookies
File "yt_dlp\cookies.py", line 118, in extract_cookies_from_browser
File "yt_dlp\cookies.py", line 146, in _extract_firefox_cookies
FileNotFoundError: could not find firefox cookies database in 'C:\\Users\\Zian\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\Redacted Phrase', 'C:\\Users\\Zian\\AppData\\Local\\Packages\\Mozilla.Firefox_n80bbvh6b1yt2\\LocalCache\\Roaming\\Mozilla\\Firefox\\Profiles\\Redacted Phrase'Source: yt-dlp/yt-dlp