In this blog, we are going to explain in detail regarding how to enable exporting functionality in Helical Insight application version 5.0. The steps will be different based on operating system. Here we will cover for Windows and Linux operating systems.
NOTE : Before enabling the exporting, by default you might be see error something like below when you try to export:
SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /opt/google/chrome/google-chrome is no longer
running, so ChromeDriver is assuming that Chrome has crashed.) Build info: version: '4.0.0', revision: '3a21814679' System info: host:
'e2e-xx-xxx', ip: 'xxx.xx.xxx.xxx', os.name: 'Linux', os.arch: 'amd64', os.version: '4.18.0-25-generic', java.version: '11.0.17' Driver info:
org.openqa.selenium.chrome.ChromeDriver Command: [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions:
{args: [--headless, --run-all-compositor-stages..., start-maximized, disable-infobars, --disable-extensions, --disable-gpu,
--disable-dev-shm-usage, --no-sandbox], extensions: []}}], desiredCapabilities=Capabilities {browserName: chrome, chrome.switches:
[--ignore-certificate-errors...], goog:chromeOptions: {args: [--headless, --run-all-compositor-stages..., start-maximized, disable-infobars,
--disable-extensions, --disable-gpu, --disable-dev-shm-usage, --no-sandbox], extensions: []}}}]
But you will be able to solve this error after following the steps mentioned in this blog for your respective operating system.
A. Steps – When Helical Insight is installed on Windows OS Server
– In case if you don’t have Google Chrome web browser, then please download and install Google Chrome on your windows machine.
– Once it is downloaded and installed then please check the version of your Google Chrome. You can check this by visiting URL : chrome://settings/help within your chrome
For example when we visit this URL for our windows machine, it shows version as 109.0.5414.120
– Now download chrome driver of the same version as of your Google Chrome version.
Example: In my case I need to download chrome driver with version something like 109.0.5414.xxx.
You can download driver for your windows machine from https://chromedriver.chromium.org/downloads
We have found our driver which is same as our Google Chrome version from URL : https://chromedriver.storage.googleapis.com/index.html?path=109.0.5414.74/
– Once we have downloaded chromedriver_win32.zip file related to our Google Chrome version, then please extract this zip (Unzip the file) and copy chromedriver.exe file to location where you have installed your Helical Insight application. Exact path will be : “….\hi\hi-repository\System\Reports”
– But on this location “….\hi\hi-repository\System\Reports”, you will already be having file called “windows_chromedriver.exe”. Delete this file called “windows_chromedriver.exe” which is already existing and rename your copied file from “chromedriver.exe” to “windows_chromedriver.exe”.
After following all above steps, you will be able to export reports and dashboards from Helical Insight application version 5.0 installed on Windows machine.
NOTE : You have to disable auto updates of your Google Chrome web browser which is installed within your windows machine. In order to disable auto updates for Google Chrome, you can refer : https://www.makeuseof.com/tag/stop-automatic-chrome-updates-windows/ This is required to ensure that Google chrome and chrome driver remains of the same version so that exporting continues to work. Incase because of auto-update if they become of different version then again exporting might not work and we might have to follow similar steps like above to make sure they are of same version.
B. Steps when Helical Insight is installed on Linux operating system
Note : In your linux operating system, you might be having Ubuntu or CentOS variant. Commands will be different based on Centos or Ubuntu.
– Firstly we have to install Google Chrome if it is already not installed. You can check if it is installed or not using command : google-chrome -version
– In order to install Google Chrome in your CentOs or Ubuntu, you can refer below link : https://geekflare.com/install-chromium-ubuntu-centos/
– Once it is installed please check again using command google-chrome -version
– In our when we hit this command on our centos it shows version as below :
Google Chrome 109.0.5414.119
– Now download chrome driver with same version as of your Google Chrome version. In our case we need to download chrome driver with version something like 109.0.5414.xxx.
You can download this driver for your Linux machine from https://chromedriver.chromium.org/downloads
We have found our driver which is same as our Google Chrome version from URL : https://chromedriver.storage.googleapis.com/index.html?path=109.0.5414.74/
– Once we have downloaded chromedriver_linux64.zip file related to our Google Chrome version, then please extract this zip (Unzip the file) and copy chromedriver file to location where you have installed your Helical Insight application. Exact path will be : “….\hi\hi-repository\System\Reports”
– But on this location “….\hi\hi-repository\System\Reports”, you will already be having file called “linux_chromedriver”. Delete this file called “linux_chromedriver” which is already existing and rename your copied file “chromedriver” to “linux_chromedriver”.
– Provide full executable, read, write permission to this file “linux_chromedriver” using command chmod 777 linux_chromedriver
– Please verify version of your chrome driver from location “….\hi\hi-repository\System\Reports” by hitting command ./linux_chromedriver –version
In our case when we hit this command it shows :
ChromeDriver 109.0.5414.74 (e7c5703604daa9cc128ccf5a5d3e993513758913-refs/branch-heads/5414@{#1172})
After following all above steps, you will be able to export reports and dashboards from Helical Insight application version 5.0 installed on Linux machine.
NOTE : You have to disable auto updates of your Google Chrome web browser which is installed on the server. This is required to ensure that Google chrome and chrome driver remains of the same version so that exporting continues to work. Incase because of auto-update if they become of different version then again exporting might not work and we might have to follow similar steps like above to make sure they are of same version.
To stop Chrome browser auto-updating, take one of the following actions:
– Create an empty repository before installing Chrome browser: $ sudo touch /etc/default/google-chrome.
– Add the following line to /etc/default/google-chrome: repo_add_once=false.
details: