Pgcrypto extension is NOT INSTALLED

Pgcrypto extension is NOT INSTALLED is a Common error with pgcrypto but you have to not that this extension is installed per database,Common error is to install it on the default postgres user.

Therefore while installing DSPACE do the do following :

root@repository:/dspace/config# su postgres

postgres@repository:/dspace/config$ psql dspace

dspace=# CREATE EXTENSION pgcrypto;

CREATE EXTENSION