[opensuse] application won't start: Invalid MIT-MAGIC-COOKIE-1 key
Hi, on a fresh Leap15 install I installed flatpak and GNOME-Twitch. I didn't have any problems with this procedure on 42.3. Now while starting the program I get the following error: /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gnome-twitch com.vinszent.GnomeTwitch Invalid MIT-MAGIC-COOKIE-1 key (gnome-twitch:2): Gtk-WARNING **: 13:24:22.884: cannot open display: :99.0 I checked on google and it seems to be linked with .Xauthority and/or $DISPLAY. The proposed solutions: - delete .Xauthority - export DISPLAY=:0.0 - export DISPLAY=:1.0 - export DISPLAY=:99.0 won't change a thing. How do I solve this? Karl P.S.: I asked this question on the germen list first but as nobody seemed to be able to help I'm reasking here. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi Karl,
Hi,
on a fresh Leap15 install I installed flatpak and GNOME-Twitch. I didn't have any problems with this procedure on 42.3.
Now while starting the program I get the following error:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gnome-twitch com.vinszent.GnomeTwitch Invalid MIT-MAGIC-COOKIE-1 key (gnome-twitch:2): Gtk-WARNING **: 13:24:22.884: cannot open display: :99.0
I checked on google and it seems to be linked with .Xauthority and/or $DISPLAY. The proposed solutions: - delete .Xauthority - export DISPLAY=:0.0 - export DISPLAY=:1.0 - export DISPLAY=:99.0
won't change a thing.
How do I solve this?
what are the contents of /etc/hostname? Only the name of your machine or the fqdn? If it is the fqdn, try with the name only and - if necessary - set 127.0.1.1 <fqdn> <name> in /etc/hosts. Reboot after that and see, if it helped.
Karl
P.S.: I asked this question on the germen list first but as nobody seemed to be able to help I'm reasking here.
Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi, Am 24.01.19 um 11:37 schrieb Michael Hirmke:
I checked on google and it seems to be linked with .Xauthority and/or $DISPLAY. The proposed solutions: - delete .Xauthority - export DISPLAY=:0.0 - export DISPLAY=:1.0 - export DISPLAY=:99.0
won't change a thing.
How do I solve this?
what are the contents of /etc/hostname? Only the name of your machine or the fqdn?
this is the content: dharma.fritz.box I'm not familiar with the term fqdn but wikipedia mentions a dot at the end as having some importance. May that be my problem?
If it is the fqdn, try with the name only and - if necessary - set 127.0.1.1 <fqdn> <name> in /etc/hosts.
Here my /etc/hosts: # # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 localhost # special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts your proposition to add "127.0.1.1 <fqdn> <name>" should that look like: 127.0.0.1 dharma.fritz.box and what should be writte there as name? or is it supposed to be: 127.0.0.1 fritz.box dharma not sure what would be correct. thx, Karl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi, Am 24.01.19 um 17:16 schrieb Karl Sinn:
Hi,
Am 24.01.19 um 11:37 schrieb Michael Hirmke:
I checked on google and it seems to be linked with .Xauthority and/or $DISPLAY. The proposed solutions: - delete .Xauthority - export DISPLAY=:0.0 - export DISPLAY=:1.0 - export DISPLAY=:99.0
won't change a thing.
How do I solve this?
what are the contents of /etc/hostname? Only the name of your machine or the fqdn?
this is the content: dharma.fritz.box
I wondered why the installer put "fritz.box" there as the domain in the network settings. I remembered, that in the past this field in Yast was always empty so I went to Yast and I deleted this part. I restarted the computer => problem solved. Now the question: - why did the installer add this there if it causes trouble - did the installer make a mistake? => should I file a bugreport? thx lot, Karl
I'm not familiar with the term fqdn but wikipedia mentions a dot at the end as having some importance. May that be my problem?
If it is the fqdn, try with the name only and - if necessary - set 127.0.1.1 <fqdn> <name> in /etc/hosts.
Here my /etc/hosts: # # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname #
127.0.0.1 localhost
# special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts
your proposition to add "127.0.1.1 <fqdn> <name>" should that look like: 127.0.0.1 dharma.fritz.box
and what should be writte there as name?
or is it supposed to be: 127.0.0.1 fritz.box dharma
not sure what would be correct.
thx, Karl
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 24/01/2019 17.27, Karl Sinn wrote:
Hi,
Am 24.01.19 um 17:16 schrieb Karl Sinn:
Hi,
Am 24.01.19 um 11:37 schrieb Michael Hirmke:
I checked on google and it seems to be linked with .Xauthority and/or $DISPLAY. The proposed solutions: - delete .Xauthority - export DISPLAY=:0.0 - export DISPLAY=:1.0 - export DISPLAY=:99.0
won't change a thing.
How do I solve this?
what are the contents of /etc/hostname? Only the name of your machine or the fqdn?
this is the content: dharma.fritz.box
I wondered why the installer put "fritz.box" there as the domain in the network settings. I remembered, that in the past this field in Yast was always empty so I went to Yast and I deleted this part. I restarted the computer => problem solved.
I have Telcontar:~ # cat /etc/hostname Telcontar.valinor Telcontar:~ # Since many years, no problem.
If it is the fqdn, try with the name only and - if necessary - set 127.0.1.1 <fqdn> <name> in /etc/hosts.
Here my /etc/hosts:
...
your proposition to add "127.0.1.1 <fqdn> <name>" should that look like: 127.0.0.1 dharma.fritz.box
127.0.0.1 dharma.fritz.box dharma Notice that assigning 127.0.0.1 may break several programs, notably postfix. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
Hi, Am 24.01.19 um 19:58 schrieb Carlos E. R.:
On 24/01/2019 17.27, Karl Sinn wrote:
Hi,
Am 24.01.19 um 17:16 schrieb Karl Sinn:
Hi,
Am 24.01.19 um 11:37 schrieb Michael Hirmke:
I checked on google and it seems to be linked with .Xauthority and/or $DISPLAY. The proposed solutions: - delete .Xauthority - export DISPLAY=:0.0 - export DISPLAY=:1.0 - export DISPLAY=:99.0
won't change a thing.
How do I solve this?
what are the contents of /etc/hostname? Only the name of your machine or the fqdn?
this is the content: dharma.fritz.box
I wondered why the installer put "fritz.box" there as the domain in the network settings. I remembered, that in the past this field in Yast was always empty so I went to Yast and I deleted this part. I restarted the computer => problem solved.
I have
Telcontar:~ # cat /etc/hostname Telcontar.valinor Telcontar:~ #
Since many years, no problem.
so any clue why I had the problem? Karl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 24/01/2019 22.08, Karl Sinn wrote:
Hi,
Am 24.01.19 um 19:58 schrieb Carlos E. R.:
On 24/01/2019 17.27, Karl Sinn wrote:
Hi,
Am 24.01.19 um 17:16 schrieb Karl Sinn:
Hi,
Am 24.01.19 um 11:37 schrieb Michael Hirmke:
I checked on google and it seems to be linked with .Xauthority and/or $DISPLAY. The proposed solutions: - delete .Xauthority - export DISPLAY=:0.0 - export DISPLAY=:1.0 - export DISPLAY=:99.0
won't change a thing.
How do I solve this?
what are the contents of /etc/hostname? Only the name of your machine or the fqdn?
this is the content: dharma.fritz.box
I wondered why the installer put "fritz.box" there as the domain in the network settings. I remembered, that in the past this field in Yast was always empty so I went to Yast and I deleted this part. I restarted the computer => problem solved.
I have
Telcontar:~ # cat /etc/hostname Telcontar.valinor Telcontar:~ #
Since many years, no problem.
so any clue why I had the problem?
Nope. But if your system is working now, leave it as is :-) maybe it is a bug in that application :-? -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
On 01/24/2019 12:58 PM, Carlos E. R. wrote:
127.0.0.1 dharma.fritz.box dharma
Notice that assigning 127.0.0.1 may break several programs, notably postfix.
I haven't needed to change the default. Simply setting the hostname with the Fully Qualified Domain Name (FQDN) as root: # hostname dharma.fritz.box # echo dharma.fritz.box > /etc/hostname You can verify with $ hostname dharma $ hostname -f dharma.fritz.box You can do (but I haven't needed to change defaults) # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 dharma.fritz.box dharma localhost Where the Short-Hostname are aliases and you can have more than one. (note: suse use to use a 127.0.0.2 in that regard, but I haven't seen that since 11.x or so) Other Topic... You only need a 'dot' at the end of the domain in bind zone file for (DNS) to prevent bind appending another, not with /etc/hosts. -- David C. Rankin, J.D.,P.E.
On 26/01/2019 06.49, David C. Rankin wrote:
On 01/24/2019 12:58 PM, Carlos E. R. wrote:
127.0.0.1 dharma.fritz.box dharma
Notice that assigning 127.0.0.1 may break several programs, notably postfix.
...
You can do (but I haven't needed to change defaults)
# IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 dharma.fritz.box dharma localhost
Where the Short-Hostname are aliases and you can have more than one.
(note: suse use to use a 127.0.0.2 in that regard, but I haven't seen that since 11.x or so)
See Bug 824141 -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
Hi Karl, [...]
Now the question: - why did the installer add this there if it causes trouble - did the installer make a mistake?
=>> should I file a bugreport? this is not an installer bug, though it may seem so. Read the man page for /etc/hostname carefully: The /etc/hostname file configures the *name* of the local system that is set during boot using the sethostname(2) system call. It should contain a single newline-terminated hostname string. Comments (lines starting with a `#') are ignored. The hostname may be a free-form string up to 64 characters in length; however, *it is recommended that it consists only* *of 7-bit ASCII lower-case characters and no spaces or dots*, and limits itself to the format allowed *for DNS domain name labels*, even though this is not a strict requirement. It cost me 2 weeks to find out, that during boot process the combination of kernel, systemd and NetworkManager behaviour led to two changes for the hostname - the first one was set by the kernel without the domain part during pre boot, the second one was set by NetworkManager, who got it from systemd-hostnamed, who in turn read it from /etc/hostname. If the logon manager (sddm, ...) was up before the second change took place, it created a cookie, that gets written into .Xauthority after logon. When the hostname changes for the second time after logon, the cookie isn't valid any longer, because it contains the name without the domain part, but now the machine's name contains the domain part. So if it is a bug, it is a bug regarding the cooperation of NetworkManager and systemd. [...]
your proposition to add "127.0.1.1 <fqdn> <name>" should that look like: 127.0.0.1 dharma.fritz.box
*Not* 127.0.0.1, but 127.0.1.1, but otherwise *this version* is correct. Read man page for /etc/hosts. [...]
thx, Karl
Bye, Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 25/01/2019 21.20, Michael Hirmke wrote:
Hi Karl,
[...]
Now the question: - why did the installer add this there if it causes trouble - did the installer make a mistake?
=>> should I file a bugreport?
this is not an installer bug, though it may seem so. Read the man page for /etc/hostname carefully:
The /etc/hostname file configures the *name* of the local system that is set during boot using the sethostname(2) system call. It should contain a single newline-terminated hostname string. Comments (lines starting with a `#') are ignored. The hostname may be a free-form string up to 64 characters in length; however, *it is recommended that it consists only* *of 7-bit ASCII lower-case characters and no spaces or dots*, and limits itself to the format allowed *for DNS domain name labels*, even though this is not a strict requirement.
It cost me 2 weeks to find out, that during boot process the combination of kernel, systemd and NetworkManager behaviour led to two changes for the hostname - the first one was set by the kernel without the domain part during pre boot, the second one was set by NetworkManager, who got it from systemd-hostnamed, who in turn read it from /etc/hostname. If the logon manager (sddm, ...) was up before the second change took place, it created a cookie, that gets written into .Xauthority after logon. When the hostname changes for the second time after logon, the cookie isn't valid any longer, because it contains the name without the domain part, but now the machine's name contains the domain part.
No dots? All my etc/hostname files contains strings with dot: "name.domain". Then we can not enter the domain? Then YaST is doing it wrong, because the name is set in YaST. :-? -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
Hi Carlos,
On 25/01/2019 21.20, Michael Hirmke wrote: [...]
this is not an installer bug, though it may seem so. Read the man page for /etc/hostname carefully:
The /etc/hostname file configures the *name* of the local system that is set during boot using the sethostname(2) system call. It should contain a single newline-terminated hostname string. Comments (lines starting with a `#') are ignored. The hostname may be a free-form string up to 64 characters in length; however, *it is recommended that it consists only* *of 7-bit ASCII lower-case characters and no spaces or dots*, and limits itself to the format allowed *for DNS domain name labels*, even though this is not a strict requirement.
It cost me 2 weeks to find out, that during boot process the combination of kernel, systemd and NetworkManager behaviour led to two changes for the hostname - the first one was set by the kernel without the domain part during pre boot, the second one was set by NetworkManager, who got it from systemd-hostnamed, who in turn read it from /etc/hostname. If the logon manager (sddm, ...) was up before the second change took place, it created a cookie, that gets written into .Xauthority after logon. When the hostname changes for the second time after logon, the cookie isn't valid any longer, because it contains the name without the domain part, but now the machine's name contains the domain part.
No dots?
I think this is the misleading part: "limits itself to the format allowed *for DNS domain name labels*" So to my understanding it may contain fqdns.
All my etc/hostname files contains strings with dot: "name.domain". Then we can not enter the domain?
Then YaST is doing it wrong, because the name is set in YaST. :-?
Maybe, maybe not. I strongly suspect NetworkManager/systemd, as I wrote before.
-- Cheers / Saludos,
Carlos E. R.
Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 1/24/19 5:16 PM, Karl Sinn wrote:
I'm not familiar with the term fqdn
Fully-Qualified Domain Name https://en.wikipedia.org/wiki/Fully_qualified_domain_name -- Liam Proven - Technical Writer, SUSE Linux s.r.o. Corso II, Křižíkova 148/34, 186-00 Praha 8 - Karlín, Czechia Email: lproven@suse.com - Office telephone: +420 284 241 084 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 24/01/2019 18.05, Liam Proven wrote:
On 1/24/19 5:16 PM, Karl Sinn wrote:
I'm not familiar with the term fqdn
Fully-Qualified Domain Name
The hosts file contains a comment that explains what it expects. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
participants (5)
-
Carlos E. R.
-
David C. Rankin
-
Karl Sinn
-
Liam Proven
-
mh@mike.franken.de