Hi Taco,
just tested the new modified:
5100R-cmu-2.59-0BQ10.centos4.noarch.rpm
-> errors during import:
/home/cmu/cmu.log
--snip--
Adjust: Global symbol requires explicit package name
at /usr/cmu/scripts/RaQ550adjust.pl line 244.
Adjust: Global symbol requires explicit package name
at /usr/cmu/scripts/RaQ550adjust.pl line 245.
Adjust: Execution of /usr/cmu/scripts/RaQ550adjust.pl aborted due to
compilation errors.
Adjust: Global symbol requires explicit package name
at /usr/cmu/scripts/5100Radjust.pl line 244.
Adjust: Global symbol requires explicit package name
at /usr/cmu/scripts/5100Radjust.pl line 245.
Adjust: Execution of /usr/cmu/scripts/5100Radjust.pl aborted due to
compilation errors.
...
ScanIn: Calling /usr/cmu/scripts/5100Rscanin.pl -
f /home/restore/cmu.xml.5370
ScanIn: WARN: orderVsites lost a vsite going with random order
ScanIn: INFO: Creating virtual site: www.domain.com
ScanIn: Error2: = {
ScanIn: '0' => {
ScanIn: 'quota' => '[[base-cce.unknownAttr]]',
ScanIn: 'ftpusers' => '[[base-cce.unknownAttr]]',
ScanIn: 'ftpquota' => '[[base-cce.unknownAttr]]',
ScanIn: 'dns_auto' => '[[base-cce.invalidData]]',
ScanIn: 'ssl' => '[[base-cce.unknownAttr]]',
ScanIn: 'cgi' => '[[base-cce.unknownAttr]]',
ScanIn: 'userlist_range' => '[[base-
cce.unknownAttr]]',
ScanIn: 'php' => '[[base-cce.unknownAttr]]',
ScanIn: 'apop' => '[[base-cce.unknownAttr]]',
ScanIn: 'userlist_sort' => '[[base-
cce.unknownAttr]]',
ScanIn: 'suspend' => '[[base-cce.invalidData]]',
ScanIn: 'ftp' => '[[base-cce.unknownAttr]]',
ScanIn: 'casp' => '[[base-cce.unknownAttr]]',
ScanIn: 'fpx' => '[[base-cce.unknownAttr]]',
ScanIn: 'ssi' => '[[base-cce.unknownAttr]]',
ScanIn: 'shell' => '[[base-cce.unknownAttr]]'
ScanIn: }
ScanIn: };
ScanIn:
ScanIn: INFO: ERROR: Vsite www.domain.com was not created properly
--snip--
Using the stable
5100R-cmu-2.56-0BQ7.centos4.noarch.rpm
works fine.
Whats wrong? I don't want to switch the whol server to "testing"-repos,
so which pkgs are involved?
Thanx in advance
Roman
On Sun, 2006-04-16 at 22:39 +0100, Taco Scargo wrote:
> Hisao (and other interested parties),
>
> After reading some user comments about cmu not importing siteadmins,
> I spent quite some time figuring out why CMU did not do what it should do
> (when importing a RaQ4 cmu export).
> After adding some additional debugging info cmu suddenly started working.
> After I removed the additional 'warn' statements, it stopped working again.
>
> I finally found out (by removing lines one by one) that the problem was
> introduced due to the fact that the 5100Radjust.pl script converts a raq4
> cmu.xml file to a raq550 compatible cmu.xml file.
>
> To be precise:
>
> <admin value = "t"/>
>
> needs to be converted to:
>
> <capLevels>
> <cap>siteAdmin</cap>
> </capLevels>
>
> The current code forces the value $oldVal to become a string, whereas the
> data could become an array (<cap> inside of <capLevels>).
>
> By commenting out the my $oldVal everything works as expected.
>
> See the diff -u below:
>
> --- 5100Radjust.pl.orig 2006-04-16 22:14:16.000000000 +0200
> +++ 5100Radjust.pl 2006-04-16 23:15:39.000000000 +0200
> @@ -238,7 +238,7 @@
> }
> if(defined $remapData{$class}) {
> my $remapHash = $remapData{$class};
> - my $oldVal;
> +# my $oldVal;
> foreach my $name (keys %{ $remapHash }) {
> next if(!defined $hash->{$name});
> $oldVal = $hash->{$name};
>
>
> Hisao, can you please implement this in the cmu code and push out an updated
> CMU rpm ?
>
> If other people have encountered other problems with cmu, please let me know
> so I can have a look at these problems as well. Due to the debugging I did
> this weekend I think I am quite 'into cmu' now....
>
> Thanks,
>
> Taco
>