• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Join the HP Community Solve‑a‑thon | Help Others & Share Your Solutions | Live on Zoom | 2:30 PM to 2:30 AM IST | Every Wednesday Click here to know more
HP Recommended
Supermicro Superserver
Ubuntu LTS

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?

1 REPLY 1
HP Recommended

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.

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.
-->