I have installed JSreport in my local system and all works well.Now i am trying to install it into a linux env with docker and the installation is successful.But when i import the templates from local and try to run it i have the following error.I think i am missing some dependencies.Can i have some help on this.
Below are the configurations:
JSreport:3.7.1
Node:node.js (>= 16.11)
Failed to launch the browser process! spawn
node_modules/puppeteer/.local-chromium/linux-1022525/chrome-linux/chrome ENOENT
Posts made by Vishnu Menon
-
Failed to launch the browser process! spawn in JSreport Docker
-
How is jsreport-fs-store-aws-s3-persistence helpful in jsreports?
I am migrating from jsreport 1 to latest jsreport. When checking the configuration i found that jsreport 1 was using jsreport-fs-store-aws-s3-persistence and saving the file structure to AWS cloud.
This configuration was done long ago and when i read through the documentation i was not if this is required.We are planning to have separate instances in development and production and export and import the templates on deployment.
Can i have some help to understand if this is required?
-
RE: What is Online SaaS version of JSReports
Can i have help on this @jan_blaha
-
IMG TAG breaking into 2 pages
When the image in the img tag is not available(wrong url or issues with image url) then the broken image is show in the next page (complete page) and this creates alignment issues in page.The same worked differently in version 1 where the tag was shown in the same page with less height(not the full page) .What can be done to get the same behaviour of version 1 in version 3.
-
RE: What is Online SaaS version of JSReports
Thank You.Couple of questions.What are these monthly credits mentioned on the online reports and when we use it will the jsreports maintain the copy of the reports generated?
-
What is Online SaaS version of JSReports
how does the online SaaS version of jsreports work.How it is diffrent from on premise.What is a report credit.When we use this for report creation do JSreports keep a copy of it with itself.Is there a limitation for api calls?Is there a need to sign BAA?Can i have some answers for these?
-
RE: Create Dynamic Header Using Native-Headers
Hello
When checking the licensing details i can see that if we are using one time license then we have updates only for 6 months.What is these updates?Is it the bug fixes that you release and if i take a one time license and after 6 months if there are updates what will be the difference. So i want to know what is the difference in using the updates when i am subject to updates and when i am not. -
RE: Create Dynamic Header Using Native-Headers
Thanks jan-blaha.As i have more templates and using pdf-utils means probably i will have to double the template size i would want to know bit more on the enterprise license edition. I see that it is mentioned that updates are included as part of it so what are these updates actually and what else do i get as part of this license.
-
Create Dynamic Header Using Native-Headers
I am using JSReports 3.4.1 with chrome-pdf.I want a separate header in page 1 and then for all other pages i will have same headers.Earlier i was using phantompdf and in that i was able to do this using native headers as below.
<header > <img src="image path"/> </header> <script> var header = document.getElementById('header'); if({#pageNum} == 1){ header.innerHTML = "<div ><img src='image path'></div>" } </script>
Now in chrome -pdf i am not able to access the page number this way.I tried using the pdf-utils and was able to do this.So i wanted to know is there a way i can do this using native headers itself.
-
Header not showing in JSReports Chrome PDF
I am trying to set up a header for my template.I am not sure whether i should use pdf-utils or do it using chrome pdf headers.Actually i am doing a migration of jsreports from version 1 to version 3.In the first version we have used phantom-pdf headers but when i tried the same with chrome-pdf the header is not showing up.I have set display header/footer to true and also have configured top and bottom margins.Since it did not work i tried pdf-utils but here data from the data mapped to the main template is not showing.Hence i wanted to check if iam doing the right things.
-
RE: PhantomManager Timeout Issue
My issue seems very similar to
https://forum.jsreport.net/topic/311/timeout-error-or-return-blank-sub-reports/10.
Here you have mentioned to increase the phantom js timeout.Where exactly you referred to increase it.Is it possible i can pass these configurations as part of payload of the post call in jsreports like
"data": {
"template": {
"shortid": TemplateId,
"phantom": {
"resourceTimeout":90000000,
}
},
"data": reportData,
"options": {
"language": locale,
"timeout": 90000000
}
},
"headers": {
"Content-Type": "application/json"
}
}; -
RE: PhantomManager Timeout Issue
Thank you for the response.But couple of questions.In the error message it says it is related with phantomManager.js and that is the reason i started checking things related with phantom-pdf and how can we get the jsreport version that is being used.Because i think we are not using the latest one.In the template settings i can find that the recipe used is phantom-pdf.
-
PhantomManager Timeout Issue
When i am processing a large payload i am getting a timeout error from JS Reports.Below is what i get:
Timeout
Error: Timeout at /home/app/node_modules/phantom-workers/lib/phantomManager.js:117:29 at /home/app/node_modules/phantom-workers/lib/phantomWorker.js:120:13 at /home/app/node_modules/phantom-workers/lib/phantomWorker.js:136:20 at Socket.
To solve this i tried increasing the timeout in 2 ways:
1.Inside the properties of the template i increased the resourceTimeout of phantom pdf.It was 1000ms i increased that to higher values still the timeout issue was not solved.
2.I added the phantom object in the payload of the post call and added the resourceTimeout attribute inside it with a higher value.Still the issue was not resolved.
Now i am not sure where should i change regarding this.I am using phantom pdf 1.9.8.Can i have some help on this.