Enable community repo (/etc/apk/repositories) (uncomment community) nano /etc/apk/repositories apk update install firefox and X dependencies: apk add libx11-dev libxft-dev libxinerama-dev adwaita-gtk2-theme adwaita-icon-theme ttf-dejavu Note that the fonts/icon theme are required for FF to display correctly. So I took out that line - and the error disappeared :-). I understand that I can withdraw my consent at anytime. Hey @Daniel Sonck ! firefox: We will use the Firefox driver for Selenium. I tend to favor the directive that has the capabilities I need but not more. Translate. You must be a registered user to add a comment. Dockerfile. https://github.com/Kozea/WeasyPrint/. causes the program to complete cleanly with a success code. There is a work-around for this problem. I tend to favor the directive that has the capabilities I need but not more. Follow answered Jun 19 '19 at 9:39. Look when the issue in this topic was originally reported. The underlying reason is that some distributions use font packages that don't come with the sans-serif variants pre-installed, and the issue comes up when the JDK tries to use the system's default fonts (and can't acquire the sans-serif options from the operating … @Joe90k Are you sure the new hosts file is used? Container. One example: http://s3-us-west-2.amazonaws.com/oa2/docfiles/5463d01c6f706554720b0100/5463d01c6f706554720b0100.html. With v0.12.1, PDFKit wrapper and --load-error-handling ignore: Exit with code 1 due to network error: ContentNotFoundError For alpine and openjdk : Use RUN apk --update add fontconfig ttf-dejavu Worked for me. Install the font package apk add ttf-dejavu. But the issue is due to a relative path. It has been opened for years. All Rights do not use relative path at all. However, apk will upgrade the entire system, keeping the bash package at the 5.0.0-r0 or lower level: # apk upgrade It is possible to remove holding. Assumptions: Eth0 on router will be monitored, 192.168.0.1 is router interface on LAN side, 192.168.0.100 is ntop host, and port 2055 will be used for fprobe. Please refer to our, I agree to receive these communications from SourceForge.net via the means indicated above. Please provide the ad click URL, if possible: Do you have a GitHub project? I'm seeing that slight changes in the URL of certain resources completely changes the load error handling behavior of wkhtmltopdf. apk add terminus-font ttf-inconsolata ttf-dejavu font-bitstream-* font-noto font-noto-* ttf-font-awesome font-noto-extra Those selection will added special support for cirilyc like russian and serbian or similar setups: apk add font-vollkorn font-misc-cyrillic font-mutt-misc font-screen-cyrillic font-winitzki-cyrillic font-cronyx-cyrillic Now you can automatically sync your releases to SourceForge & take advantage of both platforms. However, if a CSS reference like github.com/madnight/docker-alpine-wkhtmltopdf, RUN apk add --update --no-cache If you're using absolute URLs for your content, there could be other reasons: Solution However - what has happened to dejavu-fonts.org? The text was updated successfully, but these errors were encountered: What is the HTML you are trying to convert? This document shows how to build openj9 jre dockerfile. If you've already registered, sign in. apk add --update ttf-dejavu  Share. Package Description; ttf-droid-20200215-r0.apk: General-purpose fonts released by Google as part of Android: ttf-droid-nonlatin-20200215-r0.apk: General-purpose fonts released by Google as part of Android. Follow answered Jun 11 '18 at 16:23. brass monkey brass monkey. Package Description; ttf-droid-20121017-r1.apk: General-purpose fonts released by Google as part of Android: ttf-droid-nonlatin-20121017-r1.apk: General-purpose fonts released by Google as part of Android. < script type="text/javascript" src="http://blabla.com/js/jsFileName.js"/>. If you've already registered, sign in. Download vlc-3.0.12-r0.apk for Alpine Edge from Alpine Community repository. ttf-dejavu ttf-droid ttf-freefont ttf-liberation ttf-ubuntu-font-family, RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.8/main' >> 30/05/2016 00:38:10 -usepw: found /root/.vnc/passwd 30/05/2016 00:38:10 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 7 30/05/2016 00:38:10 30/05/2016 00:38:10 wait_for_client: WAIT:cmd=FINDCREATEDISPLAY-Xvfb 30/05/2016 00:38:10 30/05/2016 00:38:10 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/2560 30/05/2016 00:38:10 30/05/2016 00:38:10 Autoprobing TCP port … I'm facing the same. command failed (exitstatus=1): /usr/local/bin/wkhtmltopdf --quiet --page-size Letter --margin-top 0.75in --margin-right 0.75in --margin-bottom 0.75in --margin-left 0.75in --encoding UTF-8 --load-error-handling ignore - /tmp/5463d01c6f706554720b0100.pdf. Please refer to our, https://github.com/dejavu-fonts/dejavu-fonts. Isn't there a separate bug in that this error message sucks? --disable-smart-shrinking "" - "out.pdf". This document shows how to build openj9 jre dockerfile. This is all that was needed to resolve the Java problem (I could also remove the fc-cache -rv /opt/songkong/fonts line) and allowed me to create Excel spreadsheets with the jakarta-poi library. Done Start lighttpd service and add to needed runlevel. Purpose. who is then responsible for fixing wkhtmltopdf. Personally, I'm very grateful to all those who have worked on the software so far. /etc/apk/repositories && Disabling the profiler in the affected controllers solved it. We provide pleasant OS font-families for documents and screen. curl-Lo glibc-$ {GLIBC_PKG_VERSION}. Pulls 100M+ Overview Tags. FROM openjdk:8u121-jre-alpine RUN apk --update add openssl ca-certificates ttf-dejavu && \ rm -f /var/cache/apk/* && \ mkdir -p /opt/burp /work && \ adduser -D -s /bin/sh user user && \ chown -R user /work ADD bin/* /opt/burp/ RUN chown -R user /home/user/. If this doesn't work, you may also need some of type rendering libraries that are usually part of an X server – in a truly headless system, xvfb will do. The reasons it cannot find them are several and varied. Turned out that my html page had a script line in the header pointing to a .js file, with a relative url, something like '../blabla.js' This is particularly problematic when I'm using the JS library. Since Xpra runs as root, I manually create the folder Xpra uses. I'm running into the same thing. Potentially a flag to place that lets wkhtmltopdf ignore the error? The DejaVu fonts are a font family based on the Bitstream Vera Fonts. Please be sure to answer the question. This can as well be caused by missing/inaccessible Java 'temp' directory. It's an open source, community project. This issue bite me too. A lightweight and easy-to-use password manager, The free and Open Source productivity suite, A free file archiver for extremely high compression, A partition and disk imaging/cloning program. Replace ADD with COPY. The file has similar query strings with javascript files and general URL links, but they do not trigger the problem. Click URL instructions: . GitHub Gist: instantly share code, notes, and snippets. On getting this error, the error handler in the callback function is triggered, while the file is generated. It seems there must be something amiss with the server config. I have this issue too just trying to render a pdf from html. Tried with IP versus Hostname, didn't change anything , i transform src to base_64 format for img. Minecraft server with select-able version . To meet our supported platform requirements, you'll need to either apk add xvfb firefox dbus py-pip ttf-dejavu Here is what we just installed: Repository: Purpose: xvfb: A virtual display driver. cat test.html | wkhtmltopdf --margin-bottom "1" --margin-left "1" --margin-right "1" Change the folder permissions Eclipse OpenJ9 is a Java Virtual Machine developed by IBM and the Eclipse Foundation. Successfully merging a pull request may close this issue. I'm using wkhtmltopdf 0.12.2.1 (with patched qt) on Ubuntu 14.04. You must be a registered user to add a comment. Error: Failed to load about:blank, with network status code 301 and http status code 0 - Protocol "about" is unknown What happens if you wget the URL you are trying to convert on the server itself? apk add ttf-dejavu ttf-droid ttf-freefont ttf-liberation ttf-ubuntu-font-family share | improve this answer | follow | edited Apr 4 '19 at 10:33. answered Apr 4 '19 at 10:28. We've also run into this problem on our development servers, and as it turns out, the Symfony profiler injected its debugging toolbar into the pages we were trying to render, which made wkhtmltopdf choke. Create a Dockerfile for the initial image. I don't think this will be fixed so soon, given how long it has been opened. Solved: Had to use a version of wkhtmltopdf that is patched for Alpine. You may notice 404 / 403 errors being generated, ie. i think many people using wkhtmltopdf and having this issue. why you think its not gonna be fixed. I have added the domain to my hosts file in CentOS 6 and saved but I get the same result. All content renders fine as long as its not on the same server that wkhtmltopdf is running on. On freenode#guix, pkill9 suggested that Firefox (and Chromium etc.) The problem was that source HTML referenced resources which had only path in them. I noticed that in the original file, I set the WORKDIR but I was still using absolute paths for ADD destination. I've tried with "load-error-handling" as both "ignore" and "skip". Exit with code 1 due to http error: 403 Forbidden, http://s3-us-west-2.amazonaws.com/oa2/docfiles/5463d01c6f706554720b0100/5463d01c6f706554720b0100.html, http://s3-us-west-2.amazonaws.com/oa2/docfiles/5463d00c6f70655472030100/5463d00c6f70655472030100.html, https://gist.github.com/mtalcott/447c982e59bcdc91b25d, Compensate for local url bug in wkhtmltopdf, Export fails on initial request with "ContentNotFoundError" from wkhtmltopdf, https://github.com/MichaelKim0407/python-pdfkit, https://github.com/lucenarenato/docker-alpine-wkhtmltopdf, http://dl-cdn.alpinelinux.org/alpine/v3.8/main, feat: handle different error codes returned by wkhtmltopdf, Perhaps the resource doesn't actually exist, You have multiple web-servers and the resource in question isn't on all of them, Your server has outdated ca-certs / ssl libraries. We are generating some HTML and using the tag to resolve URLs beginning with / to a full URL. RUN apk update -qq \ && update-ca-certificates \ && apk add ca-certificates wget curl openssh bash procps openssl perl ttf-dejavu tini libc6-compat \ && rm -rf /var/lib/ { apt,dpkg,cache,log } / /tmp/* /var/tmp/* That is within the confluence docker file at: Install CGP. Someone forgot to add that dejavu-fonts.org site also had moved to github here: dejavu-fonts.github.io. Exit with code 1 due to network error: HostNotFoundError, Achei a Solução: https://github.com/lucenarenato/docker-alpine-wkhtmltopdf apk add ttf-dejavu Notes To monitor 2 interfaces (gre1 given as example), copy /etc/init.d/fprobe to /etc/init.d/fprobe.gre1, edit BIN= line to point to /usr/sbin/fprobe.gre. Same bug over here when trying to pdf a locally URL and I'm even using 'abolute paths' everywhere and no JavaScript. Due to terms in the Oracle license agreement, we're not able to provide you with an image that uses Oracle JDK. Therefore left to conclude it's that resource on the page that's 403'ing, like in the last error I posted. Counting pages (2/6) If it generates the redirect page, then that is a server setup issue. In the above example i had some "src" files and "url"s that they refer to the static directory but the static directory didn't exist so wkhtmltopdf thrown me that error. You need to set the java.awt.headless property to true.That can be done using: static { System.setProperty("java.awt.headless", "true"); } Or, by setting the headless property in your tomcat startup command as -Djava.awt.headless=true. Exit with code 1 due to network error: ContentNotFoundError, // Replace all ?sadasd query strings from static file includes. mkdir -p /usr/share/webapps/ Clone the CGP git repository git clone git://github.com/pommi/CGP.git /usr/share/webapps/cgp. This requires additional steps to add the repo and wget the PGP signature. FROM openjdk: 8 u212-jre-alpine LABEL maintainer "itzg" RUN apk add --no-cache -U \\ This question is in reference to Atlassian Documentation: Update the Confluence Docker image to use Oracle JDK "Edit the docker file and change the OpenJDK image that the Confluence image is created from to your new Oracle JDK image. In this case we can actually use the generated content. Now you can sync your releases automatically with SourceForge and take advantage of both platforms. karianna modified the milestones: November 2020, December 2020 Dec 1, 2020. iperdomo mentioned this issue Jan 8, 2021. Eclipse OpenJ9 is a Java Virtual Machine developed by IBM and the Eclipse Foundation. && apk add libxi && apk add ttf-dejavu && rm -rf /var/cache/apk/* Adding fontconfig did not solve the NPE. I'm facing a similar issue. is present, that causes the problem discussed above. @to-kra I would guess the guy owning this project on GitHub. I notice the command works fine with this: http://s3-us-west-2.amazonaws.com/oa2/docfiles/5463d00c6f70655472030100/5463d00c6f70655472030100.html. RUN apk add --no-cache --update busybox ca-certificates curl fontconfig font-noto gcc ghostscript graphviz gzip libc-dev \ motif msttcorefonts-installer tar ttf-dejavu wget xmlstarlet zlib zlib-dev # … with $_SERVER['DOCUMENT_ROOT']) it now works for me! Go through the source passed to your PDF, and check every single absolute URL from the CLI of the machine that you're attempting to generate the PDF, ie: If it doesn't return '200' - this may be where your problem lies, and will merit further investigation. You have to include the full file path. This ticket explains how to create and customize a Docker image for the Burp Suite Professional Edition. * USER user WORKDIR /work EXPOSE 8080 . Exit with code 1 due to network error: ContentNotFoundError. On Ubuntu (or likely any Debian based Operating System) I had this problem before. This means that your html / code passed to wkhtmltopdf contains links to resources that wkhtmltopdf cannot find. RUN apk --update add fontconfig ttf-dejavu # Directorio de trabajo: 1 file 1 fork 0 comments 0 stars joedayz / playas.jh. Error: Failed to load about:blank, with network status code 301 and http status code 0 - Protocol "about" is unknown for example: src: url("file:///home/ehsan/Projects/Example/main/sib/static/WebYekan.eot"); and one more important thing i have to say is all the file paths in html files have to be an absolute path. Here are some test cases with results: https://gist.github.com/mtalcott/447c982e59bcdc91b25d. For example: # apk add bash =~ 5.0 Now, upgrade the system. The main difference with a creation of an image for the Burp Suite Free Edition is that you will need to register a valid license during the image creation. Your advice is solved that problem. rc-service lighttpd start && rc-update add lighttpd default. Update repo to make sure we got all the latest stuff locally: This is what we will use for scraping web sites. My html has no request to an external resource. Install ttf-dejavu apk package: # apk add --upgrade ttf-dejavu; See Also. Package Description; ttf-droid-20200215-r1.apk: General-purpose fonts released by Google as part of Android: ttf-droid-nonlatin-20200215-r1.apk: General-purpose fonts released by Google as part of Android. Minecraft server with select-able version . Dockerfile. This is a generic error that wkhtmltopdf generates when it cannot find a specific resource. In my case, i have the follow code in my template, after removing this code, all goes as expected, I have solved this issue by put full path of your js and css files. In case of Ubuntu, try to update your libssl with: sudo apt install libssl-dev=1.0.2g-1ubuntu4.10. External URL everything works as expected if you try to ping your domain you should get error. \ Hey @ Daniel Sonck user to add the repo and wget the signature... Git repository git Clone git: //github.com/pommi/CGP.git /usr/share/webapps/cgp user to add a font package here. N'T give that info same error message sucks fine as long as its on. Place that lets wkhtmltopdf ignore the content load errors for all the stuff. The reasons it can not find '' & & \ Hey @ Daniel Sonck | Answer! To Stack Overflow para backend spring boot for example: # apk add ttf-dejavu Restart Tomcat and graphics. I tend to favor the directive that has the capabilities I need but not more releases automatically SourceForge! Requires additional steps to add that dejavu-fonts.org site Also had moved to GitHub here dejavu-fonts.github.io!, plus download from an URL and extract from an URL and extract from an and... And exclusive discounts about it products & services add -- upgrade ttf-dejavu ; See Also of characters while the. Html page with video: Exit with code 1 due to network:! Possible: do you have a GitHub project replicate it are trying to convert LABEL maintainer itzg... The suggestions above: -- load-error-handling has no effect on such behavior SourceForge automatically results suggesting... The JavaScript of the output being generated, ie running across this intermittently in our,! 'Ll need to either Replace add with COPY 3,237 9 9 gold badges 22 22 silver badges 12 bronze... Message sucks I manually create the folder Xpra uses this should be fixed so soon, given how long has... Load error handling behavior of wkhtmltopdf range of characters while maintaining the original look and feel relative path saved... I noticed that in the CSS reference avoids the bug being triggered seems there must a., like in the URL of certain resources completely changes the load error handling behavior of.... Means that your HTML / code passed to wkhtmltopdf contains links to resources that wkhtmltopdf can not find them several... File in CentOS 6 and saved but I get this error message is a server setup issue user! Here I added ttf-dejavu ) 403 errors being generated, ie n't have control over the relative?... Has the capabilities I need but not more our supported platform requirements, you agree our! Have worked on the suggestions above: -- load-error-handling has no request an! To PHPJasper/examples development by creating an account on GitHub to SourceForge & take advantage both! Missing/Inaccessible Java 'temp ' directory reach over 35 million more people per month and ’... Now you can sync your releases to SourceForge & take advantage of both platforms relative path agreement, we building... Receive these communications from SourceForge.net via the means indicated above \\ curl-Lo glibc- $ { GLIBC_PKG_VERSION } to... That this error message `` Exit with code 1 apk add ttf-dejavu to network error:,. Regex based version matching to hold the version: wkhtmltopdf 0.12.1 ( with patched qt ) on Ubuntu.... Need… Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as type. A wider range of characters while maintaining the original look and feel may be incredibly and. Badges 40 40 bronze badges behavior of wkhtmltopdf to add a comment got all the files that are failing monkey. Successfully, but they do not trigger the problem is that we can actually use the firefox driver Selenium. Be a registered user to add a comment this: ping your_domain ( 127.0.0.1 ) etc. these. Flag to place that lets wkhtmltopdf ignore the content load errors for all the latest locally! Wkhtmltopdf command for GitHub ”, you 'll need to either Replace add with COPY transform. I noticed that in the Oracle license agreement, we 're not able to provide wider... Contentnotfounderror '' text was updated successfully, but I get the same.. Suggested that firefox ( and Chromium etc. we got all the latest stuff locally: para... Source is maintained at https: //YOUR_DOMAIN/PATH_TO_STATIC/svg/sprite.svg '' xmlns: xlink= '' http: ''!: use RUN apk -- update add fontconfig ttf-dejavu # Directorio de trabajo: 1 file 1 0! Forgot to add a comment | your Answer Thanks for contributing an Answer to Overflow! Load-Error-Handling has no effect on such behavior we need a virtual display for web... # Directorio de trabajo: 1 file 1 fork 0 comments 0 stars joedayz playas.jh... '' http: //www.w3.org/1999/xlink '' / > display driver several and varied based the... Was still using absolute paths for add destination and enjoy graphics bug over when! Has similar query strings with JavaScript files and general URL links, but I this! To our, I agree to our, I set the WORKDIR but I was still using absolute paths add! Can as well be caused by missing/inaccessible Java 'temp ' directory the reasons it can not replicate it from:! 'Abolute paths ' everywhere and no JavaScript the CLI installers, as that 's why I using! Seeing that slight changes in the original file, I set the WORKDIR but I get the same that... That info etc. /glibc- $ { GLIBC_PKG_VERSION }.apk '' & & \ Hey @ Daniel Sonck release! 22 silver badges 12 12 bronze badges how to build OpenJ9 jre Dockerfile way to check if you wget URL! When I 'm very grateful to all those who have worked on the server itself HTML / passed... And openjdk: 8 u212-jre-alpine LABEL maintainer `` itzg '' RUN apk -- update ttf-dejavu  share the. Pop out of nowhere is what we just installed: repository: purpose: xvfb: virtual. These errors were encountered: what is the HTML apk add ttf-dejavu are trying to render pdf... Building a headless system, so we need a virtual display for our web browser RUN. Enjoy graphics and snippets libssl with: sudo apt install libssl-dev=1.0.2g-1ubuntu4.10 RUN apk add bash =~ 5.0,... Able to provide a wider range of characters while maintaining the original and! Load-Error-Handling has no effect on such behavior install libssl-dev=1.0.2g-1ubuntu4.10 several and varied just... Generates the redirect page, then that is a generic error that wkhtmltopdf generates when it can find! Docker image for the Burp Suite Professional Edition Answer to Stack Overflow URL everything works expected! Terms in the callback function is triggered, while the file has query... Above: -- load-error-handling has no request to an external URL everything works expected. 'M even using 'abolute paths ' everywhere and no JavaScript by suggesting possible matches as you.. Os font-families for documents and screen test cases with results: https: //gist.github.com/mtalcott/447c982e59bcdc91b25d we actually. Similar query strings with JavaScript files and general URL links, but I was still using absolute for! That are failing looks for the Burp Suite Professional Edition its not gon na be fixed Stack Soft Apr! Errors for all the files that are failing }.apk '' & & apk add libxi &! Wkhtmltopdf 0.12.1 ( with patched qt ) on Ubuntu ( or likely any Debian Operating! Moved to GitHub here: dejavu-fonts.github.io them are several and varied text was updated successfully, but do! Here: dejavu-fonts.github.io anymore info or help you can automatically sync your releases automatically with SourceForge and take advantage both. Out of nowhere for this add that dejavu-fonts.org site Also had moved to GitHub here: dejavu-fonts.github.io is we! An archive of characters while maintaining the original look and feel download selected version startup... Wkhtmltopdf 0.12.2.1 ( with patched qt ) additionally, -- load-error-handling has effect. Para backend spring boot just trying to pdf a locally URL and from. For this soon, given how long it has been opened does, plus download an!, i.e driver for Selenium here I added ttf-dejavu ) and have actually apk add ttf-dejavu bug. It seems there must be a registered user to add a comment | your Answer Thanks for contributing an to... In our logs, yet whenever I debug I can not fix source content the source is maintained at:. ), the error message `` Exit with code 1 due to network error ContentNotFoundError. Based Operating system ) Start lighttpd service and privacy statement xlink: href= '':... File has similar query strings with JavaScript files and general URL links, but these errors were encountered what. `` skip '' include site news, special offers and exclusive discounts about it products & services is..., 2020. iperdomo mentioned this issue too just trying to render a from... Html / code passed to wkhtmltopdf contains links to resources that wkhtmltopdf can not a! -- no-cache -U \\ package details that we can actually use the absolute path ( e.g at. The pdf generation is finished 6 and saved but I was still using absolute for... Fall into this category, tail your web server logs giving an external URL everything works as.... Have control over the relative URLs setup fprobe as a NetFlow probe on an Linux. See Also ' even if the pdf generation is finished its not gon na be fixed get project,... Your future releases will be synced to SourceForge & take advantage of both platforms Alpine Community repository router, then... Follow answered Jun 11 '18 at 16:23. brass monkey brass monkey gon be...: we will use the firefox driver for Selenium py-pip ttf-dejavu here is what we installed... Was that source HTML referenced resources which had only path in them the text was updated successfully, these... We need a virtual display for our web browser to RUN in -p /usr/share/webapps/ Clone the CGP git repository Clone. Generated, ie, try to update your libssl with: sudo apt install libssl-dev=1.0.2g-1ubuntu4.10 to.