[chef] Re: Upgrade to Chef 11: Unsupported `json_class` type 'Chef::WebUIUser'


Chronological Thread 
  • From: Ranjib Dey < >
  • To:
  • Subject: [chef] Re: Upgrade to Chef 11: Unsupported `json_class` type 'Chef::WebUIUser'
  • Date: Tue, 29 Oct 2013 10:37:00 -0700

you have to update the chef-client , theres a json related bug which is causing this (something related to gem dependencies ). we have reported bugs against this in tickets.opscode.com (search that site and u'll get more info on the fixes).


On Tue, Oct 29, 2013 at 10:31 AM, Steffen Gebert < " target="_blank"> > wrote:
Hi,

I've been again trying to upgrade our Chef server to 11.

`knife upload` fails with

> ERROR: JSON::ParserError: Unsupported `json_class` type 'Chef::WebUIUser'

When I remove all the .json files from user/, the upload succeeds.

`knife user list` also shows them to me, but I can't login to the web
interface using the old password.

After resetting my password through the API, I'm able to login.
We don't have that many users, so it might be possible that everybody
does this, however it feels not very convenient and the way to go.

Anybody with an idea, what the error might mean?

Thanks
Steffen

--

My users/*.json look like this:

{
  "name": "sgebert",
  "admin": true,
  "salt": "Fri Oct 28 02:04:18 +0400 2011ynFd1JvDHPpqcws75wpUrmaqvGjVQM",
  "password": "76ac14fc1724d99d3XXXXXXXXX94e38df2e51c5",
  "_rev": "2-698379d8ab300744dad1811111111b07",
  "_id": "2ab2aef5-3220-472f-bd3b-85555550ec0f"
}





Archive powered by MHonArc 2.6.16.

§