Rebuilding AstDB

I had a strange issue today, one of my phones couldn't be dialed by other phone but it could dial out without any issues.
When someone dialed the extension they just got a busy tone.

After trying a lot of different things I went for help on IRC in the #freepbx channel.
Fortunately I got the advice to rebuild AstDB and that solved al issues I had.

Rebuilding AstDB is much easier than it sounds, just follow these steps:

1. Stop the asterisk service (in FreePBX you can just type: amportal stop)

FreePBX - firstboot error

When installing the latest FreePBX Distro ( I got an error message after installation:

Some firstboot error occured, and the system is not properly setup.
Check to see if you have internet access and re-run /etc/ Press ctrl-alt-f1 to continue