Author Topic: Upgrading Roundcube from 0.9.5 to 1.1  (Read 11086 times)

Offline Thawee

  • Newbie
  • *
  • Posts: 8
Upgrading Roundcube from 0.9.5 to 1.1
« on: March 18, 2015, 01:06:04 PM »
Hey everyone,

I am new to the forums, and I am trying to upgrade my roundcube from 0.9.5 to 1.1.

I am running ubuntu 14.04, and everything seems to go well until it tries to update the schema.

It fails with an unsupported driver error.

I am not sure how to get around this issue.

If anyone has an idea please let me know.

thanks!

Offline Thawee

  • Newbie
  • *
  • Posts: 8
Re: Upgrading Roundcube from 0.9.5 to 1.1
« Reply #1 on: March 19, 2015, 04:35:46 PM »
Bump :)

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,878
    • SKaero - Custom Roundcube development
Re: Upgrading Roundcube from 0.9.5 to 1.1
« Reply #2 on: March 20, 2015, 02:41:30 AM »
What is the exact error?

Offline Thawee

  • Newbie
  • *
  • Posts: 8
Re: Upgrading Roundcube from 0.9.5 to 1.1
« Reply #3 on: March 26, 2015, 05:31:22 PM »
Sorry for the late reply,

Here is the exact output I get when running installto.sh

I installed it to my /var/lib/roundcube folder.

WARNING: Your configuration needs to be migrated!
We changed the configuration files structure and your two config files main.inc.php and db.inc.php have to be merged into one single file.
Do you want me to fix your local configuration? (y/N)
y
. backing up the current config file(s)...
. writing /var/lib/roundcube/config/config.inc.php...
Done.
Your configuration files are now up-to-date!
Executing database schema update.
ERROR: Configuration error. Unsupported database driver: All done.

I thought maybe the issue could be because I might have setup Roundcube to use sql-lite v3, but I noticed that when I checked mysql I have a database for roundcube, so I don't think my original thought was incorrect.

Any insight would be greatly appreciated.

Thanks for the reply :)
« Last Edit: March 26, 2015, 05:34:42 PM by Thawee »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,878
    • SKaero - Custom Roundcube development
Re: Upgrading Roundcube from 0.9.5 to 1.1
« Reply #4 on: March 27, 2015, 03:33:06 AM »
What is in your $config['db_dsnw'] in the config.inc.php?

Offline Thawee

  • Newbie
  • *
  • Posts: 8
Re: Upgrading Roundcube from 0.9.5 to 1.1
« Reply #5 on: March 27, 2015, 11:44:23 AM »
Hi, It was set to Localhost, so I changed it to be this /$config['db_dsnw'] = 'mysql://<username>:PWD@localhost/roundcube/

Then I enabled $rcmail_config['enable_installer'] = true;

When I tried to run the http://<my site>/roundcube/installer

It wasn't there.  I image the reason is because i installed roundcube originally from apt-get install xxxx.

I copied my installer files from /var/lib/roundcube/installer to /var/www/html/rouncube I was able to access the installer.

I am now having an issue where I am unable to complete the installer and update my "mysql" database schema because the temp and log folders are not seen as writable.

Oddly enough, I am noticing that there are several locations where roundcube is installed.

/var/lib/roundcube
/etc/roundcube
/usr/share/roundcube
/var/www/html/roundcube

My understanding is that /var/lib/roundcube is the primary install location?

Anyhow, that's where I am at now

Thanks for your help :) 


« Last Edit: March 27, 2015, 11:56:32 AM by Thawee »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,878
    • SKaero - Custom Roundcube development
Re: Upgrading Roundcube from 0.9.5 to 1.1
« Reply #6 on: March 30, 2015, 06:37:55 AM »
I can't comment on where the primary install location is since its not my server, but since you changed something in the /var/www/html/rouncube folder and the change showed up online I'd imagine thats the main folder.

Offline Thawee

  • Newbie
  • *
  • Posts: 8
Re: Upgrading Roundcube from 0.9.5 to 1.1
« Reply #7 on: March 30, 2015, 02:59:29 PM »
Is anyone familiar with how to update the roundcube mysql schema from 0.9.5 to 1.1?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,878
    • SKaero - Custom Roundcube development
Re: Upgrading Roundcube from 0.9.5 to 1.1
« Reply #8 on: March 30, 2015, 04:12:28 PM »
You can use the installer or you can the the update queries yourself.

Offline Thawee

  • Newbie
  • *
  • Posts: 8
Re: Upgrading Roundcube from 0.9.5 to 1.1
« Reply #9 on: March 31, 2015, 03:36:47 PM »
Interesting,

Any idea on how I can manually update the Mysql schema?

Offline ABerglund

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 673
Re: Upgrading Roundcube from 0.9.5 to 1.1
« Reply #10 on: March 31, 2015, 03:54:46 PM »
The schema update scripts the installer uses are found in the SQL folder in roundcubemail root.
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA

Offline Thawee

  • Newbie
  • *
  • Posts: 8
Re: Upgrading Roundcube from 0.9.5 to 1.1
« Reply #11 on: April 13, 2015, 02:57:44 PM »
Thanks much appreciated,

I looked there, and it all looks like Greek to me, so how do I run the sql schema update scripts?

Offline Thawee

  • Newbie
  • *
  • Posts: 8
Re: Upgrading Roundcube from 0.9.5 to 1.1
« Reply #12 on: April 20, 2015, 01:43:32 PM »
Hey Everyone!

I wanted to give an update.

I was unable to correctly update from 0.9.5 stock install via apt-get with the latest version 1.1.1.

I am thinking the reason it wouldn't work is because in the stock install via apt-get it is customized and not standard.

I backed up all my install locations, and remove them.

I left the database in tact which worked out really well because when I started the install for 1.1.1 and configured the database it updated the schema from 0.9.5 to 1.1.1.

After that I was able to log into my email without much trouble.

Had a hick up with mail filtering but that was resolved by adjusting some settings.

Thanks for trying to help!

Cheers.