nisha.saini Posted June 15, 2016 Share Posted June 15, 2016 HiI am trying to install jasperreports-server-cp-6.2.1-linux-x64-installer.run in Redhat 7.2 VM using non-root user. I am using existing Tomcat on local and existing Postgres on remote (RDS instance). Till tomcat part all is good. But while DB part,I get the following error: Installing 0% ______________ 50% ______________ 100% ########################################Warning: Problem running post-install step. Installation may not completecorrectly Error running /usr/bin/createdb -U postgres -p 5432 -hpgreportdb.prod-jiodrive.com -O jasperdb -E UTF-8 jasperserver: createdb:database creation failed: ERROR: must be member of role "jasperdb" If i press enter and continue following error appears: Press [Enter] to continue: Warning: Problem running post-install step. Installation may not completecorrectly Error running /home/myuser/jasperreports-server-cp-6.2.1/apache-ant/bin/antimport-minimal-ce:BUILD FAILED/home/myuser/jasperreports-server-cp-6.2.1/buildomatic/bin/import-export.xml:327: The following error occurred while executing this line:/home/myuser/jasperreports-server-cp-6.2.1/buildomatic/bin/import-export.xml:145: The following error occurred while executing this line:/home/myuser/jasperreports-server-cp-6.2.1/buildomatic/bin/validation.xml:376:The following error occurred while executing this line:/home/myuser/jasperreports-server-cp-6.2.1/buildomatic/conf_source/db/postgresql/db.xml:58: The following error occurred while executing this line:/home/myuser/jasperreports-server-cp-6.2.1/buildomatic/bin/validation.xml:434:The following error occurred while executing this line:/home/myuser/jasperreports-server-cp-6.2.1/buildomatic/bin/validation.xml:470:Database doesn't exist. Treating problem with JDBC connection as unrecoverable *** Once I got this error, I have tried manually creating jasperserver DB but that is also not working. And I am not using any JDBC drivers from my side added externally so farPlease tell what can be done to resolve this? Is this remote postgres issue or something with RDS? Link to comment Share on other sites More sharing options...
hozawa Posted June 15, 2016 Share Posted June 15, 2016 I usually use the war file installation instead of using the installer because I have less problem with it. Be sure to create a user on PostgreSQL with priviledge to create database and tables.dbUsername=postgresdbPassword=postgre[/code]http://community.jaspersoft.com/documentation/tibco-jasperreports-server-community-project-installation-guide/v621/installing-war-0 Link to comment Share on other sites More sharing options...
nisha.saini Posted June 16, 2016 Author Share Posted June 16, 2016 Thanks HozawaBut even while installing from the .run file I tried creating user jasperdb manually and assigned createdb and createrole. It failed. How war file makes the changes, and could you tell where to add the below commandsdbUsername<span style="color: rgb(51, 153, 51);">=</span>postgresdbPassword<span style="color: rgb(51, 153, 51);">=</span>postgre Link to comment Share on other sites More sharing options...
Igor Zubov Posted March 18, 2017 Share Posted March 18, 2017 Hi all, I stuck with the same problem as Nisha. Error running /usr/bin/createdb -U postgres -p 5432 -hpgreportdb.prod-jiodrive.com -O jasperdb -E UTF-8 jasperserver: createdb:database creation failed: ERROR: must be member of role "jasperdb"I created a user dbUsername: postgres, dbPassword postgres into a RDS Postgresql db. I could connect to the db using this username and password.What user should be a member of the role "jasperdb"? Do I have to create a role "jasperdb" manually and what role do I have to grant to "jasperdb" then?Nisha, have you successfully completed the installation finally? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now