Project

General

Profile

Actions

Bug #13763

closed

Error starting TFTP with PHP 8.1

Added by Mathew Hepple almost 2 years ago. Updated almost 2 years ago.

Status:
Not a Bug
Priority:
Normal
Assignee:
-
Category:
TFTP
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:
amd64

Description

Hi all,

I have upgraded to 23.01.b.20221216.0600 and found that the package TFTP pfSense-pkg-tftpd upgraded: 0.1.3_3 -> 0.1.3_4 does not start and throws error messages. See captured log.

This service when you uninstall does then get rid of the errors.

This needs to be investigated and remediated.

Thanks,
M.


Files

PHP_errors.log (571 Bytes) PHP_errors.log Mathew Hepple, 12/16/2022 03:49 AM
Screenshot 2022-12-19 at 18.43.55.png (162 KB) Screenshot 2022-12-19 at 18.43.55.png Mathew Hepple, 12/19/2022 03:42 AM
Screenshot 2022-12-19 at 19.43.05.png (206 KB) Screenshot 2022-12-19 at 19.43.05.png Mathew Hepple, 12/19/2022 03:43 AM
Screenshot 2022-12-19 at 19.43.21.png (212 KB) Screenshot 2022-12-19 at 19.43.21.png Mathew Hepple, 12/19/2022 03:43 AM
Screenshot 2022-12-19 at 19.43.40.png (153 KB) Screenshot 2022-12-19 at 19.43.40.png Mathew Hepple, 12/19/2022 03:43 AM
Actions #1

Updated by Jim Pingle almost 2 years ago

  • Project changed from pfSense to pfSense Packages
  • Subject changed from TFTP Issue with Starting Service to Error starting TFTP with PHP 8.1
  • Category changed from Package System to TFTP
  • Parent task set to #13446
  • Release Notes deleted (Default)

Copying the error out of the attachment so it's easier to see:

[16-Dec-2022 19:17:01 Australia/Queensland] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/status_traffic_totals.inc:189
Stack trace:
#0 /usr/local/pkg/status_traffic_totals.inc(76): vnstat_portlist()
#1 /usr/local/pkg/status_traffic_totals.inc(226): vnstat_create_nic_dbs()
#2 /etc/inc/pkg-utils.inc(715) : eval()'d code(1): vnstat_sync()
#3 /etc/inc/pkg-utils.inc(715): eval()
#4 /etc/rc.start_packages(66): sync_package('Traffic Totals')
#5 {main}
  thrown in /usr/local/pkg/status_traffic_totals.inc on line 189
Actions #2

Updated by Kris Phillips almost 2 years ago

Tested on CE abc516d86cf14a85029e and was unable to reproduce this issue there. Seems to be a 23.01 only issue.

Actions #3

Updated by aleksei prokofiev almost 2 years ago

Tested on latest
23.01-BETA (amd64)
built on Sat Dec 17 14:33:51 UTC 2022
FreeBSD 14.0-CURRENT

I did update from 22.05 and tftpd 0.1.3_3 to pfsense 23.01.b.20221217.1429 and tftpd 0.1.3_4 and all was successfull with out any errors.
The service tftp update and start succusefull.

Actions #4

Updated by Mathew Hepple almost 2 years ago

Hi All,

I have upgraded to the latest PFSense 23.01.b.20221217.1429 and found the same error. Unable to start the TFTP service from the Dashboard Services Status.

However, I went into the application Services > TFTP Server and tried to start the service from the checkbox. Everything has started up correctly and no errors.

All is working correctly now.

Thank you to the community for also investigating.

Cheers,
M.

Actions #7

Updated by Jim Pingle almost 2 years ago

  • Status changed from New to Not a Bug

From a completely fresh install that never had TFTP before, after enabling the service I can start/stop it from the dashboard, service status page, and the shortcut in the breadcrumb bar when looking at the TFTP settings.

No PHP errors or any other errors for that matter.

It's possible some other package was interacting here but it does not appear to be a problem with TFTP itself.

If anyone can reproduce this still, please post on the forum for assistance in tracking down the root cause in your environment.

Actions #8

Updated by Jim Pingle almost 2 years ago

  • Parent task deleted (#13446)
Actions

Also available in: Atom PDF