Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1711646 - Scriptlet error when updating through SSH
Summary: Scriptlet error when updating through SSH
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus-typing-booster
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mike FABIAN
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-19 09:20 UTC by David Auer
Modified: 2021-05-09 14:31 UTC (History)
5 users (show)

Fixed In Version: ibus-typing-booster-2.11.4-1.fc35 ibus-typing-booster-2.11.4-1.eln110 ibus-typing-booster-2.11.4-1.fc32 ibus-typing-booster-2.11.4-1.fc33 ibus-typing-booster-2.11.4-1.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-29 17:56:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Auer 2019-05-19 09:20:48 UTC
Description of problem:
When I update or reinstall ibus-1.5.20-4.fc30 over SSH, dnf outputs the error "X11 connection rejected because of wrong authentication.".

This is caused by https://src.fedoraproject.org/rpms/ibus/blob/master/f/ibus.spec#_338
running `sudo ibus write-cache --system` results in the same error when called over SSH.

Version-Release number of selected component (if applicable):
ibus-1.5.20-4.fc30

How reproducible:
Always over SSH, never when using the terminal directly on the machine.

Steps to Reproduce:
1. Reinstall or update to ibus-1.5.20-4.fc30

Actual results:
  Running scriptlet: ibus-1.5.20-4.fc30.x86_64         
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
  Verifying        : ibus-1.5.20-4.fc30.x86_64     


Expected results:
  Running scriptlet: ibus-1.5.20-4.fc30.x86_64             
  Verifying        : ibus-1.5.20-4.fc30.x86_64

Comment 1 fujiwara 2019-05-20 06:53:35 UTC
> running `sudo ibus write-cache --system` results in the same error when called over SSH.

I cannot reproduce your problem. The `ibus write-cache` does not use the X11 connection.
Probably I guess one of your IBus engines could use the X11 connection but not ibus core.

You can move all xml files in /usr/share/ibus/component/ and run the command again so that you check which xml file effects your problem.

Comment 2 David Auer 2019-05-20 12:28:07 UTC
It's caused by ibus-typing-booster-2.6.1-1. Changing the component accordingly.
Thanks for your help, fujiwara!

The problem also occurs on (re)installing ibus-typing booster as it has the same scriptlets.

Comment 3 fujiwara 2019-07-12 03:34:28 UTC
I think this is a bug.

Comment 4 Mike FABIAN 2019-09-16 20:20:12 UTC
I cannot reproduce this.

Comment 5 David Auer 2019-09-16 22:53:25 UTC
I just found out that it only happens when X11 forwarding is active. (I have this as default for my own machines so I didn't realize it earlier.)

If you want to reproduce you will need:

 - On your host in /etc/ssh/sshd_config:
   X11Forwarding yes

 - Restart sshd (Untested: sudo systemctl restart sshd)

 - Ssh into your machine (client and host can be the same or different machines) with the -X flag.

 - sudo dnf reinstall ibus-typing-booster


I see now, that this is quite an edge-case so feel free to just close this as wontfix if you do not want to spend time on it.

Comment 6 fujiwara 2019-09-17 04:40:58 UTC
I can see the "Connection refused" warnings:

```
# /usr/libexec/ibus-engine-typing-booster --xml
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
<engines>
    <engine>
        <name>typing-booster</name>
        <longname>Typing Booster</longname>
        <language>t</language>
...
</engines>
```

Comment 7 Mike FABIAN 2019-12-03 07:59:46 UTC
(In reply to fujiwara from comment #6)
> I can see the "Connection refused" warnings:
> 
> ```
> # /usr/libexec/ibus-engine-typing-booster --xml
> Unable to init server: Could not connect: Connection refused
> Unable to init server: Could not connect: Connection refused
> <engines>
>     <engine>
>         <name>typing-booster</name>
>         <longname>Typing Booster</longname>
>         <language>t</language>
> ...
> </engines>

Unfortunately I cannot reproduce this.

Comment 8 Mike FABIAN 2019-12-17 06:04:07 UTC
$ env -u DISPLAY /usr/libexec/ibus-engine-typing-booster --xml
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
<engines>
    <engine>
        <name>typing-booster</name>
        <longname>Typing Booster</longname>
        <language>t</language>
        <license>GPL</license>
        <author>Mike FABIAN &lt;mfabian&gt;, Anish Patil &lt;anish.developer@gmail.
com&gt;</author>
        <icon>/usr/share/ibus-typing-booster/icons/ibus-typing-booster.svg</icon>
        <layout>default</layout>
        <description>A completion input method to speedup typing.</description>
        <symbol>🚀</symbol>
        <setup>/usr/libexec/ibus-setup-typing-booster</setup>
        <icon_prop_key>InputMode</icon_prop_key>
    </engine>
</engines>

Comment 9 Fedora Update System 2021-04-29 17:56:56 UTC
FEDORA-2021-d0315c0d74 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2021-04-29 18:05:58 UTC
FEDORA-2021-23444a781e has been pushed to the Fedora ELN stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2021-04-29 19:12:40 UTC
FEDORA-2021-dc40c874a1 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-dc40c874a1

Comment 12 Fedora Update System 2021-04-29 19:13:14 UTC
FEDORA-2021-ba329e760f has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-ba329e760f

Comment 13 Fedora Update System 2021-04-29 19:13:32 UTC
FEDORA-2021-97349467f8 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-97349467f8

Comment 14 Fedora Update System 2021-04-30 01:04:25 UTC
FEDORA-2021-97349467f8 has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-97349467f8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-97349467f8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2021-04-30 01:42:53 UTC
FEDORA-2021-ba329e760f has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-ba329e760f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-ba329e760f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2021-04-30 02:05:43 UTC
FEDORA-2021-dc40c874a1 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-dc40c874a1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-dc40c874a1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2021-05-08 01:10:04 UTC
FEDORA-2021-97349467f8 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 18 Fedora Update System 2021-05-08 01:23:09 UTC
FEDORA-2021-dc40c874a1 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2021-05-08 01:33:31 UTC
FEDORA-2021-ba329e760f has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 20 David Auer 2021-05-09 14:31:09 UTC
Thank you! No more warnings at `dnf update` :)


Note You need to log in before you can comment on or make changes to this bug.