Open rombie18 opened 1 year ago
@rombie18
I think you are on the right track, I believe this issue is a DNS resolution issue from within the container itself.
I did suspect this as well but when I do a ping or nslookup inside the container this does resolve to an ip address.
Setup information Running Invoice Ninja using docker-compose on a Raspberry Pi 3B+, arm64 v8.
Describe the bug The SnapPDF previews are not working and are timing out with error 504 Gateway Timeout.
To reproduce Steps to reproduce the behavior:
Expected behavior A pdf preview or invoice should be generated.
Logs/Stacktrace When tying to manually save a website as pdf inside the dockerfiles-app container, the following error is generated. This explains the 504 Gateway Timeout. It seems that the chromium-browser process is causing the timeout.
I was able to further narrow down the issue to be a timout of the Chromium browser used by the SnapPDF executable. When using the chromium-browser to try to print a pdf the following error is generated:
This log made me suspect there was a problem with dns resolution but when manually trying a nslookup and ping inside the container to github.com, this did resolve to an ip adress. At this point I am a bit stuck and I can't seem to find a reason why the chromium process causes these errors.
Docker/Kubernetes/Helm:
docker version
:Server: Docker Engine - Community Engine: Version: 23.0.0 API version: 1.42 (minimum version 1.12) Go version: go1.19.5 Git commit: d7573ab Built: Wed Feb 1 17:44:38 2023 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.16 GitCommit: 31aa4358a36870b21a992d3ad2bef29e1d693bec runc: Version: 1.1.4 GitCommit: v1.1.4-0-g5fd4c4d docker-init: Version: 0.19.0 GitCommit: de40ad0