Project

General

Profile

Actions

Bug #10961

closed

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

Added by Boone Gorges almost 6 years ago. Updated almost 6 years ago.

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

0%

Estimated time:
Deployment actions:

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.

Actions #1

Updated by Boone Gorges almost 6 years 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.

Actions #2

Updated by Boone Gorges almost 6 years 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.

Actions

Also available in: Atom PDF