Postgres rails无法识别用户

所以我的rails应用程序给了我“我们很抱歉,但出了点问题。” 当我查看日志时,我明白了

PG::Error (FATAL: role "ubuntu" does not exist ): 

但是,当我这样做时(注意我相信我从来没有为角色ubuntu添加密码):

 sudo -u postgres createuser ubuntu Shall the new role be a superuser? (y/n) y createuser: creation of new role failed: ERROR: role "ubuntu" already exists 

我在使用nginx服务器的ubuntu ec2实例上运行它。

编辑:我只是尝试卸载并重新安装postgres,并完全打破它,所以我将无法接受任何答案。