You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "bnprayoga (via GitHub)" <gi...@apache.org> on 2025/10/22 04:33:28 UTC
[D] SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome [superset]
GitHub user bnprayoga created a discussion: SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome
Hi,
I'am new as programmer and i'am also new on Superset.
I have an issue on Superset Alert and Report, that says: `Failed taking a screenshot Message: session not created from unknown error: no chrome binary at /usr/bin/google-chrome`
but i think i have installed it properly because when i run comand: `which google-chrome` and `which chromedriver` it works and show the location on /usr/bin/google-chrome and /usr/bin/chromedriver.
below is the full error logs:
[2025-10-22 11:17:04,282: ERROR/ForkPoolWorker-1] A downstream exception occurred while generating a report: 7441e988-5330-4fbc-b1ce-7c571cd8705d. Failed taking a screenshot Message: session not created
from unknown error: no chrome binary at /usr/bin/google-chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#sessionnotcreatedexception
Stacktrace:
#0 0x6389d6c0c95a <unknown>
#1 0x6389d66ad536 <unknown>
#2 0x6389d66e4ea3 <unknown>
#3 0x6389d66e3cdf <unknown>
#4 0x6389d6732fa9 <unknown>
#5 0x6389d67326b6 <unknown>
#6 0x6389d67244f3 <unknown>
#7 0x6389d66f09c8 <unknown>
#8 0x6389d66f1661 <unknown>
#9 0x6389d6bd18df <unknown>
#10 0x6389d6bd5a28 <unknown>
#11 0x6389d6bb899c <unknown>
#12 0x6389d6bd61ee <unknown>
#13 0x6389d6ba052e <unknown>
#14 0x6389d6bf9be8 <unknown>
#15 0x6389d6bf9dff <unknown>
#16 0x6389d6c0b44c <unknown>
#17 0x75b2f8494ac3 <unknown>
Traceback (most recent call last):
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/commands/report/execute.py", line 357, in _get_screenshots
if imge := screenshot.get_screenshot(user=user):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/utils/screenshots.py", line 176, in get_screenshot
self.screenshot = driver.get_screenshot(self.url, self.element, user)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/utils/webdriver.py", line 387, in get_screenshot
driver = self.auth(user)
^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/utils/webdriver.py", line 311, in auth
driver = self.create()
^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/utils/webdriver.py", line 308, in create
return driver_class(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 46, in __init__
super().__init__(
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 71, in __init__
super().__init__(command_executor=executor, options=options)
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 263, in __init__
self.start_session(capabilities)
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 366, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 458, in execute
self.error_handler.check_response(response)
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 232, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created
from unknown error: no chrome binary at /usr/bin/google-chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#sessionnotcreatedexception
Stacktrace
and below is some part of my superset_config.py:
REDIS_HOST = "localhost"
REDIS_PORT = "6379"
class CeleryConfig:
broker_url = f"redis://{REDIS_HOST}:{REDIS_PORT}/0"
imports = (
"superset.sql_lab",
"superset.tasks.scheduler",
)
result_backend = f"redis://{REDIS_HOST}:{REDIS_PORT}/0"
worker_prefetch_multiplier = 10
task_acks_late = True
task_annotations = {
"sql_lab.get_sql_results": {
"rate_limit": "100/s",
},
}
beat_schedule = {
"reports.scheduler": {
"task": "reports.scheduler",
"schedule": crontab(minute="*", hour="*"),
},
"reports.prune_log": {
"task": "reports.prune_log",
"schedule": crontab(minute=0, hour=0),
},
}
CELERY_CONFIG = CeleryConfig
SCREENSHOT_LOCATE_WAIT = 100
SCREENSHOT_LOAD_WAIT = 600
# Slack configuration
SLACK_API_TOKEN = "xoxb-"
# Email configuration
SMTP_HOST = "smtp.gmail.com" # change to your host
SMTP_PORT = 465 # your port, e.g. 587
SMTP_STARTTLS = False
SMTP_SSL_SERVER_AUTH = True # If your using an SMTP server with a valid certificate
SMTP_SSL = True
SMTP_USER = "xxx@ptssr.co.id" # use the empty string "" if using an unauthenticated SMTP server
SMTP_PASSWORD = "xxx" # use the empty string "" if using an unauthenticated SMTP server
SMTP_MAIL_FROM = "xxx@ptssr.co.id"
EMAIL_REPORTS_SUBJECT_PREFIX = "[Superset Report] " # optional - overwrites default value in config.py of "[Report] "
# WebDriver configuration
# If you use Firefox, you can stick with default values
# If you use Chrome, then add the following WEBDRIVER_TYPE and WEBDRIVER_OPTION_ARGS
WEBDRIVER_TYPE = "chrome"
WEBDRIVER_OPTION_ARGS = [
"--force-device-scale-factor=2.0",
"--high-dpi-support=2.0",
"--headless",
"--disable-gpu",
"--disable-dev-shm-usage",
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-extensions",
]
# This is for internal use, you can keep http
WEBDRIVER_BASEURL = "http://localhost:8088" # When running using docker compose use "http://superset_app:8088'
# This is the link sent to the recipient. Change to your domain, e.g. https://superset.mydomain.com
WEBDRIVER_BASEURL_USER_FRIENDLY = "http://localhost:8088"
CHROME_BINARY_LOCATION="/usr/bin/google-chrome"
Another info:
- i am installing apache superset via PyPI on virtual env
- i am using apache superset version 5.0.0
GitHub link: https://github.com/apache/superset/discussions/35780
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome [superset]
Posted by "baburaju95 (via GitHub)" <gi...@apache.org>.
GitHub user baburaju95 added a comment to the discussion: SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome
I am still facing the issue. Can you please help me out in setting up the Superset with email alert and reports setup?
GitHub link: https://github.com/apache/superset/discussions/35780#discussioncomment-14801065
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome [superset]
Posted by "Devi-6901 (via GitHub)" <gi...@apache.org>.
GitHub user Devi-6901 added a comment to the discussion: SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome
I was facing similar and some other issues when i tried using chrome so i tried switching to firefox and it is working fine
GitHub link: https://github.com/apache/superset/discussions/35780#discussioncomment-14749913
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome [superset]
Posted by "baburaju95 (via GitHub)" <gi...@apache.org>.
GitHub user baburaju95 added a comment to the discussion: SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome
This is the error that i am getting
*********************************************************************************************************************************************
superset_worker | {'code': 65, 'message': 'Unsuccessful response (404 Not Found) for URL https://ftp.mozilla.org/pub/firefox/releases/144.0.2/linux-x86_64/en-US/firefox-144.0.2.tar.bz2', 'driver_path': '', 'browser_path': ''}
superset_worker |
superset_worker |
superset_worker |
superset_worker | The above exception was the direct cause of the following exception:
superset_worker |
superset_worker | Traceback (most recent call last):
superset_worker | File "/app/superset/commands/report/execute.py", line 357, in _get_screenshots
superset_worker | if imge := screenshot.get_screenshot(user=user):
superset_worker | File "/app/superset/utils/screenshots.py", line 176, in get_screenshot
superset_worker | self.screenshot = driver.get_screenshot(self.url, self.element, user)
superset_worker | File "/app/superset/utils/webdriver.py", line 387, in get_screenshot
superset_worker | driver = self.auth(user)
superset_worker | File "/app/superset/utils/webdriver.py", line 311, in auth
superset_worker | driver = self.create()
superset_worker | File "/app/superset/utils/webdriver.py", line 308, in create
superset_worker | return driver_class(**kwargs)
superset_worker | File "/app/.venv/lib/python3.10/site-packages/selenium/webdriver/firefox/webdriver.py", line 57, in __init__
superset_worker | if finder.get_browser_path():
superset_worker | File "/app/.venv/lib/python3.10/site-packages/selenium/webdriver/common/driver_finder.py", line 47, in get_browser_path
superset_worker | return self._binary_paths()["browser_path"]
superset_worker | File "/app/.venv/lib/python3.10/site-packages/selenium/webdriver/common/driver_finder.py", line 78, in _binary_paths
superset_worker | raise NoSuchDriverException(msg) from err
superset_worker | selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for firefox; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
superset_worker |
superset_worker |
superset_worker | The above exception was the direct cause of the following exception:
superset_worker |
superset_worker | Traceback (most recent call last):
superset_worker | File "/app/superset/tasks/scheduler.py", line 99, in execute
superset_worker | ).run()
superset_worker | File "/app/superset/utils/decorators.py", line 266, in wrapped
superset_worker | return on_error(ex)
superset_worker | File "/app/superset/utils/decorators.py", line 236, in on_error
superset_worker | raise ex
superset_worker | File "/app/superset/utils/decorators.py", line 259, in wrapped
superset_worker | result = func(*args, **kwargs)
superset_worker | File "/app/superset/commands/report/execute.py", line 896, in run
superset_worker | ).run()
superset_worker | File "/app/superset/utils/decorators.py", line 266, in wrapped
superset_worker | return on_error(ex)
superset_worker | File "/app/superset/utils/decorators.py", line 236, in on_error
superset_worker | raise ex
superset_worker | File "/app/superset/utils/decorators.py", line 259, in wrapped
superset_worker | result = func(*args, **kwargs)
superset_worker | File "/app/superset/commands/report/execute.py", line 858, in run
superset_worker | ).next()
superset_worker | File "/app/superset/commands/report/execute.py", line 726, in next
superset_worker | self.send()
superset_worker | File "/app/superset/commands/report/execute.py", line 624, in send
superset_worker | notification_content = self._get_notification_content()
superset_worker | File "/app/superset/commands/report/execute.py", line 505, in _get_notification_content
superset_worker | screenshot_data = self._get_screenshots()
superset_worker | File "/app/superset/commands/report/execute.py", line 363, in _get_screenshots
superset_worker | raise ReportScheduleScreenshotFailedError(
superset_worker | superset.commands.report.exceptions.ReportScheduleScreenshotFailedError: Failed taking a screenshot Message: Unable to obtain driver for firefox; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
**********************************************************************************************************************************************
[config.py](https://github.com/user-attachments/files/23295898/config.py)
GitHub link: https://github.com/apache/superset/discussions/35780#discussioncomment-14854687
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome [superset]
Posted by "baburaju95 (via GitHub)" <gi...@apache.org>.
GitHub user baburaju95 added a comment to the discussion: SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome
Could someone help me with this?
GitHub link: https://github.com/apache/superset/discussions/35780#discussioncomment-14877209
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome [superset]
Posted by "bnprayoga (via GitHub)" <gi...@apache.org>.
GitHub user bnprayoga edited a discussion: SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome
Hi,
I'am new as programmer and i'am also new on Superset.
I have an issue on Superset Alert and Report, that says: `Failed taking a screenshot Message: session not created from unknown error: no chrome binary at /usr/bin/google-chrome`
but i think i have installed it properly because when i run comand: `which google-chrome` and `which chromedriver` it works and show the location on /usr/bin/google-chrome and /usr/bin/chromedriver.
```code
below is the full error logs:
[2025-10-22 11:17:04,282: ERROR/ForkPoolWorker-1] A downstream exception occurred while generating a report: 7441e988-5330-4fbc-b1ce-7c571cd8705d. Failed taking a screenshot Message: session not created
from unknown error: no chrome binary at /usr/bin/google-chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#sessionnotcreatedexception
Stacktrace:
#0 0x6389d6c0c95a <unknown>
#1 0x6389d66ad536 <unknown>
#2 0x6389d66e4ea3 <unknown>
#3 0x6389d66e3cdf <unknown>
#4 0x6389d6732fa9 <unknown>
#5 0x6389d67326b6 <unknown>
#6 0x6389d67244f3 <unknown>
#7 0x6389d66f09c8 <unknown>
#8 0x6389d66f1661 <unknown>
#9 0x6389d6bd18df <unknown>
#10 0x6389d6bd5a28 <unknown>
#11 0x6389d6bb899c <unknown>
#12 0x6389d6bd61ee <unknown>
#13 0x6389d6ba052e <unknown>
#14 0x6389d6bf9be8 <unknown>
#15 0x6389d6bf9dff <unknown>
#16 0x6389d6c0b44c <unknown>
#17 0x75b2f8494ac3 <unknown>
Traceback (most recent call last):
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/commands/report/execute.py", line 357, in _get_screenshots
if imge := screenshot.get_screenshot(user=user):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/utils/screenshots.py", line 176, in get_screenshot
self.screenshot = driver.get_screenshot(self.url, self.element, user)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/utils/webdriver.py", line 387, in get_screenshot
driver = self.auth(user)
^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/utils/webdriver.py", line 311, in auth
driver = self.create()
^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/utils/webdriver.py", line 308, in create
return driver_class(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 46, in __init__
super().__init__(
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 71, in __init__
super().__init__(command_executor=executor, options=options)
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 263, in __init__
self.start_session(capabilities)
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 366, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 458, in execute
self.error_handler.check_response(response)
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 232, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created
from unknown error: no chrome binary at /usr/bin/google-chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#sessionnotcreatedexception
Stacktrace
```
and below is some part of my superset_config.py:
```python
REDIS_HOST = "localhost"
REDIS_PORT = "6379"
class CeleryConfig:
broker_url = f"redis://{REDIS_HOST}:{REDIS_PORT}/0"
imports = (
"superset.sql_lab",
"superset.tasks.scheduler",
)
result_backend = f"redis://{REDIS_HOST}:{REDIS_PORT}/0"
worker_prefetch_multiplier = 10
task_acks_late = True
task_annotations = {
"sql_lab.get_sql_results": {
"rate_limit": "100/s",
},
}
beat_schedule = {
"reports.scheduler": {
"task": "reports.scheduler",
"schedule": crontab(minute="*", hour="*"),
},
"reports.prune_log": {
"task": "reports.prune_log",
"schedule": crontab(minute=0, hour=0),
},
}
CELERY_CONFIG = CeleryConfig
SCREENSHOT_LOCATE_WAIT = 100
SCREENSHOT_LOAD_WAIT = 600
# Slack configuration
SLACK_API_TOKEN = "xoxb-"
# Email configuration
SMTP_HOST = "smtp.gmail.com" # change to your host
SMTP_PORT = 465 # your port, e.g. 587
SMTP_STARTTLS = False
SMTP_SSL_SERVER_AUTH = True # If your using an SMTP server with a valid certificate
SMTP_SSL = True
SMTP_USER = "xxx@ptssr.co.id" # use the empty string "" if using an unauthenticated SMTP server
SMTP_PASSWORD = "xxx" # use the empty string "" if using an unauthenticated SMTP server
SMTP_MAIL_FROM = "xxx@ptssr.co.id"
EMAIL_REPORTS_SUBJECT_PREFIX = "[Superset Report] " # optional - overwrites default value in config.py of "[Report] "
# WebDriver configuration
# If you use Firefox, you can stick with default values
# If you use Chrome, then add the following WEBDRIVER_TYPE and WEBDRIVER_OPTION_ARGS
WEBDRIVER_TYPE = "chrome"
WEBDRIVER_OPTION_ARGS = [
"--force-device-scale-factor=2.0",
"--high-dpi-support=2.0",
"--headless",
"--disable-gpu",
"--disable-dev-shm-usage",
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-extensions",
]
# This is for internal use, you can keep http
WEBDRIVER_BASEURL = "http://localhost:8088" # When running using docker compose use "http://superset_app:8088'
# This is the link sent to the recipient. Change to your domain, e.g. https://superset.mydomain.com
WEBDRIVER_BASEURL_USER_FRIENDLY = "http://localhost:8088"
CHROME_BINARY_LOCATION="/usr/bin/google-chrome"
```
Another info:
- i am installing apache superset via PyPI on virtual env
- i am using apache superset version 5.0.0
GitHub link: https://github.com/apache/superset/discussions/35780
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome [superset]
Posted by "bnprayoga (via GitHub)" <gi...@apache.org>.
GitHub user bnprayoga added a comment to the discussion: SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome
@Devi-6901 wow, it works! thankyou ❤
GitHub link: https://github.com/apache/superset/discussions/35780#discussioncomment-14768651
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome [superset]
Posted by "bnprayoga (via GitHub)" <gi...@apache.org>.
GitHub user bnprayoga edited a discussion: SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome
Hi,
I'am new as programmer and i'am also new on Superset.
I have an issue on Superset Alert and Report, that says: `Failed taking a screenshot Message: session not created from unknown error: no chrome binary at /usr/bin/google-chrome`
but i think i have installed it properly because when i run comand: `which google-chrome` and `which chromedriver` it works and show the location on /usr/bin/google-chrome and /usr/bin/chromedriver.
below is the full error logs:
```bash
[2025-10-22 11:17:04,282: ERROR/ForkPoolWorker-1] A downstream exception occurred while generating a report: 7441e988-5330-4fbc-b1ce-7c571cd8705d. Failed taking a screenshot Message: session not created
from unknown error: no chrome binary at /usr/bin/google-chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#sessionnotcreatedexception
Stacktrace:
#0 0x6389d6c0c95a <unknown>
#1 0x6389d66ad536 <unknown>
#2 0x6389d66e4ea3 <unknown>
#3 0x6389d66e3cdf <unknown>
#4 0x6389d6732fa9 <unknown>
#5 0x6389d67326b6 <unknown>
#6 0x6389d67244f3 <unknown>
#7 0x6389d66f09c8 <unknown>
#8 0x6389d66f1661 <unknown>
#9 0x6389d6bd18df <unknown>
#10 0x6389d6bd5a28 <unknown>
#11 0x6389d6bb899c <unknown>
#12 0x6389d6bd61ee <unknown>
#13 0x6389d6ba052e <unknown>
#14 0x6389d6bf9be8 <unknown>
#15 0x6389d6bf9dff <unknown>
#16 0x6389d6c0b44c <unknown>
#17 0x75b2f8494ac3 <unknown>
Traceback (most recent call last):
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/commands/report/execute.py", line 357, in _get_screenshots
if imge := screenshot.get_screenshot(user=user):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/utils/screenshots.py", line 176, in get_screenshot
self.screenshot = driver.get_screenshot(self.url, self.element, user)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/utils/webdriver.py", line 387, in get_screenshot
driver = self.auth(user)
^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/utils/webdriver.py", line 311, in auth
driver = self.create()
^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/superset/utils/webdriver.py", line 308, in create
return driver_class(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 46, in __init__
super().__init__(
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 71, in __init__
super().__init__(command_executor=executor, options=options)
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 263, in __init__
self.start_session(capabilities)
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 366, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 458, in execute
self.error_handler.check_response(response)
File "/home/bnprayoga/projects/app/superset/superset_env/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 232, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created
from unknown error: no chrome binary at /usr/bin/google-chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#sessionnotcreatedexception
Stacktrace
```
and below is some part of my superset_config.py:
```python
REDIS_HOST = "localhost"
REDIS_PORT = "6379"
class CeleryConfig:
broker_url = f"redis://{REDIS_HOST}:{REDIS_PORT}/0"
imports = (
"superset.sql_lab",
"superset.tasks.scheduler",
)
result_backend = f"redis://{REDIS_HOST}:{REDIS_PORT}/0"
worker_prefetch_multiplier = 10
task_acks_late = True
task_annotations = {
"sql_lab.get_sql_results": {
"rate_limit": "100/s",
},
}
beat_schedule = {
"reports.scheduler": {
"task": "reports.scheduler",
"schedule": crontab(minute="*", hour="*"),
},
"reports.prune_log": {
"task": "reports.prune_log",
"schedule": crontab(minute=0, hour=0),
},
}
CELERY_CONFIG = CeleryConfig
SCREENSHOT_LOCATE_WAIT = 100
SCREENSHOT_LOAD_WAIT = 600
# Slack configuration
SLACK_API_TOKEN = "xoxb-"
# Email configuration
SMTP_HOST = "smtp.gmail.com" # change to your host
SMTP_PORT = 465 # your port, e.g. 587
SMTP_STARTTLS = False
SMTP_SSL_SERVER_AUTH = True # If your using an SMTP server with a valid certificate
SMTP_SSL = True
SMTP_USER = "xxx@ptssr.co.id" # use the empty string "" if using an unauthenticated SMTP server
SMTP_PASSWORD = "xxx" # use the empty string "" if using an unauthenticated SMTP server
SMTP_MAIL_FROM = "xxx@ptssr.co.id"
EMAIL_REPORTS_SUBJECT_PREFIX = "[Superset Report] " # optional - overwrites default value in config.py of "[Report] "
# WebDriver configuration
# If you use Firefox, you can stick with default values
# If you use Chrome, then add the following WEBDRIVER_TYPE and WEBDRIVER_OPTION_ARGS
WEBDRIVER_TYPE = "chrome"
WEBDRIVER_OPTION_ARGS = [
"--force-device-scale-factor=2.0",
"--high-dpi-support=2.0",
"--headless",
"--disable-gpu",
"--disable-dev-shm-usage",
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-extensions",
]
# This is for internal use, you can keep http
WEBDRIVER_BASEURL = "http://localhost:8088" # When running using docker compose use "http://superset_app:8088'
# This is the link sent to the recipient. Change to your domain, e.g. https://superset.mydomain.com
WEBDRIVER_BASEURL_USER_FRIENDLY = "http://localhost:8088"
CHROME_BINARY_LOCATION="/usr/bin/google-chrome"
```
Another info:
- i am installing apache superset via PyPI on virtual env
- i am using apache superset version 5.0.0
GitHub link: https://github.com/apache/superset/discussions/35780
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome
<!-- Greeting -->
Hi @bnprayoga! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
The error means Superset (via Selenium) can't find or run Chrome at `/usr/bin/google-chrome`, even though your shell can. This usually happens because the Celery worker process runs with a different environment or permissions than your shell.
Here’s how to fix it:
1. **Check permissions:** Run `ls -l /usr/bin/google-chrome` and make sure the user running Superset and Celery can execute it.
2. **Version match:** Make sure your Chrome and ChromeDriver versions match exactly. Run `google-chrome --version` and `chromedriver --version` to check.
3. **Configuration:** Superset expects the Chrome binary path in the `WEBDRIVER_CONFIGURATION` dictionary, not just as `CHROME_BINARY_LOCATION`. Update your `superset_config.py` like this:
```python
WEBDRIVER_TYPE = "chrome"
WEBDRIVER_OPTION_ARGS = [
"--force-device-scale-factor=2.0",
"--high-dpi-support=2.0",
"--headless",
"--disable-gpu",
"--disable-dev-shm-usage",
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-extensions",
]
WEBDRIVER_CONFIGURATION = {
"service": {
"executable_path": "/usr/bin/chromedriver",
"log_output": "/dev/null",
"service_args": [],
"port": 0,
"env": {},
},
"options": {
"capabilities": {},
"preferences": {},
"binary_location": "/usr/bin/google-chrome",
},
}
```
[Reference](https://github.com/apache/superset/discussions/35178)
4. **Restart everything:** After changing config, restart both Superset and all Celery workers so they pick up the new settings.
5. **Environment:** If you’re running Superset and Celery in a virtual environment, make sure both are started from the same shell/environment so they see the same PATH and config.
If you still get errors, check for system restrictions (like SELinux/AppArmor), and confirm that `/usr/bin/google-chrome` is executable by the Superset/Celery user.
If Selenium keeps failing, you can switch to Playwright for screenshots and reports by setting `PLAYWRIGHT_REPORTS_AND_THUMBNAILS = True` in your config and installing the `playwright` Python package. Playwright is often more robust in tricky environments.
Let me know if you need help with any of these steps!
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=507513e2-c688-4d2a-b12e-77fc0456a224) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/35780#discussioncomment-14746775
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome [superset]
Posted by "Devi-6901 (via GitHub)" <gi...@apache.org>.
GitHub user Devi-6901 added a comment to the discussion: SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome
what is the exact issue you are facing ?
GitHub link: https://github.com/apache/superset/discussions/35780#discussioncomment-14805886
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: SUPERSET ALERT & REPORT: no chrome binary at /usr/bin/google-chrome
<!-- Greeting -->
Hi @bnprayoga! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
The error means Superset (via Selenium) can't find or run Chrome at `/usr/bin/google-chrome`, even though your shell can. This usually happens because the Celery worker process runs with a different environment or permissions than your shell.
Here’s how to fix it:
1. **Check permissions:** Run `ls -l /usr/bin/google-chrome` and make sure the user running Superset and Celery can execute it.
2. **Version match:** Make sure your Chrome and ChromeDriver versions match exactly. Run `google-chrome --version` and `chromedriver --version` to check.
3. **Configuration:** Superset expects the Chrome binary path in the `WEBDRIVER_CONFIGURATION` dictionary, not just as `CHROME_BINARY_LOCATION`. Update your `superset_config.py` like this:
```python
WEBDRIVER_TYPE = "chrome"
WEBDRIVER_OPTION_ARGS = [
"--force-device-scale-factor=2.0",
"--high-dpi-support=2.0",
"--headless",
"--disable-gpu",
"--disable-dev-shm-usage",
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-extensions",
]
WEBDRIVER_CONFIGURATION = {
"service": {
"executable_path": "/usr/bin/chromedriver",
"log_output": "/dev/null",
"service_args": [],
"port": 0,
"env": {},
},
"options": {
"capabilities": {},
"preferences": {},
"binary_location": "/usr/bin/google-chrome",
},
}
```
[Reference](https://github.com/apache/superset/discussions/35178)
4. **Restart everything:** After changing config, restart both Superset and all Celery workers so they pick up the new settings.
5. **Environment:** If you’re running Superset and Celery in a virtual environment, make sure both are started from the same shell/environment so they see the same PATH and config.
If you still get errors, check for system restrictions (like SELinux/AppArmor), and confirm that `/usr/bin/google-chrome` is executable by the Superset/Celery user.
If Selenium keeps failing, you can switch to Playwright for screenshots and reports by setting `PLAYWRIGHT_REPORTS_AND_THUMBNAILS = True` in your config and installing the `playwright` Python package. Playwright is often more robust in tricky environments.
Let me know if you need help with any of these steps!
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/507513e2-c688-4d2a-b12e-77fc0456a224?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/507513e2-c688-4d2a-b12e-77fc0456a224?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/507513e2-c688-4d2a-b12e-77fc0456a224?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/507513e2-c688-4d2a-b12e-77fc0456a224?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/507513e2-c688-4d2a-b12e-77fc0456a224?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/507513e2-c688-4d2a-b12e-77fc0456a224?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/507513e2-c688-4d2a-b12e-77fc0456a224?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/35780)
GitHub link: https://github.com/apache/superset/discussions/35780#discussioncomment-14746775
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org