You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/08/08 03:54:56 UTC

[GitHub] [superset] KarthikGM05 commented on issue #12867: Dashboard thumbnails not visible - Superset 1.0.0

KarthikGM05 commented on issue #12867:
URL: https://github.com/apache/superset/issues/12867#issuecomment-894738736


   > 
   > 
   > For anyone who might need , here are the settings that helped me
   > 
   > make sure you pull the latest `master` branch ( this doesn't work on the current superset - 1.0.0 ) or use 1.0.1 ( or later) once it is released.
   > 
   > **Using Chrome :**
   > 
   > Install chrome webdriver:
   > 
   > ```
   > RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
   >     apt install -y ./google-chrome-stable_current_amd64.deb && \
   >     wget https://chromedriver.storage.googleapis.com/88.0.4324.96/chromedriver_linux64.zip && \
   >     unzip chromedriver_linux64.zip && \
   >     chmod +x chromedriver && \
   >     mv chromedriver /usr/bin && \
   >     rm -f google-chrome-stable_current_amd64.deb chromedriver_linux64.zip
   > ```
   > 
   > Add following to the config:
   > 
   > ```
   > FEATURE_FLAGS = { "THUMBNAILS" : True, "LISTVIEWS_DEFAULT_CARD_VIEW" : True}
   > THUMBNAIL_SELENIUM_USER = "admin"
   > THUMBNAIL_CACHE_CONFIG: CacheConfig = {
   >     'CACHE_TYPE': 'redis',
   >     'CACHE_DEFAULT_TIMEOUT': 24*60*60,
   >     'CACHE_KEY_PREFIX': 'thumbnail_',
   >     'CACHE_NO_NULL_WARNING': True,
   >     'CACHE_REDIS_URL': 'redis://redis:6379/1'
   > }
   > 
   > 
   > WEBDRIVER_TYPE= "chrome"
   > # for older versions this was  EMAIL_REPORTS_WEBDRIVER = "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",
   >         ]
   > ```
   > 
   > **Using Firefox :**
   > 
   > Install gecko and firefox:
   > 
   > ```
   > RUN apt-get update && apt-get install -y firefox-esr
   > 
   > ENV GECKODRIVER_VERSION 0.29.0
   > RUN wget --no-verbose -O /tmp/geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER_VERSION/geckodriver-v$GECKODRIVER_VERSION-linux64.tar.gz \
   >   && rm -rf /opt/geckodriver \
   >   && tar -C /opt -zxf /tmp/geckodriver.tar.gz \
   >   && rm /tmp/geckodriver.tar.gz \
   >   && mv /opt/geckodriver /opt/geckodriver-$GECKODRIVER_VERSION \
   >   && chmod 755 /opt/geckodriver-$GECKODRIVER_VERSION \
   >   && ln -fs /opt/geckodriver-$GECKODRIVER_VERSION /usr/bin/geckodriver \
   >   && ln -fs /opt/geckodriver-$GECKODRIVER_VERSION /usr/bin/wires
   > ```
   > 
   > Add following to the config:
   > 
   > ```
   > FEATURE_FLAGS = { "THUMBNAILS" : True, "LISTVIEWS_DEFAULT_CARD_VIEW" : True}
   > THUMBNAIL_SELENIUM_USER = "admin"
   > THUMBNAIL_CACHE_CONFIG: CacheConfig = {
   >     'CACHE_TYPE': 'redis',
   >     'CACHE_DEFAULT_TIMEOUT': 24*60*60,
   >     'CACHE_KEY_PREFIX': 'thumbnail_',
   >     'CACHE_NO_NULL_WARNING': True,
   >     'CACHE_REDIS_URL': 'redis://redis:6379/1'
   > }
   > 
   > 
   > WEBDRIVER_TYPE= "firefox"
   > # for older versions this was  EMAIL_REPORTS_WEBDRIVER = "firefox"
   > 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",
   >         ]
   > ```
   
   Tried both, but for some reason when I check superset-worker logs, I get "chromedriver"/"geckodriver" executable needs to be in PATH. When go inside the container with
   ```kubectl exec -n <NAMESPACE> --stdin --tty <POD_NAME> -- /bin/sh```
   I don't see chrome/gecko driver installed at all!
   
   P.S: Superset Version: 1.2.0 and even though the Dockerfile contains gecko installation by default, I still can't find it in the container.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org