Project

General

Profile

Bug #10961

WP cannot write .htaccess files on blog_public changes, including site creation

Added by Boone Gorges 5 months ago. Updated 5 months ago.

Status:
Resolved
Priority name:
High
Assignee:
-
Category name:
Server
Target version:
Start date:
2019-01-15
Due date:
% Done:

0%

Estimated time:

Description

Sonja reported that the system hangs when creating a site. I did some digging and discovered that it only happens when setting a privacy level lower than 0. It turns out that anything lower than 0 triggers an .htaccess write from our CAC_File_Protection system, and .htaccess writes are hanging because insert_with_markers() calls fclose(), and fclose() is somehow broken.

My guess is that this is due to this weekend's maintenance, which involved a filesystem change. I'm unsure how to patch the Commons without creating privacy issues, so I'm going to contact Lihua to see if he can help.

History

#1 Updated by Boone Gorges 5 months ago

I've written to Lihua.

I've also commented out references to flock() in insert_with_markers() as a temporary fix. This increases the possibility of race conditions that might result in a corrupted .htaccess file, but I don't think this is a serious concern for now.

#2 Updated by Boone Gorges 5 months ago

  • Status changed from New to Resolved

It appears that this was due to a firewall issue on the GC's internal networks. It's been resolved.

Also available in: Atom PDF