Skip to content

upgraded to 4.22 - unset environment variable evaluates to an empty string for java debug #12217

Closed

Description

@Chih80

After upgrading to 4.22 I notice the following after checking the status on the cloudstack management server"

cloudstack-management.service: Referenced but unset environment variable evaluates to an empty string: JAVA_DEBUG

Is this the expected output?

systemctl status cludstack-management.service:

● cloudstack-management.service - CloudStack Management Server
Loaded: loaded (/usr/lib/systemd/system/cloudstack-management.service; enabled; preset: enabled)
Active: active (running) since Tue 2025-12-09 02:11:09 UTC; 22h ago
Process: 867 ExecStartPre=/usr/share/cloudstack-common/scripts/installer/pre-check.sh (code=exited, status=0/SUCCESS)
Main PID: 1001 (java)
Tasks: 1237 (limit: 18640)
Memory: 1.1G (peak: 1.3G)
CPU: 43min 37.173s
CGroup: /system.slice/cloudstack-management.service
└─1001 /usr/bin/java -Djava.security.properties=/etc/cloudstack/management/java.security.ciphers -Djava.awt.headless=true -Xmx2G -XX:+UseParallelGC -X>

Dec 09 02:11:09 lab-mgm-01 systemd[1]: Starting cloudstack-management.service - CloudStack Management Server...
Dec 09 02:11:09 lab-mgm-01 systemd[1]: Started cloudstack-management.service - CloudStack Management Server.
Dec 09 02:11:09 lab-mgm-01 (java)[1001]: cloudstack-management.service: Referenced but unset environment variable evaluates to an empty string: JAVA_DEBUG
Dec 09 02:12:30 lab-mgm-01 sudo[1567]: cloud : PWD=/var/log/cloudstack/management ; USER=root ; COMMAND=/bin/mount -t nfs 10.60.249.12:/mnt/secondary/exports /v>
Dec 09 02:12:30 lab-mgm-01 sudo[1567]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=116)
Dec 09 02:12:30 lab-mgm-01 sudo[1567]: pam_unix(sudo:session): session closed for user root
Dec 09 02:12:30 lab-mgm-01 sudo[1592]: cloud : PWD=/var/log/cloudstack/management ; USER=root ; COMMAND=/bin/chmod 1777 /var/lib/cloudstack/mnt/206863106017244.>
Dec 09 02:12:30 lab-mgm-01 sudo[1592]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=116)
Dec 09 02:12:30 lab-mgm-01 sudo[1592]: pam_unix(sudo:session): session closed for user root

Activity

  1. DaanHoogland commented on Dec 10, 2025

    @DaanHoogland
    Contributor

    @Chih80 , I do not see the problem here. any shell will return an empty string for an variable that isn’t set, would they? I think this is not even something new in cloudstack, but rather in the systemd implementation. If it would not report it before and it does now that is, because the start scripts have always handled JAVA_DEBUG in this way; just blindly adding them to the command line counting on it being evaluated as an empty string if not set.

  2. locked and limited conversation to collaborators on Dec 10, 2025
  3. converted this issue into a discussion #12220 on Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions