
Problem/Motivation
While trying to export the settings from a Drupal 8 site I faced WSOD. I checked the error logs and there is nothing being written to the error log as well.
Steps to reproduce
- Configure a block's page visibility settings.
- Navigate to the path
admin/config/development/configuration/full/export
- Click on the "Export" button
Expected behavior
I'd expect that zip file for the configurations to be downloaded.
Why and how
The watchdog entry shows The file /tmp/config.tar.gz was not deleted because it does not exist.
Since I am able to upload other images on differents nodes, I am assuming there is no issue with the /tmp folder.
Screenshot of the Error :
Remaining tasks
- Recreate the issue and confirm other users are facing this issue.
- Identify source of bug.
- Identify solution to bug.
User interface changes
- Show a user-friendly message if there is an error.
API changes
None
Comment | File | Size | Author |
---|---|---|---|
drupal8_beta7_settings_export_wsod.png | 28.7 KB | gokulnk |
Comments
Comment #1
gokulnk CreditAttribution: gokulnk commentedComment #2
andypostManually tested and can't reproduce with http://simplytest.me/project/drupal/8.0.0-beta7
Fill free to set to Active again it you find exact way to reproduce, I've added some menu block to sidebar first and reordered/saved changes,
admin/config/development/configuration/full/export
work finePS: at least this is not major, also please provide more details about you php/mysql env
Comment #3
rcr1000 CreditAttribution: rcr1000 as a volunteer commentedI just came across this as well. I'm receiving the same result when trying to export full configuration, and my dblog shows the same error.
I'm on Ubuntu 14.04 running php 5.5.9.
I verified that my tmp path was correct with the proper, writeable permissions. It also seems that though the "was not deleted because it does not exist" message is related (I get it every time I try to export), it is not the actual inability to delete that file that is causing the WSOD. I manually created a dummy config.tar.gz file in the tmp folder, tried to export again, and received the WSOD, but no error message. I checked the tmp directory, and sure enough, the file had been deleted.
Not surprisingly, I've confirmed that the same problem occurs on import (though without any error message). The site returns a WSOD, and the import is unsuccessful.
All I have to go on is that my browser is receiving a 500 Internal Server Error when either of these things happen, which is pretty much expected.
Comment #4
KimNyholm CreditAttribution: KimNyholm as a volunteer commentedThis is a known issue with ubuntu 14.04 32 bit. See #2310183: Config export fails on Ubuntu 14.04 for a similar issue. This is being solved in #1414508: update system.tar.inc to latest Archive_Tar (Pear). If you are not running 32 bit, please reopen.
Comment #5
wesleymusgrove CreditAttribution: wesleymusgrove commentedI'm experiencing a similar issue when importing a full archive. The tar is uploaded and all the individual settings files are unpacked in the sync directory, but I get a connection reset by the peer when trying to view the synchronization page to pick and choose what I want to actually import. It will let me import single settings one at a time, but I keep running into dependency errors when certain fields haven't been imported yet. I'm using dev desktop.
Comment #6
jschouwstra CreditAttribution: jschouwstra as a volunteer and commentedI get this same error too with Drupal 8.3.4 multisite installation and only with a full archive export.
Comment #7
newme154 CreditAttribution: newme154 commentedI"m getting this error as well. Only when I try to do a full export.
Comment #8
Frank Pfabigan+1 here. i thought this was only an early-drupal (v. 8.0) error, but it's still there...
any clues?
Comment #9
bwoods CreditAttribution: bwoods at Snake Hill Web Agency commentedI ran into the same issue. I bumped up max_execution_time in php.ini to 120 to get this to work. I suspect the issue is that I have so many config files that it takes longer to create.
Comment #10
davidwhthomas CreditAttribution: davidwhthomas commentedSame error on export download here but in this case getting the error
The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Exception</em>: Error while deleting temporary file '/tmp/config.tar.gz.tmp' in <em class="placeholder">Drupal\Core\Archiver\ArchiveTar->_error()</em> (line <em class="placeholder">804</em> of <em class="placeholder">core/lib/Drupal/Core/Archiver/ArchiveTar.php</em>)
Temp directory is ok, normally writable and other regular file operations upload / download etc.. are fine.
Comment #11
russellt CreditAttribution: russellt commentedI temporarily bumped up max_execution_time to 300 in php.ini, then restarted apache2 to solve this. (Drupal 8.7.0-beta1)
(Hit this issue again 7 months later, and realised that there are 2 php.ini files, for cli and apache2 access. Make sure you bump up the correct version - in my case the apache2 file as I was using the drupal interface to make the config download)
Comment #12
kehogo CreditAttribution: kehogo commentedrussellt's solution worked for me - thank you
https://www.drupal.org/project/drupal/issues/2450867#comment-13137659
Comment #13
karthikeyan gandhimathinathan CreditAttribution: karthikeyan gandhimathinathan commentedI ran into the same issue in Drupal 9.2.7. I have increased max_execution_time in php.ini to 320 to get this to work.