Announcement

Migration of this forum

Dear users of this forum,

we are pleased to inform you that we will be updating the software behind this forum in the near future.

Existing posts, users and categories will remain untouched.

Important:

  • Each user will need to reset their password.
  • Please select "I forgot my password".
  • Enter the email address you used to register in this forum.
  • You will receive an email with a link to set a new password.
  • Please choose a new (secure) password and confirm the process.

We will keep you informed in the pinned thread.

Kind regards,
Your ReportServer Team


Migration des Forums

Liebe Nutzer dieses Forums,

wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.

Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!

Wichtig:

  • Jeder Nutzer muss sein Passwort neu vergeben.
  • Wählt dazu einfach "Ich habe mein Passwort vergessen".
  • Gebt die E-Mail-Adresse ein, mit der ihr registriert seid.
  • Ihr erhaltet eine E-Mail mit einem Link zur Passwortvergabe.
  • Bitte wählt ein neues (sicheres) Passwort und bestätigt den Vorgang.

Wir halten euch im angepinnten Beitrag auf dem Laufenden!

Mit vielen Grüßen
Euer ReportServer Team

#1 2018-07-09 13:57:39

palacio
Member
Registered: 2018-06-27

Initialize the ReportServer Database

Hi,

Please I problem when I run this command.

cd /var/lib/tomcat7/webapps/ROOT/ddl/

psql -U reportserver -d reportserver -a -f reportserver-RS3.0.3-6003-schema-PostgreSQL_CREATE.sql


I have this error:
psql: FATAL:  Peer authentication failed for user "reportserver"


I use this topic to install reportserver to my local server: https://reportserver.net/en/tutorials/i … -practice/

How can I resolve it??


Regards,

Last edited by palacio (2018-07-09 14:07:08)

Offline

#2 2018-07-11 07:02:26

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Initialize the ReportServer Database

Hi palacio,

make sure you can connect to your database with your user "reportserver". Try to connect first from an external tool, e.g. PGAdmin https://www.pgadmin.org/
Are you trying to connect from the same host where your DB is installed?

Regards,
Eduardo

Offline

#3 2018-07-11 08:38:19

palacio
Member
Registered: 2018-06-27

Re: Initialize the ReportServer Database

eduardo wrote:

Hi palacio,

make sure you can connect to your database with your user "reportserver". Try to connect first from an external tool, e.g. PGAdmin https://www.pgadmin.org/
Are you trying to connect from the same host where your DB is installed?

Regards,
Eduardo

Hi eduardo,

I done it. I get access for my DB "reportserver" to my local server.

Are you trying to connect from the same host where your DB is installed?: YES


I thing that the problem is here /etc/postgresql/9.6/main/pg_hba.conf. I'm trying to resolve it with many solutions I fund in internet but...

Is that my posgresql version?? hmm


Regards,

Offline

#4 2018-07-11 08:59:00

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Initialize the ReportServer Database

Hi palacio,

what do you see when you connect to your reportserver from within PGAdmin ? Which credentials do you use? "reportserver" and "reportserver" as password ? Can you paste some screenshots ? (use an online tool e.g. https://imgbb.com/ )

Regards,
Eduardo

Offline

#5 2018-07-11 09:27:20

palacio
Member
Registered: 2018-06-27

Re: Initialize the ReportServer Database

eduardo wrote:

Hi palacio,

what do you see when you connect to your reportserver from within PGAdmin ? Which credentials do you use? "reportserver" and "reportserver" as password ? Can you paste some screenshots ? (use an online tool e.g. https://imgbb.com/ )

Regards,
Eduardo


r1.png
r2.png
r3.png
r4.png


Regards,

Offline

#6 2018-07-11 09:56:50

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Initialize the ReportServer Database

Hi palacio,

and under schemas: do you see the reportserver tables ?

Regards,
Eduardo

Offline

#7 2018-07-11 09:57:25

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Initialize the ReportServer Database

Please post also the complete JDBC URL you are using in reportserver (in persistence.properties )

Offline

#8 2018-07-11 09:58:38

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Initialize the ReportServer Database

You can execute your reportserver-RS3.0.3-6003-schema-PostgreSQL_CREATE.sql from within PGAdmin: just copy and paste the contents into a new query and run the query.

Regards,
Eduardo

Offline

#9 2018-07-11 10:36:22

palacio
Member
Registered: 2018-06-27

Re: Initialize the ReportServer Database

eduardo wrote:

Hi palacio,

and under schemas: do you see the reportserver tables ?

Regards,
Eduardo


No
r6.png

Offline

#10 2018-07-11 10:42:49

palacio
Member
Registered: 2018-06-27

Re: Initialize the ReportServer Database

eduardo wrote:

Please post also the complete JDBC URL you are using in reportserver (in persistence.properties )

r5.png

Offline

#11 2018-07-11 10:46:19

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Initialize the ReportServer Database

Hi palacio,

thanks for the screenshots.
Try to execute your reportserver-RS3.0.3-6003-schema-PostgreSQL_CREATE.sql from within PGAdmin: just copy and paste the contents into a new query and run the query.

Then you should have the tables.

Regards,
Eduardo

Offline

#12 2018-07-11 12:01:25

palacio
Member
Registered: 2018-06-27

Re: Initialize the ReportServer Database

eduardo wrote:

Hi palacio,

thanks for the screenshots.
Try to execute your reportserver-RS3.0.3-6003-schema-PostgreSQL_CREATE.sql from within PGAdmin: just copy and paste the contents into a new query and run the query.

Then you should have the tables.

Regards,
Eduardo


Oooh Yes! Thank you @eduardo. Every thing is OK.

cool  cool  cool

See you. Have a good day

Offline

#13 2018-11-26 12:31:46

abhijitsen
Member
Registered: 2018-11-26

Re: Initialize the ReportServer Database

I had same issue I fixed it by following the bellow mentioned steps:

Finally, since PostgreSQL on Ubuntu per default only allows to connect locally via the postgres user, we need to adapt the configuration file /etc/postgresql/9.3/main/pg_hba.conf. Here look for a line containing

local   all             all                                        peer
and replace it by

local   all             all                                        md5
Which allows users that provide a valid password hash to connect. For the changes to take effect we need to restart the postgres service:

$ service postgresql restart

Offline

Board footer

Powered by FluxBB