Skip to content

FlareSolverr 3.4.4 enters infinite restart loop on Linux (undetected_chromedriver path and Xvfb timeout errors) #1610

@matbe81

Description

@matbe81

Have you checked our README?

  • I have checked the README

Have you followed our Troubleshooting?

  • I have followed your Troubleshooting

Is there already an issue for your problem?

  • I have checked older issues, open and closed

Have you checked the discussions?

  • I have read the Discussions

Have you ACTUALLY checked all these?

YES

Environment

FlareSolverr version: 3.4.4
Last working FlareSolverr version: 3.4.3
Operating system: Ubuntu 24.04 (Linux 6.8.0-87-generic)
Are you using Docker: no
FlareSolverr User-Agent: (not available, browser failed to start)
Are you using a VPN: no
Are you using a Proxy: no
Are you using Captcha Solver: no
If using captcha solver, which one: —
URL to test this issue: any (fails before reaching web requests)

Description

After updating from 3.4.3 to 3.4.4, FlareSolverr fails to start correctly.
The process enters an infinite restart loop consuming all available memory.

Console logs show repeated errors like:

Exception: Error getting browser User-Agent.
[Errno 2] No such file or directory:
'/home/mathieu/.local/share/undetected_chromedriver/undetected/chromedriver-linux64/chromedriver'

and frequent Xvfb timeouts:

subprocess.TimeoutExpired: Command '['Xvfb', ':xxxx', '-screen', '0', '800x680x24']' timed out after 10 seconds

Even after removing and reinstalling undetected-chromedriver, the binary path keeps being recreated incorrectly and FlareSolverr restarts endlessly.
Downgrading back to 3.4.3 resolves the issue immediately.

It seems version 3.4.4 introduces a regression in how it manages the internal Chromium/driver initialization or Xvfb handling on non-Docker Linux environments.

Logged Error Messages

Exception: Error getting browser User-Agent.
[Errno 2] No such file or directory: '/home/mathieu/.local/share/undetected_chromedriver/undetected/chromedriver-linux64/chromedriver' -> '/home/mathieu/.local/share/undetected_chromedriver/undetected_chromedriver'
[PYI-XXXX:ERROR] Failed to execute script 'flaresolverr' due to unhandled exception!

and repeatedly:


subprocess.TimeoutExpired: Command '['Xvfb', ':XXXXXX', '-screen', '0', '800x680x24']' timed out after 10 seconds
Exception: Error getting browser User-Agent. Command '['Xvfb', ':XXXXXX', '-screen', '0', '800x680x24']' timed out after 10 seconds

These two errors occur in a continuous loop, causing FlareSolverr 3.4.4 to restart indefinitely and exhaust system memory.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions