FlexNet Licensing error:-1,359. System Error: 2 "No such file or directory"

Hi, I have seen some other threads regarding this, but none in my situation.

My repository had 2 workers for around half a year, and recently decided to add a third one by cloning the windows servers.

Everything seemed to be working fine, until submitting a job, and noticed the third worker giving licensing errors.

The machine shows No Licence (less than 11 workers) in the list, same as the other ones, but for some reason this one giving errors. The other ones still work after adding the 3rd one without issues.

Things i’ve tried:

  • Reinstalling deadline client
  • Changing license server to None
  • Disabling all other workers

Would greatly appreciate any input!

Bellow is the complete log

=======================================================
Error
=======================================================
Attempted to perform an unauthorized operation.

=======================================================
Type
=======================================================
UnauthorizedAccessException

=======================================================
Stack Trace
=======================================================
   at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl)
   at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext)
   at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, AccessControlSections includeSections, Object exceptionContext)
   at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, AccessControlSections includeSections)
   at System.Security.AccessControl.FileSystemSecurity.Persist(String fullPath)
   at System.IO.FileSystemAclExtensions.SetAccessControl(DirectoryInfo directoryInfo, DirectorySecurity directorySecurity)
   at FranticX.IO.Directory2.CreateWindowsDirectoryWithPermissions(String path, DirectorySecurity directorySecurity)
   at Deadline.IO.DeadlineClientPath.a(String bum, UserInfo bun)
   at Deadline.IO.DeadlineClientPath.CreateDirectoryWithMaxTwoUserAccess(String path, UserInfo additionalAllowedUser)
   at Deadline.IO.DeadlineClientPath.GetDeadlineClientSlaveJobPluginsFolder(String workerName, String jobId, Boolean createIfMissing, Boolean updatePermissions, UserInfo jobUser)
   at Deadline.Slaves.SlaveSettings.GetSlavePluginPath(String jobId, Boolean createIfMissing, Boolean updatePermissions, UserInfo jobUser)
   at Deadline.Slaves.SlaveRenderThread.e(String ajo, Job ajp, CancellationToken ajq)
   at Deadline.Slaves.SlaveRenderThread.b(TaskLogWriter ajk, CancellationToken ajl)
   at Deadline.Slaves.SlaveRenderThread.a()

=======================================================
Log
=======================================================
2025-05-29 21:57:33:  Could not obtain license because:
2025-05-29 21:57:33:  Cannot find license file.
2025-05-29 21:57:33:   The license files (or license server system network addresses) attempted are 
2025-05-29 21:57:33:  listed below.  Use LM_LICENSE_FILE to use a different license file,
2025-05-29 21:57:33:   or contact your software provider for a license file.
2025-05-29 21:57:33:  Feature:       deadline
2025-05-29 21:57:33:  Filename:      C:\flexlm\license.dat
2025-05-29 21:57:33:  License path:  C:\flexlm\license.dat;
2025-05-29 21:57:33:  FlexNet Licensing error:-1,359.  System Error: 2 "No such file or directory"
2025-05-29 21:57:33:  For further information, refer to the FlexNet Licensing documentation,
2025-05-29 21:57:33:  available at "www.flexerasoftware.com".
2025-05-29 21:57:33:  Failed to checkout a license using current configuration, checking for auto configuration...
2025-05-29 21:57:33:  Auto Configuration: Picking configuration based on: canvas-was03 / 172.24.4.13
2025-05-29 21:57:33:  Auto Configuration: No auto configuration could be detected, using local configuration
2025-05-29 21:57:35:  Another pending job scan process is already in progress
2025-05-29 21:57:35:  Skipping repository repair because it is not required at this time
2025-05-29 21:57:35:  Another house cleaning process is already in progress
2025-05-29 21:57:35:  Could not obtain license because:
2025-05-29 21:57:35:  Cannot find license file.
2025-05-29 21:57:35:   The license files (or license server system network addresses) attempted are 
2025-05-29 21:57:35:  listed below.  Use LM_LICENSE_FILE to use a different license file,
2025-05-29 21:57:35:   or contact your software provider for a license file.
2025-05-29 21:57:35:  Feature:       deadline
2025-05-29 21:57:35:  Filename:      C:\flexlm\license.dat
2025-05-29 21:57:35:  License path:  C:\flexlm\license.dat;
2025-05-29 21:57:35:  FlexNet Licensing error:-1,359.  System Error: 2 "No such file or directory"
2025-05-29 21:57:35:  For further information, refer to the FlexNet Licensing documentation,
2025-05-29 21:57:35:  available at "www.flexerasoftware.com".
2025-05-29 21:57:35:  Failed to checkout a license using current configuration, checking for auto configuration...
2025-05-29 21:57:35:  Auto Configuration: Picking configuration based on: canvas-was03 / 172.24.4.13
2025-05-29 21:57:35:  Auto Configuration: No auto configuration could be detected, using local configuration
2025-05-29 21:57:38:  Skipping pending job scan because it is not required at this time
2025-05-29 21:57:38:  Skipping repository repair because it is not required at this time
2025-05-29 21:57:38:  Another house cleaning process is already in progress
2025-05-29 21:57:38:  Could not obtain license because:
2025-05-29 21:57:38:  Cannot find license file.
2025-05-29 21:57:38:   The license files (or license server system network addresses) attempted are 
2025-05-29 21:57:38:  listed below.  Use LM_LICENSE_FILE to use a different license file,
2025-05-29 21:57:38:   or contact your software provider for a license file.
2025-05-29 21:57:38:  Feature:       deadline
2025-05-29 21:57:38:  Filename:      C:\flexlm\license.dat
2025-05-29 21:57:38:  License path:  C:\flexlm\license.dat;
2025-05-29 21:57:38:  FlexNet Licensing error:-1,359.  System Error: 2 "No such file or directory"
2025-05-29 21:57:38:  For further information, refer to the FlexNet Licensing documentation,
2025-05-29 21:57:38:  available at "www.flexerasoftware.com".
2025-05-29 21:57:38:  Failed to checkout a license using current configuration, checking for auto configuration...
2025-05-29 21:57:38:  Auto Configuration: Picking configuration based on: canvas-was03 / 172.24.4.13
2025-05-29 21:57:38:  Auto Configuration: No auto configuration could be detected, using local configuration
2025-05-29 21:57:40:  Skipping pending job scan because it is not required at this time
2025-05-29 21:57:40:  Skipping repository repair because it is not required at this time
2025-05-29 21:57:40:  Skipping house cleaning because it is not required at this time
2025-05-29 21:57:40:  Could not obtain license because:
2025-05-29 21:57:40:  Cannot find license file.
2025-05-29 21:57:40:   The license files (or license server system network addresses) attempted are 
2025-05-29 21:57:40:  listed below.  Use LM_LICENSE_FILE to use a different license file,
2025-05-29 21:57:40:   or contact your software provider for a license file.
2025-05-29 21:57:40:  Feature:       deadline
2025-05-29 21:57:40:  Filename:      C:\flexlm\license.dat
2025-05-29 21:57:40:  License path:  C:\flexlm\license.dat;
2025-05-29 21:57:40:  FlexNet Licensing error:-1,359.  System Error: 2 "No such file or directory"
2025-05-29 21:57:40:  For further information, refer to the FlexNet Licensing documentation,
2025-05-29 21:57:40:  available at "www.flexerasoftware.com".
2025-05-29 21:57:40:  Failed to checkout a license using current configuration, checking for auto configuration...
2025-05-29 21:57:40:  Auto Configuration: Picking configuration based on: canvas-was03 / 172.24.4.13
2025-05-29 21:57:40:  Auto Configuration: No auto configuration could be detected, using local configuration
2025-05-29 21:57:42:  Skipping pending job scan because it is not required at this time
2025-05-29 21:57:42:  Skipping repository repair because it is not required at this time
2025-05-29 21:57:42:  Skipping house cleaning because it is not required at this time
2025-05-29 21:57:42:  Could not obtain license because:
2025-05-29 21:57:42:  Cannot find license file.
2025-05-29 21:57:42:   The license files (or license server system network addresses) attempted are 
2025-05-29 21:57:42:  listed below.  Use LM_LICENSE_FILE to use a different license file,
2025-05-29 21:57:42:   or contact your software provider for a license file.
2025-05-29 21:57:42:  Feature:       deadline
2025-05-29 21:57:42:  Filename:      C:\flexlm\license.dat
2025-05-29 21:57:42:  License path:  C:\flexlm\license.dat;
2025-05-29 21:57:42:  FlexNet Licensing error:-1,359.  System Error: 2 "No such file or directory"
2025-05-29 21:57:42:  For further information, refer to the FlexNet Licensing documentation,
2025-05-29 21:57:42:  available at "www.flexerasoftware.com".
2025-05-29 21:57:42:  Failed to checkout a license using current configuration, checking for auto configuration...
2025-05-29 21:57:42:  Auto Configuration: Picking configuration based on: canvas-was03 / 172.24.4.13
2025-05-29 21:57:42:  Auto Configuration: No auto configuration could be detected, using local configuration
2025-05-29 21:57:42:  Scheduler Thread - Job's Limit Groups: 
2025-05-29 21:57:42:  Could not obtain license because:
2025-05-29 21:57:42:  Cannot find license file.
2025-05-29 21:57:42:   The license files (or license server system network addresses) attempted are 
2025-05-29 21:57:42:  listed below.  Use LM_LICENSE_FILE to use a different license file,
2025-05-29 21:57:42:   or contact your software provider for a license file.
2025-05-29 21:57:42:  Feature:       deadline
2025-05-29 21:57:42:  Filename:      C:\flexlm\license.dat
2025-05-29 21:57:42:  License path:  C:\flexlm\license.dat;
2025-05-29 21:57:42:  FlexNet Licensing error:-1,359.  System Error: 2 "No such file or directory"
2025-05-29 21:57:42:  For further information, refer to the FlexNet Licensing documentation,
2025-05-29 21:57:42:  available at "www.flexerasoftware.com".
2025-05-29 21:57:42:  Failed to checkout a license using current configuration, checking for auto configuration...
2025-05-29 21:57:42:  Auto Configuration: Picking configuration based on: canvas-was03 / 172.24.4.13
2025-05-29 21:57:42:  Auto Configuration: No auto configuration could be detected, using local configuration
2025-05-29 21:57:43:  0: Loading Job's Plugin timeout is Disabled
2025-05-29 21:57:45:  ERROR: Scheduler Thread - Render Thread 0 threw an unexpected error: 
2025-05-29 21:57:45:  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


