Page MenuHomePhabricator

Error importing .bz2 dump file: Failed to open stream: Invalid argument in maintenance\importDump.php on line 130
Closed, InvalidPublic

Description

Author: manishsmail

Description:
When I tried to import a .bz2 dump, I got this error:

maintenance>php importDump.php Downloads\mediawikiwiki-20110115-pages-articles.xml.bz2
Warning: fopen(compress.bzip2://Downloads\mediawikiwiki-20110115-p
ages-articles.xml.bz2): failed to open stream: Invalid argument in maintenance\importDump.php on line 130
Warning: fread(): supplied argument is not a valid stream resource in includes\Import.php on line 1063
Warning: feof(): supplied argument is not a valid stream resource in includes\Import.php on line 1059
Done!
You might want to run rebuildrecentchanges.php to regenerate
the recentchanges page.

None of the pages were imported. I extracted the .php file manually and the import worked. It seems that the .bz2 decompressor isn't working, but I'm not sure.


Version: 1.16.x
Severity: minor

Details

Reference
bz27065

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:20 PM
bzimport set Reference to bz27065.
bzimport added a subscriber: Unknown Object (MLST).
TTO claimed this task.
TTO subscribed.

Importing php maintenance/importDump.php --dry-run mediawikiwiki-20151002-pages-articles.xml.bz2 was successful for me. Without further steps to reproduce, OS/PHP version information, etc. I am going to have to close this as "Invalid".