Bug #13763
closedError starting TFTP with PHP 8.1
0%
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
Updated by Jim Pingle about 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
Updated by Kris Phillips about 2 years ago
Tested on CE abc516d86cf14a85029e and was unable to reproduce this issue there. Seems to be a 23.01 only issue.
Updated by aleksei prokofiev about 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.
Updated by Mathew Hepple about 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.
Updated by Mathew Hepple about 2 years ago
See attached screenshot
Updated by Mathew Hepple about 2 years ago
Updated by Jim Pingle about 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.