Hey Jan,
Strangely, I re-deployed the code via elastic beanstalk and it worked as expected without any errors. I will update this thread if it appears again.
Thanks!
Tyler
Hey Jan,
Strangely, I re-deployed the code via elastic beanstalk and it worked as expected without any errors. I will update this thread if it appears again.
Thanks!
Tyler
Hello,
We are beginning to host an EC2 instance on AWS Elastic Beanstalk / EC2. The JSReport server works as expected while using the developer portal - but, when we attempt to hit the API (api/report/) we get the following error:
ENOENT: no such file or directory, open '/tmp/jsreport/autocleanup/ed1fc487-b093-4ccf-879f-b236e0c4d188html.html'
I have confirmed that the EC2 instance does not have the folder /tmp/jsreport.
Is there a configuration change that must be made?
Thank you!
Tyler
Hello!
We use jsreports to generate very large reports (750+ pages), and have found that phantomjs v1.9.8 has been the fastest recipe. Chrome-pdf by default will time out, as many other recipes.
The release notes for the latest version mention that the executable file is much faster than it was previously. It brought conversations for our team recognizing that maintaining node/npm on the server is painful and if the .exe had similar/better performance than node, we would ideally be able to switch.
Unfortunately, while following the instructions to plug in the extension, we are getting a fatal error. Using npm on another folder, we install jsreport-phantom-pdf and place the node modules into a package.
We are unable to get around this error:
Are we incorrectly installing the package as an extension? "discover" is enabled in the configuration, and it is properly attempting to load.
Thank you for your time,
Tyler
Apologies, as I'm pretty inexperienced with Node.
I've taken the node.exe file from C:\Program Files\nodejs and placed it in the jsreport folder. It is in the same directory as server.js, data, node_modules, etc.
Running the command "node server.js" from the cmd prompt yields the response "cannot find module 'semver'.
Got it working locally - the reinstall worked.
When I attempt to install/run the instance on the target machine, though, the terminal responds with "jsreport is not a recognized internal or external command". There is no exe in this file structure.
Is there a file to run hidden somewhere in the node_modules?
The target machine is unable to have node package installed on it. Is it still possible to run a node instance jsreport when the target machine does not have the packages installed via npm?
Also, our ideally the target machine will have the server run as a service. Attempting this locally with the npm installation returns this message: "To install app as windows service you need to have a "start" script or a "main" field in package.json file". Could you share more info about that?
Many thanks as always!
Hello,
Is it possible to install the phantom-pdf recipe to jsreport 2 without npm?
Thanks!
Thanks Jan!
I've emailed over the template as requested.
Thanks!
Tyler
Thanks for the response!
That sounds helpful. Generally though, we'd like to avoid sending out our reports publicly on the forum (we have policy against it). I've spoken with Jan a number of times off of the forum; should I email the file and context to him? Or may I send it to you?
Thanks!
Tyler