Priority: Urgent
Current State: Confirmed
Released In: n/a
Target Release:
Today my command line mongo updates started dying, with the error output below. Everything worked fine yesterday, and I can't for the life of me find what changed. Some webs worked fine, but mongo updates consistently died on the same topics in the same webs.
[Thu Feb 2 14:37:46 2012] rest: Use of uninitialized value in hash element at /var/www/foswiki/core/lib/Foswiki/Plugins/MongoDBPlugin.pm line 325.
empty key name, did you use a $ with double quotes? at /usr/local/lib64/perl5/MongoDB/Collection.pm line 376.
at /usr/local/lib64/perl5/MongoDB/Collection.pm line 376
MongoDB::Collection::update('MongoDB::Collection=HASH(0x38bc708)', 'HASH(0x3d11fd8)', 'HASH(0x3d128d8)', 'HASH(0x3d15488)') called at /var/www/foswiki/core/lib/Foswiki/Plugins/MongoDBPlugin/DB.pm line 248
Foswiki::Plugins::MongoDBPlugin::DB::update('Foswiki::Plugins::MongoDBPlugin::DB=HASH(0x27409c0)', 'BreakHousing', 'current', 'BreakHousing.BreakHousingForm000001', 'HASH(0x3a22ae8)', 0) called at /var/www/foswiki/core/lib/Foswiki/Plugins/MongoDBPlugin.pm line 452
Foswiki::Plugins::MongoDBPlugin::_updateTopic('BreakHousing', 'BreakHousingForm000001', 'Foswiki::Meta=HASH(0x3a17410)', 'HASH(0x3a228c0)') called at /var/www/foswiki/core/lib/Foswiki/Plugins/MongoDBPlugin.pm line 230
Foswiki::Plugins::MongoDBPlugin::updateWebCache('BreakHousing', 1) called at /var/www/foswiki/core/lib/Foswiki/Plugins/MongoDBPlugin.pm line 188
Foswiki::Plugins::MongoDBPlugin::_update('Foswiki=HASH(0x1bc7330)', 'MongoDBPlugin', 'update', 'Foswiki::Response=HASH(0x1bc7480)') called at /var/www/foswiki/core/lib/Foswiki/Func.pm line 704
Foswiki::Func::__ANON__('Foswiki=HASH(0x1bc7330)', 'MongoDBPlugin', 'update', 'Foswiki::Response=HASH(0x1bc7480)') called at /var/www/foswiki/core/lib/Foswiki/UI/Rest.pm line 256
Foswiki::UI::Rest::rest('Foswiki=HASH(0x1bc7330)') called at /var/www/foswiki/core/lib/Foswiki/UI.pm line 316
Foswiki::UI::__ANON__() called at /usr/share/perl5/Error.pm line 415
eval {...} called at /usr/share/perl5/Error.pm line 407
Error::subs::try('CODE(0x1b736f8)', 'HASH(0x1bd25b8)') called at /var/www/foswiki/core/lib/Foswiki/UI.pm line 435
Foswiki::UI::_execute('Foswiki::Request=HASH(0x1bb39f0)', 'CODE(0x1bb3648)', 'rest', 1, 'command_line', 1) called at /var/www/foswiki/core/lib/Foswiki/UI.pm line 274
Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x1bb39f0)') called at /var/www/foswiki/core/lib/Foswiki/Engine/CLI.pm line 53
Foswiki::Engine::CLI::run('Foswiki::Engine::CLI=HASH(0x156db50)') called at ./rest line 29.
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.
empty key name, did you use a $ with double quotes?
Here's an example topic that it barfed on:
%<nop>META:TOPICINFO{author="xxxxxx" date="1291643134" format="1.1" version="1.3"}%
%<nop>META:TOPICPARENT{name="WebHome"}%
<!--
* #Set ALLOWTOPICVIEW = xxxxxx, xxxxxx, xxxxxx, xxxxxx
* #Set ALLOWTOPICCHANGE = xxxxxx, xxxxxx, xxxxxx, xxxxxx
* Set APPLICANT = xxxxxx
* Set INITIALSTATE = AWAITINGSPONSORSHIP
-->
%<nop>META:FORM{name="BreakHousing.BreakHousingForm"}%
%<nop>META:FIELD{name="UserName" attributes="" title="User Name" value="xxxxxx"}%
%<nop>META:FIELD{name="FirstName" attributes="" title="First Name" value="xxxxxx"}%
%<nop>META:FIELD{name="LastName" attributes="" title="Last Name" value="xxxxxx"}%
%<nop>META:FIELD{name="DNumber" attributes="" title="D Number" value="xxxxxx"}%
%<nop>META:FIELD{name="Hall" attributes="" title="Hall" value="xxxxxx"}%
%<nop>META:FIELD{name="RoomNumber" attributes="" title="Room Number" value="xxxxxx"}%
%<nop>META:FIELD{name="Phone" attributes="" title="Phone" value="xxxxxx"}%
%<nop>META:FIELD{name="SlayterBox" attributes="" title="Slayter Box" value="xxxxxx"}%
%<nop>META:FIELD{name="BreakHousingPeriod" attributes="" title="Break Housing Period" value="xxxxxx"}%
%<nop>META:FIELD{name="BreakHousingHall" attributes="" title="Break Housing Hall" value="xxxxxx"}%
%<nop>META:FIELD{name="BreakHousingRoom" attributes="" title="Break Housing Room" value="xxxxxx"}%
%<nop>META:FIELD{name="CurrentOccupantName" attributes="" title="Current Occupant Name" value="xxxxxx"}%
%<nop>META:FIELD{name="StartDateofOccupancy" attributes="" title="Start Date of Occupancy" value="12/22/2010"}%
%<nop>META:FIELD{name="EndDateofOccupancy" attributes="" title="End Date of Occupancy" value="01/15/2012"}%
%<nop>META:FIELD{name="ReasonforBreakHousing" attributes="" title="Reason for Break Housing" value="On-Campus Job"}%
%<nop>META:FIELD{name="SponsorName" attributes="" title="Sponsor Name" value="xxxxxx"}%
%<nop>META:FIELD{name="SponsorDepartment" attributes="" title="Sponsor Department" value="xxxxxx"}%
%<nop>META:FIELD{name="SponsorPhone" attributes="" title="Sponsor Phone" value="xxxxxx"}%
%<nop>META:FIELD{name="SponsorEmail" attributes="" title="Sponsor E-mail" value="xxxxxx"}%
%<nop>META:REVCOMMENT{ncomments="0"}%
%<nop>META:WORKFLOWHISTORY{value="<br>AWAITINGSPONSORSHIP -- 03 Dec 2010 - 10:17<br>SPONSORED -- 06 Dec 2010 - 08:45"}%
--
AaronFuleki - 03 Feb 2012