Repair broken roundcube

Discussion in 'Installation/Configuration' started by PeterISPC, Mar 30, 2015.

  1. PeterISPC

    PeterISPC New Member

    Hi,

    I installed roundcube from tutorial and it worked great except for auto replay.
    Now i have messed around and cant connect to roundcube, i try to reinstall but it says all ready installed, i need to reenter mysql passwords again.
    I installed an new version of roundcube and it worked but i dont think the ISPC plugins worked with that install.

    Can someone please help me repair my 0.72 original install?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    First, try to reinstall it with --reinstall option in apt command. e.g.:

    apt-get install --reinstall roundcube roundcube-mysql .... (and the other roundcube modules that you installed).

    To reconfigure roundcube, use:

    dpkg-reconfigure roundcube-mysql
     
  3. PeterISPC

    PeterISPC New Member

    I get this:
    Code:
    DATABASE ERROR: CONNECTION FAILED!
    
    Unable to connect to the database!
    Please contact your server-administrator.
    so i think i just need to manually insert mysql password for roundcube but i dont know where.

    I guess it is in several places ?
     
  4. PeterISPC

    PeterISPC New Member

    Code:
    dpkg-reconfigure roundcube-mysql
    does nothing, i was hoping this would let me retype password and so on?
     
  5. PeterISPC

    PeterISPC New Member

    Somehow i managed to get this topic in IspConfig 2 and thats wrong. It should be IspConfig 3.

    Maybe this changes your answers, Sorry.
     
  6. PeterISPC

    PeterISPC New Member

    I dont want to reinstall the whole server, please help me solve this :)
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Then try:

    dpkg-reconfigure roundcube

    or

    dpkg-reconfigure roundcube-core

    I dont have a roundcube system here at hand but a reconfigure on one of these 3 packages will ask you for the mysql details again.
     
  8. PeterISPC

    PeterISPC New Member

    How can i completely and manually remove everything regarding roundcube so i can install it from the guide again.
    I cant reinstall the whole server again.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    run:

    apt-get remove --purge roundcube
     
  10. pssadm

    pssadm New Member

    Did you ever figure this out. I'm having a hell of a time.
    Roundcube-core does not ask for the mysql root password. It just skips it altogether and fails. It asks for the root database user name.. but not the password. I tried everything above.. and nothing works. Followed every instruction.
     
  11. pssadm

    pssadm New Member

    After lots of wasted time.. the only solution I could find, was to remove the password altogether for the root user of mysql (a.k.a. mariadb) . For anyone with the same issue: Either manually or thru phpmyadmin - make sure there is no roundcube database listed. Then from terminal command line do the following:
    Code:
    mysqladmin --user=root -p password ""
    then reconfigure the roundcube package again.
    Code:
    dpkg_reconfigure roundcube-core
    . Go thru the prompts. Once done, verify the roundcube database exists and that the tables are listed. Then do the following to re-enstate the password on the root user of mysql.
    Code:
    mysqladmin --user=root password "enter-your-password-here"
    Check to see if mysql requests a root password to confirm your secured the root login.
    Code:
    mysql -uroot -p
     
  12. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Did you try
    Code:
    dpkg_reconfigure -plow roundcube-core
    to force the reconfigure to ask more setup questions?
     

Share This Page