Failed: astdb_init

i am new to asterisk i am setting it up on a ubuntu server. I walked through the steps in Asterisk: The Definitive Guide.

When I try to start Asterisk I get “Failed: astdb_init”

I can’t find anything on where to go from here. any help would be nice.

Do you have a /var/lib/asterisk/astdb file? Is it owned by the user Asterisk runs as?

Are you starting asterisk as that user?

I am starting asterisk as the user that the tutorial tells me. I do not have a /var/lib/asterisk/astdb file. How can i resolve this? Thank you.

What are the permissions and ownership on the /var/lib/asterisk directory?

Do they match the user you are trying to start asterisk as?

drwxr-xr-x 13 root root 4096 Aug 9 21:34 asterisk

I’m trying to run it as astriskpbx and I never changed the permissions of the user other than i added it to the sudoer group.

I’m assuming that could be the issue then?

I’m not familiar with the tutorial you are following so I’m not sure what the authors plan was, You say you edited sudoers so that makes me think the files should be owned by root and you should be using sudo to start asterisk.

Are you trying to run asterisk as your account ‘asteriskpbx’ or are you running it with sudo?