Yup, I know, people have been posting about this. But, none of their solutions work for me. Maybe a fresh look may create a solution for me.
Out of a dozen fresh installs using the install documentation on this site, all of them end with the same problem: applying configuration changes step fails.
The error that comes up in the yellow box:
[code]Reload failed because retrieve_conf encountered an error: 126
sh: /var/lib/asterisk/bin/retrieve_conf: Permission denied
1 error(s) occured, you should view the notification log on the dashboard or main screen to check for more details.[/code]
There is no log on the dashboard or main screen, and just to drive the knife in further, nothing in the asterisk cli either. The final line beginning with “1 error(s) occurred” is freaking useless if the nothing is shown where I’m told to look.
Tried to troubleshoot this problem, but no success with the following:
Make sure apache is running as asterisk.
Um…yeah. And how do I do this? I will “assume” httpd is what is being talked about instead. In which case, yup, httpd is running as asterisk. Output of ps -U asterisk -u asterisk:
PID TTY TIME CMD
2651 ? 00:00:19 httpd
2652 ? 00:00:19 httpd
2653 ? 00:00:19 httpd
2654 ? 00:00:19 httpd
2655 ? 00:00:18 httpd
2656 ? 00:00:19 httpd
2657 ? 00:00:19 httpd
2678 ? 00:00:19 httpd
3410 pts/0 00:00:00 asterisk
3463 ? 00:00:00 bash
3464 ? 00:00:00 sh
3465 ? 00:00:00 op_server.pl
Check the permissions for retrieve_conf.
ls -al retrieve_conf produces: -rwxrwx–x 1 asterisk asterisk 27081 May 20 16:12 retrieve_conf
Yup, asterisk has access and executable permissions. But, I did the following anyway:
chown asterisk:www-data -R /var/lib/asterisk/
chown asterisk:www-data -R /etc/asterisk/
chown asterisk:www-data -R /etc/amportal.conf
chmod 770 -R /var/lib/asterisk/
chmod 775 -R /etc/asterisk/
chmod 770 -R /etc/amportal.conf
chmod 777 /var/lib/asterisk/bin/retrieve_conf
I’m at a complete loss. Up to the step requiring the first time log in to the admin page to apply configuration changes, I have been able to solve the problems the writer of the tutorial didn’t bother to make sure weren’t going to happen, such as the required developer packages that aren’t even mentioned needing to be yumed.
Does anyone have any idea what may solve this problem?