#1896·ArchiveBox

Bug: Cookies file not found error causing archive runs to silently fail.

Author: virtadptCreated Sep 29, 2026Updated Sep 30, 2026

Provide a screenshot and describe the bug

After upgrading I noticed that I wasn't able to archive anything anymore. The web user interface shows in the "Crawl Setup" window a constant red "! chrome launch.daemon.bg" notice and crawls never seem to continue. If I log into the server and look at the output from archivebox (because I'm still kicking the tires on it, I'm running the server in a shell) I keep seeing sequences of "Killing Chrome process tree," "Sending SIGTERM to Chrome process group," "ERROR: Error: Cookies file not found: cookies.txt" messages.

Per request, here's a screenshot of what I'm seeing:

Image

I do have a stderr log for a particular crawl attempt that I can upload if it'll help.

This also happens if I run archivebox add https://some.url.here... at which time I can capture the entire output.

Note: Because there is no option for this farther down the ticket, I installed ArchiveBox using uv to bare metal.

Note: All of my data is on a local RAID-1 array.

Steps to reproduce

markdown
1. `archivebox add https://github.com/ArchiveBox/ArchiveBox/issues/1645`
2. Wait for the text to stop scrolling.
3. Get an error.

Logs or errors

bash
Terminal output:


[2026-09-29 22:19:13] ERROR    abxbus ❌                       base_event.py:674
                               ArchiveBox_06abc39513ae75d08000                  
                               64a4792763bb#893c(queue=0                      
                               active=2 history=116                             
                               handlers=44) Error in event                   
                               handler                                          
                               CrawlService.on_CrawlSetupEvent                  
                               (ArchiveBox_06abc39513ae75d0800                  
                               064a4792763bb#893c▶                                                             CrawlSetupEvent#ad0d ) ->                      
                               RuntimeError(Background hook                     
                               on_CrawlSetup__90_chrome_launch                  
                               .daemon.bg exited before                                                        readiness (exit code 1)                          
                               stderr:                                          
                               waiting for other chrome                         
                               instances to finish                              
                               launching...                                     
                               launching chromium
                               /home/drwho/ArchiveBox/archive/                  
                               users/drwho/crawls/20260929/git                  
                               hub.com/06abc39513ae75d0800064a                  
                               4792763bb/.persona/Default/chro                  
                               me_profile...                                    
                               [*] Loading 5 extension(s)                       
                               after Chrome launch with CDP                     
                               Extensions.loadUnpacked                       
                               [*] Using debug port: 40141                      
                               [*] Loading Chrome extensions                    
                               after launch with CDP                            
                               Extensions.loadUnpacked                                                         [*] Spawning Chromium                            
                               (headless=true)...                               
                               [*] Chromium spawned (PID:                       
                               3657471)                                                                        [*] Waiting for debug port                       
                               40141...                                         
                               [+] Chromium ready:                              
                               ws://127.0.0.1:40141/devtools/b                  
                               rowser/9687b1cc-ac8f-45a8-bc39-                  
                               f3fb86fb33b2
                               [+] Configured Chrome download                   
                               directory via CDP:                               
                               /home/drwho/ArchiveBox/archive/                  
                               users/drwho/crawls/20260929/git                  
                               hub.com/06abc39513ae75d0800064a                  
                               4792763bb/.persona/Default/chro                  
                               me_downloads                                     
                               [⚙️] Loading 5 uUnpacked chrome                
                               extensions into browser...                       
                               [*] Killing Chrome process tree                  
                               (PID 3657471)...                                 
                               [*] Sending SIGTERM to Chrome                                                   process group 3657471...                         
                               [+] Chrome process tree                          
                               terminated gracefully                            
                               [*] Chrome cleanup completed                                                    [!] Browser.close failed:                        
                               connect ECONNREFUSED                             
                               127.0.0.1:40141                                  
                               [*] Killing Chrome process tree                  
                               (port null)...                                   
                               [+] Chrome process tree
                               terminated gracefully                            
                               [*] Chrome cleanup completed                     
                               ERROR: Error: Cookies file not                   
                               found: cookies.txt                               
                               Logs:                                            
                               /home/drwho/ArchiveBox/archive/                  
                               users/drwho/crawls/20260929/git                  
                               hub.com/06abc39513ae75d0800064a
                               4792763bb/chrome/on_CrawlSetup_                  
                               _90_chrome_launch.daemon.bg.01a                  
                               0ef4003f8fdca6a0c931648cd9acc.s                  
                               tdout.log                                                                       /home/drwho/ArchiveBox/archive/                  
                               users/drwho/crawls/20260929/git                  
                               hub.com/06abc39513ae75d0800064a                  
                               4792763bb/chrome/on_CrawlSetup_                                                 _90_chrome_launch.daemon.bg.01a                  
                               0ef4003f8fdca6a0c931648cd9acc.s                  
                               tderr.log)                                       
                               RuntimeError: Background hook                    
                               on_CrawlSetup__90_chrome_launch                  
                               .daemon.bg exited before
                               stderr:                                          
                               waiting for other chrome                         
                               instances to finish                              
                               launching...                                     
                               launching chromium                               
                               /home/drwho/ArchiveBox/archive/                  
                               users/drwho/crawls/20260929/git
                               hub.com/06abc39513ae75d0800064a                  
                               4792763bb/.persona/Default/chro                  
                               me_profile...                                    
                               [*] Loading 5 extension(s)                                                      after Chrome launch with CDP                     
                               Extensions.loadUnpacked                          
                               [*] Using debug port: 40141                      
                               [*] Loading Chrome extensions                                                   after launch with CDP                            
                               Extensions.loadUnpacked                          
                               [*] Spawning Chromium                            
                               (headless=true)...                               
                               [*] Chromium spawned (PID:                       
                               3657471)
                               [*] Waiting for debug port                       
                               40141...                                         
                               [+] Chromium ready:                              
                               ws://127.0.0.1:40141/devtools/b                  
                               rowser/9687b1cc-ac8f-45a8-bc39-                  
                               f3fb86fb33b2                                     
                               [+] Configured Chrome download                   
                               directory via CDP:             
                               /home/drwho/ArchiveBox/archive/                  
                               users/drwho/crawls/20260929/git                  
                               hub.com/06abc39513ae75d0800064a                  
                               4792763bb/.persona/Default/chro                                                 me_downloads                                     
                               [⚙️] Loading 5 unnpacked chrome                   
                               extensions into browser...                       
                               [*] Killing Chrome process tree                                                 (PID 3657471)...                                 
                               [*] Sending SIGTERM to Chrome                    
                               process group 3657471...                         
                               [+] Chrome process tree                          
                               terminated gracefully                            
                               [*] Chrome cleanup completed
                               [!] Browser.close failed:                        
                               connect ECONNREFUSED                             
                               127.0.0.1:40141                                  
                               [*] Killing Chrome process tree                  
                               (port null)...                                   
                               [+] Chrome process tree                          
                               terminated gracefully                            
                               [*] Chrome cleanup completed   
                               ERROR: Error: Cookies file not                   
                               found: cookies.txt                               
                               Logs:                                            
                               /home/drwho/ArchiveBox/archive/                                                 users/drwho/crawls/20260929/git                  
                               hub.com/06abc39513ae75d0800064a                  
                               4792763bb/chrome/on_CrawlSetup_                  
                               _90_chrome_launch.daemon.bg.01a                                                 0ef4003f8fdca6a0c931648cd9acc.s                  
                               tdout.log                                        
                               /home/drwho/ArchiveBox/archive/                  
                               users/drwho/crawls/20260929/git                  
                               hub.com/06abc39513ae75d0800064a                  
                               4792763bb/chrome/on_CrawlSetup_
                               _90_chrome_launch.daemon.bg.01a                  
                               0ef4003f8fdca6a0c931648cd9acc.s                  
on_CrawlSetup__90…  failed             -  8.0s/600s      ERROR: Error: Cookies …
                      ERROR    abxbus ❌                       base_event.py:674
                               ArchiveBox_06abc39513ae75d08000                  
                               64a4792763bb#893c(queue=0                      
                               active=1 history=122                             
                               handlers=44) Error in event    
                               handler                                          
                               archivebox.services.runner.on_a                  
                               rchivebox_CrawlEvent__run_recur                  
                               sive_crawl(ArchiveBox_06abc3951                                                 3ae75d0800064a4792763bb#893c▶                    
                               CrawlEvent#eb62 ) ->                           
                               RuntimeError(Background hook                     
                               on_CrawlSetup__90_chrome_launch                                                 .daemon.bg exited before                         
                               readiness (exit code 1)                          
                               stderr:                                          
                               waiting for other chrome                         
                               instances to finish                              
                               launching...
                               launching chromium                               
                               /home/drwho/ArchiveBox/archive/                  
                               users/drwho/crawls/20260929/git                  
                               hub.com/06abc39513ae75d0800064a                  
                               4792763bb/.persona/Default/chro                  
                               me_profile...                                    
                               [*] Loading 5 extension(s)                       
                               after Chrome launch with CDP   
                               Extensions.loadUnpacked                          
                               [*] Using debug port: 40141                      
                               [*] Loading Chrome extensions                    
                               after launch with CDP                                                           Extensions.loadUnpacked                          
                               [*] Spawning Chromium                            
                               (headless=true)...                               
                               [*] Chromium spawned (PID:                                                      3657471)                                         
                               [*] Waiting for debug port                       
                               40141...                                         
                               [+] Chromium ready:                              
                               ws://127.0.0.1:40141/devtools/b                  
                               rowser/9687b1cc-ac8f-45a8-bc39-
                               f3fb86fb33b2                                     
                               [+] Configured Chrome download                   
                               directory via CDP:                               
                               /home/drwho/ArchiveBox/archive/                  
                               users/drwho/crawls/20260929/git                  
                               hub.com/06abc39513ae75d0800064a                  
                               4792763bb/.persona/Default/chro                  
                               me_downloads                   
                               [⚙️] Loading 5 unpacked chrome                    
                               extensions into browser...                       
                               [*] Killing Chrome process tree                  
                               (PID 3657471)...                                                                [*] Sending SIGTERM to Chrome                    
                               process group 3657471...                         
                               [+] Chrome process tree                          
                               terminated gracefully                                                           [*] Chrome cleanup completed                     
                               [!] Browser.close failed:                        
                               connect ECONNREFUSED                             
                               127.0.0.1:40141                                  
                               [*] Killing Chrome process tree                  
                               (port null)...
                               [+] Chrome process tree                          
                               terminated gracefully                            
                               [*] Chrome cleanup completed                     
                               ERROR: Error: Cookies file not                   
                               found: cookies.txt                               
                               Logs:                                            
                               /home/drwho/ArchiveBox/archive/                  
                               users/drwho/crawls/20260929/git
                               hub.com/06abc39513ae75d0800064a                  
                               4792763bb/chrome/on_CrawlSetup_                  
                               _90_chrome_launch.daemon.bg.01a                  
                               0ef4003f8fdca6a0c931648cd9acc.s                                                 tdout.log                                        
                               /home/drwho/ArchiveBox/archive/                  
                               users/drwho/crawls/20260929/git                  
                               hub.com/06abc39513ae75d0800064a                                                 4792763bb/chrome/on_CrawlSetup_                  
                               _90_chrome_launch.daemon.bg.01a                  
                               0ef4003f8fdca6a0c931648cd9acc.s                  
                               tderr.log)