amalc / rubyzoho

Abstracting Zoho’s API into a set of Ruby classes, with reflection of Zoho’s fields using a more familiar ActiveRecord lifecycle, but without ActiveRecord. Works with Rails and Devise.
MIT License
62 stars 57 forks source link

Missing fields.snapshot causes Passenger deployment issues #45

Open bjminihan opened 9 years ago

bjminihan commented 9 years ago

While upgrading my EC2 server to Passenger 4.0.59, Rails 4.2.1 and Ruby 2.1.5, Passenger bombs (and my app never deploys) on a missing file in the rubyzoho gem:

Permission denied @ rb_sysopen - /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/../spec/fixtures/fields.snapshot (Errno::EACCES)
  /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/ruby_zoho.rb:43:in `initialize'
  /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/ruby_zoho.rb:43:in `open'
  /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/ruby_zoho.rb:43:in `init_api'
  /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/ruby_zoho.rb:29:in `configure'
  /var/app/current/config/initializers/zoho.rb:3:in `<top (required)>'

I could find hide nor hair of the above file in the repository, and don't know what it's for.

I would love to fix the problem, if I were a little better at forking and contributing to gem development. Unfortunately, I am neither of those.

Anyone know what I can do to correct the above?

amalc commented 9 years ago

Which version of the gem? Sent from my BlackBerry 10 smartphone. From: Bryan MinihanSent: Wednesday, July 22, 2015 10:22To: amalc/rubyzohoReply To: amalc/rubyzohoSubject: [rubyzoho] Missing fields.snapshot causes Passenger deployment issues (#45)While upgrading my EC2 server to Passenger 4.0.59, Rails 4.2.1 and Ruby 2.1.5, Passenger bombs (and my app never deploys) on a missing file in the rubyzoho gem:

Permission denied @ rb_sysopen - /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/../spec/fixtures/fields.snapshot (Errno::EACCES) /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/ruby_zoho.rb:43:in initialize' /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/ruby_zoho.rb:43:inopen' /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/ruby_zoho.rb:43:in init_api' /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/ruby_zoho.rb:29:inconfigure' /var/app/current/config/initializers/zoho.rb:3:in `<top (required)>'

I could find hide nor hair of the above file in the repository, and don't know what it's for.

I would love to fix the problem, if I were a little better at forking and contributing to gem development. Unfortunately, I am neither of those.

Anyone know what I can do to correct the above?

—Reply to this email directly or view it on GitHub.

bjminihan commented 9 years ago

Currently using version 0.5.0, but I checked the repository history and couldn't find that file in version 0.2.0, which I was using previously.

Everything compiles and runs fine on an older version of Passenger, which doesn't complain as much as the newer one. Other than a change to the search function, I've no practical problems with this gem regarding that file, since I assume it's part of the spec suite.

On Wed, Jul 22, 2015 at 11:31 AM, amalc notifications@github.com wrote:

Which version of the gem? Sent from my BlackBerry 10 smartphone. From: Bryan MinihanSent: Wednesday, July 22, 2015 10:22To: amalc/rubyzohoReply To: amalc/rubyzohoSubject: [rubyzoho] Missing fields.snapshot causes Passenger deployment issues (#45)While upgrading my EC2 server to Passenger 4.0.59, Rails 4.2.1 and Ruby 2.1.5, Passenger bombs (and my app never deploys) on a missing file in the rubyzoho gem:

Permission denied @ rb_sysopen - /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/../spec/fixtures/fields.snapshot (Errno::EACCES) /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/ruby_zoho.rb:43:in initialize' /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/ruby_zoho.rb:43:in open' /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/ruby_zoho.rb:43:in init_api' /var/app/current/vendor/bundle/ruby/2.1.0/gems/rubyzoho-0.5.0/lib/ruby_zoho.rb:29:in configure' /var/app/current/config/initializers/zoho.rb:3:in `<top (required)>'

I could find hide nor hair of the above file in the repository, and don't know what it's for.

I would love to fix the problem, if I were a little better at forking and contributing to gem development. Unfortunately, I am neither of those.

Anyone know what I can do to correct the above?

—Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/amalc/rubyzoho/issues/45#issuecomment-123759479.

amalc commented 9 years ago

There is a file that was missing in the gemspec that somebody found and submitted a PR which is in the master branch. Can you take a quick look and see if that fixes the problem. I wouldn't use the master branch in prod. It's got some untested enhancements in it for mapping.

cthornbe commented 8 years ago

@bjminihan Were you ever able to find the cause of this issue? I'm hitting the same error today.

bjminihan commented 8 years ago

I wound up talking to the Zoho API directly, because I couldn't get it to work. I believe if I had linked directly to the R0.50.0 release instead of the v0.50.0 release (which doesn't have the file in question), it would have worked, but my production environment doesn't make linking directly to tagged github versions simple.