3

狮子服务器是荒谬的。在 Mac 上,我运行了 Lion Server 10.7.3 的安装和设置,然后安装了 rvm、Ruby 1.9.3 和 Rails 3.2.3。

在 Mac 上它工作得很好,而在第二个 Mac 上不工作,我进入了 log devicemgr:

<Info>: default_profile_created_at_least_once was already true
Apr 10 20:23:26 <Name of Server> ProfileManager[1117] <Warning>: ** has_many_polymorphs: Warning; not all usage scenarios for polymorphic scopes are supported yet.

在系统日志中,守护进程 devicemgr 总是重复:

<Date, Time and Nome Server>.devicemanager[1634]: DEBUG: Initializing DeviceManagerDaemon with ports 3320,3321,3322,3323,3324,3325,3326,3327,3328,3329 (physmem = 8GB)
<Date, Time and Nome Server>.devicemanager[1634]: DEBUG: Making sure Rails is configured properly
<Date, Time and Nome Server>.devicemanager[1634]: DEBUG: Running rake command: /usr/bin/rake db:migrate
<Date, Time and Nome Server>.devicemanager[1634]: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem rake (>= 0) (Gem::LoadError)
<Date, Time and Nome Server>.devicemanager[1634]:   from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:211:in `activate'
<Date, Time and Nome Server>.devicemanager[1634]:   from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1056:in `gem'
<Date, Time and Nome Server>.devicemanager[1634]:   from /usr/bin/rake:18
<Date, Time and Nome Server>.devicemanager[1634]: /usr/share/devicemgr/backend/devicemgrd:109:in `rake': Rake command failed with 256 (RuntimeError)
<Date, Time and Nome Server>.devicemanager[1634]:   from /usr/share/devicemgr/backend/devicemgrd:103:in `setupRails'
<Date, Time and Nome Server>.devicemanager[1634]:   from /usr/share/devicemgr/backend/devicemgrd:33:in `run'
<Date, Time and Nome Server>.devicemanager[1634]:   from /usr/share/devicemgr/backend/devicemgrd:131
Apr 12 23:02:05 apple com.apple.launchd[1] (com.apple.devicemanager[1634]): Exited with code: 1
Apr 12 23:02:05 apple com.apple.launchd[1] (com.apple.devicemanager): Throttling respawn: Will start in 10 seconds
Apr 12 23:02:07 apple xgrid[1637]: gss_init_sec_context is called on main thread, its a blocking api
Apr 12 23:02:12 apple xgrid[1641]: gss_init_sec_context is called on main thread, its a blocking api

我该如何解决?如果您想避免重新安装所有内容。谢谢!

4

3 回答 3

3

我最近从 Snow Leopard Server 升级到 Lion Server,不幸的是,Apple 在这篇文章中说,你试图完成的情况是不可能的 :( 并且恢复拥有一个正常运行的配置文件管理器服务器几乎但不可能重建服务器的例外。

希望能解决一些问题。

-编辑:

通过卸载和删除所有安装了 ruby​​ 更新的新 gem,我设法让 wiki 服务器重新启动并运行。但是,如果您需要配置文件管理器或 wiki 服务,请不要更新 gems,这一点非常重要,否则我相信其他一切都应该工作。

肖恩

于 2012-04-25T13:25:43.830 回答
2

我认为(我有类似的问题)他做了这些步骤:

  • 在profilemanager之类的服务器上有一些服务
  • 在系统中安装 RVM。
  • 安装最新版本的 Rails。

在这些 ProfileManager 之后,我想,其他服务也会停止运行。

于 2012-04-17T07:30:28.750 回答
0

添加此信息,我的 GEM ENV 为:

RubyGems Environment:
- RUBYGEMS VERSION: 1.8.21
- RUBY VERSION: 1.9.3 (2012-02-16 patchlevel 125) [x86_64-darwin11.3.0]
- INSTALLATION DIRECTORY: /Users/ladmin/.rvm/gems/ruby-1.9.3-p125
- RUBY EXECUTABLE: /Users/ladmin/.rvm/rubies/ruby-1.9.3-p125/bin/ruby
- EXECUTABLE DIRECTORY: /Users/ladmin/.rvm/gems/ruby-1.9.3-p125/bin
- RUBYGEMS PLATFORMS:
  - ruby
  - x86_64-darwin-11
- GEM PATHS:
   - /Users/ladmin/.rvm/gems/ruby-1.9.3-p125
   - /Users/ladmin/.rvm/gems/ruby-1.9.3-p125@global
- GEM CONFIGURATION:
   - :update_sources => true
   - :verbose => true
   - :benchmark => false
   - :backtrace => false
   - :bulk_threshold => 1000
- REMOTE SOURCES:
   - http://rubygems.org/

配置文件管理器不起作用。

于 2012-04-15T09:11:00.030 回答