Hi,

when running oscar-config --startover, i was greated with the following 
error:

==================
[snip]
[INFO] http://bison.csm.ornl.gov/repos/unstable/rhel-5-i386 is in cache
Need to remove the following packages: opkg-apitest                    
Removing packages from /:                                              
[ opkg-apitest ]                                                       
Array: 1 element(s)                                                    
Repository Manager Status:                                             
        Repos: 
http://mirror.centos.org/centos/5.3/os/i386/,http://bison.csm.ornl.gov/repos/unstable/rhel-5-
i386
        Distro: centos-5-i386                                                   
                                
        Format: rpm                                                             
                                
Packman status:                                                                 
                                
        Format: RPM                                                             
                                
        Associated distro: centos-5-i386                                        
                                
        ChRoot: /                                                               
                                
        Number of repos: 2                                                      
                                
        List of repos: http://bison.csm.ornl.gov/repos/unstable/rhel-5-
i386, http://mirror.centos.org/centos/5.3/os/i386/
Reseting ODA                                                                    
                                         
--> INFO: no //etc/lsb-release file                                             
                                         

Opening file /usr/lib/perl5/vendor_perl/5.8.8/OSCAR/OCA/OS_Settings/default
Opening file /usr/lib/perl5/vendor_perl/5.8.8/OSCAR/OCA/OS_Settings/rhel   
Opening file /usr/lib/perl5/vendor_perl/5.8.8/OSCAR/OCA/OS_Settings/rhel5  
Opening file /usr/lib/perl5/vendor_perl/5.8.8/OSCAR/OCA/OS_Settings/linux-
i386-centos-5-3
Called getitem with mysql_daemon and returning /etc/init.d/mysqld               
         
$VAR1 = {                                                                       
         
          'ssh_daemon' => '/etc/init.d/sshd',                                   
         
          'ssh_package' => 'sshd',                                              
         
          'dhcp_configfile' => '/etc/dhcpd.conf',                               
         
          'init' => '/etc/init.d ',                                             
         
          'portmap_package' => 'portmap',                                       
         
          'monitord_daemon' => '/etc/init.d/systemimager-server-monitord',      
         
          'exports_file' => '/etc/exports',                                     
         
          'dhcp_daemon' => '/etc/init.d/dhcpd',                                 
         
          'nfs_package' => 'nfs',                                               
         
          'mysql_daemon' => '/etc/init.d/mysqld'
        };
--> Executing: /etc/init.d/mysqld restart
Stopping MySQL:                                            [  OK  ]
Starting MySQL:                                            [  OK  ]
Dropping the OSCAR databaseDatabase "oscar" dropped
Removing ODA prereqs
-->
Dealing with Prereq oda
--> INFO: no //etc/lsb-release file

--> Prereq status for centos, 5, i386
found matching block [centos:.*:.*]
--> Prereqs status (/usr/share/oscar/prereqs/oda/):
-->     mysql:                  is installed
-->     perl-DBD-MySQL:                         is installed
-->     perl-DBI:                       is installed
-->     mysql-server:                   is installed
--> oda is not installed.
Removing /usr/lib/perl5/vendor_perl/5.8.8/OSCAR/oda.pm
[INFO] We should remove the config files in /tftpboot but this is not yet 
implemented
ERROR: Impossible to execute stage 1 of the start over process at 
/usr/bin/oscar-config line 220
ERROR: Impossible to start over, please bootstrap OSCAR again to try to 
recover at /usr/bin/oscar-config line 221.
[r...@buster ~]#

==================

with the attached patch this error does not occur.
see log below

==================
        List of repos: http://bison.csm.ornl.gov/repos/unstable/rhel-5-
i386, http://mirror.centos.org/centos/5.3/os/i386/
Reseting ODA                                                                    
                                         
--> INFO: no //etc/lsb-release file                                             
                                         

Opening file /usr/lib/perl5/vendor_perl/5.8.8/OSCAR/OCA/OS_Settings/default
Opening file /usr/lib/perl5/vendor_perl/5.8.8/OSCAR/OCA/OS_Settings/rhel   
Opening file /usr/lib/perl5/vendor_perl/5.8.8/OSCAR/OCA/OS_Settings/rhel5  
Opening file /usr/lib/perl5/vendor_perl/5.8.8/OSCAR/OCA/OS_Settings/linux-
i386-centos-5-3
Called getitem with mysql_daemon and returning /etc/init.d/mysqld               
         
$VAR1 = {                                                                       
         
          'ssh_daemon' => '/etc/init.d/sshd',                                   
         
          'ssh_package' => 'sshd',                                              
         
          'dhcp_configfile' => '/etc/dhcpd.conf',                               
         
          'init' => '/etc/init.d ',                                             
         
          'portmap_package' => 'portmap',                                       
         
          'monitord_daemon' => '/etc/init.d/systemimager-server-monitord',      
         
          'exports_file' => '/etc/exports',                                     
         
          'dhcp_daemon' => '/etc/init.d/dhcpd',                                 
         
          'nfs_package' => 'nfs',
          'mysql_daemon' => '/etc/init.d/mysqld'
        };
--> Executing: /etc/init.d/mysqld restart
Stopping MySQL:                                            [  OK  ]
Starting MySQL:                                            [  OK  ]
Dropping the OSCAR databaseDatabase "oscar" dropped
Removing ODA prereqs
-->
Dealing with Prereq oda
--> INFO: no //etc/lsb-release file

--> Prereq status for centos, 5, i386
found matching block [centos:.*:.*]
--> Prereqs status (/usr/share/oscar/prereqs/oda/):
-->     mysql:                  is installed
-->     perl-DBD-MySQL:                         is installed
-->     perl-DBI:                       is installed
-->     mysql-server:                   is installed
--> oda is not installed.
Removing /usr/lib/perl5/vendor_perl/5.8.8/OSCAR/oda.pm
[INFO] We should remove the config files in /tftpboot but this is not yet 
implemented
[r...@buster ~]#
==================

Index: Startover.pm
===================================================================
--- Startover.pm	(revision 8678)
+++ Startover.pm	(working copy)
@@ -197,7 +197,8 @@
     # Remove config file in /tftpboot
     print "[INFO] We should remove the config files in /tftpboot but this is ".
           "not yet implemented\n";
-    
+
+    return 0; 
 }
 
 sub start_over () {

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Oscar-users mailing list
Oscar-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-users

Reply via email to