cloudstack-usage fails after fresh 4.22.0.0 install on Ubuntu 24.04 because /etc/cloudstack/usage/key is missing #13251
|
I am running a fresh Ubuntu 24.04 LTS host and installed Apache CloudStack Management Server 4.22.0.0 following the official quick installation guide. https://docs.cloudstack.apache.org/en/4.22.0.0/quickinstallationguide/qig.html After installing the CloudStack packages, I noticed the following: root@server:~# service cloudstack-usage status Log file: Caused by: com.cloud.utils.exception.CloudRuntimeException: key File containing secret key not found in the classpath: The cloudstack-usage demon is not running properly due to missing decryption key for the database. You can see here that the key has been created properly: root@server:/etc/cloudstack/management# ll Here you can see that there is no symlink: root@server:/etc/cloudstack/usage# ll I was able to fix this issue with creating a symlink for the key: ln -s /etc/cloudstack/management/key /etc/cloudstack/usage/key systemctl restart cloudstack-usage root@server:/etc/cloudstack/usage# service cloudstack-usage status May 26 16:09:25 server.local systemd[1]: Starting cloudstack-usage.service - CloudStack Usage Server... Is this a known issue/bug in cloudstack version 4.22.0.0 ? Did anyone encounter the same issue? |
Replies: 2 comments 3 replies
|
Able to reproduce the issue |
|
@Eddi1306 @kiranchavala after investigating a bit, this seems like an installation order issue rather than an actual bug. Could you confirm if you still encounter the problem when performing the installation in the following order?
The Usage Server's symbolic link to the key is created only during its post-installation script if If that is indeed what caused the issue, we can improve this behavior in the future by having |
@Eddi1306 @kiranchavala after investigating a bit, this seems like an installation order issue rather than an actual bug.
Could you confirm if you still encounter the problem when performing the installation in the following order?
cloudstack-managementpackage.cloudstack-setup-databasesto initialize it.cloudstack-usagepackage.The Usage Server's symbolic link to the key is created only during its post-installation script if
/etc/cloudstack/management/keyexists, while/etc/cloudstack/management/keyis created bycloudstack-setup-databases. Hence, installing the Usage Server before initializing the database results in the symbolic…