Image replication failing due to syntax error?



  • I’ve set up a storage node and I discovered that the images are not being replicated from the master node. When looking at the log I see the following:

    [09-18-20 9:51:18 am] * Found Image to transfer to 1 node
    [09-18-20 9:51:18 am] | File Name: dev/postinitscripts
    [09-18-20 9:51:18 am] * Not syncing Image between nodes
    [09-18-20 9:51:18 am] | File Name: dev/postinitscripts
    [09-18-20 9:51:18 am] | File or path cannot be reached.
    [09-18-20 9:51:18 am] * Not syncing Image between groups
    [09-18-20 9:51:18 am] | Image Name: Compudopt
    [09-18-20 9:51:18 am] | There are no other members to sync to.
    [09-18-20 9:51:19 am] * Not syncing Image between groups
    [09-18-20 9:51:19 am] | Image Name: macOS 10.13 High Sierra
    [09-18-20 9:51:19 am] | There are no other members to sync to.
    [09-18-20 9:51:19 am] * Not syncing Image between groups
    [09-18-20 9:51:19 am] | Image Name: macOS 10.14 Catalina
    [09-18-20 9:51:19 am] | There are no other members to sync to.
    [09-18-20 9:51:19 am] * Not syncing Image between groups
    [09-18-20 9:51:19 am] | Image Name: Windows 10 Home UEFI
    [09-18-20 9:51:19 am] | There are no other members to sync to.
    [09-18-20 9:51:19 am] * Not syncing Image between groups
    [09-18-20 9:51:19 am] | Image Name: Windows 10 Professional UEFI
    [09-18-20 9:51:19 am] | There are no other members to sync to.
    [09-18-20 9:51:19 am] * Attempting to perform Group -> Nodes image replication.
    [09-18-20 9:51:20 am] * Found Image to transfer to 1 node
    [09-18-20 9:51:20 am] | Image Name: Compudopt
    [09-18-20 9:51:20 am] # Compudopt: File does not exist d1.fixed_size_partitions (ssh-server)
    [09-18-20 9:51:20 am] # Compudopt: File does not exist d1.has_grub (ssh-server)
    [09-18-20 9:51:20 am] # Compudopt: File does not exist d1.mbr (ssh-server)
    [09-18-20 9:51:20 am] # Compudopt: File does not exist d1.minimum.partitions (ssh-server)
    [09-18-20 9:51:20 am] # Compudopt: File does not exist d1.original.fstypes (ssh-server)
    [09-18-20 9:51:20 am] # Compudopt: File does not exist d1.original.swapuuids (ssh-server)
    [09-18-20 9:51:20 am] # Compudopt: File does not exist d1.partitions (ssh-server)
    [09-18-20 9:51:20 am] # Compudopt: File does not exist d1p1.img (ssh-server)
    [09-18-20 9:51:20 am] | CMD: lftp -e 'set xfer:log 1; set xfer:log-file /opt/fog/log/fogreplicator.Compudopt.transfer.ssh-server.log;set ftp:list-options -a;set net:max-retries 10;set net:timeout 30; mirror -c --parallel=20 -R --ignore-time -vvv --exclude ".srvprivate" "/images/Compudopt" "/images/Compudopt"; exit' -u fogproject,[Protected] 192.168.1.152
    [09-18-20 9:51:20 am] | Started sync for Image Compudopt - Resource id #2094204
    sh: 1: Syntax error: "(" unexpected
    [09-18-20 9:51:20 am] * Found Image to transfer to 1 node
    [09-18-20 9:51:20 am] | Image Name: macOS 10.13 High Sierra
    [09-18-20 9:51:21 am] # macOS 10.13 High Sierra: File does not exist d1.mbr (ssh-server)
    [09-18-20 9:51:21 am] # macOS 10.13 High Sierra: File does not exist d1.original.uuids (ssh-server)
    [09-18-20 9:51:21 am] # macOS 10.13 High Sierra: File does not exist d1.partitions (ssh-server)
    [09-18-20 9:51:21 am] # macOS 10.13 High Sierra: File does not exist d1p1.img (ssh-server)
    [09-18-20 9:51:21 am] # macOS 10.13 High Sierra: File does not exist d1p2.img (ssh-server)
    [09-18-20 9:51:21 am] # macOS 10.13 High Sierra: File does not exist d1p3.img (ssh-server)
    [09-18-20 9:51:21 am] | CMD: lftp -e 'set xfer:log 1; set xfer:log-file /opt/fog/log/fogreplicator.macOS 10.13 High Sierra.transfer.ssh-server.log;set ftp:list-options -a;set net:max-retries 10;set net:timeout 30; mirror -c --parallel=20 -R --ignore-time -vvv --exclude ".srvprivate" "/images/macOS10.13HighSierra" "/images/macOS10.13HighSierra"; exit' -u fogproject,[Protected] 192.168.1.152
    [09-18-20 9:51:21 am] | Started sync for Image macOS 10.13 High Sierra - Resource id #2094236
    sh: 1: Syntax error: "(" unexpected
    [09-18-20 9:51:21 am] * Found Image to transfer to 1 node
    [09-18-20 9:51:21 am] | Image Name: macOS 10.14 Catalina
    [09-18-20 9:51:21 am] # macOS 10.14 Catalina: File does not exist d1.mbr (ssh-server)
    [09-18-20 9:51:21 am] # macOS 10.14 Catalina: File does not exist d1.original.uuids (ssh-server)
    [09-18-20 9:51:21 am] # macOS 10.14 Catalina: File does not exist d1.partitions (ssh-server)
    [09-18-20 9:51:21 am] # macOS 10.14 Catalina: File does not exist d1p1.img (ssh-server)
    [09-18-20 9:51:21 am] # macOS 10.14 Catalina: File does not exist d1p2.img (ssh-server)
    [09-18-20 9:51:21 am] | CMD: lftp -e 'set xfer:log 1; set xfer:log-file /opt/fog/log/fogreplicator.macOS 10.14 Catalina.transfer.ssh-server.log;set ftp:list-options -a;set net:max-retries 10;set net:timeout 30; mirror -c --parallel=20 -R --ignore-time -vvv --exclude ".srvprivate" "/images/macOS10.14Catalina" "/images/macOS10.14Catalina"; exit' -u fogproject,[Protected] 192.168.1.152
    [09-18-20 9:51:21 am] | Started sync for Image macOS 10.14 Catalina - Resource id #2094267
    sh: 1: Syntax error: "(" unexpected
    [09-18-20 9:51:21 am] * Found Image to transfer to 1 node
    [09-18-20 9:51:21 am] | Image Name: Windows 10 Home UEFI
    [09-18-20 9:51:22 am] # Windows 10 Home UEFI: File does not exist d1.fixed_size_partitions (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Home UEFI: File does not exist d1.mbr (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Home UEFI: File does not exist d1.minimum.partitions (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Home UEFI: File does not exist d1.original.fstypes (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Home UEFI: File does not exist d1.original.swapuuids (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Home UEFI: File does not exist d1.original.uuids (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Home UEFI: File does not exist d1.partitions (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Home UEFI: File does not exist d1p1.img (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Home UEFI: File does not exist d1p2.img (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Home UEFI: File does not exist d1p3.img (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Home UEFI: File does not exist d1p4.img (ssh-server)
    [09-18-20 9:51:22 am] | CMD: lftp -e 'set xfer:log 1; set xfer:log-file /opt/fog/log/fogreplicator.Windows 10 Home UEFI.transfer.ssh-server.log;set ftp:list-options -a;set net:max-retries 10;set net:timeout 30; mirror -c --parallel=20 -R --ignore-time -vvv --exclude ".srvprivate" "/images/Windows10HomeUEFI" "/images/Windows10HomeUEFI"; exit' -u fogproject,[Protected] 192.168.1.152
    [09-18-20 9:51:22 am] | Started sync for Image Windows 10 Home UEFI - Resource id #2094304
    sh: 1: Syntax error: "(" unexpected
    [09-18-20 9:51:22 am] * Found Image to transfer to 1 node
    [09-18-20 9:51:22 am] | Image Name: Windows 10 Professional UEFI
    [09-18-20 9:51:22 am] # Windows 10 Professional UEFI: File does not exist d1.fixed_size_partitions (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Professional UEFI: File does not exist d1.mbr (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Professional UEFI: File does not exist d1.minimum.partitions (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Professional UEFI: File does not exist d1.original.fstypes (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Professional UEFI: File does not exist d1.original.swapuuids (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Professional UEFI: File does not exist d1.original.uuids (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Professional UEFI: File does not exist d1.partitions (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Professional UEFI: File does not exist d1p1.img (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Professional UEFI: File does not exist d1p2.img (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Professional UEFI: File does not exist d1p3.img (ssh-server)
    [09-18-20 9:51:22 am] # Windows 10 Professional UEFI: File does not exist d1p4.img (ssh-server)
    [09-18-20 9:51:22 am] | CMD: lftp -e 'set xfer:log 1; set xfer:log-file /opt/fog/log/fogreplicator.Windows 10 Professional UEFI.transfer.ssh-server.log;set ftp:list-options -a;set net:max-retries 10;set net:timeout 30; mirror -c --parallel=20 -R --ignore-time -vvv --exclude ".srvprivate" "/images/Windows10ProfessionalUEFI" "/images/Windows10ProfessionalUEFI"; exit' -u fogproject,[Protected] 192.168.1.152
    [09-18-20 9:51:22 am] | Started sync for Image Windows 10 Professional UEFI - Resource id #2094341
    sh: 1: Syntax error: "(" unexpected
    [09-18-20 9:51:22 am] | Sync finished - Resource id #2094204
    [09-18-20 9:51:22 am] | Sync finished - Resource id #2094236
    [09-18-20 9:51:22 am] | Sync finished - Resource id #2094267
    [09-18-20 9:51:22 am] | Sync finished - Resource id #2094304
    [09-18-20 9:51:22 am] | Sync finished - Resource id #2094341
    

  • Senior Developer

    @choppaholic26 said in Image replication failing due to syntax error?:

    Will running a new install script do an in-place upgrade without breaking anything?

    That’s what we try to achieve. But as you know there can always be special cases. So we cannot promise an upgrade with no issues. Make sure you have a backup copy of your database and the images any you can re-build a FOG server in no time.

    Don’t get me wrong, I am not saying upgrades don’t work very well. I just can give you an assurance! In most cases (no manual modifications, mostly standard settings) the upgrade runs through without any hickup whatsoever. And even if you bump into an issue we are here to help you. So don’t worry about it. Take a backup copy and go for it.



  • @Sebastian-Roth said in Image replication failing due to syntax error?:

    If I am correct you should be able to fix this by manually applying this minimal code change in /var/www/html/fog/lib/service/fogservice.class.php:

    That did the trick!

    I’ll look into upgrading the FOG server. Will running a new install script do an in-place upgrade without breaking anything?


  • Senior Developer

    @choppaholic26 Further searching in the forums and github commits I might have found what is causing this issue in your case.

    If I am correct you should be able to fix this by manually applying this minimal code change in /var/www/html/fog/lib/service/fogservice.class.php: https://github.com/FOGProject/fogproject/commit/b772099872c0a414853d1c5b5703819b3d6ea6cc

    Make sure you restart the service after the change: systemctl restart FOGImageReplicator.service

    If you problem is fixed by this you might consider updating your FOG server at some point…


  • Senior Developer

    @choppaholic26 said in Image replication failing due to syntax error?:

    [09-18-20 9:51:20 am] | Started sync for Image Compudopt - Resource id #2094204
    sh: 1: Syntax error: "(" unexpected
    

    There seems to be an issue with calling the lftp command to sync the files. I have never see this happen.

    Can you please provide more information on your system:

    • Linux OS and version number?
    • FOG version
    • Specific modification except installing FOG?

Log in to reply
 

357
Online

7.5k
Users

14.6k
Topics

137.3k
Posts