[LON-CAPA-admin] Server migration

Guy Albertelli II guy at albertelli.com
Thu Jan 25 13:07:01 EST 2007

Hi Stefan,

> We still have issues with the LON-CAPA migration from our old SLES9
> machine to the new FC5 machine.
> We successfully managed these things:
> - Install LON-CAPA 2.3.0
> - Configure https and LDAP
> - Transfer data with rysnc as suggested before
> - Transfer account files (/etc/passwd, /etc/shadow, /etc/group,
> /etc/gshadow)
> - Adjust account files (*1)
> - Again execute .../loncapa-2.3.0/UPDATE
> (standalone, different IP address, different hostname, but same domain
> name and same server name: fhwf, fhwfl1)
> (*1):
> I was told that FC5 has different internal Linux users and that we could
> not just copy all account files from the old SLES9 machine to the new
> FC5 machine. The helping hand from our network team changed the files as
> they seemed to be changed for him. Not sure about this.
> Do you have a hint how we could handle this?

I'll assume he was refering to the uid's of the system accounts.

Probably best would be to copy and paste just the lines of the
accounts you care about and not the system ones.

> (Maybe another) problem with the login / roles:
> Authentication with different users via https and LDAP is possible
> without any problems, but after the login each user we checked had no
> roles assigned at all.
> Wrong file permissions? Something missing?

My guess is that the new machine a 64-bit x86 machine and the
old machine is a 32-bit x86 machine?

If so you'll need to (on the new server) run the script


after the rsync and before starting up the webserver/lon-capa.

(Before running the script change line 82 in it from 
    my $dir = $perlvar{'lonUsersDir'}.'/temp/y/';
    my $dir = $perlvar{'lonUsersDir'};

guy at albertelli.com   0-7-0-9-27,137

More information about the LON-CAPA-admin mailing list