[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-12-16 Thread Rene Herman
So glad I took the time to report this.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-10-15 Thread Rene Herman
Upstream seems silent; bug remains in NEW state and no follow-up.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-10 Thread Andreas Hasenack
Sure.

Let's see what upstream comes up with after the last round of comments
there. If it's a patch that can be backported to the bionic version, we
might go that route. If not, then adding the network-online target it
is.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-10 Thread Andreas Hasenack
Sure.

Let's see what upstream comes up with after the last round of comments
there. If it's a patch that can be backported to the bionic version, we
might go that route. If not, then adding the network-online target it
is.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1789097/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-10 Thread Rene Herman
Actually, no, that doesn't work for me. Was expecting it would given the
comments on the samba bug, but, well, no. It *does* work to send HUP
once booted:

rene@t5500:~$ ping WD-NETCENTER
ping: WD-NETCENTER: Name or service not known
rene@t5500:~$ sudo kill -HUP $(systemctl show winbind -p MainPID --value)
rene@t5500:~$ ping WD-NETCENTER
PING WD-NETCENTER (192.168.1.33) 56(84) bytes of data.
64 bytes from fs7-netcenter (192.168.1.33): icmp_seq=1 ttl=64 time=1.86 ms

It seems the networkd-dispatcher script is still too early.

Must by the way also admit I'd maybe not consider it a better workaround
even it if did work than just waiting for network-online.target; nmbd as
mentioned already does as well, so only people with minimal Windows-
networking needs or wants would get any potential benefit from NOT
simply waiting for network-online.target.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-10 Thread Andreas Hasenack
As a workaround, could you try creating this file: /usr/lib/networkd-
dispatcher/routable.d/10-winbind

with these contents:

#!/bin/sh

pid=$(systemctl show winbind -p MainPID --value)
if [ "$pid" -ne "0" ]; then
kill -HUP $pid
fi


Then make it executable: sudo chmod +x 
/usr/lib/networkd-dispatcher/routable.d/10-winbind

That's assuming you have the networkd-dispatcher package installed. It's
not mandatory, but likely that you have it. If you don't, then please
install it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-10 Thread Andreas Hasenack
As a workaround, could you try creating this file: /usr/lib/networkd-
dispatcher/routable.d/10-winbind

with these contents:

#!/bin/sh

pid=$(systemctl show winbind -p MainPID --value)
if [ "$pid" -ne "0" ]; then
kill -HUP $pid
fi


Then make it executable: sudo chmod +x 
/usr/lib/networkd-dispatcher/routable.d/10-winbind

That's assuming you have the networkd-dispatcher package installed. It's
not mandatory, but likely that you have it. If you don't, then please
install it.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1789097/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-07 Thread Rene Herman
As to the reply you got on
https://bugzilla.samba.org/show_bug.cgi?id=13607, I can deny a "net
cache flush" doing anything to get WINS name resolving going for me when
booted with the original service file:

rene@t5500:~$ ping WD-NETCENTER
ping: WD-NETCENTER: Name or service not known
rene@t5500:~$ net cache flush
rene@t5500:~$ ping WD-NETCENTER
ping: WD-NETCENTER: Name or service not known

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-06 Thread Andreas Hasenack
** Bug watch added: Samba Bugzilla #13607
   https://bugzilla.samba.org/show_bug.cgi?id=13607

** Also affects: samba via
   https://bugzilla.samba.org/show_bug.cgi?id=13607
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-06 Thread Andreas Hasenack
** Bug watch added: Samba Bugzilla #13607
   https://bugzilla.samba.org/show_bug.cgi?id=13607

** Also affects: samba via
   https://bugzilla.samba.org/show_bug.cgi?id=13607
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1789097/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-06 Thread Andreas Hasenack
basically if the interface is available when winbind starts, winbind
keeps working if it's brought down and up again. But if winbind starts
when the interface isn't available, then it won't recover without a
restart. That's my finding so far.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-06 Thread Andreas Hasenack
Ah, and that's only in the "no wins specified" case, otherwise it
recovers just fine.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-06 Thread Andreas Hasenack
Ah, and that's only in the "no wins specified" case, otherwise it
recovers just fine.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-06 Thread Andreas Hasenack
basically if the interface is available when winbind starts, winbind
keeps working if it's brought down and up again. But if winbind starts
when the interface isn't available, then it won't recover without a
restart. That's my finding so far.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-06 Thread Andreas Hasenack
> This is to say that I do not in fact have a WINS server specified; that 
> judging by the logs
> my winbind is relying on broadcasts, and bombing out in that case if started 
> before
> network-online.target.

Ok, reproduced. When there is no wins server specified, somehow winbind
doesn't "detect" the interface when it comes up, and the broadcasts it
sends go nowhere. I'll if there is something upstream about this
behavior.

** Changed in: samba (Ubuntu)
   Status: Incomplete => Triaged

** Changed in: samba (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-06 Thread Andreas Hasenack
> This is to say that I do not in fact have a WINS server specified; that 
> judging by the logs
> my winbind is relying on broadcasts, and bombing out in that case if started 
> before
> network-online.target.

Ok, reproduced. When there is no wins server specified, somehow winbind
doesn't "detect" the interface when it comes up, and the broadcasts it
sends go nowhere. I'll if there is something upstream about this
behavior.

** Changed in: samba (Ubuntu)
   Status: Incomplete => Triaged

** Changed in: samba (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-05 Thread Rene Herman
** Attachment added: "winbind.service-working"
   
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+attachment/5185183/+files/winbind.service-working

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-05 Thread Rene Herman
Thanks much for checking. I see; I was expecting this to be an
"immediately obvious" sort of thing to someone with unlike me an actual
clue about samba/winbind, but I have with the above guidance nos
supplied more information.

Specifically, it would appear that your explicitly mentioned "wins
server" configuration  will be the difference. I never expected my
/etc/samba/smb.conf to be relevant since mine is fully vanilla, as
provided by the "samba-common" package. It is also attached, but:

rene@t5500:~$ debsums samba-common | grep /usr/share/samba/smb.conf 
/usr/share/samba/smb.conf OK
rene@t5500:~$ cmp /usr/share/samba/smb.conf /etc/samba/smb.conf
rene@t5500:~$ 

This is to say that I do not in fact have a WINS server specified; that
judging by the logs my winbind is relying on broadcasts, and bombing out
in that case if started before network-online.target.

There's two logs attached with "debug level = 5", one log.winbindd-
nonworking and one log.winbindd-working, in which "nonworking" is
without /etc/systemd/system/winbind.service (i.e., default) and working
with.

In the nonworking situation the log shows:

[2018/09/05 22:44:21.132692,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'winbindd' finished starting up and ready to serve connections
[2018/09/05 22:44:42.487584,  3] 
../source3/winbindd/winbindd_misc.c:395(winbindd_interface_version)
  [ 1917]: request interface version (version = 29)
[2018/09/05 22:44:42.487775,  3] 
../source3/winbindd/winbindd_misc.c:428(winbindd_priv_pipe_dir)
  [ 1917]: request location of privileged pipe
[2018/09/05 22:44:42.487995,  3] 
../source3/winbindd/winbindd_wins_byname.c:56(winbindd_wins_byname_send)
  [ 1917]: wins_byname WD-NETCENTER
[2018/09/05 22:44:42.488050,  3] 
../source3/libsmb/namequery.c:2142(resolve_wins_send)
  resolve_wins: WINS server resolution selected and no WINS servers listed.
[2018/09/05 22:44:42.488086,  3] 
../source3/libsmb/namequery.c:1880(name_resolve_bcast_send)
  name_resolve_bcast: Attempting broadcast lookup for name WD-NETCENTER<0x20>

 and silence after that, whereas in the working situation:

[2018/09/05 22:39:51.454142,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'winbindd' finished starting up and ready to serve connections
[2018/09/05 22:40:41.498139,  3] 
../source3/winbindd/winbindd_misc.c:395(winbindd_interface_version)
  [ 1992]: request interface version (version = 29)
[2018/09/05 22:40:41.498346,  3] 
../source3/winbindd/winbindd_misc.c:428(winbindd_priv_pipe_dir)
  [ 1992]: request location of privileged pipe
[2018/09/05 22:40:41.498570,  3] 
../source3/winbindd/winbindd_wins_byname.c:56(winbindd_wins_byname_send)
  [ 1992]: wins_byname WD-NETCENTER
[2018/09/05 22:40:41.498627,  3] 
../source3/libsmb/namequery.c:2142(resolve_wins_send)
  resolve_wins: WINS server resolution selected and no WINS servers listed.
[2018/09/05 22:40:41.498676,  3] 
../source3/libsmb/namequery.c:1880(name_resolve_bcast_send)
  name_resolve_bcast: Attempting broadcast lookup for name WD-NETCENTER<0x20>
[2018/09/05 22:40:41.499722,  4] 
../source3/libsmb/nmblib.c:108(debug_nmb_packet)
  nmb packet from 192.168.1.33(35072) header: id=7546 opcode=Query(0) 
response=Yes
  header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
  header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
  answers: nmb_name=WD-NETCENTER<20> rr_type=32 rr_class=1 ttl=259200
  answers   0 char .!   hex C0A80121
[2018/09/05 22:40:41.499808,  2] 
../source3/libsmb/namequery.c:1430(name_query_validator)
  Got a positive name query response from 192.168.1.33 ( 192.168.1.33 )

The accompanying -nonworking and -working service files are also
attached but their only difference is as already described:

rene@t5500:~$ diff -u /{lib,etc}/systemd/system/winbind.service
--- /lib/systemd/system/winbind.service 2018-08-06 13:30:25.0 +0200
+++ /etc/systemd/system/winbind.service 2018-09-05 22:12:10.650061750 +0200
@@ -1,7 +1,8 @@
 [Unit]
 Description=Samba Winbind Daemon
 Documentation=man:winbindd(8) man:samba(7) man:smb.conf(5)
-After=network.target nmbd.service
+After=network-online.target nmbd.service
+Wants=network-online.target
 
 [Service]
 Type=notify

So, I guess it's broadcasts that need network-online.target. Seeing as
how relying on those is the vanilla situation I take it this still means
the "winbind" package wants the service file adjustment?

** Attachment added: "log.winbindd-nonworking"
   
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+attachment/5185180/+files/log.winbindd-nonworking

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-05 Thread Rene Herman
** Attachment added: "log.winbindd-working"
   
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+attachment/5185181/+files/log.winbindd-working

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-05 Thread Rene Herman
** Attachment added: "winbind.service-nonworking"
   
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+attachment/5185184/+files/winbind.service-nonworking

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-05 Thread Rene Herman
** Attachment added: "log.winbindd-nonworking"
   
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+attachment/5185182/+files/log.winbindd-nonworking

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-05 Thread Rene Herman
Oh, and the mentioned vanilla smb.conf...

** Attachment added: "smb.conf"
   
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+attachment/5185185/+files/smb.conf

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-05 Thread Andreas Hasenack
I'm trying to check why winbind won't recover from the network being
down, so I setup a lxd container where I installed just winbind and the
nss module.

My /etc/nsswitch.conf reads:
hosts:  files wins dns

(I would have ordinarily put dns before wins, but ok, let's try to
reproduce this)

smb.conf has:
[global]
...
wins server = 10.10.222.254

That IP is another samba server I have.

I then disabled dhcp on eth0, and rebooted the container. It came back
up with no IP on eth0. winbind was running, and name resolution via wins
was obviously not working. I logged in using "lxc exec 
bash" instead of ssh).

I then just ran "dhclient eth0", and retried the name resolution (ping
-c  was my test), and it worked right away. So it was able
to use the newly functional interface.

I didn't see anything out of the ordinary in winbind's logs.

I'll try again with a vm, which should be a bit slower than a lxd
container. And maybe also try without a network card at all, then add
one, and see if winbind needs to be restarted.

In the meantime, can you perhaps grab me some winbind logs during a
machine boot showing the problem? Maybe add "debug level = 3" or 5 to
smb.conf as well.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-09-05 Thread Andreas Hasenack
I'm trying to check why winbind won't recover from the network being
down, so I setup a lxd container where I installed just winbind and the
nss module.

My /etc/nsswitch.conf reads:
hosts:  files wins dns

(I would have ordinarily put dns before wins, but ok, let's try to
reproduce this)

smb.conf has:
[global]
...
wins server = 10.10.222.254

That IP is another samba server I have.

I then disabled dhcp on eth0, and rebooted the container. It came back
up with no IP on eth0. winbind was running, and name resolution via wins
was obviously not working. I logged in using "lxc exec 
bash" instead of ssh).

I then just ran "dhclient eth0", and retried the name resolution (ping
-c  was my test), and it worked right away. So it was able
to use the newly functional interface.

I didn't see anything out of the ordinary in winbind's logs.

I'll try again with a vm, which should be a bit slower than a lxd
container. And maybe also try without a network card at all, then add
one, and see if winbind needs to be restarted.

In the meantime, can you perhaps grab me some winbind logs during a
machine boot showing the problem? Maybe add "debug level = 3" or 5 to
smb.conf as well.

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-08-29 Thread Rene Herman
Just to add: the issue's the same and fully constant on an Intel Xeon
E5606 @2,13GHz with 8GiB running Mint 19 Cinnamon 64-bit, and an Intel
Core 2 Duo E8400 @ 3GHz withj 4GiB running Mint 19 Xfce 64-bit.

That is... it's not a subtle race and I assume anyone will see this if
installing only "winbind" and not the rest of "samba".

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-08-28 Thread Rene Herman
Yes, the network itself comes up fine. "Does not work" simply means that
NetBIOS name resolution is unavailable even after it does; that e.g.
"ping NAS" for "NAS" the NetBIOS name of my, well, NAS, tells me the
name cannot be resolved.

There would not appear to be relevant logs nor configuration files. The
issue is simply that with "After=network.target" rather then "After
=network-online.target" the winbindd daemon is started too early; does
start, but does not work. Needs to be restarted for it to start to work.

I am as mentioned on Linux Mint 19 but would be surprised if this were
not the case on Ubuntu 18.04 itself as well. This is a standard, wired
desktop without even wireless available.

It is easy to reproduce: have the "winbind" and "libnss-winbind"
packages installed but not "samba" itself, enable WINS name resolution
in /etc/nsswitch.con as detailed and as normal, and reboot.

As also mentioned, installing "samba" itself hides the issue by winbind
having a dependency on nmbd and nmbd in turn on network-online.target;
without "samba", we appear to have a simple systemd bootup race, solved
by having it depend on network-online.target itself.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-08-28 Thread Andreas Hasenack
Thanks for filing this bug in Ubuntu.

What do you mean by "does not work", exactly?

Doesn't the network come up eventually? Or is this a desktop machine
where the network is wireless and only available after someone logs in?

Please show exactly what is not working, your configuration files, and
also please provide logs.

** Changed in: samba (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1789097] Re: winbind does not work after reboot on Mint 19 / Ubuntu 18.04

2018-08-28 Thread Andreas Hasenack
Thanks for filing this bug in Ubuntu.

What do you mean by "does not work", exactly?

Doesn't the network come up eventually? Or is this a desktop machine
where the network is wireless and only available after someone logs in?

Please show exactly what is not working, your configuration files, and
also please provide logs.

** Changed in: samba (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1789097

Title:
  winbind does not work after reboot on Mint 19 / Ubuntu 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1789097/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs