After a day of tinkering around with this I realize this is an issue I am running into with Amazon Elastic Beanstalk. I tried to do everything to invalidate the Dockerfile (I'm not pulling the image from a docker repository to avoid the additional complexity, I am simply uploading to EBS from my jsreport folder). I tried creating a new environment under my existing EBS application, that didn't work.
The best solution seems to be to just start a new application up from scratch in EBS, which did work on the first try.
I found the root of the problem. This behavior is apparently related to the MS Edge browser. Since I decided to save my password the first time I launched the app and logged in, every time I load a sample template the "pdf-password" property is automatically filled with the save password used in the login screen. Once I deleted the saved password from the profile I no longer experience the problem. By the way, I tested in Firefox and Chrome also. These two browsers do not present the problem.
Thank you for your help.
The first that comes to my mind, do you run now docker on Centos host with Centos Based image?
Now to your questions...
Which is the best suitable Linux based OS to be used for running jsreport?
We can't say something is the best, but we use ubuntu on our internal servers as the host and no big problems so far.
Do you have some hardware limitations for RAM, CPU, ect.
This depends on the size of the reports. 4GB memory is basically always enough.
512MB is sometimes enough as well. The CPU reflects just the parallelization.
If you don't expect to run many reports in parallel, one CPU is enough.
What are the requirements other than node.js (>= 8.9), npm (>= 6.x)., we want to upgrade to latest jsreport version
The LTS version is typically recommended. Use node.js 12.x and corresponding npm.
What is the preferable way to build deployment packages: standard package deploy or docker usage. Currently we use docker but we face some difficulties, which may be caused by the server OS
My very personal rule would be. Do you have just one app on the server? No need to use docker. Just have an install script in your notes. When I run multiple apps I use docker. However, this really depends. If docker is your common technology you use on other servers, don't skip it here.
These are the development packages that we need to install to run our reports, we use chrome-pdf, xlsx, and handlebars to load reports:
All of the packages you have in the list are part of the jsreport package. No need to install them explicitly.
Just jsreport in the dependencies is enough.
hi! the way to do the if/else of the template depends on the template engine that your report uses, for example, if it is handlebars you can do it like this. I suggest always looking at the specific template engine docs to know how to define something in the template
It's crashing after ~23s of running chrome html-pdf conversion based on your log.
Do you use reportTimeout config to specify the general timeout? How did you set the 5min timeout?
This should give you total 5 minutes
Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.