WP CLI not importing media files

wp import something.xml

The possible problem with this solution is when the original domain is not available from the web server you are on. Try to ping the domain name from the AWS LightSail.

You know for the wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xm‌l, there you have images like wpthemetestdata.files.wordpress.com/2010/08/manhattansummer.‌​jpg, but when the domain wpthemetestdata.files.wordpress.com is not available anymore the whole thing with resources will not work.


Also do you get some feedback of success / failure like this

# Import content from a WXR file
$ wp import example.wordpress.2016-06-21.xml --authors=create
Starting the import process...
Processing post #1 ("Hello world!") (post_type: post)
-- 1 of 1
-- Tue, 21 Jun 2016 05:31:12 +0000
-- Imported post as post_id #1
Success: Finished importing from 'example.wordpress.2016-06-21.xml' file.

Finally if you try to wget some image from your origianal website what you will get?

Something like this but on your domain.

 wget wpthemetestdata.files.wordpress.com/2010/08/manhattansummer.‌​jpg