-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Apps, Services & Software
- RGS
- Kubuntu 20.04.1 LTS rgsender-service exits with error

Create an account on the HP Community to personalize your profile and ask a question
12-28-2020 04:21 PM - edited 12-29-2020 01:33 AM
Hi all!
I have a fresh Kubuntu 20.04.1 LTS with HP ZCentral Remote Boost Sender - Version: 20.1.0.26348 installed.
If i manually launch rgsender from terminal all work fine and i can remotely connect from my Macbook.
Instead, rgsender-service.sh doesn't work. Here in the following some logs.
systemctl status rgsender.service
rgsender.service - RGS Sender Service
Loaded: loaded (/lib/systemd/system/rgsender.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2020-12-29 00:18:39 CET; 474ms ago
Process: 79452 ExecStart=/opt/hpremote/rgsender/rgsender-service.sh (code=exited, status=1/FAILURE)
Main PID: 79452 (code=exited, status=1/FAILURE)
/var/log/syslog
Dec 29 00:00:11 intro systemd[1]: rgsender.service: Scheduled restart job, restart counter is at 680.
Dec 29 00:00:11 intro systemd[1]: Stopped RGS Sender Service.
Dec 29 00:00:11 intro systemd[1]: Started RGS Sender Service.
Dec 29 00:00:11 intro systemd[1]: rgsender.service: Main process exited, code=exited, status=1/FAILURE
Dec 29 00:00:11 intro systemd[1]: rgsender.service: Failed with result 'exit-code'.
Dec 29 00:00:14 intro systemd[1]: rgsender.service: Scheduled restart job, restart counter is at 681.
Dec 29 00:00:14 intro systemd[1]: Stopped RGS Sender Service.
Dec 29 00:00:14 intro systemd[1]: Started RGS Sender Service.
/var/opt/hpremote/rgsender/rg-svc.log
2020/12/29 00:17:33 (77697) - OS distribution : ubuntu
2020/12/29 00:17:33 (77697) - OS major version: 20
2020/12/29 00:17:33 (77697) - wait for X server to start
2020/12/29 00:17:34 (77697) - X Server PID: 1257
2020/12/29 00:17:34 (77697) - ERROR: failed to get DISPLAY
Someone can help me to address this issue please?
01-03-2021 05:51 AM - edited 01-03-2021 06:00 AM
Ok guys, I found the source of the issue. it resides in how the script rgsender-service.sh attempts to retrieve the display number on which xorg is running. That is, in the function get_display_from_xorg_param():
get_display_from_xorg_param()
{
local pid=$1
local cmdfile=/proc/$pid/cmdline
if [ ! -r $cmdfile ]; then
rgs_log "ERROR: ${FUNCNAME[0]} - unable to read $cmdfile"
exit 1
fi
# Extract the argument that starts with ":" followed by a sequence of
# numbers.
local result=`multisz_to_strings $cmdfile | grep -m 1 -E '^:[0-9]+'`
# "return" the value or empty string
echo $result
}
The function tries to retrieve display number from Xorg startup parameters. Unfortunately, SDDM display-manager starts Xorg whit the -displayfd options (see man page here ). So get_display_from_xorg_param() returns an empty string and the main script exits with error.
I think that this is a bug and should be taken over. As a workaround I modified the function hard coding my display number.
Thanks,
Simone.