Database errors

I am still fairly new to asterisk and I don’t spend a lot of time with it so bear with me.

The system appears to be functioning as it should but I am seeing an error that worries me.

If i run asterisk -c and watch the console it’s not long before it is populated entirety with the same message

WARNING[1002]: db.c:329 ast_db_put: Couldn’t execute statment: database is locked

I am sure there is no simple answer for this, but I am not sure where to start debugging something like this. Any suggestions would help.

Check wheter the user running Asterisk has the correct access rights (rw) for /var/lib/asterisk/astdb or /var/lib/asterisk/astdb.sqlite3 (Filename depends on Your asterisk-version)