Closed (fixed)
Project:
Migrate
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2009 at 09:42 UTC
Updated:
21 Dec 2009 at 08:30 UTC
Hi,
first many thx for this great module !
When I run :
drush migrate import content_set
all items are imported. Good ! But if I want come back and run :
drush migrate clean content_set
all created nodes are not deleted and migrate status report items unimported.
When I use online dashboard, I can import and delete them right.
I have miss something ?
Best regards.
Comments
Comment #1
mikeryanIt's "clear", not "clean". drush migrate clear content_set works fine for me.
Comment #2
mentat.fr commentedOups ... thx for reply.
Sorry bad typo I mean
drush migrate clear content_setdoesn't work on my server.
Comment #3
mentat.fr commentedUpgrade my drush module, but
drush migrate clear content_setalways fail to delete nodes.
drush migrate statusshow me items in the unimported state, but nodes are always in drupal.
Any idea ?
thx
Comment #4
mikeryanCan you try
drush migrate clear content_set -d
And see if that reports anything interesting? If we can't reproduce it, it's hard for us to fix it. If you're a developer, you might try temporarily putting some drush_print statements into key places (e.g., node_migrate_delete_node() in node.inc and migrate_content_process_clear() in migrate.module) to try to figure out where it's going wrong.
Comment #5
mentat.fr commentedThanks for your reply,
here the report :
The 46 items wasn't delete in drupal indeed drush seem to report it well.
Here the modules enable on my drupal 6.14 install:
Sorry I'm not as good developper to follow your recommandations to put drush trace.
Is this report give you some clues about what's going wrong ?
Best regards.
Comment #6
mentat.fr commentedHi mikeryan,
I just make a try of the dev version.
drush migrate clear content_setAlways fail.
Try the new drush wipe option :
drush migrate wipe content_typeFail too.
Wipe content type and clear content set works on http migrate dashboard/tools pages.
Try drush_print statement :
in node.inc put under function node_migrate_delete_node($nid)
drush_print(dt("delete node ").$nid);The return list of nodes id is correct, so maybe the problem is inside :
node_delete($nid);Comment #7
moshe weitzman commentedIf the problem is in node_delete, then thats a core bug. I cannot reproduce this bug.
Comment #8
moshe weitzman commentedActually, this only worked with --user=1 or similarly priveleged uid. I have changed the command in HEAD so it adds that for you.
Comment #9
mentat.fr commentedHi moshe,
I upgrade the dev version.
drush migrate clear content_setfail again.
But
drush migrate wipe content_typeWork perfectly ...
So I need to make an import follow by a clear and a wipe content type command before import new content.
Big thanks moshe, you unlock me even if the clear option is a better solution ...
Comment #10
moshe weitzman commentedWoops. Just applied same fix for clear command.
Comment #11
mentat.fr commentedAll commands work perfectly now !
Many thanks again moshe for your help and your skill .