In the end, wile running on Linux I used headless chrome ...
Posts made by Emiliano Savi
-
RE: Error rendering report on CentOs 7
-
RE: Error rendering report on CentOs 7
Ok, it works.
So I'm gonna find an aws imager for docker. -
RE: Error rendering report on CentOs 7
Holy crap! I set the console as starting prj!!!
Let's try ... TY -
RE: Error rendering report on CentOs 7
This is exactly what I want to do, but I always ges Windows as OS.
Did you run some manual command (dotnet, docker, ...) or simply hit F5 ?
To start the image I run some manual commands -
RE: Error rendering report on CentOs 7
So, if i publish explicitly in /Docker/publish the doker build process terminate correctly ?
Now ? Where is my app ? Can I debug it on Linux ?
Too many doubts :-) -
RE: Error rendering report on CentOs 7
So, on my Win10 Pro I installed Docker, Linux containers mode is on, a small Hyper-V VM is running ...
I open your last repository, hit F5 but if I print in which OS is running the app I receive Windows.
How do I know if I'm running in a container ?Ok, a few steps ahead:
dotnet publish --> ok
docker build --> ko
Step 10/11 : COPY ${source:-obj/Docker/publish} .
docker : COPY failed: stat /var/lib/docker/tmp/docker-builder957303330/obj/Docker/publish: no such file or directory
At line:1 char:1- docker build dockernetcoretest
-
+ CategoryInfo : NotSpecified: (COPY failed: st...le or directory:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError
-
RE: Error rendering report on CentOs 7
If I hit F5 it runs as a standard console app on my machine.
Did u forget some files, maybe ? I can't find no docker-compose.yml, for example -
RE: Error rendering report on CentOs 7
Well, just installed Docker ... How to run on container from VS 2017 Pro ?
But my question is: how can I 100% reproduce my AWS server with Docker, if I really can ?
-
RE: Error rendering report on CentOs 7
Uhm ... how can I create a docker file ? I can google a bit, but if u have short instructions I'll do my best to create it.
-
RE: Error rendering report on CentOs 7
Same problem on Ubuntu server.
More detailed error info:
One or more errors occurred. (Permission denied) - System.ComponentModel.Win32Exception (0x80004005): Permission denied
at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at jsreport.Local.Internal.BinaryProcess.<InnerExecute>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at jsreport.Local.Internal.BinaryProcess.<ExecuteExe>d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable
1.ConfiguredTaskAwaiter.GetResult()
at jsreport.Local.Internal.LocalUtilityReportingService.<RenderAsync>d__10.MoveNext() - at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at zkmf_mailbot2.Program.Main(String[] args) in C:\Data\Projects\Iason\zkmfsrv\zkmf-email\zkmf-mailbot2\Program.cs:line 167 -
RE: Error rendering report on CentOs 7
Wel, it seem I need to study more in deep net core ... as many other things :D
After your suggestions now I receive:
One or more errors occurred. (Permission denied) - at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
The code that generate this is :
var CustomRenderRequest = new RenderRequest()
{
Template = new Template()
{
Content = email.Attachment,
Engine = Engine.None,
Recipe = Recipe.PhantomPdf
}
};
var customReport = rs.RenderAsync(CustomRenderRequest).Result;My question is: how can it render without a screen ?
PS: if I use this raw code I can create the pdf
ar p = new Process();
p.StartInfo = new ProcessStartInfo()
{
FileName = "google-chrome",
Arguments = "--headless --disable-gpu --print-to-pdf="/tmp/zkmf/zkmf_receipt.pdf" /tmp/zkmf/zkmf_receipt.html"
};
p.Start();
p.WaitForExit(); -
RE: Error rendering report on CentOs 7
Well "-r centos.7-x64" in the "dotnet publish" command restore the correct packages so I suppose the binary are correct
-
RE: Error rendering report on CentOs 7
This is the message I saw at the terminal. I use it as Utility but if I use it as webserver get another kind of error.
I publish my app as SCD with "dotnet publish -c Release -r centos.7-x64 -o c:\tmp\myApp" then upload it on the server via filezilla
Where I can find the jsreport logs ? I'm not so skilled with Linux -
Error rendering report on CentOs 7
Hi all,
I developed a simple .net core 2.0 console app to send email whit attachments.
As source I have an html which I want to convert to pdf with local reportjs; on my dev machine (Win10 64) all was ok but when I deployed on our server (CentOs 7 without X) I got "One or more errors occurred. (Error rendering report: )"Any hints ?