Profile manager error has occurred on Catalina from Mojave migration

What should I do?


[351] [2020/02/25 15:56:28.054] F: JSON::ParserError (A JSON text must at least contain two octets!):

vendor/ruby/1.9.1/gems/json-1.8.0/lib/json/common.rb:155:in `initialize'

vendor/ruby/1.9.1/gems/json-1.8.0/lib/json/common.rb:155:in `new'

vendor/ruby/1.9.1/gems/json-1.8.0/lib/json/common.rb:155:in `parse'

config/initializers/json_monkey_patches.rb:13:in `parse'

app/controllers/magic_controller.rb:123:in `do_magic'


thin:11:in `<main>'

[351] [2020/02/25 15:56:28.055] I: Rendering /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/public/500.html (500 Internal Server Error)


Posted on Feb 24, 2020 11:03 PM

Reply

Similar questions

4 replies

Feb 25, 2020 12:57 AM in response to naokki

There are all things:

[351] [2020/02/25 15:56:28.054] F: JSON::ParserError (A JSON text must at least contain two octets!):

vendor/ruby/1.9.1/gems/json-1.8.0/lib/json/common.rb:155:in `initialize'

vendor/ruby/1.9.1/gems/json-1.8.0/lib/json/common.rb:155:in `new'

vendor/ruby/1.9.1/gems/json-1.8.0/lib/json/common.rb:155:in `parse'

config/initializers/json_monkey_patches.rb:13:in `parse'

app/controllers/magic_controller.rb:123:in `do_magic'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/base.rb:1333:in `perform_action'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/filters.rb:617:in `call_filters'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/filters.rb:638:in `block in run_before_filters'

app/controllers/application_controller.rb:150:in `give_session_to_models'

vendor/ruby/1.9.1/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:178:in `evaluate_method'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/filters.rb:186:in `call'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/filters.rb:635:in `run_before_filters'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/filters.rb:615:in `call_filters'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/filters.rb:610:in `perform_action_with_filters'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `block in perform_action_with_benchmark'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/flash.rb:151:in `perform_action_with_flash'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/base.rb:532:in `process'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/filters.rb:606:in `process_with_filters'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/base.rb:391:in `process'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/base.rb:386:in `call'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/routing/route_set.rb:438:in `call'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:87:in `dispatch'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:121:in `_call'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:130:in `block in build_middleware_stack'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/string_coercion.rb:25:in `call'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/string_coercion.rb:25:in `call'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/params_parser.rb:15:in `call'

vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/session/abstract_store.rb:177:in `call'

vendor/ruby/1.9.1/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:29:in `block in call'

vendor/ruby/1.9.1/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'

vendor/ruby/1.9.1/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:9:in `cache'


Feb 25, 2020 12:58 AM in response to naokki

vendor/ruby/1.9.1/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:28:in `call'


vendor/ruby/1.9.1/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'


vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/failsafe.rb:26:in `call'


<internal:prelude>:10:in `synchronize'


vendor/ruby/1.9.1/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:106:in `call'


vendor/ruby/1.9.1/gems/rails-2.3.18/lib/rails/rack/static.rb:31:in `call'


vendor/ruby/1.9.1/gems/rails-2.3.18/lib/rails/rack/log_tailer.rb:17:in `call'


vendor/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:81:in `block in pre_process'


vendor/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:79:in `catch'


vendor/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:79:in `pre_process'


vendor/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:54:in `process'


vendor/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:39:in `receive_data'


vendor/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'


vendor/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'


vendor/ruby/1.9.1/gems/thin-1.5.1/lib/thin/backends/base.rb:63:in `start'


vendor/ruby/1.9.1/gems/thin-1.5.1/lib/thin/server.rb:159:in `start'


vendor/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:86:in `start'


vendor/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'


vendor/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'


thin:11:in `<main>'


[351] [2020/02/25 15:56:28.055] I: Rendering /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/public/500.html (500 Internal Server Error)

Mar 3, 2020 6:22 PM in response to naokki

Looks like it's fixed

I don't know if this is OK



sh-3.2# pwd

/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/app/controllers

mdm101:controllers root# diff -u magic_controller.rb.org magic_controller.rb

--- magic_controller.rb.org 2019-03-14 07:59:58.000000000 +0900

+++ magic_controller.rb 2020-03-03 17:50:29.000000000 +0900

@@ -120,11 +120,14 @@

def do_magic

post_data = request.body.read

Rails.logger.error("raw post data:\n#{post_data}") if MDMLogger.debugOutput?(4)

- incoming_request = JSON.parse(post_data.force_encoding('UTF-8').remove_illegal_utf8)

+ #incoming_request = JSON.parse(post_data.force_encoding('UTF-8').remove_illegal_utf8)

+ #incoming_request = JSON.parse(post_data.force_encoding('UTF-8').remove_illegal_utf8) if post_data && post_data.length >= 2

+ incoming_request = post_data && post_data.length >= 2 ? JSON.parse(post_data.force_encoding('UTF-8').remove_illegal_utf8) : nil

result_hash = {}

query_hash = {}

+ if !incoming_request.nil?

incoming_request.each { |request_model, model_commands|

model_helper = ModelToHelper[request_model]

model_helper = KnobSetHelper if model_helper == nil && (request_model.end_with?('knob_set') || request_model.end_with?('KnobSet'))

@@ -216,6 +219,7 @@

MDMLogger.method_name = nil

} # model_commands.each

} # incoming_request.each

+ end

json = JSON.generate({ :remote => (query_hash.length == 0 ? nil : query_hash), :result => result_hash })

Rails.logger.error("+++ Final JSON = \n#{json}") if MDMLogger.debugOutput?(3)



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Profile manager error has occurred on Catalina from Mojave migration

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.