无法在MediaTemple上安装Rails App?

时间:2022-09-19 08:03:08

I am having some trouble installing an app on MediaTemple's Grid Servers... I'm deploying with cap and github... everything seems to go ok with those, but the app won't start up. There seems to be a problem with my database.yml file? I've checked for space errors and those all look good.

我在MediaTemple的网格服务器上安装应用程序时遇到了一些问题......我正在使用cap和github进行部署......一切似乎都没问题,但应用程序无法启动。我的database.yml文件似乎有问题?我检查了空间错误,那些看起来都不错。

Here is a copy of the console when I try and start from there:

当我尝试从那里开始时,这是控制台的副本:

XXXXXXXXX.com@n11:/home/65633/containers/rails/GDB/current$ script/server RAILS_ENV="production" --trace
** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
server: invalid option: --trace
=> Rails 2.2.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
config.gem: Unpacked gem geokit-1.4.1 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
Exiting
/home/65633/data/rubygems/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:60:in `establish_connection': development database is not configured (ActiveRecord::AdapterNotSpecified)
    from /home/65633/data/rubygems/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:53:in `establish_connection'
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:392:in `initialize_database'
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:139:in `process'
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:112:in `send'
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:112:in `run'
    from /nfs/c04/h03/mnt/65633/containers/rails/GDB/releases/20090830045026/config/environment.rb:15
    from /home/65633/data/rubygems/lib/rubygems/custom_require.rb:31:in `gem_original_require'
    from /home/65633/data/rubygems/lib/rubygems/custom_require.rb:31:in `require'
     ... 24 levels...
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/commands/server.rb:49
    from /home/65633/data/rubygems/lib/rubygems/custom_require.rb:31:in `gem_original_require'
    from /home/65633/data/rubygems/lib/rubygems/custom_require.rb:31:in `require'
    from script/server:3

Here is the mongrel log:

这是杂种日志:

** Daemonized, any open files are closed.  Look at log/mongrel.pid and log/mongrel.log for info.
** Starting Mongrel listening at 0.0.0.0:2017
** Starting Rails with production environment...
/home/65633/data/rubygems/lib/rubygems/custom_require.rb:31:in `gem_original_require': /home/65633/containers/rails/GDB/releases/20090830060044/app/controllers/administration_controller.rb:159: syntax error, unexpected kEND, expecting $end (SyntaxError)
    from /home/65633/data/rubygems/lib/rubygems/custom_require.rb:31:in `require'
    from /home/65633/data/rubygems/gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in `require'
    from /home/65633/data/rubygems/gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:262:in `require_or_load'
    from /home/65633/data/rubygems/gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in `depend_on'
    from /home/65633/data/rubygems/gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in `require_dependency'
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:368:in `load_application_classes'
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:367:in `each'
    from /home/65633/data/rubygems/gems/gems/rails-2.2.2/lib/initializer.rb:367:in `load_application_classes'
     ... 17 levels...
    from /home/65633/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../lib/mongrel/command.rb:212:in `run'
    from /home/65633/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/mongrel_rails:281
    from /home/65633/data/rubygems/gems/bin/mongrel_rails:19:in `load'
    from /home/65633/data/rubygems/gems/bin/mongrel_rails:19

mtr start error

mtr启动错误

application started, but pid file was not found, check 'mtr status'

1 个解决方案

#1


0  

The command script/server RAILS_ENV="production" clearly doesn't start Mongrel with the development environment, as you can see from this log line from your first excerpt:

命令脚本/服务器RAILS_ENV =“production”显然不能在开发环境中启动Mongrel,正如您可以从第一个摘录中的此日志行中看到的:

** Starting Rails with development environment...

Furthermore, if you try to run RAILS_ENV=production script/server, does the application start without any gem related errors? That's what I would check.

此外,如果您尝试运行RAILS_ENV =生产脚本/服务器,应用程序是否启动时没有任何与gem相关的错误?这就是我要检查的内容。

As for the error in the second logfile, I'm not really sure. What is in line 159 of your administration_controller.rb?

至于第二个日志文件中的错误,我不太确定。在administration_controller.rb的第159行中是什么?

#1


0  

The command script/server RAILS_ENV="production" clearly doesn't start Mongrel with the development environment, as you can see from this log line from your first excerpt:

命令脚本/服务器RAILS_ENV =“production”显然不能在开发环境中启动Mongrel,正如您可以从第一个摘录中的此日志行中看到的:

** Starting Rails with development environment...

Furthermore, if you try to run RAILS_ENV=production script/server, does the application start without any gem related errors? That's what I would check.

此外,如果您尝试运行RAILS_ENV =生产脚本/服务器,应用程序是否启动时没有任何与gem相关的错误?这就是我要检查的内容。

As for the error in the second logfile, I'm not really sure. What is in line 159 of your administration_controller.rb?

至于第二个日志文件中的错误,我不太确定。在administration_controller.rb的第159行中是什么?