Author Topic: update roundcube from 1.2-beta to newest 1.3.6  (Read 4366 times)

Offline poliman

  • Newbie
  • *
  • Posts: 4
update roundcube from 1.2-beta to newest 1.3.6
« on: April 16, 2018, 01:20:01 AM »
Hello!
I have server with Ubuntu 16.04 LTS and Roundcube 1.2-beta. I would like to upgrade it. Current version has files/directories like below (installation directory):
Code: [Select]
root@s1:/usr/share/roundcube# ls -l
total 48
drwxr-xr-x  2 501 admin  4096 Apr 13 07:49 bin
-rw-r--r--  1 501 admin  3595 Apr 13 07:49 config.inc.php.sample
-rw-r--r--  1 501 admin 12413 Apr 13 07:49 index.php
drwxr-xr-x  3 501 admin  4096 Apr 13 07:49 installer
drwxr-xr-x 41 501 admin  4096 Apr 13 07:49 plugins
drwxr-xr-x  8 501 admin  4096 Apr 13 07:49 program
-rw-r--r--  1 501 admin    26 Apr 13 07:49 robots.txt
drwxr-xr-x  4 501 admin  4096 Apr 13 07:49 skins
drwxr-xr-x  7 501 admin  4096 Apr 13 07:49 SQL

but the newest version 1.3.6-complete has (it's downloaded and unzipped archive):
root@s1:/tmp/roundcubemail-1.3.6# ls -l
total 272
drwxr-xr-x  2 501 admin   4096 Apr 12 15:14 bin
-rw-r--r--  1 501 admin 153208 Apr 11 13:13 CHANGELOG
-rw-r--r--  1 501 admin   1046 Apr 11 13:13 composer.json-dist
drwxr-xr-x  2 501 admin   4096 Apr 12 15:14 config
-rw-r--r--  1 501 admin  12726 Apr 11 13:13 index.php
-rw-r--r--  1 501 admin  10901 Apr 11 13:13 INSTALL
drwxr-xr-x  3 501 admin   4096 Apr 12 15:14 installer
-rw-r--r--  1 501 admin  35147 Apr 11 13:13 LICENSE
drwxr-xr-x  2 501 admin   4096 Apr 12 15:14 logs
drwxr-xr-x 35 501 admin   4096 Apr 12 15:14 plugins
drwxr-xr-x  8 501 admin   4096 Apr 12 15:14 program
drwxr-xr-x  3 501 admin   4096 Apr 12 15:14 public_html
-rw-r--r--  1 501 admin   3876 Apr 11 13:13 README.md
drwxr-xr-x  4 501 admin   4096 Apr 12 15:14 skins
drwxr-xr-x  7 501 admin   4096 Apr 11 13:13 SQL
drwxr-xr-x  2 501 admin   4096 Apr 12 15:14 temp
-rw-r--r--  1 501 admin   3579 Apr 11 13:13 UPGRADING
drwxr-xr-x  8 501 admin   4096 Apr 12 15:14 vendor

I have a problem with upgrade it. When I just run bin/installto.sh from downloaded version directory I have error that "config directory does not exists". Ok, so I did "mkdir config" (and I did this same for another directories which don't exist in my current roundcube installation like logs, temp, etc.).

After making new directories I run again installto.sh script. Few las line from output:
Code: [Select]
CHANGELOG
README.md
UPGRADING
LICENSE
INSTALL
done.
!! Old .htaccess file saved as .htaccess.orig !!

JavaScript dependencies installation skipped...
Running update script at target...
This instance of Roundcube is not yet configured!
Open http://url-to-roundcube/installer/ in your browser and follow the instuctions.
All done.
there is information "done." and "All done" and when I log into some account I see I have 1.3.6 version but I see that database is not upgraded.

I used these tutorials:
https://github.com/roundcube/roundcubemail/wiki/Upgrade
https://linode.com/docs/email/clients/install-roundcube-on-ubuntu/

Could you help me with this?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: update roundcube from 1.2-beta to newest 1.3.6
« Reply #1 on: April 16, 2018, 08:11:48 AM »
it looks like you had some kind of custom install of 1.2-beta. simply creating the conf directory will not really solve anything since its not going to have the expected content.

i think it might be easier to create a fresh install of 1.3 and then either update the database manually or make a fresh database and import the data from the old one.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline poliman

  • Newbie
  • *
  • Posts: 4
Re: update roundcube from 1.2-beta to newest 1.3.6
« Reply #2 on: April 16, 2018, 08:28:37 AM »
I did:
1. Extract tar.gz archive and copied all files to /usr/share/roundcube (earlier make a copy of current 1.2-beta).
2. Make a db backup, clear it and import new one from extracted archive.
3. When I run roundcube I can check version and there is 1.3.6. I am curious does the new version (when will be released) will upgrade without any problem by using upgrade script from archive. ;)

One thing is strange. At the end I see message that configuration is not completed. :)


Offline poliman

  • Newbie
  • *
  • Posts: 4
Re: update roundcube from 1.2-beta to newest 1.3.6
« Reply #3 on: April 18, 2018, 08:36:36 AM »
it looks like you had some kind of custom install of 1.2-beta. simply creating the conf directory will not really solve anything since its not going to have the expected content.

i think it might be easier to create a fresh install of 1.3 and then either update the database manually or make a fresh database and import the data from the old one.
I have installed it from Ubuntu 16.04 repos.

Offline rm13

  • Full Member
  • ***
  • Posts: 129
Re: update roundcube from 1.2-beta to newest 1.3.6
« Reply #4 on: April 18, 2018, 09:22:17 AM »
Debian / Ubuntu package Roundcube to match their file system guidelines with some pieces under /var/lib and /usr/share and /var/log and /etc along with a bit of patching of the upstream source. So you could either look at a newer package that you can "backport" (actually there are a few packages you likely need to backport).

Or remove the Debian install and install according to https://github.com/roundcube/roundcubemail/wiki/Installation then you manage the software outside of the Debian repo.


Offline poliman

  • Newbie
  • *
  • Posts: 4
Re: update roundcube from 1.2-beta to newest 1.3.6
« Reply #5 on: April 19, 2018, 02:54:19 AM »
Thank you for help.