DirWiz Logo
Knowledgebase

Article Tags

Error deleting ldif.txt Permission denied: 1 Error renaming temp.txt Permission denied: 1

2017-05-17 14:50:57
Errors Troubleshooting UnitySync 

This error occurs during Discovery phase if the process is unable to rename temp.txt to ldif.txt.

Error sample:

UnitySync LDAP-LDIF
Error Summary
Error deleting ldif.txt Permission denied: 1
Error renaming temp.txt Permission denied: 1

Troubleshooting

  • Check if you are accidentally running the same connection twice, concurrently. This is not allowed because only one connection can access temp.txt at a time.

  • Check for instances of ldap-ldif.exe running on the server even if you don’t think any Sync is running. In rare cases an ldap-ldif.exe might not stop correctly, so it is still holding access to temp.txt the next time that same connection kicks off. Kill the additional ldap-ldif.exe process before the next Sync run.

If this becomes an ongoing problem, you can consider configuring your Sync script to run via NT Scheduler. and configure the scheduled task to stop running after X number of hours, as below:

  • Open the NT Scheduled Task.
  • Go to the Settings tab.
  • Specify the appropriate time frame for Stop the task if it runs for ___ hours.
Share this article: Twitter reddit