Closed asarubbo closed 1 month ago
Hi @asarubbo but logs are not saying this got exited due to ipv6 ?
Ideally after tftpd-hpa it should install remaining packages like xinetd,lame, haproxy etc etc
I also hit this issue because I normally setup VMs without IPv6 support.
It's due to the tftpd-hpa
package default config assumes the system has IPv6 support and the tftp daemon crashes when there is no IPv6.
My workaround for this was to install tftpd-hpa
package prior to installing FreePBX and change /etc/default/tftpd-hpa
to configure an IPV4 only daemon:
TFTP_OPTIONS="--secure --ipv4 --verbose"
thanks @JoseGoncalves just pushed the changes in the install script to use ipv4 for tftpd process.
Hi @kguptasangoma. Your fix does not work, because the installation fails just after the tftpd-hpa
package installation, due to using the default config that only works with systems with IPv6 support. Here is the relevant log in /var/log/pbx/
when the script aborts:
2024-08-21 18:23:24 - ###############################
2024-08-21 18:23:24 - Installing tftpd-hpa ....
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
pxelinux
The following NEW packages will be installed:
tftpd-hpa
Preconfiguring packages ...
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/41.9 kB of archives.
After this operation, 117 kB of additional disk space will be used.
Selecting previously unselected package tftpd-hpa.
(Reading database ... 90670 files and directories currently installed.)
Preparing to unpack .../tftpd-hpa_5.2+20150808-1.4_amd64.deb ...
Unpacking tftpd-hpa (5.2+20150808-1.4) ...
Setting up tftpd-hpa (5.2+20150808-1.4) ...
tftpd user (tftp) already exists, doing nothing.
Job for tftpd-hpa.service failed because the control process exited with error code.
See "systemctl status tftpd-hpa.service" and "journalctl -xeu tftpd-hpa.service" for details.
invoke-rc.d: initscript tftpd-hpa, action "start" failed.
× tftpd-hpa.service - LSB: HPA's tftp server
Loaded: loaded (/etc/init.d/tftpd-hpa; generated)
Active: failed (Result: exit-code) since Wed 2024-08-21 18:23:26 WEST; 13ms ago
Docs: man:systemd-sysv-generator(8)
Process: 33061 ExecStart=/etc/init.d/tftpd-hpa start (code=exited, status=71)
CPU: 20ms
ago 21 18:23:26 st-3 systemd[1]: Starting tftpd-hpa.service - LSB: HPA's tftp server...
ago 21 18:23:26 st-3 in.tftpd[33067]: cannot open IPv6 socket, disable IPv6: Address family not supported by protocol
ago 21 18:23:26 st-3 in.tftpd[33067]: Cannot set nonblock flag on socket: Bad file descriptor
ago 21 18:23:26 st-3 systemd[1]: tftpd-hpa.service: Control process exited, code=exited, status=71/OSERR
ago 21 18:23:26 st-3 tftpd-hpa[33061]: Starting HPA's tftpd: in.tftpd
ago 21 18:23:26 st-3 systemd[1]: tftpd-hpa.service: Failed with result 'exit-code'.
ago 21 18:23:26 st-3 systemd[1]: Failed to start tftpd-hpa.service - LSB: HPA's tftp server.
dpkg: error processing package tftpd-hpa (--configure):
installed tftpd-hpa package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.11.2-2) ...
Errors were encountered while processing:
tftpd-hpa
E: Sub-process /usr/bin/dpkg returned an error code (1)
2024-08-21 18:23:26 - Exiting script
ohh okay, installation time itself process will not start due to ipv6.
FreePBX Version
FreePBX 17
Issue Description
With a system that have no ipv6, the install does not work.
To reproduce use the following in
/etc/default/grub
:And then regenerate
grub.cfg
with:then
reboot
then proceed with the installation withbash /tmp/sng_freepbx_debian_install.sh
Operating Environment
Debian 12
Relevant log output