Dotclear

Vous n'êtes pas identifié(e).

Annonce

#1 2016-06-06 05:10:16

reppep
Membre
Inscription : 2009-11-14

2.6 to 2.9.1 migration

I'm moving from DC 2.6 on CentOS 6 to a new CentOS 7 server. I thought I could just rsync the whole thing over, and 'hg update' or similar to keep my old labs/plugins/themes/posts.

Is there a 2.9.1 branch? I only see 2.9 and earlier.

Is this supported, or too large a jump?

hg dumps me into a bizarre 3-way merge screen (is it 'vimdiff'?). I do not see any clear instructions or context for what it's comparing. I'm not sure if I should figure this out, or instead try dumping the MySQL DB and importing it into MariaDB. Suggestions?

Thanks!

Chris

Hors ligne

#2 2016-06-06 05:21:24

Franck
Footer de merde
Lieu : Paris
Inscription : 2004-11-09
Site Web

Re : 2.6 to 2.9.1 migration

Hi,

Concerning branches: we have only "major" branches, ie 2.n, and the default one, aka future 2.n+1 (2.10 will be the next). Minor version have not their own branches. So yes, there is only 2.9 branch and it's the last stable one.

About other question, you may try to install an another 2.6 version from the attic (https://download.dotclear.org/attic/) and try to upgrade it to the last one, in order to see if everything goes right or not. I don't know if somebpdy have done such upgrade yet.

Anyway, I will first move everything from the old server to the new one, and next, after checking that everything is ok, upgrade DC

Let us know about your progress


Dotclear addicted since 2004

Hors ligne

#3 2016-07-05 03:59:36

reppep
Membre
Inscription : 2009-11-14

Re : 2.6 to 2.9.1 migration

I recopied DC 2.6 from my live server (CentOS 6) to the new (CentOS 7) server. I dumped the DB from MySQL and imported it into MariaDB on the new server. The Dotclear sites are up, but the admin site has a couple warnings:

Warning: Invalid argument supplied for foreach() in /home/web/dotclear/admin/blog_pref.php on line 72

Warning: Invalid argument supplied for foreach() in /home/web/dotclear/admin/blog_pref.php on line 76

Those lines are in this block:

# Date format combo
$now = time();
$date_formats = unserialize($blog_settings->system->date_formats);
$time_formats = unserialize($blog_settings->system->time_formats);
$date_formats_combo = array('' => '');
foreach ($date_formats as $format) {
    $date_formats_combo[dt::str($format, $now)] = $format;
}
$time_formats_combo = array('' => '');
foreach ($time_formats as $format) {
    $time_formats_combo[dt::str($format, $now)] = $format;
}

Will this be fixed by updating to the 2.9 branch?

Hors ligne

#4 2016-07-05 04:00:38

reppep
Membre
Inscription : 2009-11-14

Re : 2.6 to 2.9.1 migration

I thought I would use "hg update" to switch to the 2.9 branch, but it chokes on lab (https://svn.dotclear.net/lab r3115) & themes subdirectories. How do people normally handle this?

Thanks!

[root@linode2 dotclear]# hg summary
parent: 2638:6aa10d1d44de
Next maintenance release might be 2.6.3
branch: 2.6
commit: 31308 unknown (clean)
update: (current)
[root@linode2 dotclear]# hg status | grep -c '? lab'
31038
[root@linode2 dotclear]# hg status | grep -c '? themes'
250
[root@linode2 dotclear]# hg status | grep -v '? lab' | grep -v '? themes'
? plugins/DISABLED/autoBackup
? plugins/DISABLED/doTwit
? plugins/DISABLED/externalLinks
? plugins/DISABLED/googleTools
? plugins/DISABLED/multiBlogFeeds
? plugins/DISABLED/zoneclearFeedServer
? plugins/cleanConfig
? plugins/emailNotification
? plugins/feedEntries
? plugins/formatting-markdown
? plugins/mkcompat
? plugins/myfavicon
? plugins/quickcat
? plugins/robotsTxt
? plugins/sendToFriend
? plugins/staticCache
? plugins/tweakurls
? plugins/weather
? sqlite/dotclear.sqlite
? sqlite/dotclear.sqlite.20140322.gz
[root@linode2 dotclear]#

Hors ligne

#5 2016-07-07 04:40:08

reppep
Membre
Inscription : 2009-11-14

Re : 2.6 to 2.9.1 migration

The (somewhat counterintuitive) trick was to pull and *then* update. Before that hg kept failing to find rev 2.9.1 in my (stale) local repository. Now "View Source" on my admin page shows Dotclear 2.9.1.

vi ~/.hgrc
hg pull
hg heads
hg update -r 2.9.1

Unfortunately this also broke the blog homepage (lists of posts). I see my themes, with standard left & right nav, but the main center column which should show the list of recent posts, for each of my 6 blogs, instead says:

Document not found

The document you are looking for does not exist.

Interestingly, the individual posts are accessible (at least for the one blog I still have access to), including the 3 post URLs that were previously incorrectly showing that blog's homepage. My httpd logs show 404s, even after "apachectl graceful". I am confused again.

Hors ligne

#6 2016-07-07 04:44:41

reppep
Membre
Inscription : 2009-11-14

Re : 2.6 to 2.9.1 migration

On the bright side, 2.9.1 fixed the foreach warnings, but I still need / to show the blog homepage rather than a 404...

Hors ligne

#7 2016-07-13 04:21:49

reppep
Membre
Inscription : 2009-11-14

Re : 2.6 to 2.9.1 migration

Once I upgraded from v2.6 to the 2.9 branch, all my homepages started returning 404 errors, although specific posts URLs work. I tried jumping to different 2.8/2.6/2.9 tags & branches, and extrapepperoni lost its stylesheet, but the main homepage is still a 404.

What is going on?


Here's the log of a request. Note the incorrect escaped giacomo theme URL.

$CLIENTIP - - [13/Jul/2016:00:15:20 -0400] "GET / HTTP/1.1" 404 10683 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/601.6.17 (KHTML, like Gecko) Version/9.1.1 Safari/601.6.17"
$CLIENTIP - - [13/Jul/2016:00:15:20 -0400] "GET /http%3A%2F%2Fwww.reppep.com%2Fdotclear%2Fthemes%2Fgiacomo/style.css HTTP/1.1" 404 253 "http://www.extrapepperoni.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/601.6.17 (KHTML, like Gecko) Version/9.1.1 Safari/601.6.17"
$CLIENTIP - - [13/Jul/2016:00:15:20 -0400] "GET /default/js/jquery.js HTTP/1.1" 404 10683 "http://www.extrapepperoni.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/601.6.17 (KHTML, like Gecko) Version/9.1.1 Safari/601.6.17"
$CLIENTIP - - [13/Jul/2016:00:15:20 -0400] "GET /default/print.css HTTP/1.1" 404 10683 "http://www.extrapepperoni.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/601.6.17 (KHTML, like Gecko) Version/9.1.1 Safari/601.6.17"
$CLIENTIP - - [13/Jul/2016:00:15:20 -0400] "GET /default/js/jquery.cookie.js HTTP/1.1" 404 10683 "http://www.extrapepperoni.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/601.6.17 (KHTML, like Gecko) Version/9.1.1 Safari/601.6.17"


The symbolic link to index.php looks OK -- which makes sense, as it's serving individual post pages successfully via mod_rewrite.

[root@linode2 www.extrapepperoni.com]# ls -l
total 0
lrwxrwxrwx 1 root root 28 Jun 20 16:21 index.php -> /home/web/dotclear/index.php
[root@linode2 www.extrapepperoni.com]# cat index.php
<?php
# -- BEGIN LICENSE BLOCK ---------------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK -----------------------------------------

if (isset($_SERVER['DC_BLOG_ID'])) {
    define('DC_BLOG_ID',$_SERVER['DC_BLOG_ID']);
} elseif (isset($_SERVER['REDIRECT_DC_BLOG_ID'])) {
    define('DC_BLOG_ID',$_SERVER['REDIRECT_DC_BLOG_ID']);
}else {
    # Define your blog here
    define('DC_BLOG_ID','default');
}

require dirname(__FILE__).'/inc/public/prepend.php';

Hors ligne

Vous n'êtes pas identifié(e).

Pied de page des forums

Sites map