=======================================================
Details
=======================================================
Date: 05/29/2025 21:57:45
Frames: 1
Elapsed Time: 00:00:00:02
Job Submit Date: 05/29/2025 20:53:43
Job User: 50008
Average RAM Usage: 0 (0%)
Peak RAM Usage: 0 (0%)
Average CPU Usage: 0%
Peak CPU Usage: 0%
Used CPU Clocks (x10^6 cycles): 0
Total CPU Clocks (x10^6 cycles): 0

=======================================================
Worker Information
=======================================================
Worker Name: canvas-was03
Version: v10.1.18.4 Release (c8ded2b7a)
Operating System: Windows Server 2022 Datacenter
Running As Service: No
Machine User: luye
IP Address: 172.24.4.13
MAC Address: 00:16:3E:3D:3B:CC
CPU Architecture: x64
CPUs: 22
CPU Usage: 2%
Memory Usage: 5.8 GB / 90.0 GB (6%)
Free Disk Space: 197.372 GB (22.171 GB on C:\, 87.601 GB on D:\, 87.601 GB on Z:\)
Video Card: Microsoft Remote Display Adapter

Which version are you using? Deadline is now free since 10.1.23.6 so upgrading to the latest version will fix this.
https://docs.thinkboxsoftware.com/products/deadline/10.3/1_User%20Manual/manual/release-notes.html#deadline-10-1-23-6

Deadline was free for 2 workers, because you added a third it’s stopped working and requires a license. A quick workaround would be to delete the third slave/worker

You can login to the AWS Deadline portal and generate a free license, you’ll then need to run a Flex license server and point the machines to it.

I’d recommend getting the latest version of Deadline and updating the repo and clients though

Hi Anthony!
For some reason was running the following:
Client version 10.1.18.4
Repository version 10.2.0.10

I updated client to 10.2.0.10, but the issue is not solved.

I am too worried to update everything to latest in production, might do it over the weekend if can’t find any other solution.

=======================================================
Error
=======================================================
Attempted to perform an unauthorized operation.

=======================================================
Type
=======================================================
UnauthorizedAccessException

=======================================================
Stack Trace
=======================================================
   at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl)
   at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext)
   at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, AccessControlSections includeSections, Object exceptionContext)
   at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, AccessControlSections includeSections)
   at System.Security.AccessControl.FileSystemSecurity.Persist(String fullPath)
   at System.IO.FileSystemAclExtensions.SetAccessControl(DirectoryInfo directoryInfo, DirectorySecurity directorySecurity)
   at FranticX.IO.Directory2.CreateWindowsDirectoryWithPermissions(String path, DirectorySecurity directorySecurity)
   at Deadline.IO.DeadlineClientPath.a(String bwp, UserInfo bwq)
   at Deadline.IO.DeadlineClientPath.CreateDirectoryWithMaxTwoUserAccess(String path, UserInfo additionalAllowedUser)
   at Deadline.IO.DeadlineClientPath.GetDeadlineClientSlaveJobPluginsFolder(String workerName, String jobId, Boolean createIfMissing, Boolean updatePermissions, UserInfo jobUser)
   at Deadline.Slaves.SlaveSettings.GetSlavePluginPath(String jobId, Boolean createIfMissing, Boolean updatePermissions, UserInfo jobUser)
   at Deadline.Slaves.SlaveRenderThread.e(String ajv, Job ajw, CancellationToken ajx)
   at Deadline.Slaves.SlaveRenderThread.b(TaskLogWriter ajr, CancellationToken ajs)
   at Deadline.Slaves.SlaveRenderThread.a()

