Forum OpenACS Q&A: Recomendations for upgrade my system (5.1 to 5.5)

Hi!

Although my production server is working fine, I would like to improve my system (in a Debian Linux Box) and take advantage of upgrading all components and to be better prepared for future improvements. So I want to upgrade to OpenACS last version (5.5.1) and this roughly means upgrade:
- Openacs 5.1.5 to 5.5.1
- Aolserver 4.0.10 to 4.5
- Postgres 7.4 to 8.4

As I have been reading (Upgrade Question) it seems to be that the best approach should be:
- Upgrade Openacs since Install from Repository (MYSITE/acs-admin/install/)
- Upgrade Postgres
- Upgrade Aolserver

BUT the main problem is upgrade postgresql between 7.4 and 8.4 because of the Compability Matrix

I have some custom code but I don't mind if I have to change it manually. It would be fine a bare installation

So, is it possible to upgrade directly? Anybody has experience doing this before?

Thanks in advance

Collapse
Posted by Torben Brosten on
Cesareo Garcia Rodicio,

To minimize hassles, upgrade the components of the system in parallel. The compatibility matrix provides paths that work using complete compatibility.

For example consider this upgrade path:
from Openacs 5.1.5, PG 7.4, Aolserver 4.0.10
upgrade OpenACS to 5.2
verify system works
upgrade PostgreSQL to 8.2
verify system works
upgrade AOLserver to 4.5
verify system works
upgrade OpenACS to 5.5
verify system works

This is the path I've used..

cheers,

Torben

Hi Torben!

Thanks, I was hoping to do it directly.

But If I click "upgrade system" or "install software" from Admin Panel I found this error:

" ...
Couldn't get the package list. Please try again later.
while executing
"error "Couldn't get the package list. Please try again later.""
(procedure "apm_get_package_repository" line 19)
invoked from within
"apm_get_package_repository -repository_url $repository_url -array repository"
("uplevel" body line 30)

... " (It is a Server Error of https://openacs.org/repository )

So, do I have to do it manually?

As you said, I'll upgrade my system in parallel.

Regards,
Cesáreo

Collapse
Posted by Torben Brosten on
Cesáreo,

That error means the repository at https://openacs.org/repository was unavailable for your system to grab a copy...

and to try again later.

The repository is available now. Perhaps it was rebuilding when you tried before.

Also, make sure to keep backups along the way, so you can reverse the last step or two if you need to.

cheers,

Torben

Torben,

Mmm, it's unavailable again (I'll keep trying). And yes, backup is our friend 😊

I'll try to do it this weekend. Thanks so much for your useful and quick help

Cheers,
Cesáreo

Try this procedure:

https://openacs.org/doc/upgrade-5-0-dot.html

YOu need to do two upgrade due to database compatibility.

Since you are on 5.1 with postgresql 7.x you can upgrade to 5.2. THen upgrade your database to 8.1. Then upgrade OpenACS to 5.5 and finally upgrade your database to 8.3.

Hi Dave

I think that with 8.1 (I had read compatibility matrix) should work. I thought repository come from CVS (automatic upgrade) but you are right, I have to pass trough 8.2 (to get 8.4)

I'll try, then:

- Upgrade to 5.2 (But repository is not working yet)
- Dump DB from pg7.4 (export database)
- Import DB to pg 8.1 (installed previusly)
- Test Oacs 5.2 with postgres 8.1
- Upgrade to oacs 5.5
- Test Oacs 5.5 with postgres 8.3 (actually I'll try 8.4)
- Test Oacs 5.5 with aolserver 5.5

I'll post here my notes and experience

Thanks

I don't think repository is what you want.

You should probably check out from CVS.

Collapse
Posted by Jim Lynch on
The matrix says pg-8.3 for openacs 5.5... while pg 8.4 might work, 8.3 is -known- to work. Dunno about lately, but consider that there may be a reason why pg 8.4 is not mentioned yet.
Collapse
Posted by Jim Lynch on
(that was supposed to be a reply to #7)
Hi!

The problem with the respository was with the URL of /acs/admin/install ...:

https://www.misite.com/acs-admin/install/install?repository_url=http%3a%2f%2fopenacs.org%2frepository%2f5-1%2f&upgrade_p=1

This gives an Server Error because there is no www.openacs.org/repository/5-1/. I had to change 5-1 by 5-2

So the right URL is:

https://www.misite.com/acs-admin/install/install?repository_url=http%3a%2f%2fopenacs.org%2frepository%2f5-2%2f&upgrade_p=1

And it works

Cheers