Modify

Ticket #2390 (closed defect: fixed)

Opened 3 years ago

Last modified 15 months ago

trouble with roundcube

Reported by: sistemas1@… Owned by: jamor@…
Milestone: 2.2.X Component: webmail
Severity: normal Keywords: webmail-roundcube
Cc:

Description

DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database! Please contact your server-administrator.

Attachments

Change History

comment:1 Changed 3 years ago by anonymous

  • Owner changed from cperez@… to jsalamero@…

comment:2 Changed 3 years ago by moebius

  • Severity changed from normal to major
  • Milestone changed from 2.0-doc to 2.0.X

Same problem here. It seems that it fails to create the PSQL database for roundcube. If the script file /usr/share/ebox-webmail/ebox-webmail-enable is launched by hand, it fails in the creation of the database wiith the followinf message:

createdb: database creation failed: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) HINT: Use the same encoding as in the template database, or use template0 as template.

comment:3 Changed 3 years ago by moebius@…

If the "--encoding=utf-8" is removed from line 21 it works (well I hace to drop manually the database first.

comment:4 Changed 3 years ago by jacalvo@…

  • Owner changed from jsalamero@… to javier.amor.garcia@…

comment:5 Changed 2 years ago by jamor@…

  • Owner changed from javier.amor.garcia@… to jamor@…

comment:6 Changed 2 years ago by jsoriano@…

Hi,

I have some questions that can help to fix this issue.

How did you install Zentyal (installing packages on ubuntu or using our installer) and in what language?

After removing the encoding flag, did you have any encoding problem in webmail?

Did it happen in a clean installation?

Thanks,

comment:7 Changed 2 years ago by cperez@…

  • Owner changed from jamor@… to jsalamero@…

comment:8 Changed 2 years ago by jsalamero@…

  • Milestone changed from 2.0.X to 2.1

This can only be reproduced if installing on a non UTF-8 locale system, probably we should rise an exception in such case.

comment:9 Changed 2 years ago by jacalvo@…

  • Owner changed from jsalamero@… to jamor@…

comment:10 Changed 2 years ago by jamor@…

  • Status changed from new to closed
  • Resolution set to wontfix

This happens when you install it in a server with a non-UTF8 locale.

By default Ubuntu is installed with UTF8 so only a few servers would be affected for this

comment:11 Changed 16 months ago by gervalladares@…

  • Status changed from closed to reopened
  • Resolution wontfix deleted
  • Milestone changed from 2.2 to 2.2.X

Cuando accedo a  http://[ip de mi servidor]/webmail me emite este mensaje, ya probe quitar el modulo de webmail y reinstalarlo y nada, sigo tenienfdo el mismo error, me puede ayudar. DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database! Please contact your server-administrator.

comment:12 Changed 15 months ago by jamor@…

  • Status changed from reopened to accepted

Hola Gervalladares,

puedes comprobar si postgresql esta corriendo?. que localización tienes en tu servidor?.

Saludos,

Javier

comment:13 Changed 15 months ago by jamor@…

  • Severity changed from major to normal

comment:14 Changed 15 months ago by jamor@…

  • Status changed from accepted to closed
  • Resolution set to worksforme

Hola Gervalladares,

por favor reabre si puedes darnos la información requerida.

comment:15 Changed 15 months ago by gervalladares@…

  • Status changed from closed to reopened
  • Resolution worksforme deleted

El error surgio, al momento de desintalar el modulo de Usuarios y Grupos, y tenia el Webmail activado, tuvo unos problema de configuracion y entonces aplique /usr/share/zentyal-users/reinstall para reinstalar, toda la reinstalacion se realizo perfecta, pero cuando entro al direccion de mi webmail, me salio el error que les comente.

DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database! Please contact your server-administrator.

Lo soluciones reinstalando desde cero el servidor Zentyal, pero no me parecio una solucion viable, ya que me toco configurar todo, me gustaria que encontraran una solucion menos agresiva, para solucionar este problemita.

comment:16 Changed 15 months ago by jamor@…

  • Status changed from reopened to accepted

Creo que el problema es que al haber estado instalador no se ha ejecutado de nuevo el script que crea la base de datos. Prueba a ejecutar:

sudo /usr/share/zentyal-webmail/roundcube/enable-module
sudo /etc/init.d/zentyal webmail restart

Y cuéntame si esto resuelve tu problema.

Saludos,

Javier

comment:17 Changed 15 months ago by jamor@…

Hola Gervalaldares,

después de pruebas he visto que la secuencia necesaria para arreglar tu problemas es:

sudo -s # access to root shell
su postgres -c'psql -c"drop database roundcube"'
su postgres -c'psql -c"drop role roundcube"'
/usr/share/zentyal-webmail/roundcube/enable-module

Estos comandos reinician completamente la base de datos de roundcube.

Saludos,

Javier

comment:18 Changed 15 months ago by jamor@…

  • Status changed from accepted to closed
  • Resolution set to fixed

I have added code in [2257276ca] to avoid in the future this problem when unconfiguring zentyal-webmail (/usr/share/zentyal-users/reinstall unconfigures it)

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.