[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#619968: closed by Rene Engelhard <rene@debian.org> (Re: Bug#619968: openoffice.org: Slow start because of localhost.(none) dns request)



tags 619968 patch

On Mon, Mar 28, 2011 at 11:51 PM, Debian Bug Tracking System
<owner@bugs.debian.org> wrote:
> This is an automatic notification regarding your Bug report
> which was filed against the openoffice.org package:
>
> #619968: openoffice.org: Slow start because of localhost.(none) dns request
>
> It has been closed by Rene Engelhard <rene@debian.org>.
>
> Their explanation is attached below along with your original report.
> If this explanation is unsatisfactory and you have not received a
> better one in a separate message then please contact Rene Engelhard <rene@debian.org> by
> replying to this email.
>
>
> --
> 619968: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619968
> Debian Bug Tracking System
> Contact owner@bugs.debian.org with problems
>
>
> ---------- Forwarded message ----------
> From: Rene Engelhard <rene@debian.org>
> To: 619968-done@bugs.debian.org
> Date: Mon, 28 Mar 2011 23:40:16 +0200
> Subject: Re: Bug#619968: openoffice.org: Slow start because of localhost.(none) dns request
> Hi,
>
> On Mon, Mar 28, 2011 at 11:02:22PM +0200, Javier Barroso wrote:
>> > I honestly don't believe a "normal" debian install creates it in this way.
>> Indeed, debian doesn't create it, but openoffice in squeeze make these
>
> So what? your network setup is broken. Fix it. If it involves adding
> localhost.(none) to /etc/hosts, fine. But that's your network config.
>
>> petitions, so better having this line in /etc/hosts than waiting 10-15
>> seconds until your document is popup and then you can work.
>
> a) /etc/hosts is not OOos job. OOo can't and shouldn't write there.
> b) modifying /etc/hosts from OOo in deb install (would be
>   1. broken
>   2. senseless
>   3. against debian policy
>
>> As reference I have two links:
>
> Well, it's known that OOo ias problems if the loopback interface
> and/or localhost has problems. There's no point for OOo, though, working
> localhost network is essential for other stuff, too.
>
>> https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/655511
>
> And this is as bogus as this "bug" is.
>
> Closing this nonsensical bug. Fix your network config.
Ok, after I added a domain to /etc/hostname (making the hostname
FQDN), openoffice works fine without localhost.(none) issue.

But debian installer allow you to create a /etc/hostname without be a
FQDN (without any domain), and then the first request of openoffice is
to localhost.(none) (or nameofyourhost.(none)) and if your dns server
won't like this name (like our dns), openoffice will be no responsive
until dns answer is received.

$ time dig @dnsip "localhost.(none)"

; <<>> DiG 9.7.2-P3 <<>> @dnsip localhost.(none)
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached

real	0m15.008s
user	0m0.004s
sys	0m0.008s

Could be this issue discussed in other place ? Or is for nothing
asking in debian-devel or any other mail list?

My propose is this patch to /usr/bin/soffice shell script, but I'm not
sure you would like it:

$ diff -u /usr/bin/soffice soffice.withwarning
--- /usr/bin/soffice	2011-01-26 06:22:06.000000000 +0100
+++ soffice.withwarning	2011-03-29 11:42:57.618979530 +0200
@@ -68,6 +68,10 @@

 # sanity checks

+if ! grep -q "\." /etc/hostname ; then
+    echo "Warning: your documents could be loaded slowly because your
has a not FQDN hosntame" >&2
+    echo "Fix your network config" >&2
+fi
 case "$FILE_LOCKING" in
     auto|yes|no) ;;
     *)

I'm ccing you because I'm not sure I can reply to closed bugs (sorry
if I'm wasting your time)

Thank you



Reply to: