Bug 53995 - "Authentication error" pop up
Summary: "Authentication error" pop up
Status: CLOSED FIXED
Alias: None
Product: UCS@school
Classification: Unclassified
Component: Veyon
Version: UCS@school 5.0
Hardware: Other Linux
: P5 normal
Target Milestone: UCS@school 5.0 v6-errata
Assignee: Johannes Königer
QA Contact: Jürn Brodersen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-29 13:28 CEST by Jürn Brodersen
Modified: 2024-09-26 13:13 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.257
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support: Yes
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022121221000259
Bug group (optional): Troubleshooting
Customer ID:
Max CVSS v3 score:


Attachments
Check port (1.65 KB, patch)
2023-01-30 18:50 CET, Jürn Brodersen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jürn Brodersen univentionstaff 2021-10-29 13:28:49 CEST
"Authentication error" pop up

Upon start or restarting the windows veyon service an "Authentication error" pop up is shown (on windows).

The reason for this pop up is the GET /authentication/ command which we use as a ping.

The pop up is only shown once for a host but "Authentication failed for ..." is logged every second for each ping command in the veyon log on windows.

How to reproduce:
- Open the computerroom with a windows client
- Restart the veyon service on the windows client
- The message should now pop up

Relevant files:
veyon: server/src/ComputerControlServer.cpp (For the error message)
ucs@school: ucs-school-veyon-client/veyon_client/client.py (ping command)
Comment 1 Mirac Erdemiroglu univentionstaff 2023-01-13 08:50:12 CET
Another customer effected Ticket 2022121221000259
Comment 3 Jürn Brodersen univentionstaff 2023-01-30 18:50:40 CET
Created attachment 11025 [details]
Check port

The upstream developer suggested checking the port directly instead. For an example see the attached patch. But at least in my test, even just opening the port already resulted in an error on the windows machine. Due to time constrains I didn't investigate that any further.

Maybe port 11400 (also used by veyon) can be used or I just did something wrong?

Note:
We do not use an authenticated call because that might be cached by the veyon proxy.
Comment 5 Johannes Königer univentionstaff 2024-09-26 08:33:29 CEST
Fixed with commit c90b196c18cb1d00a8d3e9214327a91d8fca6274

Package: ucs-school-veyon-client
Version: 2.0.9

We now use a direct TCP/IP socket connection with the Veyon Server on the client computers to determine the aliveness of them. This does not trigger the pop up anymore.
Comment 6 Jürn Brodersen univentionstaff 2024-09-26 12:02:22 CEST
What I tested:


lsof shows less connections -> OK
No more auth popup after restarting veyon on windows -> OK
No tracebacks/crashes if veyon is down -> OK
update thread is paused and restarts -> OK
After starting veyon again computer information is updated again as well -> OK
Comment 7 Johannes Königer univentionstaff 2024-09-26 13:13:00 CEST
Errata updates for UCS@school 5.0 v6 have been released.

https://docs.software-univention.de/ucsschool-changelog/5.0v6/en/changelog.html
https://docs.software-univention.de/ucsschool-changelog/5.0v6/de/changelog.html

If this error occurs again, please clone this bug.