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

Unable to create PDF using IronPDF #18

Open
Jegannath619 opened this issue Nov 22, 2021 · 2 comments
Open

Unable to create PDF using IronPDF #18

Jegannath619 opened this issue Nov 22, 2021 · 2 comments

Comments

@Jegannath619
Copy link

Attempting 'Chrome' v2021.11.4252 deployment using '/app/runtimes/linux-x64/native'
Found 'IronInterop' at '/app/runtimes/linux-x64/native'
Determining deployment commands for platform 'Ubuntu' v20.4
Using deployment instructions for 'ubuntu' v20
Executing command 'chmod 755 IronCefSubprocess' in '/app/runtimes/linux-x64/native'
chmod: changing permissions of 'IronCefSubprocess': Operation not permitted

Attempting to load Unix library '/app/runtimes/linux-x64/native/libcef.so'
Unix library '/app/runtimes/linux-x64/native/libcef.so' load result 140214240779936
Successfully loaded libcef from the file: /app/runtimes/linux-x64/native/libcef.so
Attempting to load Unix library '/app/runtimes/linux-x64/native/IronInterop.so'
Unix library '/app/runtimes/linux-x64/native/IronInterop.so' load result 140214241231408
Successfully loaded IronInterop from the file: /app/runtimes/linux-x64/native/IronInterop.so
Successfully loaded 'IronInterop' version '2021.11.0.4252' from '/app/runtimes/linux-x64/native'
Successfully deployed 'Chrome' using '/app/runtimes/linux-x64/native'
Retrieved license key from inline variable
11:18:41 (140221433657088): Using IronPDF Chrome assembly v2021.11.0.4252
11:18:41 (140221433657088): Ignoring Cef global initialization request
11:18:41 (140221433657088): Initializing Cef proxy controller
11:18:41 (140221433657088): Using subprocess path '/app/runtimes/linux-x64/native/IronCefSubprocess'
11:18:41 (140221433657088): Using locales path '/app/runtimes/linux-x64/native/locales'
11:18:41 (140221433657088): Using resources path '/app/runtimes/linux-x64/native'
11:18:41 (140221433657088): Process os_name: 'ubuntu'
11:18:41 (140221433657088): gpu_mode: '0'
11:18:41 (140221433657088): Launching Main process ' --browser-subprocess-path=/app/runtimes/linux-x64/native/IronCefSubprocess --no-sandbox --lang=en-US --log-file=cef.log --log-severity=verbose --resources-dir-path=/app/runtimes/linux-x64/native --locales-dir-path=/app/runtimes/linux-x64/native/locales --disable-web-security --headless --hide-scrollbars --mute-audio --disable-gpu --disable-gpu-compositing --disable-software-rasterizer --disable-gpu-shader-disk-cache --disable-dev-shm-usage --enable-media-stream --no-sandbox --enable-debugging --enable-gpu-client-logging --enable-gpu-debugging --enable-gpu-service-logging --ignore-certificate-error --ignore-ssl-errors'
11:18:41 (140221433657088): Process os_name: 'ubuntu'
11:18:41 (140221433657088): gpu_mode: '0'
11:18:41 (140221433657088): Launching child process '/app/runtimes/linux-x64/native/IronCefSubprocess --type=zygote --no-zygote-sandbox --no-sandbox --headless --locales-dir-path=/app/runtimes/linux-x64/native/locales --log-severity=verbose --resources-dir-path=/app/runtimes/linux-x64/native --lang=en-US --log-file=cef.log --disable-web-security --headless --hide-scrollbars --mute-audio --disable-gpu --disable-gpu-compositing --disable-software-rasterizer --disable-gpu-shader-disk-cache --disable-dev-shm-usage --enable-media-stream --no-sandbox --enable-debugging --enable-gpu-client-logging --enable-gpu-debugging --enable-gpu-service-logging --ignore-certificate-error --ignore-ssl-errors'
11:18:41 (140221433657088): Process os_name: 'ubuntu'
11:18:41 (140221433657088): gpu_mode: '0'
11:18:41 (140221433657088): Launching child process '/app/runtimes/linux-x64/native/IronCefSubprocess --type=zygote --no-sandbox --headless --locales-dir-path=/app/runtimes/linux-x64/native/locales --log-severity=verbose --resources-dir-path=/app/runtimes/linux-x64/native --lang=en-US --log-file=cef.log --disable-web-security --headless --hide-scrollbars --mute-audio --disable-gpu --disable-gpu-compositing --disable-software-rasterizer --disable-gpu-shader-disk-cache --disable-dev-shm-usage --enable-media-stream --no-sandbox --enable-debugging --enable-gpu-client-logging --enable-gpu-debugging --enable-gpu-service-logging --ignore-certificate-error --ignore-ssl-errors'
11:18:41 (140042155666944): Entered child process
11:18:41 (140042155666944): Created proxy
11:18:41 (140227259104768): Entered child process
11:18:41 (140227259104768): Created proxy
11:18:41 (140042155666944): Process os_name: 'undefined'
11:18:41 (140042155666944): gpu_mode: '0'
11:18:41 (140042155666944): Launching Main process '/app/runtimes/linux-x64/native/IronCefSubprocess --type=zygote --no-zygote-sandbox --no-sandbox --headless --locales-dir-path=/app/runtimes/linux-x64/native/locales --log-severity=verbose --resources-dir-path=/app/runtimes/linux-x64/native --lang=en-US --log-file=cef.log --disable-web-security --headless --hide-scrollbars --mute-audio --disable-gpu --disable-gpu-compositing --disable-software-rasterizer --disable-gpu-shader-disk-cache --disable-dev-shm-usage --enable-media-stream --no-sandbox --enable-debugging --enable-gpu-client-logging --enable-gpu-debugging --enable-gpu-service-logging --ignore-certificate-error --ignore-ssl-errors --disable-web-security --headless --hide-scrollbars --mute-audio --disable-gpu --disable-gpu-compositing --disable-software-rasterizer --disable-gpu-shader-disk-cache --disable-dev-shm-usage --enable-media-stream --no-sandbox --ignore-certificate-error --ignore-ssl-errors'
11:18:41 (140227259104768): Process os_name: 'undefined'
11:18:41 (140227259104768): gpu_mode: '0'
11:18:41 (140227259104768): Launching Main process '/app/runtimes/linux-x64/native/IronCefSubprocess --type=zygote --no-sandbox --headless --locales-dir-path=/app/runtimes/linux-x64/native/locales --log-severity=verbose --resources-dir-path=/app/runtimes/linux-x64/native --lang=en-US --log-file=cef.log --disable-web-security --headless --hide-scrollbars --mute-audio --disable-gpu --disable-gpu-compositing --disable-software-rasterizer --disable-gpu-shader-disk-cache --disable-dev-shm-usage --enable-media-stream --no-sandbox --enable-debugging --enable-gpu-client-logging --enable-gpu-debugging --enable-gpu-service-logging --ignore-certificate-error --ignore-ssl-errors --disable-web-security --headless --hide-scrollbars --mute-audio --disable-gpu --disable-gpu-compositing --disable-software-rasterizer --disable-gpu-shader-disk-cache --disable-dev-shm-usage --enable-media-stream --no-sandbox --ignore-certificate-error --ignore-ssl-errors'
[1122/111841.514905:VERBOSE1:device_data_manager_x11.cc(216)] X Input extension not available
[1122/111841.515740:VERBOSE1:pref_proxy_config_tracker_impl.cc(186)] 0x7f85fc01b750: set chrome proxy config service to 0x7f85fc03f950

@djrecipe
Copy link

djrecipe commented Dec 27, 2021

I would suggest supplying IronCefSubprocess log and cef.log to Iron Software support as well.

Here is the general advice for this kind of issue:

Are you running this from a docker file?
Can you try to set up your environment such that IronCefSubprocess has executable permissions? This is different than write permissions.

This line indicates we were unable to set executable permissions for you:

Executing command 'chmod 755 IronCefSubprocess' in '/app/runtimes/linux-x64/native'
chmod: changing permissions of 'IronCefSubprocess': Operation not permitted

You will need to set-up your dockerfile or environment to ensure you have executable permissions for the subprocess executable. This executable is typically located in a path such as bin/Debug/netcoreapp3.1/runtimes/linux-x64/native/IronCefSubprocess

Provided that your environment/dockerfile is set-up properly, you may also set Installation.LinuxAndDockerDependenciesAutoConfig=false;

If you provide the other log files (subprocess log and cef.log), it should further help Iron Software understand why the subprocess is crashing or otherwise not working.

@djrecipe
Copy link

One last note: most up-to-date version for IronPdf.Native.Chrome.Linux is 2021.12.4390

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

2 participants