Lion Server, Profilemanager, RVM and Rails do not work together

Lion Server is absurd. On Mac, I launched the installation and configuration of Lion Server 10.7.3, and then installed rvm, Ruby 1.9.3, and Rails 3.2.3.

On Mac, it worked fine until the second Mac was working, and I ended up in the devicemgr log:

<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.

In the syslog daemon, devicemgr always repeats:

<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

How can i fix it? If you want to avoid reinstalling everything. Thank!

+3
source share
3 answers

Lion Server Snow Leopard Server, , , Apple , , :( , .

, .

-Edit:

wiki-, , . , , , , , .

+3

, ( ) :

  • , profilemanager
  • RVM .
  • Rails.

ProfileManager , , .

+2

, 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/

Profilemanager does not work.

0
source

All Articles