unknown error prevent from joining domain

Bug #543733 reported by tarabaz
52
This bug affects 8 people
Affects Status Importance Assigned to Milestone
likewise-open (Ubuntu)
Confirmed
High
Gerald Carter

Bug Description

Binary package hint: likewise-open

Hi - I can't join domain from cli.

After running command for joining in my AD I'm getting this error:

sudo domainjoin-cli join domain.name Administrator password

Joining to AD Domain: domain.name
With Computer DNS Name: computer.domain.name

Error: Lsass Error [code 0x00080047]

0x251E - Unknown error

ProblemType: Bug
Architecture: i386
Date: Sun Mar 21 22:35:21 2010
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: wl
Package: likewise-open5 5.4.0.42111-1
PackageArchitecture: all
ProcEnviron:
 LANG=pl_PL.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
SourcePackage: likewise-open
Uname: Linux 2.6.32-16-generic i686

Revision history for this message
tarabaz (tarabaz-exxxtreme) wrote :
Changed in likewise-open (Ubuntu):
status: New → Incomplete
Revision history for this message
Gerald Carter (coffeedude.jerry) wrote :

There's not enough information here to determine if there is actually a bug. Could you verify that
you have followed all the basic trouble shooting points described in the following document.

http://www.likewise.com/resources/documentation_library/manuals/open/likewise-open-guide.html

For example,

(a) Is the Ubuntu client using the same DNS servers (in /etc/resolv.conf) as the Windows clients.
(b) Are the any netlogond or lsassd related messages in /var/log/syslog?
(c) Does `lw-get-dc-name domain.name` actually find a DC?

Is this an upgrade from the previous 5.4 deb? If so, remove and purge the likewise-open settings and state files
and refetch the likewise-open deb for a clean install.

Revision history for this message
Ross Peoples (deejross) wrote :

I am also having this problem. I am following the documentation and have completed all required steps. I have verified that the DNS is working properly and have run 'lw-get-dc-name', which works perfectly. The error message I get when trying to join is the following:

Error: Lsass Error [code 0x00080047]

1225 (0x4C9) ERROR_CONNECTION_REFUSED - Unknown error

This is on Lucid Beta 1. It is a fresh install with latest updates as of today with nothing else install on it. I installed using 'sudo apt-get likewise-open'

The error in /var/log/syslog was the following:

lsassd[937]: 0xb2745b70:Failed to run provider specific request (request code = 8, provider = 'lsa-activedirectory-provider') -> error = 1225, symbol = ERROR_CONNECTION_REFUSED, client pid = 1217

Revision history for this message
Ross Peoples (deejross) wrote :

Further investigation reveals that the domain controller shows the new machine account, so it is contacting the server, but failing to join for some reason.

Revision history for this message
Gerald Carter (coffeedude.jerry) wrote :

What is the output from "ps --ppid `pidof lwsmd`". Did you upgrade likewise-open from th3 5.4.0.39xxx in Beta1 to the 5.4.0.42111-1 deb? Or was the later a fresh deb install? You might also want to try the 5.4.0.42111-2 deb from ppa:likewise-open/ppa since there is one specific ad-provider fix that corrects some loading issues with domain trusts.

Changed in likewise-open (Ubuntu):
assignee: nobody → Gerald Carter (coffeedude.jerry)
Revision history for this message
CoffeeBurrito (coffeeburrito) wrote :

I had this *exact* problem on a 100% fresh install of Lucid Lynx on a newly formatted hard disk. The very first thing I did after completing installation was to try to join the domain, so I didn't have time to break anything as far as I know. The one change I tried to resolve this was removing mdns4 from /etc/nsswitch.conf

`lw-get-dc-name domain.name` could find the DC just fine.

$ ps --ppid `pidof lwsmd`
  PID TTY TIME CMD
  984 ? 00:00:00 lwregd
 1128 ? 00:00:00 dcerpcd
 1190 ? 00:00:00 netlogond
 1253 ? 00:00:00 eventlogd
 1337 ? 00:00:00 lwiod
 1420 ? 00:00:00 lsassd

When trying to start lwsmd manually, I got:
20100506113746:ERROR: Could not start bootstrap service: LW_ERROR_SERVICE_UNRESPONSIVE

I found your instructions here:
https://bugs.launchpad.net/ubuntu/+source/likewise-open/+bug/543963/comments/8

With that I was able to join the domain, and everything works now. I hope this helps you figure out what went wrong.

Revision history for this message
Marcos Saraiva (msaraiva) wrote :

I can confirm the same problem (ERROR_CONNECTION_REFUSED) on a FRESH install of 10.04. Following the instructions given on the link above fixes the problem.

Revision history for this message
Pasi Sjöholm (pasi-sjoholm) wrote :

I'm seeing this same error ~50% of the installations with 5.4.0.42111-3~ppa6~lucid-package, also it seems that likewise-open manages to create the computer object in the AD but then fails in something weird.. At the sametime likewisen-open5 distributed with Karmic works perfectly.

At the installation time I'm seeing:

--cut--
 * Reloading Likewise Service Manager configuration ESC[180G ^MESC[174G[ OK ]
Error: LW_ERROR_NO_SUCH_SERVICE (41204)
No service with the specified name exists
--cut--

The error I'm gettting when joinin computers to domain:

--cut--
Error: Lsass Error [code 0x00080047]

40265 (0x9D49) LW_ERROR_ERRNO_ECONNREFUSED - Unknown error
--cut--

Revision history for this message
Pasi Sjöholm (pasi-sjoholm) wrote :

For a workaround I made a script which will loop until joining the domain will success on fresh installs.

The script consists mainly these lines.

    killall lwsmd lwregd dcerpcd netlogond eventlogd lwiod lsassd
    /bin/rm -rf /var/lib/likewise-open
    mkdir -p /var/lib/likewise-open/{db,rpc,run}
    chmod 700 /var/lib/likewise-open/db
    chmod 755 /var/lib/likewise-open
    /etc/init.d/lwsmd start
    for file in /etc/likewise-open/*.reg; do lwregshell import $file; done
    /etc/init.d/lwsmd reload
    lwsm start lsass
    sleep 5
    domainjoin-cli join

Revision history for this message
Jure Sah (dustwolfy) wrote :

Same problem on fresh install of a fully upgraded Ubuntu Server 10.04.3 LTS VM (vmware); Windows Server 2003 DC, all properly configured.

Pasi Sjöholm's fix works for me so obviously whatever it does right, the likewise-open install script does wrong. Bug report is quite complete.

Changed in likewise-open (Ubuntu):
status: Incomplete → Confirmed
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.