Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
API page: https://api.drupal.org/api/drupal/core%21modules%21file%21migration_temp...
Enter a descriptive title (above) relating to d7_file.yml, then describe the problem you have found:
I followed the instruction and duplicated the file.yml file and added the source_base_path but when i run the import. Not a single file is imprted
Any idea why
Comments
Comment #2
cilefen CreditAttribution: cilefen as a volunteer commentedHi @docans:
The project has a priority scale for issues. This one is normal. I've moved this to the migration system component, tagged it "Needs steps to reproduce", and postponed it on those updates. Please include things like:
Comment #3
docans CreditAttribution: docans commentedThanks for the feedback. These are the steps i took.
I went to this link https://www.drupal.org/docs/8/upgrade/upgrade-using-drush and followed the instruction.
First of all i run the code below
drush migrate-upgrade --legacy-db-url=mysql://user:password@server/db --legacy-root=http://example.com --configure-only
Which generated the all the migration scripts and this is the output of the migrate_plus.migration.upgrade_d7_file.yml
from the upgrade_d7_file it doesn't make sense to me why the "source_base_path: var/www/www.example.com/" should be under destination instead of the source.
When i run the command
drush migrate-import --limit=10 upgrade_d7_file
I got this feedback
Processed 10 items (0 created, 0 updated, 10 failed, 0 ignored) - done with 'upgrade_d7_file'
So to debug i run following command to show me what happened
drush mmsg upgrade_d7_file
and this was the feedback but all the files listed below are available on my drupal 7 site
Is there something more i need to add to my script or what am i missing in order to be able to successfully migrate files
Comment #4
cilefen CreditAttribution: cilefen as a volunteer commentedComment #5
docans CreditAttribution: docans commentedI finally got it to work, i had to update my drupal core to 8.4.2 and also update the migrate_plus, migrate_tools, migrate_upgrade modules to make this work
Secondly
--legacy-root=http://example.com
--legacy-root=/var/www/drupal/
I hope this helps someone
Comment #6
docans CreditAttribution: docans commentedComment #7
crash98 CreditAttribution: crash98 commentedI had the same problem. With 'drush mmsg upgrade_d7_file' I found that no absolute filepath was used for the migration.
I edited the migration via /devel/config/edit/migrate_plus.migration.upgrade_d7_file and added an absolute path to the source concat plugin:
Here is the full migration code:
This worked for me after editing and running the migration again.
Comment #8
docans CreditAttribution: docans commentedAwesome Solution
Comment #10
Grevil CreditAttribution: Grevil as a volunteer and at DROWL.de commented