Unable to export or email a view as PDF, Image, HTML - Linux Platform
Issue:
Unexpected error when trying to export/email a view as PDF, Image, HTML
Error trace:
Caused by: javax.servlet.ServletException: com.phantomjs.export.server.ServerNeedKillingException: ServerNeedKillingException:
Exception in phantom export :: Stack Trace java.lang.RuntimeException: Error, PhantomJS could not start CUSTOM_EXPORT_SERVER_PORT=9971
at com.adventnet.zoho.db.exportutil.ZDBExportServlet.doExport(ZDBExportServlet.java:388)
at com.adventnet.zoho.db.exportutil.ZDBExportServlet.serviceExport(ZDBExportServlet.java:306)
... 52 more After 5 failure attempts of export, below error trace will be thrown in serverout.
Caused by: javax.servlet.ServletException: com.phantomjs.export.server.ServerNeedKillingException: ServerNeedKillingException:
Exception in phantom export :: Stack Trace java.lang.RuntimeException: Not enough port available
at com.adventnet.zoho.db.exportutil.ZDBExportServlet.doExport(ZDBExportServlet.java:388)
at com.adventnet.zoho.db.exportutil.ZDBExportServlet.serviceExport(ZDBExportServlet.java:306)
... 52 more
Cause:
PhantomJS server will not start automatically in Ubuntu 22 LTS because of "openssl v3.0"
Note:
Kindly verify the openssl version is 3.0 and above by executing the below command in terminal.
> openssl version
Solution:
Open Terminal and execute "sudo nano /etc/ssl/openssl.cnf"
Comment the following two line in '/etc/ssl/openssl.cnf' file by adding '#' infront of it.
providers = provider_sect
ssl_conf = ssl_sect (If present, comment it)
save the changes (ctrl+o -> enter -> ctrl+x)
Restart the AnalyticsPlus service.
If the issue still persist, open the terminal in "<Analytics>/bin" location and execute the following command in Terminal to start the PhantomJs server.
./../bin/phantom/linux/phantomjs --config=<AnalyticsPlus location>/webapps/ROOT/customExport/config.json --ignore-ssl-errors=false <AnalyticsPlus location>/webapps/ROOT/customExport/ExportLib.js -port 9970 -libpath <AnalyticsPlus location>/webapps/ROOT/customExport/lib/ -modulepath <AnalyticsPlus location>/webapps/ROOT/customExport/modules/
Replace the <AnalyticsPlus location> in the above command with the AnalyticsPlus installation location.
If there is an error when trying to start the PhantomJs server, "error while loading shared libraries: libfontconfig.so.1", execute below command and then try to start the PhantomJS server.
sudo apt-get install libfontconfig
If the issue still persist, verify whether the below property key in Analytics/conf/app.propertis is the same as the AnalyticsPlus installed location.
app.contextPath=/home/local/ZOHOCORP/ManageEngine/AnalyticsPlus/webapps/ROOT
If the location mentioned in the above property key is different, then execute the "sh ServerMigration.sh" command.
New to ADSelfService Plus?
Related Articles
How to enable non-language options for PDF exports?
Analytics Plus unfortunately does not support Georgian. So if the data you have inside Analytics Plus is in Georgian then the exported PDF will contain blank values due to lack of font support. Here's how you can avoid this. NOTE: This method is not ...
Unable to install Analytics Plus in Linux VM's
During installation in console mode, most of the Linux(VM) users are experiencing issues with port check and they are unable to proceed. To avoid this, please use ISS or UI based installation option. Error trace: Ports are occupied Follow the below ...
Auto start Analytics Plus in Linux
Steps to auto start Analytics Plus in Linux environment: 1. Open "StartServer.sh" present in <AnalyticsPlus\bin> Add '#!/bin/sh' as the first line of the code. Add 'cd <location to Analytics/bin>' before the line 'sh run.sh' ex : ...
How to add/view current date in a dashboard
1. Click on "Edit Design" in a dashboard 2. Choose Add Text and select edit HTML( refer attached screenshot) 3. Watch this video to see how you can do it. Video link: https://youtu.be/hcaTPUuM9PE Clock ...
Query table throws error upon execute query - Linux - 4400 and above
Issue: Query table's 'execute query' will throw an error as shown below. Even when executing 'select 1', we might get this error. Build affected: 4400, 4410 and 4420 Only on Linux installations Cause: It is due to internal code changes and will be ...