# Ldap sync tcp errors

**URL:** https://community.zammad.org/t/ldap-sync-tcp-errors/701
**Category:** Technical assistance
**Created:** [May 28, 2018, 4:19am UTC](https://community.zammad.org/t/ldap-sync-tcp-errors/701 "2018-05-28T04:19:27Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![anon29869905](https://community.zammad.org/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@anon29869905](https://community.zammad.org/u/anon29869905)
#### Post date: [June 1, 2018, 2:24pm UTC](https://community.zammad.org/t/ldap-sync-tcp-errors/701/2 "2018-06-01T14:24:43Z")

</div>

Hi @chesty - let’s see what we got here 🙂 please do the following:

1.) Create a file called `debug_issue.rb` in your Zammad directory (usually `/opt/zammad`)  
2.) Run the file from your Zammad directory via `zammad run rails r debug_issue.rb` or `rails r debug_issue.rb` as zammad user, depending on your installation source (package/source)  
3.) Post the output here. Make sure all sensitive data is anonymized! If you want you can drop it as an email to [support@zammad.com](mailto:support@zammad.com). Please refer to this thread and me 🙂  
4.) Delete the `debug_issue.rb` file

```ruby
require 'mixin/rails_logger'

module Mixin
  module RailsLogger
    def self.logger
      @logger ||= Logger.new(log_to).tap do |logger|
        logger.level = :debug
      end
    end

    def self.log_to
      # STDOUT
      'debug_issue.log'
    end
  end
end

ImportJob.create(name: 'Import::Ldap').start

```

---

_[View the full topic](https://community.zammad.org/t/ldap-sync-tcp-errors/701)._
