Hi all, I try to learn how to set up a basic Asterisk 16 on Linux Ubuntu Distro. I Followed a simple tutorial at this link ; [Tutorial]( Install Asterisk 16 LTS on Ubuntu 22.04|20.04|18.04 | ComputingForGeeks)
I achieved the installation but I’m still not able to start the service. This is the message I got from sudo systemctl restart asterisk ;
Job for asterisk.service failed because the control process exited with error code.
this is the status of the service;
asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/init.d/asterisk; generated)
Active: failed (Result: exit-code) since Sat 2022-06-04…
Docs: man:systemd-sysv-generator(8)
Process: 13539 ExecStart=/etc/init.d/asterisk start (code-exited, status=1/FAILURE)
chown: invalid user: ‘asterisk’
I created user with those commands
sudo groupadd asterisk
sudo useradd -r -d /var/lib/asterisk -g asterisk asterisk
sudo usermod -aG audio,dialout asterisk
sudo chown -R asterisk.asterisk /etc/asterisk
sudo chown -R asterisk.asterisk /var/{lib,log,spool}/asterisk
sudo chown -R asterisk.asterisk /usr/lib/asterisk