api error getting tasks



  • 1st: Thank you very much again for the continued work on CD!

    In short

    I cannot start tasks to deploy and I cannot deploy on demand.
    Tasks seem to have troubles, there are shown 31 tasks as number, but nowhere is a task and no pxe file.

    I will start to try to find the problem, but from the current exception, I don't know where to look.
    Any hint where to look would be great already.

    The environment

    Today I finally felt to upgrade from 1.2.x.
    I tried a direct upgrade to 1.4 just to see what happens, I can confirm it was not working (was expected), I could not login, gives a token error, so just to report what happens.

    Next I restored my snaptshot and now upgraded to 1.3.0 (no additional updates!).
    Then upgrade to 1.4.0 + fixed dll for USB.

    Login is OK and all computers and images are there.

    Server configuration
    Server IP: 10.x.x.x
    API Port: 80
    http://10.x.x.x/clonedeploy/
    TFTP Server IP: 10.x.x.x
    TFTP Path: C:\Program Files\clonedeploy\tftpboot\

    Distribution Points

    Default (unused)
    Primary: 0
    Queuesize: 99

    Dist2
    Primary: 1
    Queuesize: 99

    ! Now comes something special !

    PXE Settings:
    Using Proxy DHCP: Yes
    PXE Mode: ----
    Proxy BIOS PXE Mode: pxelinux
    Proxy Efi32 PXE Mode: syslinux
    Proxy Efi64 PXE Mode: syslinux

    DHCP (PFSense Appliance)
    Next Server: 10.x.x.x
    Default BIOS file name: proxy/bios/pxeboot.0
    UEFI 32 bit file name: proxy/efi32/ipxe.efi
    UEFI 64 bit file name: proxy/efi64/ipxe.efi

    This was working fine before the update.

    The Problem

    Now I have the following problems with Tasks.

    If I go to the Tasks in the Portal, I see on the upper right corner a number of 32 Total Tasks(s) <-- small spelling error by the way?

    But there is no active task anywhere to see.
    And clicking "Cancel All Tasks" dosn't change anything.

    If I then go to "Start Computer Task" and try to deploy one of my computers it reports:

    "This Computer Is Already Part Of An Active Task"
    

    Another Problem is:
    If I boot a computer without an active task and do an on demand deploy from the pxe console menu, it loops with:

    Queue is full, current position null

    CloneDeployFE LOG

    cutted:

    2019-03-15 16:59:41,642 [33] ERROR CloneDeploy_ApiCalls.ApiRequest {"Message":"An error has occurred.","ExceptionMessage":"The cast to value type 'System.Int32' failed because the materialized value is null.
    2019-03-15 17:00:11,987 [20] ERROR CloneDeploy_ApiCalls.ApiRequest Could Not Complete API Request.  The Response Produced An Error.api/ActiveImagingTask/GetActiveTasks/                                       
    2019-03-15 17:00:11,987 [20] ERROR CloneDeploy_ApiCalls.ApiRequest {"Message":"An error has occurred.","ExceptionMessage":"The cast to value type 'System.Int32' failed because the materialized value is null.
    2019-03-15 17:00:12,018 [20] ERROR CloneDeploy_ApiCalls.ApiRequest Could Not Complete API Request.  The Response Produced An Error.api/ActiveImagingTask/GetActiveTasks/                                       
    2019-03-15 17:00:12,018 [20] ERROR CloneDeploy_ApiCalls.ApiRequest {"Message":"An error has occurred.","ExceptionMessage":"The cast to value type 'System.Int32' failed because the materialized value is null.
    2019-03-15 17:00:22,268 [13] ERROR CloneDeploy_ApiCalls.ApiRequest Could Not Complete API Request.  The Response Produced An Error.api/ActiveImagingTask/GetActiveTasks/                                       
    2019-03-15 17:00:22,268 [13] ERROR CloneDeploy_ApiCalls.ApiRequest {"Message":"An error has occurred.","ExceptionMessage":"The cast to value type 'System.Int32' failed because the materialized value is null.
    

    full message:

    {"Message":"An error has occurred.","ExceptionMessage":
    "The cast to value type 'System.Int32' failed because the materialized value is null. Either the result type's generic parameter or the query must use a nullable type.","ExceptionType":
    "System.InvalidOperationException","StackTrace":"   
    at System.Data.Entity.Core.Common.Internal.Materialization.Shaper.ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal)\r\n   
    at lambda_method(Closure , Shaper )\r\n   
    at System.Data.Entity.Core.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper)\r\n   
    at System.Data.Entity.Core.Common.Internal.Materialization.Shaper`1.SimpleEnumerator.MoveNext()\r\n   
    at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n   
    at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n   
    at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()\r\n   
    at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n   
    at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)\r\n   
    at lambda_method(Closure , Object , Object[] )\r\n   
    at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_1.<GetExecutor>b__3(Object instance, Object[] methodParameters)\r\n   
    at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   
    at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   
    at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   
    at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   
    at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()"}
    


  • In the old CloneDeploy-Path I have a lot of pxe files named from the mac-address in:
    C:\Program Files (x86)\clonedeploy\tftpboot\proxy\bios\pxelinux.cfg
    C:\Program Files (x86)\clonedeploy\tftpboot\proxy\efi32\pxelinux.cfg
    C:\Program Files (x86)\clonedeploy\tftpboot\proxy\efi64\pxelinux.cfg\

    for permanent deployments etc, but now there is not a single one in the new folders.
    Maybe I did a modification or symlink that I can't remember anymore or it was just working fine like this ... I really don't know.

    But where is the count of 31 tasks coming from and where is the code where it can't convert an int32 from null?

    File List:

    I copied over some of my old kernels and initrds but not overwriting something existing.

    FullName                                                                                                                                      
    --------                                                                                                                                      
    C:\Program Files\CloneDeploy\tftpboot\bg.png                                                                                                                                                                                            
    C:\Program Files\CloneDeploy\tftpboot\DO_NOT_MODIFY.txt                                                                                       
    C:\Program Files\CloneDeploy\tftpboot\grub.exe                                                                                                
    C:\Program Files\CloneDeploy\tftpboot\grub\fonts\unicode.pf2                                                                                  
    C:\Program Files\CloneDeploy\tftpboot\grub\grub.cfg                                                                                           
    C:\Program Files\CloneDeploy\tftpboot\grub\x86_64-efi\password_pbkdf2.mod                                                                     
    C:\Program Files\CloneDeploy\tftpboot\grub\x86_64-efi\regexp.mod                                                                              
    C:\Program Files\CloneDeploy\tftpboot\grubx64.efi                                                                                             
    C:\Program Files\CloneDeploy\tftpboot\images\64config.txt                                                                                     
    C:\Program Files\CloneDeploy\tftpboot\images\64defaultconfig.txt                                                                              
    C:\Program Files\CloneDeploy\tftpboot\images\debug.xz                                                                                                                                     
    C:\Program Files\CloneDeploy\tftpboot\images\initrd.xz                                                                                        
    C:\Program Files\CloneDeploy\tftpboot\images\initrdhfcldd10x64.xz                                                                             
    C:\Program Files\CloneDeploy\tftpboot\images\initrdhfcldd12x64.xz                                                                             
    C:\Program Files\CloneDeploy\tftpboot\images\initrdhfcldd13x64.xz                                                                             
    C:\Program Files\CloneDeploy\tftpboot\images\initrdhfcldd14x64.xz                                                                             
    C:\Program Files\CloneDeploy\tftpboot\images\initrdhfcldd9x64.xz                                                                              
    C:\Program Files\CloneDeploy\tftpboot\images\initrdvlan.xz                                                                                    
    C:\Program Files\CloneDeploy\tftpboot\kernels\3.18.1                                                                                          
    C:\Program Files\CloneDeploy\tftpboot\kernels\3.18.102x64vlan                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\kernels\3.18.1x64                                                                                       
    C:\Program Files\CloneDeploy\tftpboot\kernels\3.19.6x64_vlan                                                                                  
    C:\Program Files\CloneDeploy\tftpboot\kernels\3.19.8x64_test1                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\kernels\3.19.8x64_vlan_no_module                                                                        
    C:\Program Files\CloneDeploy\tftpboot\kernels\3.19.8x86_64_vlan                                                                               
    C:\Program Files\CloneDeploy\tftpboot\kernels\3.19.8x86_vlan                                                                                  
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.10.1                                                                                          
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.10.1x64                                                                                       
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.13.2                                                                                          
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.13.2x64                                                                                       
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.15.11x64                                                                                      
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.15.11x64_vlan_no_module                                                                       
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.18.5x64                                                                                       
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.20.10                                                                                         
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.20.10x64                                                                                      
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.4.1                                                                                           
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.4.1x64                                                                                        
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.4.3                                                                                           
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.4.3x64                                                                                        
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.5                                                                                             
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.5x64                                                                                          
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.9.8                                                                                           
    C:\Program Files\CloneDeploy\tftpboot\kernels\4.9.8x64                                                                                        
    C:\Program Files\CloneDeploy\tftpboot\kernels\5.0.rc7                                                                                         
    C:\Program Files\CloneDeploy\tftpboot\kernels\5.0.rc7x64                                                                                      
    C:\Program Files\CloneDeploy\tftpboot\ldlinux.c32                                                                                             
    C:\Program Files\CloneDeploy\tftpboot\libcom32.c32                                                                                            
    C:\Program Files\CloneDeploy\tftpboot\libutil.c32                                                                                             
    C:\Program Files\CloneDeploy\tftpboot\lpxelinux.0                                                                                             
    C:\Program Files\CloneDeploy\tftpboot\memdisk                                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\bg.png                                                                                       
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\images\64config.txt                                                                          
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\images\64defaultconfig.txt                                                                   
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\images\debug.xz                                                                                                              
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\images\initrd.xz                                                                             
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\images\initrdhfcldd10x64.xz                                                                  
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\images\initrdhfcldd12x64.xz                                                                  
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\images\initrdhfcldd13x64.xz                                                                  
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\images\initrdhfcldd14x64.xz                                                                  
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\images\initrdhfcldd9x64.xz                                                                   
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\images\initrdvlan.xz                                                                         
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\3.18.1                                                                               
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\3.18.102x64vlan                                                                      
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\3.18.1x64                                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\3.19.6x64_vlan                                                                       
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\3.19.8x64_test1                                                                      
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\3.19.8x64_vlan_no_module                                                             
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\3.19.8x86_64_vlan                                                                    
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\3.19.8x86_vlan                                                                       
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.10.1                                                                               
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.10.1x64                                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.13.2                                                                               
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.13.2x64                                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.15.11x64                                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.15.11x64_vlan_no_module                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.18.5x64                                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.20.10                                                                              
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.20.10x64                                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.4.1                                                                                
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.4.1x64                                                                             
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.4.3                                                                                
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.4.3x64                                                                             
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.5                                                                                  
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.5x64                                                                               
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.9.8                                                                                
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\4.9.8x64                                                                             
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\5.0.rc7                                                                              
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\kernels\5.0.rc7x64                                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\ldlinux.c32                                                                                  
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\libcom32.c32                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\libutil.c32                                                                                  
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\lpxelinux.0                                                                                  
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\pxelinux.0                                                                                   
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\pxelinux.cfg\default                                                                         
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\pxelinux.cfg\default.ipxe                                                                    
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\undionly.kpxe                                                                                
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\vesamenu.c32                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\bg.png                                                                                      
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\images\64config.txt                                                                         
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\images\64defaultconfig.txt                                                                  
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\images\debug.xz                                                                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\images\initrd.xz                                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\images\initrdhfcldd10x64.xz                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\images\initrdhfcldd12x64.xz                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\images\initrdhfcldd13x64.xz                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\images\initrdhfcldd14x64.xz                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\images\initrdhfcldd9x64.xz                                                                  
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\images\initrdvlan.xz                                                                        
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\ipxe.efi                                                                                    
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\3.18.1                                                                              
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\3.18.102x64vlan                                                                     
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\3.18.1x64                                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\3.19.6x64_vlan                                                                      
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\3.19.8x64_test1                                                                     
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\3.19.8x64_vlan_no_module                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\3.19.8x86_64_vlan                                                                   
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\3.19.8x86_vlan                                                                      
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.10.1                                                                              
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.10.1x64                                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.13.2                                                                              
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.13.2x64                                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.15.11x64                                                                          
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.15.11x64_vlan_no_module                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.18.5x64                                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.20.10                                                                             
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.20.10x64                                                                          
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.4.1                                                                               
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.4.1x64                                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.4.3                                                                               
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.4.3x64                                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.5                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.5x64                                                                              
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.9.8                                                                               
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\4.9.8x64                                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\5.0.rc7                                                                             
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\kernels\5.0.rc7x64                                                                          
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\ldlinux.e32                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\libcom32.c32                                                                                
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\libutil.c32                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\pxelinux.cfg\default                                                                        
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\pxelinux.cfg\default.ipxe                                                                   
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\snp.efi                                                                                     
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\snponly.efi                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\syslinux.efi                                                                                
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\vesamenu.c32                                                                                
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\bg.png                                                                                      
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\bootx64.efi                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\grubx64.efi                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\images\64config.txt                                                                         
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\images\64defaultconfig.txt                                                                  
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\images\debug.xz                                                                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\images\initrd.xz                                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\images\initrdhfcldd10x64.xz                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\images\initrdhfcldd12x64.xz                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\images\initrdhfcldd13x64.xz                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\images\initrdhfcldd14x64.xz                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\images\initrdhfcldd9x64.xz                                                                  
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\images\initrdvlan.xz                                                                        
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\ipxe.efi                                                                                    
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\3.18.1                                                                              
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\3.18.102x64vlan                                                                     
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\3.18.1x64                                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\3.19.6x64_vlan                                                                      
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\3.19.8x64_test1                                                                     
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\3.19.8x64_vlan_no_module                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\3.19.8x86_64_vlan                                                                   
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\3.19.8x86_vlan                                                                      
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.10.1                                                                              
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.10.1x64                                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.13.2                                                                              
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.13.2x64                                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.15.11x64                                                                          
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.15.11x64_vlan_no_module                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.18.5x64                                                                           
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.20.10                                                                             
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.20.10x64                                                                          
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.4.1                                                                               
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.4.1x64                                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.4.3                                                                               
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.4.3x64                                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.5                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.5x64                                                                              
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.9.8                                                                               
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\4.9.8x64                                                                            
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\5.0.rc7                                                                             
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\kernels\5.0.rc7x64                                                                          
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\ldlinux.e64                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\libcom32.c32                                                                                
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\libutil.c32                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\pxelinux.cfg\default                                                                        
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\pxelinux.cfg\default.ipxe                                                                   
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\snp.efi                                                                                     
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\snponly.efi                                                                                 
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\syslinux.efi                                                                                
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\vesamenu.c32                                                                                
    ...                                                                                          
    


  • Seems like maybe the database didn't upgrade properly. Can you do a db dump?



  • Thanks for the promt reply, I am preparing a dump right now.
    (sent in chat message, 24h onetime link, if there is a better way to send let me know)



  • Looks like db upgrades went fine, not sure why you have all of those tasks in the db though. try deleting from the db with:

    delete from active_imaging_tasks;
    


  • Yes that helped to be able to create new Tasks again!

    And now the pxe files appeared in:
    C:\Program Files\CloneDeploy\tftpboot\proxy\bios\pxelinux.cfg\XX-...
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi32\pxelinux.cfg\XX-...
    C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\pxelinux.cfg\XX-...

    and only in C:\Program Files\CloneDeploy\tftpboot\proxy\efi64\pxelinux.cfg
    an additional cfg file: XX-....cfg

    Thanks that was really quick!

    I can check on monday if the demployment will be working now, too.



  • I have it working now after some small problems:

    1. the Host that was in the deployment loop with the message:
    Queue is full, current position null
    

    did not recover itself from that problem. So this might be something that could be improved, so that it can recover itself at this point.

    1. the first deployments did not succeed, because it coudl not connect to the share:

    Application Log:

    2019-03-18 07:07:24,696 [13] ERROR CloneDeploy_Services.Helpers.EncryptionServices Could Not Decrypt Password. Ensure Your Encryption Key is Correct.
    2019-03-18 07:10:22,087 [52] ERROR CloneDeploy_Services.Helpers.EncryptionServices Could Not Decrypt Password. Ensure Your Encryption Key is Correct.
    

    Host log:

    ...... Connecting To Dist2
    mount: mounting //10.x.x.x/cd_share2 on /storage failed: Permission denied
    mount: mounting //10.x.x.x/cd_share2 on /storage failed: Permission denied
    mount: mounting //10.x.x.x/cd_share2 on /storage failed: Permission denied
    mount: mounting //10.x.x.x/cd_share2 on /storage failed: Permission denied
     
    ...... Could Not Mount SMB Share
     
    ...... Looking For Additional Distribution Points
     
    ** An Error Has Occurred **
     
    ...... Could Not Mount SMB Share and Server Is Not Clustered
    

    I used the time to change the password for the share-users and updated the distribution points, then it was working.

    1. I had some custom boot templates, that used a kernel 4.15 + initrd.xz.
      The boot crashed with the message, that the kernel is too old (something inside the initrd.xz).
      As I had copied my kernels but did not overwrite the initrd.xz, it was able to find the kernel, but the initrd did not fit.
      Solution was simple, copy old initrd.xz with a new name and edit the boot template, and later I totally removed the template, as I doN#t need it any longer.
      It is just something that might be good to have in the upgrade guide to be aware of.

    2. I have some servers that hang at ipxe boot after the mac-address entry. I use the dhcp server config for this ip pool to directly boot other pxe files, not ipxe. That is working great now, I only had one problem that there were some leftovers from switching in clonedeploy between ipxe and pxeboot that still had the old kernel in it. But I simply had to delete these old orphaned pxe files in pxelinux.cfg.

    Now everything seems to work and I could deploy multiple machines in parallel again.

    So thank you very much again for your support and effort!