Project

General

Profile

Actions

Regression #13112

closed

PHP warning from ``unlink()`` function calls when files do not exist

Added by Marcos M almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Gateways
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
22.05
Release Notes:
Force Exclusion
Affected Version:
2.6.0
Affected Architecture:

Description

On 22.05 after reboot, the following php crash report appeared:

[01-May-2022 13:24:31 America/Mexico_City] PHP Warning:  unlink(/tmp/gif0_defaultgwv6): No such file or directory in /etc/inc/gwlb.inc on line 1239
[01-May-2022 13:24:31 America/Mexico_City] PHP Warning:  unlink(/tmp/igb0_defaultgwv6): No such file or directory in /etc/inc/gwlb.inc on line 1239

Further info taken after the reboot:

ls -laT /tmp/*default*
-rw-r--r--  1 root  wheel  12 May  1 13:24:24 2022 /tmp/igb0_defaultgw
-rw-r--r--  1 root  wheel  29 May  1 13:24:31 2022 /tmp/igb0_defaultgwv6

System logs:
May 1 13:24:23     check_reload_status     427     rc.newwanip starting igb0 
May 1 13:24:23     php     449     rc.bootup: calling interface_dhcpv6_configure.
May 1 13:24:23     php     449     rc.bootup: Accept router advertisements on interface igb0
May 1 13:24:23     php     449     rc.bootup: Starting DHCP6 client for interfaces igb0 in DHCP6 without RA mode
May 1 13:24:23     php     449     rc.bootup: Starting rtsold process on wan(igb0)
May 1 13:24:24     php-fpm     388     /rc.newwanip: rc.newwanip: Info: starting on igb0.
May 1 13:24:24     php-fpm     388     /rc.newwanip: rc.newwanip: on (IP address: 192.0.2.7) (interface: ISP1_1[wan]) (real interface: igb0).
May 1 13:24:24     kernel         gif0: link state changed to UP
May 1 13:24:24     php-fpm     388     /rc.newwanip: Gateway, switch to: ISP1_1_DHCP
May 1 13:24:24     php-fpm     388     /rc.newwanip: Default gateway setting ISP1_1 DHCP gateway as default.
May 1 13:24:24     php-fpm     388     /rc.newwanip: Gateway, switch to:
May 1 13:24:25     php-fpm     389     /rc.newwanipv6: rc.newwanipv6: Info: starting on igb0.
May 1 13:24:25     php-fpm     389     /rc.newwanipv6: rc.newwanipv6: on (IP address: 2001:db8:4300:e:10f8:8fce:6ef8:d9c7) (interface: wan) (real interface: igb0).
May 1 13:24:25     php-fpm     389     /rc.newwanipv6: Removing static route for monitor 2001:4860:4860::8888 and adding a new route through dynamic
May 1 13:24:25     php-fpm     389     /rc.newwanipv6: route_add_or_change: Invalid gateway dynamic and/or network interface
May 1 13:24:25     php     449     rc.bootup: dpinger: No dpinger session running for gateway ISP1_1_DHCP 
[...]
May 1 13:24:30     php-fpm     35433     /rc.newwanipv6: rc.newwanipv6: Info: starting on igb0. 
May 1 13:24:30     php-fpm     35433     /rc.newwanipv6: rc.newwanipv6: on (IP address: 2001:db8:4300:e:10f8:8fce:6ef8:d9c7) (interface: wan) (real interface: igb0). 
May 1 13:24:30     php-fpm     35433     /rc.newwanipv6: Removing static route for monitor 2001:4860:4860::8888 and adding a new route through fe80::2a2:89ff:fed1:9868%igb0 
May 1 13:24:31     php-fpm     388     /rc.dyndns.update: Gateway, switch to: ISP1_1_DHCP6 
May 1 13:24:31     php-fpm     389     /rc.filter_configure_sync: Gateway, switch to: ISP1_1_DHCP6 
May 1 13:24:31     php-fpm     389     /rc.filter_configure_sync: Default gateway setting Interface ISP1_1_DHCP6 Gateway as default. 
May 1 13:24:31     php-fpm     388     /rc.dyndns.update: Default gateway setting Interface ISP1_1_DHCP6 Gateway as default. 
May 1 13:24:31     php-fpm     388     /rc.dyndns.update: phpDynDNS (gw.example.net): No change in my IP address and/or 25 days has not passed. Not updating dynamic DNS entry. 

Actions #1

Updated by Marcos M almost 2 years ago

Relevant commit: https://gitlab.netgate.com/pfSense/pfSense/-/commit/583062bfd019ce6b41062456adb594d5a37f6ec3

I had been modifying the gif interface referenced in the error which is part of a gateway group set as the default gateway the day before. Today after an upgrade to the latest snap, the error appeared. I'm not sure how the files disappeared, but I couldn't reproduce it. Regardless, the error should be suppressed.

Fix https://gitlab.netgate.com/pfSense/pfSense/-/merge_requests/755

Actions #2

Updated by Marcos M almost 2 years ago

  • Status changed from New to Pull Request Review
Actions #3

Updated by Jim Pingle almost 2 years ago

  • Target version set to 2.7.0
  • Plus Target Version set to 22.05
Actions #4

Updated by Marcos M almost 2 years ago

  • Status changed from Pull Request Review to Feedback
  • % Done changed from 0 to 100
Actions #5

Updated by Marcos M almost 2 years ago

  • Status changed from Feedback to Resolved
Actions #6

Updated by Jim Pingle almost 2 years ago

  • Tracker changed from Bug to Regression
  • Subject changed from PHP warning on unlink function to PHP warning from ``unlink()`` function calls when files do not exist
  • Release Notes changed from Default to Force Exclusion
Actions

Also available in: Atom PDF