=======================================================
Log
=======================================================
2025-05-30 00:06:40:  Skipping pending job scan because it is not required at this time
2025-05-30 00:06:40:  Another repository repair process is already in progress
2025-05-30 00:06:40:  Skipping house cleaning because it is not required at this time
2025-05-30 00:06:42:  Another pending job scan process is already in progress
2025-05-30 00:06:42:  Skipping repository repair because it is not required at this time
2025-05-30 00:06:42:  Skipping house cleaning because it is not required at this time
2025-05-30 00:06:44:  Another pending job scan process is already in progress
2025-05-30 00:06:44:  Skipping repository repair because it is not required at this time
2025-05-30 00:06:44:  Skipping house cleaning because it is not required at this time
2025-05-30 00:06:46:  Another pending job scan process is already in progress
2025-05-30 00:06:46:  Skipping repository repair because it is not required at this time
2025-05-30 00:06:46:  Another house cleaning process is already in progress
2025-05-30 00:06:49:  Skipping pending job scan because it is not required at this time
2025-05-30 00:06:49:  Skipping repository repair because it is not required at this time
2025-05-30 00:06:49:  Skipping house cleaning because it is not required at this time
2025-05-30 00:06:51:  Skipping pending job scan because it is not required at this time
2025-05-30 00:06:51:  Skipping repository repair because it is not required at this time
2025-05-30 00:06:51:  Skipping house cleaning because it is not required at this time
2025-05-30 00:06:53:  Skipping pending job scan because it is not required at this time
2025-05-30 00:06:53:  Skipping repository repair because it is not required at this time
2025-05-30 00:06:53:  Skipping house cleaning because it is not required at this time
2025-05-30 00:06:55:  Skipping pending job scan because it is not required at this time
2025-05-30 00:06:55:  Skipping repository repair because it is not required at this time
2025-05-30 00:06:55:  Skipping house cleaning because it is not required at this time
2025-05-30 00:06:58:  Skipping pending job scan because it is not required at this time
2025-05-30 00:06:58:  Skipping repository repair because it is not required at this time
2025-05-30 00:06:58:  Skipping house cleaning because it is not required at this time
2025-05-30 00:07:00:  Skipping pending job scan because it is not required at this time
2025-05-30 00:07:00:  Skipping repository repair because it is not required at this time
2025-05-30 00:07:00:  Skipping house cleaning because it is not required at this time
2025-05-30 00:07:02:  Skipping pending job scan because it is not required at this time
2025-05-30 00:07:02:  Skipping repository repair because it is not required at this time
2025-05-30 00:07:02:  Skipping house cleaning because it is not required at this time
2025-05-30 00:07:04:  Skipping pending job scan because it is not required at this time
2025-05-30 00:07:04:  Skipping repository repair because it is not required at this time
2025-05-30 00:07:04:  Skipping house cleaning because it is not required at this time
2025-05-30 00:07:06:  Skipping pending job scan because it is not required at this time
2025-05-30 00:07:06:  Skipping repository repair because it is not required at this time
2025-05-30 00:07:06:  Skipping house cleaning because it is not required at this time
2025-05-30 00:07:07:  Scheduler Thread - Job's Limit Groups: 
2025-05-30 00:07:07:  0: Loading Job's Plugin timeout is Disabled


=======================================================
Details
=======================================================
Date: 05/30/2025 00:07:08
Frames: 1
Elapsed Time: 00:00:00:01
Job Submit Date: 05/29/2025 20:53:43
Job User: 50008
Average RAM Usage: 0 (0%)
Peak RAM Usage: 0 (0%)
Average CPU Usage: 0%
Peak CPU Usage: 0%
Used CPU Clocks (x10^6 cycles): 0
Total CPU Clocks (x10^6 cycles): 0

=======================================================
Worker Information
=======================================================
Worker Name: canvas-was03
Version: v10.2.0.10 Release (3b87216c7)
Operating System: Windows Server 2022 Datacenter
Running As Service: No
Machine User: luye
IP Address: 172.24.4.13
MAC Address: 00:16:3E:3D:3B:CC
CPU Architecture: x64
CPUs: 22
CPU Usage: 4%
Memory Usage: 6.2 GB / 90.0 GB (6%)
Free Disk Space: 196.465 GB (21.915 GB on C:\, 87.275 GB on D:\, 87.275 GB on Z:\)
Video Card: Microsoft Remote Display Adapter

Maybe check C:\ProgramData\Thinkbox\Deadline10\deadline.ini

Do you have

LicenseMode=LicenseFree

?

1 Like

Not sure if it needed some time to settle or something… but this morning it was miraculously working.

1 Like