From: Mark P. <Mar...@uf...> - 2008-09-17 16:18:05
|
This story has no uuid. I did a check throughout the entire table and that is the only story lacking a UUID. I take it that is not normal. Mark T. Pearson x605 From: nw...@gm... [mailto:nw...@gm...] On Behalf Of Noam Weinstein Sent: Tuesday, September 16, 2008 7:05 PM To: Mark Pearson Cc: kra...@li...; Dmitriy Kotomkin; Dmitry Chorine Subject: Re: [Krang-general] Error in Krang_export & now import Strange! Again, I'm sort of guessing here -- hopefully someone with more knowledge on the topic will have a chance to chime in -- but perhaps you could try the following: 1) Create a new UUID. (Here's one way: a) Create a new story on this machine. It doesn't need to have any content. b) Run krang_export --story_id <ID> and examine the KDS file, or execute a SQL statement like "select uuid from story where story_id = <ID>" c) delete the new story) 2) Edit the XML file and insert the UUID where it's missing. 3) Add it back to the KDS.GZ file and try the import again. Even if this works, it means that any stories previously linking to 12935 will most likely lose their links when the KDS is imported... Noam On Tue, Sep 16, 2008 at 3:04 PM, Mark Pearson <Mar...@uf...> wrote: Hi Noam, Thanks for the reply. Here is the contents of that file: Mark T. Pearson x605 From: nw...@gm... [mailto:nw...@gm...] On Behalf Of Noam Weinstein Sent: Tuesday, September 16, 2008 3:23 PM To: Mark Pearson Cc: kra...@li...; Dmitriy Kotomkin; Dmitry Chorine Subject: Re: [Krang-general] Error in Krang_export & now import Hi Mark - I'll have to defer to others more experience on the topic, but a couple thoughts: Deep recursion may occur in a situation where Krang fails to properly handle recursive links, that is Story A has a link to Story B, Story B has a link to Story C, and Story C has a link to Story A; since the KDS file is built recursively, when it adds Story A, it also adds anything linked to by Story A, which means it adds B, which means it adds C, which means if it's not careful it will try to add A again. The code aims to keep track of all the objects it has already examined, which means when adding C it should be ignoring A. However, if for some reason that is failing (corrupt data? a bug in Krang v2.20?), the error could be thrown. As to figuring out what's wrong with the specific story, it might be worth extracting that particular XML file from the KDS.GZ archive (ie "tar xvfz /tmp/qa_cms.kds.gz story_12935.xml") and sending the contents to the list; perhaps there's a corrupt value in the UUID field which is responsible for both errors... If so, it may be possible to manually correct the value, re-tar, and re-import... On Tue, Sep 16, 2008 at 10:41 AM, Mark Pearson <Mar...@uf...> wrote: First I hit the error before, however the export and retarget still completed successfully. Unfortunately, now the krang_import has failed miserably with the error below. Any help would be appreciated: -bash-3.2$ ./bin/krang_import /tmp/qa_cms.kds.gz --verbose File '/usr/local/krang/tmp/o83SMOZGkr/story_12935.xml' failed validation: Illegal value '' in element <story_uuid>, does not match required pattern. Trace begun at /usr/local/krang/lib/Krang/DataSet.pm line 265 Krang::DataSet::_validate_file('Krang::DataSet=HASH(0x7a1f3d0)', '/usr/local/krang/tmp/o83SMOZGkr/story_12935.xml') called at /usr/local/krang/lib/Krang/DataSet.pm line 565 Krang::DataSet::_check_index('Krang::DataSet=HASH(0x7a1f3d0)') called at /usr/local/krang/lib/Krang/DataSet.pm line 210 Krang::DataSet::new('Krang::DataSet', 'path', '/usr/local/krang/tmp/ub4bCl62sy.kds.gz', 'import_callback', 'CODE(0x7a1f050)') called at ./bin/krang_import line 192 I take it that there is something wrong with this story in particular, but how can I figure out what it is? Mark T. Pearson x605 From: Mark Pearson Sent: Tuesday, September 16, 2008 12:11 PM To: kra...@li... Subject: Error in Krang_export Afternoon everyone, We are running an export from our Production environment to our QA/Staging environment to sync up the content. However, this is the first time I have ever encountered this message so I figured I would ask the experts. Anyone know what this is? We are running Krang v2.20 -bash-2.05b$ ./bin/krang_export --output /tmp/prod_cms.kds.gz --compress --everything Deep recursion on subroutine "Krang::Element::serialize_xml" at /usr/local/krang/lib/Krang/Story.pm line 2138. Thanks, MARK T. PEARSON Manager, Web administration, UFT Welfare fund 212.539.0605 (w) | mar...@uf... A UNION OF PROFESSIONALS ************************************************************************ ******* The views, opinions, and judgments expressed in this message are solely those of the author. The message contents have not been reviewed or approved by the UFT Welfare Fund. ************************************************************************ ******* ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Krang-general mailing list Kra...@li... https://lists.sourceforge.net/lists/listinfo/krang-general ************************************************************************ ******* The views, opinions, and judgments expressed in this message are solely those of the author. The message contents have not been reviewed or approved by the UFT Welfare Fund. ************************************************************************ ******* ******************************************************************************* The views, opinions, and judgments expressed in this message are solely those of the author. The message contents have not been reviewed or approved by the UFT Welfare Fund. ******************************************************************************* |