Project

General

Profile

Actions

Bug #11314

closed

PHP error in gwlb.inc (potential race)

Added by Jim Pingle over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Gateways
Target version:
Start date:
01/26/2021
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.5.0
Affected Architecture:

Description

I can't reproduce this reliably, but occasionally there is a PHP error at boot time:

[26-Jan-2021 08:14:22 America/New_York] PHP Warning:  file_get_contents(/tmp/ovpnc1_router): failed to open stream: No such file or directory in /etc/inc/gwlb.inc on line 1541

The line in question is protected by a test that checks if the file exists before opening, so it must be a race condition where the file is removed temporarily by another process at just the wrong time.

By the time the boot completes everything is OK, so we should probably suppress that error.

Actions

Also available in: Atom PDF