-
Notifications
You must be signed in to change notification settings - Fork 353
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
Bundler Error during Deployment - undefined method `size' for nil:NilClass in wkhtmltopdf-binary gem #166
Comments
That error isn't coming from this gem, it's coming from Rubygems' bundler at this line, where it is trying to unpack the gem file that was downloaded. It seems to me that the file didn't download successfully, even though the system thought it did. I would try and re-deploy. It might have been an intermittent issue downloading from the rubygems servers. If it continues to fail, then it might be something with your deployment setup. One thing that is fairly unique about this gem, is that it is quite large, as far as Ruby gems go. It's about 261MB. Maybe your system doesn't have enough drive space to save it to disk, enough Another thing you might consider is just pulling out the single Please let me know how it goes, and how you solved your issue! |
There is an enough space on the server. So I think it is not because of the space. Secondly, one thing I have noticed is when I remove error on bundler:install on executing
`** DEPLOY FAILED tzinfo-data web-console wicked_pdf wkhtmltopdf-binary (~> 0.12.6.6) RUBY VERSION ruby 3.1.2p20 BUNDLED WITH 2.4.16
|
Try running Even if you have enough disk space, I’ve heard of issues with quotas on temporary space, or timeouts during deploy. again, you can also browse the |
Issue Summary:
I encountered an issue while deploying a Rails application using Capistrano. The deployment process fails during the bundler:install task with the following error:
Exception while verifying /path/to/bundle/cache/wkhtmltopdf-binary-0.12.6.6.gem
NoMethodError: undefined method `size' for nil:NilClass
@READ += ret.size
Environment:
Ruby version: 3.1.2
Bundler version: 2.4.22
Steps to Reproduce:
Clone the repository.
Run cap production deploy to deploy the Rails application.
Expected Behavior:
The deployment process should complete successfully without errors.
Actual Behavior:
The deployment fails with the mentioned error related to the wkhtmltopdf-binary gem.
Additional Information:
Gemfile content:
Possible Solutions (if any):
I have tried different possible solutions found on Google but they did not work.
References:
Note:
This issue seems to be specific to the wkhtmltopdf-binary gem during the deployment process. I have checked for existing reports on the RubyGems GitHub repository, and no similar issues were found. I'm creating this issue to seek assistance in resolving the problem.
The text was updated successfully, but these errors were encountered: