Closed powellnorma closed 10 months ago
Dupe of #27197?
@powellnorma is it possible you have some system proxy settings? I bet the flatpak package can't read them due to being sandboxed.
Perhaps this is really a dup of #26321.
is it possible you have some system proxy settings?
No, that is not the case
No, that is not the case
Are you sure? Maybe you have set long time ago and forgot about that? Check env | grep -i proxy
and the DE's proxy configuration dialog.
Are you sure
Yes.
env | grep -i proxy
Does not output anything.
I also can reach the internet fine when I do this:
flatpak enter org.telegram.desktop sh
curl https://telegram.org
I have tested it again, this time a QR Code got generated. But I am not sure how stable it is.. Seems like this bug only happens irregularly.
The error means the client is having problem with accessing the hard-coded DoH servers. It might be a problem with your ISP.
Just faced the same issue on latest Ubuntu 23.10 + flatpak and snap packages. What is strange - is that DEB package taken from here: https://launchpad.net/~atareao/+archive/ubuntu/telegram Works absolutely fine. As I can see, they are a bit outdated, could this signalize that Telegram recently switched to some logins servers, my ISP unable connect to?
Weird guess: maybe the server started to throttle the flatpak/snap api key? They use the same but unofficial API key.
I encountered the same issue where the QR code kept loading, and from the logs, I saw "Qt: Session management error: Could not open network socket". Therefore, I gave up on installing Telegram via Flatpak.
:~> flatpak run org.telegram.desktop
Gtk-Message: 22:43:04.356: Failed to load module "canberra-gtk-module"
Qt: Session management error: Could not open network socket
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
@ilya-fedin , Could you please advise on whether we should wait for the Telegram servers to stop throttling API keys for Snap/Flatpak, or should I contact the packagers? It's not very clear to me whom this issue should be addressed to. 😞
I'm one of the packagers. I don't have server developers contacts so I don't know regarding whether they will stop or not. What I know for sure is there's no way to fix it if it's really due to API keys. At least unless flathub/snapcraft CI owners would allow to provide secrets to hide the API keys.
From Flatseal Enable D-Bass System Bus and it will work
From Flatseal Enable D-Bass System Bus and it will work
Tested on Fedora and its working flawlessly after doing this.
I don't think this can really help cause tdesktop doesn't use the system bus
I can confirm the same thing. Same Actual behaviour, fixed activating D-Bass System Bus from Flatseal.
This should be addressed BTW
I don't believe that. I would rather assume the fact you change settings helps rather than actual access.
Ok, what i know is just that i have changed that permission and now it works.
Confirmed enabling D-Bus system bus with Flatseal fixes the login issue.
I'm not a very advanced Linux user, but is this bring any security implications? I compared system bus pcaps between flatpak with D-BUS system enabled and pcaps with telegram from pacman and it looks very similar. Can you please confirm that I don't exposure system more to flatpak with D-BUS system enabled in compare with telegram from pacman? Thank you.
You do exposure, the application has entire control on your system with such access and can run arbitrary commands via e.g. the systemd interface.
thank you. Interesting, since the version from pacman write to dbus the same messages, does it mean that this version by default can
"control on your system with such access and can run arbitrary commands via e.g. the systemd interface. "
? I just want to understand which version should I use, or it doesn't matter.
thank you. Interesting, since the version from pacman write to dbus the same messages, does it mean that this version by default can
Well, tdesktop code doesn't use system bus at all. So you're giving entire access to your system for nothing.
I'm not sure, I use "bustle" to listen system bus and both versions, pacman and flatpak writes there actively. ( to session and to system bus )
can you provide a record? tdesktop uses session bus, yes, but not system bus.
redacted for privacy reasons that's record right after I start telegram from flatpak ( the same from pacman )
@buser8303 why do you think it's telegram? these requests don't look related to telegram, maybe it's some system component doing in response to telegram launch?
hm, I didn't think this way, but maybe you are right. Strange that it still required to enable socket on "telegram" to make it work.
Well, I don't believe it's required. As I already said:
I would rather assume the fact you change settings helps rather than actual access.
Perhaps there's some bug in flatpak sandbox that makes it malfunction when there's no permission override. I can't explain this any other way.
perhaps, but so far it looks like no additional systembus calls were initiated by telegram, so I likely ok to just remove and use the version from pacman. Thank you.
what if you disconnect and reconnect to the network after Telegram start instead of giving permission?
Can confirm, enabling system dbus fixed both the missing QRcode AND the login issue on a FRESH ubuntu 22.04 install
I have the same problem, I use LinuxMint 21.3 and there is no way to log in. The QR does not appear and neither does the phone number. The version of the Linux mint system is very outdated. I am new to Linux and I don't know how to do what you say about D-bass system bus? . Can you explain it? Thank you.
Please try this
what if you disconnect and reconnect to the network after Telegram start instead of giving permission?
It doesn't do anything by disconnecting the network either....
Hmm, a person from #27450 said it helps..
Hmm, una persona de 27450 dijo que ayuda..
Thank you so much. Now it seems to be working, first opening Telegram offline, and then connecting it. Not the other way around.
Thank you.
I may be wrong, but I suspect this happens because my nvidia drivers are shambolic after suspend/resume. I unloaded some modules and tried telegram again and the QR code appeared.
sudo rmmod nvidia_uvm nvidia_drm nvidia_modeset
I'm not sure which module is at fault, but I've been using this hack for many apps that fail after suspend, especially electron apps that need graphics acceleration.
can confirm, starting telegram while disconnected, and then connecting resutls in the QR code being shown.
Logs from running flatpak run org.telegram.desktop
:
Gtk-Message: 22:18:42.824: Failed to load module "canberra-gtk-module"
Gtk-Message: 22:18:42.824: Failed to load module "pk-gtk-module"
Gtk-Message: 22:18:42.825: Failed to load module "canberra-gtk-module"
Gtk-Message: 22:18:42.825: Failed to load module "pk-gtk-module"
Qt: Session management error: Could not open network socket
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
It seems broken still, why's this closed? Same for me:
Qt: Session management error: Could not open network socket
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
@camgaertner there's an open issue about that. I don't remember its number though.
Hmm, a person from #27450 said it helps..
Here it is
Hmm, a person from #27450 said it helps..
Here it is
Not sure if the issue is the same, but symptoms are similar.
In this issue, we are all getting this very suspicious network-related error:
Qt: Session management error: Could not open network socket
but the linked issue doesn't have it. Anyways, I'll follow the other issue, thanks for the info.
Qt: Session management error: Could not open network socket
This means Qt is unable to connect to the session manager. That's quite expected given that flatpak blocks access to XSMP.
Another solution:
Viola!
Steps to reproduce
Expected behaviour
Actual behaviour
Note: Using the "native" version instead of the flatpak version works fine! I think it might have to do with
Config Error: No 'Date' header received.
- Thats the last thing that is getting logged, and similar to https://github.com/telegramdesktop/tdesktop/issues/26321 - And this is not logged for the "native" version.Operating system
fedora 37
Version of Telegram Desktop
4.12.2
Installation source
Flatpak
Crash ID
No response
Logs