Project

General

Profile

Bug #11314

PHP error in gwlb.inc (potential race)

Added by Jim Pingle about 1 month ago. Updated 29 days ago.

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

100%

Estimated time:
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.

Associated revisions

Revision b505e3ae (diff)
Added by Jim Pingle about 1 month ago

Suppress errors when opening router file. Fixes #11314

History

#1 Updated by Jim Pingle about 1 month ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#2 Updated by Renato Botelho 29 days ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF