FreePBX Error /var/spool/asterisk/cache is not writeable



  • FreePBX users might run into a new error this past week. We've seen it suddenly on multiple machines. While using the web interface, we get the error screen stating that /var/spool/asterisk/cache is not writeable. We expect that a bad module update has caused this, but we have not identified which one, yet. But the fix is easy.

    What has happened (in the cases that we have seen), is simply that the directory in question has become owned by root instead of asterisk. We can change this easily enough.

    chown asterisk:asterisk -R /var/spool/asterisk/cache
    

    You might want to restart the FreePBX processes...

    fwconsole restart
    

    These commands assume that you are logged in as root. If you are not, be sure to prepend with sudo.

    Happy calling.



  • @scottalanmiller said in FreePBX Error /var/spool/asterisk/cache is not writeable:

    FreePBX users might run into a new error this past week. We've seen it suddenly on multiple machines. While using the web interface, we get the error screen stating that /var/spool/asterisk/cache is not writeable. We expect that a bad module update has caused this, but we have not identified which one, yet. But the fix is easy.

    What has happened (in the cases that we have seen), is simply that the directory in question has become owned by root instead of asterisk. We can change this easily enough.

    chown asterisk:asterisk -R /var/spool/asterisk/cache
    

    You might want to restart the FreePBX processes...

    fwconsole restart
    

    These commands assume that you are logged in as root. If you are not, be sure to prepend with sudo.

    Happy calling.

    FreePBX has a command built in to fix things.

    fwconsole chown
    

    80b3e4aa-c95b-4c61-b95f-20a8824f6db9-image.png



  • @scottalanmiller said in FreePBX Error /var/spool/asterisk/cache is not writeable:

    These commands assume that you are logged in as root. If you are not, be sure to prepend with sudo.

    Or use root like a man, it'll put hair on your chest, even if you're a woman... so watch out I guess.