Our state of the art Gantt chart


Post by rahulranjan »

HI We have deployed server .
But it throws Error

msg: "Failed to export task"
stack: "Error: Failed to export task↵    at Queue.onJobFailed (/u01/extohome/bitbucketworkspace/exto360-gantt-exporter/src/queue.js:277:28)↵    at Queue.emit (events.js:315:20)↵ 


Post by Maxim Gorkovsky »

Hello.
Please see the server log which is located in the server folder. It should provide more details.


Post by rahulranjan »

Yeah We checked Server
It says failed to lunch chrome In Log Folder .

We are running server on centOS


Post by Maxim Gorkovsky »

Am I right to assume you got this issue under control?


Post by rahulranjan »

I understood the error . But how to solve it . If any guidelines or packages to install on server


Post by Maxim Gorkovsky »

What is the error exactly? You might want to search the web on how to run puppeteer on CentOS. Or just google the exception


Post by rahulranjan »

HI Maxim
Here is the Error and log Image you can find . What is the exact problem ?
Which OS is Suitable for Server . What are the configuration required to run export server .

We followed few googled instruction but it does not work for us

I create a file called /etc/yum.repos.d/google-chrome.repo and added:
We tried below things
[google-chrome]
name=google-chrome
baseurl=https://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
then:

yum install google-chrome-stable

Will Brytumn server - 'https://dev.bryntum.com:8082'
Will always work . Can we use it in Production or not ?

Attachments
Chrome.png
Chrome.png (73.08 KiB) Viewed 1652 times

Post by Maxim Gorkovsky »

Will Brytumn server - 'https://dev.bryntum.com:8082'
Will always work . Can we use it in Production or not ?

No, you should never rely your production environment on bryntum.com or any subdomain.

We haven't tried to run export server on every possible linux distribution, so we don't have a working solution for CentOS. Chrome/puppeteer not running on your system is out of our hands, I'm afraid. I can suggest to use Ubuntu, or go with Docker image which is supplied with the export server.


Post by rahulranjan »

Hi
How can we remove links from html head before sending it to export server. As bootstrap css is creating problem in export the bar chart is not visible but we can not remove it as it is required in our application can we remove the bootstrap css link before sending it to export server from header


Post by Maxim Gorkovsky »

Hi.
You can extend exporter to override the accessor:

import SinglePageExporter from 'lib/Grid/feature/exporter/SinglePageExporter.js';

class MySinglePageExporter extends SinglePageExporter {
  get stylesheets() {
    let styles = super.stylesheets;
    // styles is an array of strings, iterate them, find extra style, remove
    return styles;
  }
  
  set stylesheets(value) {
    super.stylesheets = value;
  }
}

// configure export feature to use this class
features : {
  pdfExport : {
    exporters : [MySinglePageExporter, ...]
  }
}

In future please keep one thread per question or problem.


Post Reply