500: CONFIGURATION ERROR

Installation Forum (Inactive)
500: CONFIGURATION ERROR hilariagrieve  2016-04-20 10:57
Status: Closed
 
Hi, I installed every required component succesfully,
But when I configure the application It returnes me an configuration error. I send you a .log file and a print.
I checked that the database is running, and the database connection URL and user credentials in labkey.xml are ok.

I installed, Tomcat 8.0.33, Postgres 9.5, and Java jdk1.8.0_77.

Please, can you help me?

Hilaria
 
 
Jon (LabKey DevOps) responded:  2016-04-20 11:55
Hi Hilaria,

The labkey.xml file looks fine. The postgres database we're looking at is fine as well, but LabKey would have generated a new database called "labkey" since that's what you called it in the labkey.xml file as:

url="jdbc:postgresql://localhost:5432/labkey"

However, the root cause of the error appears to be:

Caused by: java.io.IOException: Illegal UTF-8 sequence: initial byte is 10xxxxxx: 171
    at org.postgresql.core.UTF8Encoding.decode(UTF8Encoding.java:98)
    at org.postgresql.core.PGStream.ReceiveString(PGStream.java:329)
    at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:686)
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:207)
    ... 27 more

Although your database is using UTF-8 encoding, The LC_COLLATE and the LC_CTYPE appear to be using 'Spanish_Argentina.1252' for a locale rather than just 'C', which doesn't tie itself to any locale.

Can you manually create a database in pgAdmin III for us via the UI and tell us what options you get under the Definition tab for the LC_COLLATE and LC_CTYPE? If you have "C" as an option, I would like for you to create a new database and call it "labkey" and set the LC_COLLATE and LC_CTYPE to "C", then restart Tomcat afterwards and let us know whether LabKey starts up without errors or not.

Regards,

Jon
 
hilariagrieve responded:  2016-04-21 04:21
Hi Jon!

It worked effectively!

I made a Base called Labkey in pgAdminIII, and I had to select template=0 then It alowed me too add in the SQL eyelash, LC_COLLATE=`C` LC_CTYPE=`C`.
I restarted Tomcat and IT WORKED!
Thank you very much!

Hilaria
 
hilariagrieve responded:  2016-04-21 04:22
 
Jon (LabKey DevOps) responded:  2016-04-21 09:44
Fantastic! Glad to hear things are working now!

Regards,

Jon