psi icon indicating copy to clipboard operation
psi copied to clipboard

Red cross for a contact who had a DNS problem or who has migrated of XMPP server - to solve in the client, we need to close the client and reopen

Open Neustradamus opened this issue 6 years ago • 8 comments

Dear @psi-im team, @psi-plus team, @Ri0n, @Vitozz, @tehnick,

A contact (admin of his XMPP server) had a problem, a red cross for him:

Presence Error: Remote server not found.
A remote server or service specified as part or all of the JID of the intended recipient does not exist.
Server-to-server connection failed: unable to resolve service

Screenshot:

  • https://i.ibb.co/g656KcW/psi-red-cross-vcard-status-tab.png

He had a DNS problem and he has solved it but always a red cross in the XMPP client.

The solution is to close the client and start a new time.

After it, there is no problem, no red cross in roster before the contact name.


EDIT: New example in 2024:

  • https://i.ibb.co/sJ8NHp1/psi-bug-red-cross-2024.png
Presence Error: Remote server timeout.
A remote server or service specified as part or all of the JID of the intended recipient (or required to fulfill a request) could not be contacted within a reasonable amount of time.
Server-to-server connection failed: host-unknown (This host does not serve domain.tld)

Linked to:

  • https://github.com/psi-im/psi/issues/445
  • https://github.com/psi-im/psi/issues/247
  • https://github.com/psi-plus/main/issues/666

Neustradamus avatar Mar 18 '19 18:03 Neustradamus

I don't understand how one should reproduce it. But I guess you are talking about this piece of code

        else if (!index.data(ContactListModel::AuthorizesToSeeStatusRole).toBool() && s == XMPP::Status::Offline)
            s = STATUS_NOAUTH;

This baically means the contact didn't send updated status and we can't do anything here. It's a problem of the other side.

Ri0n avatar Mar 19 '19 07:03 Ri0n

I don't understand how one should reproduce it.

For example:

  1. Launch any xmpp server on localhost.
  2. Register new account in it.
  3. Add this temporary account to contacts list in your primary account.
  4. Stop xmpp server on localhost.
  5. Restart xmpp client.
  6. You should see this temporary contact with red crosshair icon.
  7. Launch xmpp server on localhost.
  8. You should still see this temporary contact with red crosshair icon.

Personally I am not interested in this issue and not planning to check algorithm described above.

tehnick avatar Mar 19 '19 09:03 tehnick

@Ri0n, @tehnick, @Vitozz: Today, a contact has migrated this XMPP server, I have a red cross and this error:

Presence Error: Remote server not found.
A remote server or service specified as part or all of the JID of the intended recipient does not exist.
Server-to-server connection failed: unable to resolve service

Screenshot:

  • https://i.ibb.co/g656KcW/psi-red-cross-vcard-status-tab.png

I confirm that the problem is always here. I can join a MUC Room on this XMPP server.

Neustradamus avatar Jun 02 '24 16:06 Neustradamus

I still think it's not a bug. so let's just close it

Ri0n avatar Jun 02 '24 22:06 Ri0n

@Ri0n: It is a bug, not new... There is no DNS check/refresh in the client.

Neustradamus avatar Jun 02 '24 22:06 Neustradamus

Wrt dns problems on client side it's clearly impossible. İt's cleaned up and resolved again every time.

Ri0n avatar Jun 02 '24 22:06 Ri0n

Example in a screenshot:

  • https://i.ibb.co/sJ8NHp1/psi-bug-red-cross-2024.png

Neustradamus avatar Oct 12 '24 13:10 Neustradamus

@jkarneges: Can you look this JDNS bug?

Thanks in advance.

Linked to:

  • https://github.com/psi-im/psi/issues/247
  • https://github.com/psi-plus/main/issues/666

Neustradamus avatar Sep 26 '25 22:09 Neustradamus