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

Missing fields.snapshot causes Passenger deployment issues #45

Open
bjminihan opened this issue Jul 22, 2015 · 5 comments
Open

Missing fields.snapshot causes Passenger deployment issues #45

bjminihan opened this issue Jul 22, 2015 · 5 comments

Comments

@bjminihan
Copy link

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
Copy link
Owner

amalc commented Jul 22, 2015

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
Copy link
Author

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 [email protected] 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
#45 (comment).

@amalc
Copy link
Owner

amalc commented Jul 22, 2015

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
Copy link

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

@bjminihan
Copy link
Author

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.

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

3 participants