Hi Wei

Found an issue with regards to the installation of 4.23 RC packages on
Ubuntu 24.0.4

The usage service is not able to start due the missing key file. The issue
is also present with the 4.22 installation also

It was mentioned in the discussion

https://github.com/apache/cloudstack/discussions/13251

Steps to reproduce the issue

1. Configure the repo

vi /etc/apt/sources.list.d/cloudstack.list
deb [trusted=yes]
http://download.cloudstack.org/testing/4.23.0.0-RC1/debian/4.23/ ./

2. Update the repo and install the packages
apt update
apt-get install cloudstack-management mysql-server cloudstack-usage

3. Configure the mysql by setting a root password and editing the mysql
configuration

mysql -u root

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY
'password';

FLUSH PRIVILEGES;

/etc/mysql/mysql.conf.d/mysqld.cnf

[mysqld]

server_id = 1
sql-mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION,ERROR_FOR_DIVISION_BY_ZERO,NO_ZERO_DATE,NO_ZERO_IN_DATE,NO_ENGINE_SUBSTITUTION"
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=1000
log-bin=mysql-bin
binlog-format = 'ROW'
4. Restart the mysql

systemctl restart mysql

5. Run the cloudstack-setup

cloudstack-setup-databases cloud:cloud@localhost --deploy-as=root:password
-i <mgmtip>

6. Start the usage service

service cloudstack-usage start

7. Logs

root@test3:/etc/cloudstack/usage# tail -f
/var/log/cloudstack/usage/usage.err
at
java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at
java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:291)
... 20 more
Caused by: com.cloud.utils.exception.CloudRuntimeException: key File
containing secret key not found in the classpath:
at
com.cloud.utils.crypt.EncryptionSecretKeyChecker.check(EncryptionSecretKeyChecker.java:80)
at com.cloud.utils.db.DbProperties.getDbProperties(DbProperties.java:80)
at
com.cloud.utils.db.TransactionLegacy.<clinit>(TransactionLegacy.java:1022)
... 32 more

The key file is present only in the management

root@test3:/etc/cloudstack/usage# cd /etc/cloudstack/management/
root@test3:/etc/cloudstack/management# ls -la
total 88
drwxr-xr-x 2 root root   4096 Jul 20 08:17 .
drwxr-xr-x 5 root root   4096 Jul 20 08:15 ..
-rw-r--r-- 1 root root  21588 Jul 15 15:44 config.json
-rw-r----- 1 root cloud  4785 Jul 20 08:17 db.properties
-rw-r--r-- 1 root root  22806 Jul 15 15:38 ehcache.xml
-rw-r--r-- 1 root root    981 Jul 15 15:38 environment.properties
-rw-r--r-- 1 root root    931 Jul 15 15:38 java.security.ciphers
-rw-r----- 1 root cloud     8 Jul 20 08:17 key
-rw-r--r-- 1 root root   5338 Jul 15 15:38 log4j-cloud.xml
lrwxrwxrwx 1 root root     42 Jul 20 08:15 log4j2.xml ->
/etc/cloudstack/management/log4j-cloud.xml
-rw-r--r-- 1 root root   2740 Jul 15 15:38 server.properties

root@test3:/etc/cloudstack/management# cd /etc/cloudstack/usage/
root@test3:/etc/cloudstack/usage# ls -la
total 12
drwxr-xr-x 2 root root 4096 Jul 20 08:15 .
drwxr-xr-x 5 root root 4096 Jul 20 08:15 ..
lrwxrwxrwx 1 root root   40 Jul 20 08:15 db.properties ->
/etc/cloudstack/management/db.properties
-rw-r--r-- 1 root root 2396 Jul 15 15:44 log4j-cloud.xml




*Workaround *

 cp /etc/cloudstack/management/key /etc/cloudstack/usage/key
 chown root:cloud /etc/cloudstack/usage/key
 chmod 640 /etc/cloudstack/usage/key
 systemctl restart cloudstack-usage

Regards
Kiran

On Thu, Jul 16, 2026 at 3:17 PM Wei Zhou <[email protected]> wrote:

> Hi All,
>
> I have created a 4.23.0.0 release (RC1), with the following artifacts up
> for testing and a vote:
>
> Git Branch and Commit SHA:
> https://github.com/apache/cloudstack/tree/4.23.0.0-RC20260715T1458
> Commit: 14da4248e0f861e4917aefe5c4de452dc8e2b0c2
>
> Source release (checksums and signatures are available at the same
> location):
> https://dist.apache.org/repos/dist/dev/cloudstack/4.23.0.0/
>
> PGP release keys (signed using D6E0581ECF8A2FBE3FF6B3C9D7CEAE3A9E71D0AA):
> https://dist.apache.org/repos/dist/release/cloudstack/KEYS
>
> The vote will be open for 7 days, until 18:00 UTC on July 23rd, 2026.
>
> For sanity in tallying the vote, can PMC members please be sure to indicate
> "(binding)" with their vote?
>
> [ ] +1  approve
> [ ] +0  no opinion
> [ ] -1  disapprove (and reason why)
>
> For users convenience, the packages from this release candidate (RC1) are
> available here:
> https://download.cloudstack.org/testing/4.23.0.0-RC1/
>
>
> Kind regards,
> Wei
>

Reply via email to