Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Error running under Linux #49

Closed
lndr-ssantos opened this issue Jan 5, 2021 · 4 comments
Closed

Error running under Linux #49

lndr-ssantos opened this issue Jan 5, 2021 · 4 comments

Comments

@lndr-ssantos
Copy link

When I run the project on Linux I get this error:

System.IO.IOException: Broken pipe
   at System.IO.FileStream.WriteNative(ReadOnlySpan`1 source)
   at System.IO.FileStream.WriteSpan(ReadOnlySpan`1 source)
   at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.IO.StreamWriter.WriteLine(String value)
   at Wkhtmltopdf.NetCore.WkhtmlDriver.Convert(String wkhtmlPath, String switches, String html)
   at Wkhtmltopdf.NetCore.GeneratePdf.GetPDF(String html)

I've already ran chmod 755 in Rotativa folder. Works fine locally on my PC running Windows

@gurustron
Copy link
Contributor

gurustron commented Jan 12, 2021

I bet that you are using .NET 5, so it seems that for now there are not a lot of options here, see :

dotnet/runtime#46469

and linked issues.

@gurustron
Copy link
Contributor

gurustron commented Jan 12, 2021

@fpanaccia I have a fix for this in my private fork, I can backport it here today or tomorrow, will you be able to merge it in the near future, please?

@lndr-ssantos
Copy link
Author

Thank you @gurustron

@farukaf
Copy link

farukaf commented Nov 12, 2021

Is this problem fixed?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants