Opened 4 years ago

Closed 4 years ago

#9819 closed Task/To do item (fixed)

Upgrade to Roundcube 1.0.2

Reported by: https://id.mayfirst.org/srevilak Owned by: https://id.mayfirst.org/srevilak
Priority: Medium Component: Tech
Keywords: roundcube stallman.mayfirst.org Cc: https://launchpad.net/~jeremyb
Sensitive: no

Description

Roundcube 1.0.2 has been released. We should upgrade.

Date: Mon, 21 Jul 2014 08:45:06 +0200
From: Thomas Bruederli <thomas@roundcube.net>
To: Roundcube Announce List <announce@lists.roundcube.net>
Cc: Roundcube Users List <users@lists.roundcube.net>, Roundcube Dev List
        <dev@lists.roundcube.net>
Subject: [Roundcube Announce] Update 1.0.2 released
Message-ID: <CAO3naw5VM7fiiN4xD1LEy8dXPMOcwAqFUayO4neiRBKxv4KsXw@mail.gmail.com>

Dear Roundcube users

We're proud to announce the second service release to update the
stable version 1.0 of Roundcube webmail. It contains some bug fixes                  
and improvements we considered important for the long term support
branch of Roundcube. See the full changelog here:
http://trac.roundcube.net/wiki/Changelog

It's considered stable and we recommend to update all productive
installations of Roundcube with this version. Download it from
http://roundcube.net/download.

Please do backup before updating!

Kind regards,
Thomas
_______________________________________________
Roundcube Announcement mailing list
announce@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/announce

Change History (5)

comment:1 Changed 4 years ago by https://id.mayfirst.org/srevilak

  • Owner set to https://id.mayfirst.org/srevilak
  • Status changed from new to assigned

comment:2 Changed 4 years ago by https://launchpad.net/~jeremyb

  • Cc https://launchpad.net/~jeremyb added

comment:3 Changed 4 years ago by https://id.mayfirst.org/srevilak

roundcube.dev.mayfirst.org

General procedure: how-to/roundcube-upgrade

code prep

When doing the 1.0.1 upgrade, I messed up a merge, and wound up with an identical pair of commits on two different places in revision graph.

0 sunny:roundcube$ git log --oneline  mfpl-release-1.0...1.0.2
5d94e2f Merge remote-tracking branch 'gmo/mfpl-release-1.0' into mfpl-release-1.0
ae9d483 (fetch_identity_objects): avoid redundant call to unserialize
14ae3b3 Adding two plugins: import_horde_contacts, import_horde_identities
c382107 (fetch_identity_objects): avoid redundant call to unserialize
1242a0a Adding two plugins: import_horde_contacts, import_horde_identities

The diff between mfpl-release-1.0...1.0.2 is correct, but the extra log lines bother me. I'll attempt to straighten that up now.

0 sunny:roundcube2$ git init
Initialized empty Git repository in /home/srevilak/work/mfpl/roundcube2/.git/
0 sunny:roundcube2$ git remote add gmo git://git.mayfirst.org/mfpl/roundcube
0 sunny:roundcube2$ git config remote.gmo.pushUrl ssh://gitosis@git.mayfirst.org/mfpl/roundcube
0 sunny:roundcube2$ git remote add origin https://github.com/roundcube/roundcubemail
0 sunny:roundcube2$ git remote update
Fetching gmo
 [...]

Cut a branch from the 1.0.2 tag, and cherry pick our local changes

0 sunny:roundcube2$ git checkout -b mfpl-release-1.0-fix 1.0.2
Switched to a new branch 'mfpl-release-1.0-fix'

0 sunny:roundcube2$ git cherry-pick 1242a0a7af4ebf18c8ff422c90c77a83b5ced25e
[mfpl-release-1.0-fix 96c2a16] Adding two plugins: import_horde_contacts, import_horde_identities
 2 files changed, 212 insertions(+)
 create mode 100644 plugins/import_horde_contacts/import_horde_contacts.php
 create mode 100644 plugins/import_horde_identities/import_horde_identities.php
0 sunny:roundcube2$ git cherry-pick c382107b78a748e6bf57292d3231430cb4c3a4cd
[mfpl-release-1.0-fix 4a8aac8] (fetch_identity_objects): avoid redundant call to unserialize
 1 file changed, 1 insertion(+), 1 deletion(-)

This looks better

0 sunny:roundcube2$ git log --oneline HEAD...1.0.2
4a8aac8 (fetch_identity_objects): avoid redundant call to unserialize
96c2a16 Adding two plugins: import_horde_contacts, import_horde_identities

Tag:

git tag -s roundcube-1.0.2-mfpl1

And push

0 sunny:roundcube2$ git push gmo :mfpl-release-1.0
remote: To git-roundcube@moses.mayfirst.org:/srv/git/roundcube
remote:  - [deleted]         mfpl-release-1.0
To ssh://gitosis@git.mayfirst.org/mfpl/roundcube
 - [deleted]         mfpl-release-1.0

0 sunny:roundcube2$ git push gmo mfpl-release-1.0-fix:mfpl-release-1.0
X11 forwarding request failed on channel 0
Counting objects: 640, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (224/224), done.
Writing objects: 100% (326/326), 40.12 KiB | 0 bytes/s, done.
Total 326 (delta 245), reused 172 (delta 101)
remote: To git-roundcube@moses.mayfirst.org:/srv/git/roundcube
remote:  * [new branch]      mfpl-release-1.0 -> mfpl-release-1.0
To ssh://gitosis@git.mayfirst.org/mfpl/roundcube
 * [new branch]      mfpl-release-1.0-fix -> mfpl-release-1.0

0 sunny:roundcube2$ git push gmo mfpl-release-1.0-fix:mfpl-release-1.0 --tags
X11 forwarding request failed on channel 0
Counting objects: 1, done.
Writing objects: 100% (1/1), 836 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
remote: To git-roundcube@moses.mayfirst.org:/srv/git/roundcube
remote:  * [new tag]         1.0.2 -> 1.0.2
remote:  * [new tag]         roundcube-1.0.2-mfpl1 -> roundcube-1.0.2-mfpl1
To ssh://gitosis@git.mayfirst.org/mfpl/roundcube
 * [new tag]         1.0.2 -> 1.0.2
 * [new tag]         roundcube-1.0.2-mfpl1 -> roundcube-1.0.2-mfpl1

Now, the history looks like a rebase is supposed to look. For the next upgrade, I'll start with a clean set of sources.

deployment

0 roundcube-code@stallman:/srv/roundcube-dev$ git remote update
Fetching gmo
remote: Counting objects: 402, done.
remote: Compressing objects: 100% (88/88), done.
remote: Total 331 (delta 245), reused 326 (delta 242)
Receiving objects: 100% (331/331), 50.42 KiB, done.
Resolving deltas: 100% (245/245), completed with 64 local objects.
From git://git.mayfirst.org/mfpl/roundcube
 + c382107...4a8aac8 mfpl-release-1.0 -> gmo/mfpl-release-1.0  (forced update)
 * [new tag]         roundcube-1.0.2-mfpl1 -> roundcube-1.0.2-mfpl1
From git://git.mayfirst.org/mfpl/roundcube
 * [new tag]         1.0.2      -> 1.0.2
0 roundcube-code@stallman:/srv/roundcube-dev$


0 roundcube-code@stallman:/srv/roundcube-dev$ git tag -v roundcube-1.0.2-mfpl1
object 4a8aac81155457bf003910464770dd241303e742
type commit
tag roundcube-1.0.2-mfpl1
tagger Steve Revilak <steve@srevilak.net> 1406163595 -0400

Synchronize with roundcube 1.0.2 release
gpg: Signature made Wed 23 Jul 2014 09:00:24 PM EDT
gpg:                using RSA key 0x3EB22DE4E594DCF2
gpg: Good signature from "Steve Revilak <steve@srevilak.net>"
0 roundcube-code@stallman:/srv/roundcube-dev$ 

0 roundcube-code@stallman:/srv/roundcube-dev$ git checkout roundcube-1.0.2-mfpl1
Previous HEAD position was c382107... (fetch_identity_objects): avoid redundant call to unserialize
HEAD is now at 4a8aac8... (fetch_identity_objects): avoid redundant call to unserialize
0 roundcube-code@stallman:/srv/roundcube-dev$ 

Database update

0 roundcube-dev@stallman:/srv/roundcube-dev$ php bin/update.sh 
What version are you upgrading from? Type '?' if you don't know.
?
NOTICE: Obsolete config options:
(You still have some obsolete or inexistent properties set. This isn't a problem but should be noticed)
- 'mime_magic'

Do you want me to fix your local configuration? (y/N)
N
Please update your config files manually according to the above messages.
WARNING: File type detection doesn't work properly!
Please check the 'mime_magic' config option or the finfo functions of PHP and run this script again.
Executing database schema update.
This instance of Roundcube is up-to-date.
Have fun!
0 roundcube-dev@stallman:/srv/roundcube-dev$

I commented out mime_magic, and ran update.sh again

0 roundcube-dev@stallman:/srv/roundcube-dev$ php bin/update.sh 
What version are you upgrading from? Type '?' if you don't know.
?
Executing database schema update.
This instance of Roundcube is up-to-date.
Have fun!
0 roundcube-dev@stallman:/srv/roundcube-dev$ 

Finally, index contacts

0 roundcube-dev@stallman:/srv/roundcube-dev$ php bin/indexcontacts.sh 
Indexing contacts for user 1...done.
Indexing contacts for user 2...done.
Indexing contacts for user 4...done.

Indexing contacts for user 49...done.
Indexing contacts for user 50...done.
Indexing contacts for user 51...done.
Indexing contacts for user 52...done.
0 roundcube-dev@stallman:/srv/roundcube-dev$ 

comment:4 Changed 4 years ago by https://id.mayfirst.org/srevilak

roundcube.mayfirst.org upgrade

There's no "mime_magic" in /srv/roundcube/config/config.inc.php, so no need to remove it.

Code pull and switch

0 roundcube-code@stallman:/srv/roundcube$ git remote update
Fetching gmo
remote: Counting objects: 402, done.
remote: Compressing objects: 100% (88/88), done.
remote: Total 331 (delta 245), reused 326 (delta 242)
Receiving objects: 100% (331/331), 50.42 KiB, done.
Resolving deltas: 100% (245/245), completed with 64 local objects.
From git://git.mayfirst.org/mfpl/roundcube
 + c382107...4a8aac8 mfpl-release-1.0 -> gmo/mfpl-release-1.0  (forced update)
 * [new tag]         roundcube-1.0.2-mfpl1 -> roundcube-1.0.2-mfpl1
From git://git.mayfirst.org/mfpl/roundcube
 * [new tag]         1.0.2      -> 1.0.2
0 roundcube-code@stallman:/srv/roundcube$

Verify tag

0 roundcube-code@stallman:/srv/roundcube$ git tag -v roundcube-1.0.2-mfpl1
object 4a8aac81155457bf003910464770dd241303e742
type commit
tag roundcube-1.0.2-mfpl1
tagger Steve Revilak <steve@srevilak.net> 1406163595 -0400

Synchronize with roundcube 1.0.2 release
gpg: Signature made Wed 23 Jul 2014 09:00:24 PM EDT
gpg:                using RSA key 0x3EB22DE4E594DCF2
gpg: Good signature from "Steve Revilak <steve@srevilak.net>"
0 roundcube-code@stallman:/srv/roundcube$

Deploy

0 roundcube-code@stallman:/srv/roundcube$ git checkout roundcube-1.0.2-mfpl1
Previous HEAD position was c382107... (fetch_identity_objects): avoid redundant call to unserialize
HEAD is now at 4a8aac8... (fetch_identity_objects): avoid redundant call to unserialize
0 roundcube-code@stallman:/srv/roundcube$

database upgrade

0 roundcube@stallman:/srv/roundcube$ php bin/update.sh
What version are you upgrading from? Type '?' if you don't know.
?
Executing database schema update.
This instance of Roundcube is up-to-date.
Have fun!
0 roundcube@stallman:/srv/roundcube$

0 roundcube@stallman:/srv/roundcube$ php bin/indexcontacts.sh 
Indexing contacts for user 1...done.
Indexing contacts for user 2...done.
Indexing contacts for user 3...done.
Indexing contacts for user 4...done.
Indexing contacts for user 5...done.
  ...
Indexing contacts for user 1113...done.
Indexing contacts for user 1114...done.
Indexing contacts for user 1115...done.
Indexing contacts for user 1116...done.
0 roundcube@stallman:/srv/roundcube$

Did some post-installation tests. Things look okay to me.

comment:5 Changed 4 years ago by https://id.mayfirst.org/srevilak

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

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.