You are awsome, i was stuck with this problém until i found this Topic.
after installing Dahdi i wasen’t able to start it i was getting this error.
Failed to start dahdi.service: Unit dahdi.service failed to load: No such file or directory.
I checked the /etc/init.d/ folder if the service file exist as Fmk_ca said and it dind’t.
So i changed the version of Dahdi to a previous one dahdi-linux-complete-2.10.2-rc1+2.10.2-rc1.tar.gz as Sruffell said that the last one “make config” is broken then it worked.
root@$HOSTNAME:/usr/src/dahdi-linux-complete-2.8.0+2.8.0# make all
make -C linux all
make[1]: Entering directory ‘/usr/src/dahdi-linux-complete-2.8.0+2.8.0/linux’
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory ‘/usr/src/dahdi-linux-complete-2.8.0+2.8.0/linux/drivers/dahdi/firmware’
make[2]: Leaving directory ‘/usr/src/dahdi-linux-complete-2.8.0+2.8.0/linux/drivers/dahdi/firmware’
You do not appear to have the sources for the 3.16.0-4-amd64 kernel installed.
I have seemingly the same problem david already solved - or knows how to solve.
How do I find and compile a compatible DAHDI version for:
root@$HOSTNAME:/usr/src/dahdi-linux-complete-2.8.0+2.8.0# uname -a
Linux $HOSTNAME 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux
???
I would not like to use an older kernel, just for DAHDI - because updates are always important.
I already tried different DAHDI-Versions, all result in this error…
?
How do I find the appropriate package name to install for this specific kernel? Is this a package normally installed by default - like “build-essentials” - which is from the debian ISO images?
Using google brings up this Debian -- Error - but that doesn’t look like devel (developer?) packages
so - “apt-get install linux-image-3.16.0-4-amd64” ?
so - kernel-devel packages for the currently running kernel (therefore booted) version - found with uname -a seems not to exist.
In the debian forums theres a similar post from a user trying to install software which requires devel-packages - Install kernel-devel - Debian User Forums
there it’s advised to install “module-assistant” and run “m-a prepare”. That’s a kernel developer toolkit as far as I see.
That’s seems to be in no way associated with the sources make wants to have when trying to compile dahdi.
After executing m-a prepare
this seems to be a partially successfull build. I’ll try to install and look if it works in our testing.
Thanks for the useful help.
Make sure “secure boot” is disabled on the boot options, i tested too many things in this post, but only when i disable secure boot it worked out, hope it helps you.
hi Iam very new to asterisk,
by using digium manual procedure install asterisk, dahdi, and libpri. but when iam trying to start dahdi service below is the observations
service dahdi start
Starting dahdi (via systemctl): Job for dahdi.service failed because the control process exited with error code. See “systemctl status dahdi.service” and “journalctl -xe” for details.
[FAILED]
Feb 04 13:13:52 localhost.localdomain dahdi[8789]: auto-assign /sys/bus/dahdi_devices/devices/pci:0000:5f:00.0
Feb 04 13:13:52 localhost.localdomain dahdi[8789]: /sbin/dahdi_span_assignments: Missing ‘/etc/dahdi/assigned-spans.conf’
Feb 04 13:13:52 localhost.localdomain dahdi[8789]: Running dahdi_cfg: Notice: Configuration file is /etc/dahdi/system.conf
Feb 04 13:13:52 localhost.localdomain dahdi[8789]: line 0: Unable to open configuration file ‘/etc/dahdi/system.conf’
Feb 04 13:13:52 localhost.localdomain dahdi[8789]: 1 error(s) detected
Feb 04 13:13:52 localhost.localdomain dahdi[8789]: [FAILED]
Feb 04 13:13:52 localhost.localdomain systemd[1]: dahdi.service: control process exited, code=exited status=1
Feb 04 13:13:52 localhost.localdomain systemd[1]: Failed to start LSB: DAHDI kernel modules.
Feb 04 13:13:52 localhost.localdomain systemd[1]: Unit dahdi.service entered failed state.
Feb 04 13:13:52 localhost.localdomain systemd[1]: dahdi.service failed.
[root@localhost dahdi-linux-complete-3.1.0+3.1.0]#
journalctl -xe
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: wcte13xp: [ OK ]
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: /usr/share/dahdi/waitfor_xpds: line 106: astribank_is_starting: command not found
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: D: auto ‘/sys/bus/dahdi_devices/devices/pci:0000:af:00.0’
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: auto-assign /sys/bus/dahdi_devices/devices/pci:0000:af:00.0
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: D: auto ‘/sys/bus/dahdi_devices/devices/pci:0000:d8:00.0’
Feb 04 13:43:45 localhost.localdomain kernel: dahdi_devices pci:0000:af:00.0: local span 1 is already assigned span 1
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: auto-assign /sys/bus/dahdi_devices/devices/pci:0000:d8:00.0
Feb 04 13:43:45 localhost.localdomain kernel: dahdi_devices pci:0000:d8:00.0: local span 1 is already assigned span 2
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: D: auto ‘/sys/bus/dahdi_devices/devices/pci:0000:3b:00.0’
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: auto-assign /sys/bus/dahdi_devices/devices/pci:0000:3b:00.0
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: D: auto ‘/sys/bus/dahdi_devices/devices/pci:0000:5e:00.0’
Feb 04 13:43:45 localhost.localdomain kernel: dahdi_devices pci:0000:3b:00.0: local span 1 is already assigned span 3
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: auto-assign /sys/bus/dahdi_devices/devices/pci:0000:5e:00.0
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: D: auto ‘/sys/bus/dahdi_devices/devices/pci:0000:5f:00.0’
Feb 04 13:43:45 localhost.localdomain kernel: dahdi_devices pci:0000:5e:00.0: local span 1 is already assigned span 4
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: auto-assign /sys/bus/dahdi_devices/devices/pci:0000:5f:00.0
Feb 04 13:43:45 localhost.localdomain kernel: dahdi_devices pci:0000:5f:00.0: local span 1 is already assigned span 5
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: /sbin/dahdi_span_assignments: Missing ‘/etc/dahdi/assigned-spans.conf’
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: Running dahdi_cfg: Notice: Configuration file is /etc/dahdi/system.conf
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: line 0: Unable to open configuration file ‘/etc/dahdi/system.conf’
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: 1 error(s) detected
Feb 04 13:43:45 localhost.localdomain dahdi[10021]: [FAILED]
Feb 04 13:43:45 localhost.localdomain systemd[1]: dahdi.service: control process exited, code=exited status=1
Feb 04 13:43:45 localhost.localdomain systemd[1]: Failed to start LSB: DAHDI kernel modules.
– Subject: Unit dahdi.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit dahdi.service has failed.
– The result is failed.
Feb 04 13:43:45 localhost.localdomain systemd[1]: Unit dahdi.service entered failed state.
Feb 04 13:43:45 localhost.localdomain systemd[1]: dahdi.service failed.
Feb 04 13:43:45 localhost.localdomain polkitd[2169]: Unregistered Authentication Agent for unix-process:10015:257342 (system bus name :1.132, object
lines 2544-2577/2577 (END)
I configured Dahdi many times as below, but same issue repeated, (is it means Configure Dahdi and then try and start it ??) cd dahdi-linux-complete-3.1.0+3.1.0
** make**
** make install**
** make install-config** (when i run #make config results:make: Nothing to be done for `config’. so i proceeded with make install-config )
Iam thinking to uninstall 'dahdi-linux-complete" totally and reinstall again , (can I proceed, is there any complications in thet?)
If I can do, Please suggest the effective Procedure to Uninstall Dahdi completely, Iam very much thankful to you
Maybe you already solved the issue, but I have installed today dahdi-linux-complete-3.1.0+3.1.0 on CentOS 8 Linux and Asterisk 16.10 sucessfully after many times showing the same issue:
make -C linux all
make[1]: Entering directory ‘/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux’
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory ‘/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux/drivers/dahdi/firmware’
make[2]: Leaving directory ‘/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux/drivers/dahdi/firmware’
You do not appear to have the sources for the 4.18.0-147.el8.x86_64 kernel installed.
make[1]: *** [Makefile:72: modules] Error 1
make[1]: Leaving directory ‘/usr/src/dahdi-linux-complete-3.1.0+3.1.0/linux’
make: *** [Makefile:9: all] Error 2
I was trying to install the proper kernel version and finally gave the command:
yum distro-sync
reboot
after this it worked for me and allowed me install DAHDI.