Skip to content

linkcheck hangs in GitHub but not locally #138

@bburtin

Description

@bburtin

linkcheck hangs during crawling when I run it in a GitHub Action. Strangely it works fine when I run the same command locally. This is the Docker Compose block that I'm using:

  check-internal-links:
    image: tennox/linkcheck:3.0.0
    depends_on: [burtin-website]
    command: -d http://burtin-website

The command is docker compose -f compose-prod.yaml run check-internal-links. In CI I see this:

...
- completely new destination: http://burtin-website/fonts/FiraCode-LatinExt.woff2
- completely new destination: http://burtin-website/fonts/FiraCode-Latin.woff2
Added: http://burtin-website/css/code.min.4f0ccc8439f99bf7f7970298556b94011aabc1fcae743b6842fc3361a2da9ea3.css to Worker<0> with 99ms delay
Done checking: http://burtin-website/css/code.min.4f0ccc8439f99bf7f7970298556b94011aabc1fcae743b6842fc3361a2da9ea3.css (HTTP 200) => 0 links
Added: http://burtin-website/css/buttons.min.86f6b4c106b6c6eb690ae5203d36b442c1f66f718ff4e8164fa86cf6c61ad641.css to Worker<0> with 99ms delay
Done checking: http://burtin-website/css/buttons.min.86f6b4c106b6c6eb690ae5203d36b442c1f66f718ff4e8164fa86cf6c61ad641.css (HTTP 200) => 0 links
Added: http://burtin-website/favicon.png to Worker<0> with 98ms delay
Done checking: http://burtin-website/favicon.png (HTTP 200) => 0 links
Added: http://burtin-website/apple-touch-icon.png to Worker<0> with 99ms delay
Done checking: http://burtin-website/apple-touch-icon.png (HTTP 200) => 0 links

Then nothing happens. When I run the same command locally I see

...
- completely new destination: http://burtin-website/fonts/FiraCode-LatinExt.woff2
- completely new destination: http://burtin-website/fonts/FiraCode-Latin.woff2
Added: http://burtin-website/css/code.min.4f0ccc8439f99bf7f7970298556b94011aabc1fcae743b6842fc3361a2da9ea3.css to Worker<0> with 97ms delay
Done checking: http://burtin-website/css/code.min.4f0ccc8439f99bf7f7970298556b94011aabc1fcae743b6842fc3361a2da9ea3.css (HTTP 200) => 0 links
Added: http://burtin-website/css/buttons.min.86f6b4c106b6c6eb690ae5203d36b442c1f66f718ff4e8164fa86cf6c61ad641.css to Worker<0> with 97ms delay
Done checking: http://burtin-website/css/buttons.min.86f6b4c106b6c6eb690ae5203d36b442c1f66f718ff4e8164fa86cf6c61ad641.css (HTTP 200) => 0 links
Added: http://burtin-website/favicon.png to Worker<0> with 97ms delay
Done checking: http://burtin-website/favicon.png (HTTP 200) => 0 links
Added: http://burtin-website/apple-touch-icon.png to Worker<0> with 98ms delay
Done checking: http://burtin-website/apple-touch-icon.png (HTTP 200) => 0 links
Added: http://burtin-website/index.xml to Worker<0> with 98ms delay
Done checking: http://burtin-website/index.xml (HTTP 200) => 0 links
Added: http://burtin-website/photos/boris-piano.jpg to Worker<0> with 98ms delay
Done checking: http://burtin-website/photos/boris-piano.jpg (HTTP 200) => 0 links
...

and the job completes successfully. Let me know if there's something else that I can do to diagnose the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions