Hello,

sync_files is reporting following error (with -verbose -debug):
...
c3_hosts_up returned : 1
--> Updating files: /etc/modprobe.conf, /opt/env-switcher/etc/switcher.ini, /opt/sync_files/tmp/etc/passwd, /opt/sync_files/tmp/etc/group, /opt/sync_files/tmp/etc/shadow --> Executing: /usr/bin/logger -p syslog.info sync_files found an updated /opt/sync_files/tmp/etc/passwd and is pushing it to the clients Use of uninitialized value in numeric eq (==) at /opt/sync_files/bin/sync_files line 603.
Using c3 to sync /opt/sync_files/tmp/etc/passwd to /etc/passwd
--> filter_file: /opt/sync_files/tmp/etc/passwd /opt/sync_files/tmp/etc/passwd, dist=rhel, img=dell-pe_m600, mydistro=rhel --> Updating temp files (src=/opt/sync_files/tmp/etc/passwd, target=/opt/sync_files/tmp/etc/passwd, distro=rhel, image=dell-pe_m600, basename=passwd)...
--> This is a passwd or group file, parsing...
--> Writing output to /opt/sync_files/tmp/opt/sync_files/tmp/etc/passwd_img_dell-pe_m600 ERROR: Impossible to update a file at /opt/sync_files/bin/sync_files line 467 main::update_temp_file('/opt/sync_files/tmp/etc/passwd', '/opt/sync_files/tmp/etc/passwd', 'rhel', 'dell-pe_m600', 'passwd') called at /opt/sync_files/bin/sync_files line 516 main::filter_file('/opt/sync_files/tmp/etc/passwd', '/opt/sync_files/tmp/etc/passwd', 'dell-pe_m600', 'rhel') called at /opt/sync_files/bin/sync_files line 620 main::update_file('/opt/sync_files/tmp/etc/passwd', 'ARRAY(0x1b195e30)') called at /opt/sync_files/bin/sync_files line 813 ERROR: Impossible to generate the temp file at /opt/sync_files/bin/sync_files line 517 main::filter_file('/opt/sync_files/tmp/etc/passwd', '/opt/sync_files/tmp/etc/passwd', 'dell-pe_m600', 'rhel') called at /opt/sync_files/bin/sync_files line 620 main::update_file('/opt/sync_files/tmp/etc/passwd', 'ARRAY(0x1b195e30)') called at /opt/sync_files/bin/sync_files line 813 ERROR: Impossible to apply the file filter at /opt/sync_files/bin/sync_files line 621.

I fixed it with the following patch:
# diff -u /opt/sync_files/bin/sync_files.old /opt/sync_files/bin/sync_files
--- /opt/sync_files/bin/sync_files.old  2009-10-13 11:47:28.000000000 +0200
+++ /opt/sync_files/bin/sync_files      2009-10-13 12:28:13.000000000 +0200
@@ -32,7 +32,7 @@
 use AppConfig::File;
 use File::Copy;
 use File::Basename;
-use lib "/usr/lib64/systeminstaller";
+use lib "/usr/lib/systeminstaller";
 use SIS::NewDB;
 use SIS::Image;
 use Carp;
@@ -457,7 +457,8 @@
     my $permission = (stat $my_src)[2];

     my $out = $tgt;
-    my $dest = "/opt/sync_files/tmp$out";
+    #my $dest = "/opt/sync_files/tmp$out";
+    my $dest = $out;

     #
     # read target distro/image template as hash


I'm using CentOS 5.3 with oscar-6.0.4-1 (taken from stable repo http://bison.csm.ornl.gov/repos/rhel-$releasever-$basearch). Version of sync-files used is also from there: 2.5.3-2. Sync_files configuration is default one.

Cheers,
emir

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Oscar-users mailing list
Oscar-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-users

Reply via email to