[chef] Re: InvalidDataBagItemID when editing data bags in the webui

Chronological Thread 
  • From: "Silvan T. Golega" < >
  • To:
  • Subject: [chef] Re: InvalidDataBagItemID when editing data bags in the webui
  • Date: Fri, 8 Jul 2011 09:56:27 +0200

Hi there,

sorry, I forgot to mention that I am running debian squeeze. Both chef-server and chef-server-webui (and all the other chef packages) are version 0.10.0-1 from the opscode apt repository for squeeze.
Could you give me any hint where I could start digging for the problem?


On Wed, Jul 6, 2011 at 17:19, < "> > wrote:
Hi everyone.

I am currently setting up my first chef environment and must say I am already
sold. However I have a minor issue and I did not find any answer on google:

In the chef server webui I can create data bags and I can edit them using
knife, but I can not edit them using the webui. Whenever I try to save an
edited data bag I get an Error and an InvalidDataBagItemID Exception is logged
to the chef/server.log like the following:

merb : chef-server (api) : worker (port 4000) ~ Data Bag items must have an id
matching /^[-[:alnum:]_]+$/, you gave: data_bag_item["users", "test",
{"comment"=>"asdf", "id"=>"test"}] - (Chef::Exceptions::InvalidDataBagItemID)

I have copied the full stack trace here: http://nopaste.info/9644f416d6.html

In the ruby code in data_bag_item.rb I have seen that after the "you gave:"
part it should only log the id, not the whole item.  Is it a misconfiguration
on my side or is it a bug? What can I do to find out?

Thanks for your help

Silvan T. Golega
Pidoco GmbH
Warschauer Str 58a
10243 Berlin
Tel. +49 30 4881 6385


Pidoco GmbH
Sitz der Gesellschaft: Berlin
Registergericht Berlin-Charlottenburg, HRB 115010
Geschäftsführer: Philipp Huy

Archive powered by MHonArc 2.6.16.