Project

General

Profile

Actions

Bug #11314

closed

PHP error in gwlb.inc (potential race)

Added by Jim Pingle about 3 years ago. Updated about 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 #1

Updated by Jim Pingle about 3 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #2

Updated by Renato Botelho about 3 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF