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 :-)



  • This post is deleted!


  • I'm not sure I get what you ask for. I simply run it as on the following gif. Thank you for your patience.

    demo



  • 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



  • Make sure the startup project is the docker-compose one.
    I don't run any special command, just f5 or click on the Run docker arrow.



  • Holy crap! I set the console as starting prj!!!
    Let's try ... TY



  • Ok, it works.
    So I'm gonna find an aws imager for docker.



  • I have got same error. Did you find any solution?

    To reproduce the issue

    Create new asp net core project add the libs.
    Add the service for jsreport to the project.

    dotnet publish -r debian.8-x64 -c Release

    And build it with docker image with this Dockerfile

    FROM microsoft/dotnet:2.1-runtime
    RUN apt-get update &&
    apt-get install -yyq libappindicator1 libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6
    ENV ASPNETCORE_URLS="http://:5000"
    ENV ASPNETCORE_ENVIRONMENT="Production"
    WORKDIR /app
    EXPOSE 5000/tcp
    ENV ASPNETCORE_URLS http://
    :5000
    ENTRYPOINT ["dotnet", "PdfProject.dll"]
    COPY bin/Release/netcoreapp2.1/debian.8-x64/publish /app

    While on windows all working well, on docker i get this error:

    fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
    An unhandled exception has occurred while executing the request.
    System.ComponentModel.Win32Exception (13): Permission denied
    at PdfProject.Helper.HtmlToPdf.getPdf(String filename) in C:\Test\PdfProject\PdfProject\Helper\HtmlToPdf.cs:line 63
    at PdfProject.Controllers.TestController.ViewReport() in C:\Test\PdfProject\PdfProject\Controllers\TestController.cs:line 27
    at lambda_method(Closure , Object )
    at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
    at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
    at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
    at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
    at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
    at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
    at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
    at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
    at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)

    at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
    at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
    at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
    at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
    at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)



  • In the end, wile running on Linux I used headless chrome ...


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.