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

wkhtmltopdf Error when using puma with phased-restart #183

Open
nguyenngoc2505 opened this issue Sep 16, 2024 · 0 comments
Open

wkhtmltopdf Error when using puma with phased-restart #183

nguyenngoc2505 opened this issue Sep 16, 2024 · 0 comments

Comments

@nguyenngoc2505
Copy link

I've updated puma to using phased-restart. Phased restart only restart worker, master process not load and have an error like below when old release folder have been removed.

["/var/www/proj/shared/bundle/ruby/2.5.0/gems/wkhtmltopdf-binary-0.12.4/bin/wkhtmltopdf", "-q", "--zoom", "0.7", "--margin-top", "0", "--margin-bottom", "0", "--margin-left", "0", "--margin-right", "0", "file:////tmp/wicked_pdf20240916-9256-10of6ll.html", "/tmp/wicked_pdf_generated_file20240916-9256-bz4g9w.pdf"]
Error: PDF could not be generated!
 Command Error: /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler/definition.rb:33:in `build': /var/www/proj/releases/20240913043719/Gemfile not found (Bundler::GemfileNotFound)
  from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler.rb:135:in `definition'
  from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler.rb:101:in `setup'
  from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler/setup.rb:20:in `<top (required)>'
  from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
  from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

It seems that wicked_pdf uses the master process to gender the pdf without using worker processes?

@nguyenngoc2505 nguyenngoc2505 changed the title wkhtmltopdf Eror when using puma with phased-restart wkhtmltopdf Error when using puma with phased-restart Sep 16, 2024
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

1 participant