# Problem with starting the rails server through cron

**URL:** <https://www.ruby-forum.com/t/problem-with-starting-the-rails-server-through-cron/155845>\
**Category:** Rails\
**Created:** [December 17, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/problem-with-starting-the-rails-server-through-cron/155845 "2008-12-17T12:40:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![archanasubodh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f08c70/32.png) [@archanasubodh](https://www.ruby-forum.com/u/archanasubodh)\
**Post date:** [December 17, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/problem-with-starting-the-rails-server-through-cron/155845/1 "2008-12-17T12:40:03Z")

</div>

Hai,

My application is built on ruby on rails and the database used is  
Berkeley database

the problem i get when the script is executed through cron is:

/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem\_original\_require’: can’t convert nil into String (TypeError)

and so on.

note:script works fine when executed manually using ./scriptname

thanks in advance

ArchanaSubodh
