[CDash] Upgrading from 2.0.2 to 2.4.0
François Bertel
fbopensource at gmail.com
Wed Jul 12 02:59:16 UTC 2017
Hi Zack,
Thanks for the explanation.
I was confused about my old setup (I have not dug into it for years). My
2.0.2 setup is actually only involving /var/www/CDash, everything is there,
including the minimal config.local.php. Forget everything I said about
whatever is in my home directory, this was my first try a long time ago.
Unfortunately, I am not able to log as administrator in the new CDash (step
10 below)
Now here is what I did to move to 2.4.0:
1. Stop apache2: sudo systemctl stop apache2
2. Save the CDash DB: sudo -u postgres pg_dump -U postgres cdash >
cdashbackup.sql
3. Move the old cdash: cd /var/www ; mv CDash CDashOld
4. unpack cdash 2.4.0 at /var/www/CDashRoot, making sure the owner and
group are www-data recursively (to match the values in /etc/apache2/envvars
APACHE_RUN_USER and APACHE_RUN_GROUP)
5. Copy the old minimal /var/www/CDashOld/cdash/config.local.php into
/var/www/CDashRoot/config/
6. Create a symlink /var/www/CDash->/var/www/CDashRoot/public
7. Restart apache2: sudo systemctl start apache2
8. Open the CDash home page, which redirects to CDash/viewProjects.php (by
the way, the open page says 2.5.0 not 2.4.0)
9. As documented on the wiki, I have the page with the warning message:The
current database schema doesn't match the version of CDash you are running,
upgrade your database structure in the Administration/CDash maintenance
panel of CDash. So far so good.
10. I click on "Login" in the upper left corner to be able to log as
administrator, which redirects to CDash/user.php but this is a totally
empty page so I cannot proceed further as I cannot even log in as
administrator... What am I missing here?
Best,
--
François Bertel
On Sun, Jul 9, 2017 at 12:54 AM, François Bertel <fbopensource at gmail.com>
wrote:
> Hello,
>
> I am currently running CDash 2.0.2 and I would like to upgrade to 2.4.0.
> I am using Ubuntu 17.04 with postgresql 9.6.3.
>
> I have some questions about steps 5,6,7 as well as the new "public"
> hierarchy and
> the required "public" symlink.
>
> Side note: https://www.cdash.org/download/ is still saying that 2.2.3 is
> the
> current stable release but I downloaded CDash-2.4.0.zip from the wiki:
> http://public.kitware.com/Wiki/File:CDash-2-4-0.zip
>
> I extracted the archive in my home directory at:
>
> ~/install/cdash/cdash-2.4.0
>
> therefore the root directory is at: ~/install/cdash/cdash-2.4.0/CDash
>
> I see that composer.phar is already part of the archive, I assume that I
> don't
> have to apply step 5 of the upgrade, correct?
>
> https://public.kitware.com/Wiki/CDash:Upgrade#Upgrading_CDash
>
> "step 5: Download composer (if you haven't already) and run php
> composer.phar install --no-dev --optimize-autoloader."
>
> Same question for step 6 (npm install) and 7 (gulp). Are they just here
> for people using git instead or are they mandatory when using the zip
> archive as well?
>
> If I need to follow step 6, where do I run "npm install" from? Is is from
> ~/install/cdash/cdash-2.4.0/CDash for me?
>
> (Note that I installed the Ubuntu packages for composer and npm, the
> composer package does not provide a composer.phar but /usr/bin/composer
> instead).
>
> Last question, where do I setup the symlink to public and do I have to do
> it? To help you answer my question, here are some details about my current
> 2.0.2 setup:
>
> The 2.0.2 is extracted here:
> ~/install/cdash/CDash-2-0-2 where I have a custom config file in
> ./cdash/config.local.php
>
> Therefore I will copy my config.local.php to ~/install/cdash/cdash-2.4.0/CDash/config/
> , right?
>
> My /var/www looks like this:
> drwxr-xr-x 4 root root 152 Apr 27 2014 ./
> drwxr-xr-x 16 root root 432 Apr 21 2016 ../
> drwx------ 17 www-data www-data 4912 Apr 26 2016 CDash/
> drwxr-xr-x 2 root root 48 Apr 3 2014 html/
> -rw-r--r-- 1 root root 177 Oct 19 2013 index.html
> -rw------- 1 www-data www-data 20 Mar 2 2012 test.php
>
> In /etc/apache2/,
>
> ./sites-enabled/default-ssl.conf and ./sites-enabled/000-default.conf
> are symlink to files in ./sites.available both having DocumentRoot pointing
> to /var/www
>
> ./conf-enabled/cdash.conf is a symlink to ./conf-available/cdash.conf
> which is just:
> <Directory /home/fbertel/install/cdash/CDash-2-0-2/>
> Order allow,deny
> Allow from all
> </Directory>
>
> Therefore, I will change it to:
> <Directory /home/fbertel/install/cdash/cdash-2.4.0/CDash/>
> Order allow,deny
> Allow from all
> </Directory>
>
> right? Or is it where I should use "public" instead with the following
> statement
> (and not use a symlink) ?
>
> <Directory /home/fbertel/install/cdash/cdash-2.4.0/CDash/public/>
> Order allow,deny
> Allow from all
> </Directory>
>
> Best,
>
> --
> François Bertel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cdash/attachments/20170711/1d793007/attachment-0001.htm>
More information about the CDash
mailing list