Rails deployment issue... no such file or directory - getcwd? huh?

4,005 views
Skip to first unread message

DanielFischer.com

unread,
Aug 25, 2008, 8:30:33 PM8/25/08
to Ruby on Rails: Talk
Everything works fine locally but when I deploy I get this:

Errno::ENOENT (No such file or directory - getcwd):
/vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:78:in `expand_path'
/vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:78:in `require_or_load'
/vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:60:in `depend_on'
/vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:442:in `require_dependency'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
141:in `prepare_application'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
178:in `send!'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
178:in `run_callbacks'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
175:in `each'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
175:in `send!'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
175:in `run_callbacks'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
114:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
126:in `dispatch_cgi'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in
`dispatch'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/
rails.rb:76:in `process'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/
rails.rb:74:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/
rails.rb:74:in `process'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:155:in `process_client'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:155:in `process_client'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:154:in `each'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:154:in `process_client'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:281:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:281:in `initialize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:281:in `new'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:281:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:264:in `initialize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:154:in `each'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:154:in `process_client'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:281:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:281:in `initialize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:281:in `new'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:281:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:264:in `initialize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:264:in `new'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/
mongrel.rb:264:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/
configurator.rb:282:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/
configurator.rb:281:in `each'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/
configurator.rb:281:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/mongrel_rails:
128:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/
command.rb:212:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/mongrel_rails:
281
/usr/local/bin/mongrel_rails:16:in `load'
/usr/local/bin/mongrel_rails:16


Anyone have an idea?

It's worked before, but for some reason my new changes aren't taking
place and somehow, at the same time, this error came up.

My changes only involve editing the view and routes which is nothing
related to the above.

I'd love some ideas!

Thanks.

Conrad Taylor

unread,
Aug 25, 2008, 8:43:06 PM8/25/08
to rubyonra...@googlegroups.com
Hi, does your rails application work locally in production mode?

-Conrad
Message has been deleted

Coby Randquist

unread,
Sep 11, 2009, 1:23:51 PM9/11/09
to rubyonra...@googlegroups.com
Henry Collingridge wrote:
> For the record, I had the same problem yesterday. I rebooted my server
> (a Solaris 10 zone) and that seemed to fix it.

I experienced this issue today, it was caused by the fact that I was
running in a directory that I had removed from another terminal
instance.
--
Posted via http://www.ruby-forum.com/.

Colin Law

unread,
Mar 22, 2013, 6:04:52 PM3/22/13
to rubyonra...@googlegroups.com
On 22 March 2013 21:37, Carlos Gottberg <carlos....@gmail.com> wrote:
> Hey, thanks! I was just about to throw the computer through the window. Was
> running in a removed directory too.

I expect someone else will do it again in another three or four years.

Colin
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/mrGqOP9sG2AJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Joel Muzzerall

unread,
Aug 20, 2013, 9:37:21 PM8/20/13
to rubyonra...@googlegroups.com, cla...@googlemail.com
I was running in a removed dir too.

Life saving thread.
Reply all
Reply to author
Forward
0 new messages