[Bug 1007221] Re: Removing /etc/hostname results in failed first login attempt
We still need to fix up lightdm or whatever else under it to not fail when /etc/hostname is removed -> Triaged/Medium ** Changed in: lightdm (Ubuntu) Status: New => Triaged ** Changed in: lightdm (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/1007221 Title: Removing /etc/hostname results in failed first login attempt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1007221/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1007221] Re: Removing /etc/hostname results in failed first login attempt
On 05/06/12 06:42, Mathieu Trudel-Lapierre wrote: > Indeed, ubiquity doesn't bother with checking the DHCP host name. > Perhaps it should -- that would be a bug in ubiquity. This is possibly > why you can't replicate the issue on virtual machines, in this case are > you using the alternate installer? No, all installations have been done from scratch using the standard installer, except for one which was an upgrade from 10.04. > > Regardless, it's not really supported to remove /etc/hostname. The file > should instead be modified if the hostname for the system changes, along > with /etc/hosts (since it contains a "pointer" to 127.0.1.1 for that > name). At the same time, if lightdm fails to find the hostname (which is > "normal" if it's just looking for it in /etc/hostname), it's behaving > correctly in showing "localhost". Yeah I'm aware removing /etc/hostname isn't a good move. The story of how I ended up down this path is that in 10.04 you could set /etc/hostname to the magic string "(none)" and the DHCP supplied hostname would be honored. On my desktop the upgrade to 12.04 removed /etc/hostname (it had the magic string), and so I figured that was no longer supported. However the DHCP supplied hostname was still honored, though I had this login bug. There didn't seem to be another way to have the DHCP hostname honored. Having the DHCP hostname honored is convenient for us as it simplifies image deployment. Blat the image onto the desktop, stick it on the network, it picks up its hostname from DHCP and off we go, minimal intervention required. It's not a huge hassle to change /etc/hostname post image deployment, but it's something we didn't used to have to do. That may or may not have been interesting/useful to you. > What *is* broken is that the desktop > doesn't continue to load cleanly and instead falls back to the greeter. > > There needs to be some more investigation at the lightdm level for this; > for the reasons listed by Sebastien. > Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1007221 Title: Removing /etc/hostname results in failed first login attempt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1007221/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1007221] Re: Removing /etc/hostname results in failed first login attempt
Indeed, ubiquity doesn't bother with checking the DHCP host name. Perhaps it should -- that would be a bug in ubiquity. This is possibly why you can't replicate the issue on virtual machines, in this case are you using the alternate installer? Regardless, it's not really supported to remove /etc/hostname. The file should instead be modified if the hostname for the system changes, along with /etc/hosts (since it contains a "pointer" to 127.0.1.1 for that name). At the same time, if lightdm fails to find the hostname (which is "normal" if it's just looking for it in /etc/hostname), it's behaving correctly in showing "localhost". What *is* broken is that the desktop doesn't continue to load cleanly and instead falls back to the greeter. There needs to be some more investigation at the lightdm level for this; for the reasons listed by Sebastien. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1007221 Title: Removing /etc/hostname results in failed first login attempt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1007221/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1007221] Re: Removing /etc/hostname results in failed first login attempt
Mathieu, In this case yes, installation was done on the same network so the same DHCP server and lease info was used/received. Doing a standard install from a live disk Ubuntu doesn't seem to use the DHCP supplied hostname: the live disk hostname is ubuntu, and the gui installer auto-generates a hostname from the user information + hardware info (like model string from BIOS). The installer won't let you have a blank hostname. At no point during installation do I see or get the option to use the DHCP supplied hostname. As an update re: virtual machines I can't replicate this at all on a VBox VM, but have no trouble reproducing it on bare metal. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1007221 Title: Removing /etc/hostname results in failed first login attempt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1007221/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1007221] Re: Removing /etc/hostname results in failed first login attempt
So there are multiple aspects to this, one of which being the process used for the installation. At installation, is the same DHCP used? Proceeding with an installation on the network should be receiving the same IP address as it would on a "normal" boot after install; and default to the DHCP-received hostname. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1007221 Title: Removing /etc/hostname results in failed first login attempt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1007221/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1007221] Re: Removing /etc/hostname results in failed first login attempt
Thank you for your bug report, the session log suggests the issue is not lightdm but rather the xorg session cookie (but maybe lightdm doesn't pick up the correct hostname to create the Xauthority) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1007221 Title: Removing /etc/hostname results in failed first login attempt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1007221/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1007221] Re: Removing /etc/hostname results in failed first login attempt
** Attachment added: "lightdm.log" https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1007221/+attachment/3171003/+files/lightdm.log -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1007221 Title: Removing /etc/hostname results in failed first login attempt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1007221/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1007221] Re: Removing /etc/hostname results in failed first login attempt
** Attachment added: "x-0-greeter.log" https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1007221/+attachment/3171004/+files/x-0-greeter.log -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1007221 Title: Removing /etc/hostname results in failed first login attempt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1007221/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1007221] Re: Removing /etc/hostname results in failed first login attempt
** Attachment added: ".xsession-errors failed login" https://bugs.launchpad.net/bugs/1007221/+attachment/3171002/+files/xsession-errors -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1007221 Title: Removing /etc/hostname results in failed first login attempt To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1007221/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs