Permission denied (dialparties.agi)

for the last couple of days, maybe a week, we have had some strange things happen, I finally was able to capture a debug of what the call was doing. A simple reload fixes it, but I don’t understand why it’s happening. Here is the error message from the debug…

– Executing [s@macro-dial:6] AGI(“SIP/WOW-SIP-00000009”, “dialparties.agi”) in new stack
Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Failed to execute ‘/var/lib/asterisk/agi-bin/dialparties.agi’: Permission denied
[2016-04-05 06:24:56] ERROR[3485][C-00000008]: utils.c:1339 ast_carefulwrite: write() returned error: Broken pipe

I have already changed the permissions for this file to 777 hoping that would fix it, but wanted you guys opinion as to why it happened, or if I needed to do more?

You need to check that in the FreePBX forums at and usually that error is due to asterisk user do not own the script or folder.

Thanks, that’s what I did, I should have put that in the message but thanks for your quick response!

Although I don’t think Asterisk does this, a lot of server software will refuse to run with configuration files that have unsafe permission/ownership combinations.

ok so after a module update to a couple of different modules the problem returned this morning… my PBX restarts every morning at 4 AM. can someone give me a more permanent solution? Something I have never had to worry about is Asterisk, and now I find myself checking it every morning at 6 AM. :frowning:

You need to ask in the FreePBX forum.

1 Like