You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "furkandogmus (via GitHub)" <gi...@apache.org> on 2025/07/30 11:28:09 UTC
[D] [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available [cloudstack]
GitHub user furkandogmus created a discussion: [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available
### problem
I tried to install Apache Cloudstack by using this [Developer Guide](https://docs.cloudstack.apache.org/en/latest/developersguide/developer_guide.html). But when i try to run jetty i got springboot error. Deploying db and build and nonoss installation is okay. But when i execute jetty command:
**mvn -pl :cloud-client-ui jetty:run** i got below errors. Is it bug or configuration error?
<img width="1507" height="778" alt="Image" src="https://github.com/user-attachments/assets/c6a3d603-f9e0-47f4-8cce-c77300660035" />
<img width="1507" height="775" alt="Image" src="https://github.com/user-attachments/assets/cb7ad294-54eb-4e88-90d6-c58ac765b94f" />
### versions
The versions of ACS 4.20
### The steps to reproduce the bug
1.
2.
3.
...
### What to do about it?
_No response_
GitHub link: https://github.com/apache/cloudstack/discussions/11347
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available [cloudstack]
Posted by "furkandogmus (via GitHub)" <gi...@apache.org>.
GitHub user furkandogmus edited a comment on the discussion: [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available
mysql -u cloud -pcloud
yes, i can. @DaanHoogland
```
mysql -u cloud -pcloud
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7571
Server version: 8.0.41 Source distribution
Copyright (c) 2000, 2025, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exıt
-> e
^C
mysql> exit
Bye
```
I can show db's also.
```
[root@cloudstack]# mysql -u cloud -pcloud
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7572
Server version: 8.0.41 Source distribution
Copyright (c) 2000, 2025, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| cloud |
| cloud_usage |
| information_schema |
| performance_schema |
+--------------------+
4 rows in set (0.00 sec)
```
GitHub link: https://github.com/apache/cloudstack/discussions/11347#discussioncomment-13934013
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available
It doesn’t look like you did @furkandogmus .
Assuming this is in the same terminal you are starting the MS in, can you log on to the DB from here as user cloud?
`mysql -P -u cloud cloud`
GitHub link: https://github.com/apache/cloudstack/discussions/11347#discussioncomment-13933982
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available [cloudstack]
Posted by "furkandogmus (via GitHub)" <gi...@apache.org>.
GitHub user furkandogmus added a comment to the discussion: [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available
========> WARNING: Provided file does not exist: /root/cloudstack/developer/../utils/conf/db.properties.override
========> WARNING: Provided file does not exist: /root/cloudstack/developer/developer-prefill.sql.override
========> Initializing database=cloud with host=localhost port=3306 username=cloud password=cloud
============> Running query: drop database if exists `cloud`
============> Running query: create database `cloud`
============> Running query: CREATE USER IF NOT EXISTS cloud@`localhost` identified by 'cloud'
============> Running query: CREATE USER IF NOT EXISTS cloud@`%` identified by 'cloud'
============> Running query: GRANT ALL ON cloud.* to 'cloud'@`localhost`
============> Running query: GRANT ALL ON cloud.* to 'cloud'@`%`
========> Initializing database=cloud_usage with host=localhost port=3306 username=cloud password=cloud
============> Running query: drop database if exists `cloud_usage`
============> Running query: create database `cloud_usage`
============> Running query: CREATE USER IF NOT EXISTS cloud@`localhost` identified by 'cloud'
============> Running query: CREATE USER IF NOT EXISTS cloud@`%` identified by 'cloud'
============> Running query: GRANT ALL ON cloud_usage.* to 'cloud'@`localhost`
============> Running query: GRANT ALL ON cloud_usage.* to 'cloud'@`%`
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Failed to find db.properties
14:50:48.668 [main] ERROR com.cloud.utils.db.DbProperties - Failed to find db.properties
========> Processing SQL file at /root/cloudstack/developer/target/db/create-schema.sql
========> Processing SQL file at /root/cloudstack/developer/target/db/create-schema-premium.sql
========> Processing SQL file at /root/cloudstack/developer/target/db/templates.sql
========> Processing SQL file at /root/cloudstack/developer/developer-prefill.sql
========> Processing upgrade: com.cloud.upgrade.DatabaseUpgradeChecker
14:51:14.582 [main] ERROR com.cloud.utils.PropertiesUtil - Unable to find properties file: commands.properties
[INFO]
[INFO] --- maven-site-plugin:3.8.2:attach-descriptor (attach-descriptor) @ cloud-developer ---
[INFO] No site descriptor found: nothing to attach.
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ cloud-developer ---
[INFO] Installing /root/cloudstack/developer/pom.xml to /root/.m2/repository/org/apache/cloudstack/cloud-developer/4.20.0.0/cloud-developer-4.20.0.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.024 s
[INFO] Finished at: 2025-07-30T14:51:28+03:00
[INFO] ------------------------------------------------------------------------
I got success to build DB.
mvn -Pdeveloper -pl developer -Ddeploydb
Is there something i missed? @DaanHoogland
GitHub link: https://github.com/apache/cloudstack/discussions/11347#discussioncomment-13933844
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available [cloudstack]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
GitHub user boring-cyborg[bot] added a comment to the discussion: [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available
Thanks for opening your first issue here! Be sure to follow the issue template!
GitHub link: https://github.com/apache/cloudstack/discussions/11347#discussioncomment-13933582
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available
ok, those were my “10” initial first line support questions ;) usually this DefaultConfigResources error would be solved by now.
Can you search for the missing resource in the spring XMLs?
Next step would be to search for any errors in the build logs. and whether you have the non-oss jars in your local respository.
GitHub link: https://github.com/apache/cloudstack/discussions/11347#discussioncomment-13934460
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available [cloudstack]
Posted by "furkandogmus (via GitHub)" <gi...@apache.org>.
GitHub user furkandogmus closed a discussion: [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available
### problem
I tried to install Apache Cloudstack by using this [Developer Guide](https://docs.cloudstack.apache.org/en/latest/developersguide/developer_guide.html). But when i try to run jetty i got springboot error. Deploying db and build and nonoss installation is okay. But when i execute jetty command:
**mvn -pl :cloud-client-ui jetty:run** i got below errors. Is it bug or configuration error?
<img width="1507" height="778" alt="Image" src="https://github.com/user-attachments/assets/c6a3d603-f9e0-47f4-8cce-c77300660035" />
<img width="1507" height="775" alt="Image" src="https://github.com/user-attachments/assets/cb7ad294-54eb-4e88-90d6-c58ac765b94f" />
### versions
The versions of ACS 4.20
### The steps to reproduce the bug
1.
2.
3.
...
### What to do about it?
_No response_
GitHub link: https://github.com/apache/cloudstack/discussions/11347
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available [cloudstack]
Posted by "furkandogmus (via GitHub)" <gi...@apache.org>.
GitHub user furkandogmus added a comment to the discussion: [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available
mysql -u cloud -pcloud
yes, i can. @DaanHoogland
```
mysql -u cloud -pcloud
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7571
Server version: 8.0.41 Source distribution
Copyright (c) 2000, 2025, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exıt
-> e
^C
mysql> exit
Bye
```
GitHub link: https://github.com/apache/cloudstack/discussions/11347#discussioncomment-13934013
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available [cloudstack]
Posted by "furkandogmus (via GitHub)" <gi...@apache.org>.
GitHub user furkandogmus added a comment to the discussion: [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available
Sir @DaanHoogland,
is there something wrong on my setup script?
```
#!/bin/bash
# CloudStack Development Environment Setup for Rocky Linux
# Based on Apache CloudStack Development Documentation
set -e
echo "=== CloudStack Development Environment Setup for Rocky Linux ==="
# Update system
echo "1. Updating system packages..."
sudo dnf update -y
# Install required packages for CloudStack development
echo "2. Installing development packages..."
sudo dnf install -y \
java-11-openjdk-devel \
maven \
mariadb-server \
mariadb \
bzip2 \
nfs-utils \
util-linux \
python3-setuptools \
python3-pip \
ipmitool \
genisoimage \
quota \
git \
wget \
which \
hostname \
net-tools
# Install additional dependencies
echo "3. Installing additional tools..."
sudo dnf groupinstall -y "Development Tools"
# Setup JAVA_HOME
echo "4. Setting up Java environment..."
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
echo 'export JAVA_HOME=/usr/lib/jvm/java-11-openjdk' >> ~/.bashrc
# Configure MySQL/MariaDB
echo "5. Configuring MariaDB..."
sudo systemctl enable mariadb
sudo systemctl start mariadb
# Configure MariaDB for CloudStack
echo "6. Configuring MariaDB for CloudStack..."
sudo tee -a /etc/my.cnf.d/cloudstack.cnf > /dev/null <<EOF
[mysqld]
sql-mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION,ERROR_FOR_DIVISION_BY_ZERO,NO_ZERO_DATE,NO_ZERO_IN_DATE,NO_ENGINE_SUBSTITUTION"
server_id = 1
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=1000
log-bin=mysql-bin
binlog-format = 'ROW'
default-authentication-plugin=mysql_native_password
bind-address = 127.0.0.1
EOF
sudo systemctl restart mariadb
# Reset MySQL root password to blank for CloudStack
echo "7. Setting up MariaDB root password..."
sudo mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED BY '';" 2>/dev/null || true
sudo mysql -u root -e "FLUSH PRIVILEGES;" 2>/dev/null || true
# Setup NFS server
echo "8. Setting up NFS server..."
sudo systemctl enable nfs-server
sudo mkdir -p /export/testing/primary /export/testing/secondary
echo "/export *(rw,async,no_root_squash,no_subtree_check)" | sudo tee /etc/exports
sudo systemctl start nfs-server
sudo exportfs -a
# Configure sudoers for CloudStack
echo "9. Configuring sudoers for CloudStack..."
USERNAME=$(whoami)
sudo tee /etc/sudoers.d/cloudstack > /dev/null <<EOF
Cmnd_Alias CLOUDSTACK = /bin/mkdir, /bin/mount, /bin/umount, /bin/cp, /bin/chmod, /usr/bin/keytool, /bin/keytool
Defaults:$USERNAME !requiretty
$USERNAME ALL=(ALL) NOPASSWD:CLOUDSTACK
EOF
# Create workspace directory
echo "10. Creating workspace..."
mkdir -p ~/lab
cd ~/lab
# Clone CloudStack repository if not exists
if [ ! -d "cloudstack" ]; then
echo "11. Cloning CloudStack repository..."
git clone https://github.com/apache/cloudstack.git
fi
cd cloudstack
# Clone and install nonoss dependencies
echo "12. Setting up nonoss dependencies..."
if [ ! -d "../cloudstack-nonoss" ]; then
cd ~/lab
git clone https://github.com/shapeblue/cloudstack-nonoss.git
cd cloudstack-nonoss
bash -x install-non-oss.sh
cd ../cloudstack
fi
# Set Maven options for debugging
echo "13. Setting up Maven debugging options..."
echo 'export MAVEN_OPTS="$MAVEN_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"' >> ~/.bashrc
# Create Python alias if needed
echo "14. Setting up Python alias..."
if ! command -v python &> /dev/null; then
echo 'alias python=python3' >> ~/.bashrc
fi
# Install Python dependencies
echo "15. Installing Python dependencies..."
pip3 install --user pynose
cd ~/lab/cloudstack && mvn clean install -Dnoredist -P developer,systemvm -DskipTests -T8
mvn -Pdeveloper -pl developer -Ddeploydb
mvn -pl :cloud-client-ui jetty:run -Dnoredist -Djava.net.preferIPv4Stack=true
GitHub link: https://github.com/apache/cloudstack/discussions/11347#discussioncomment-13934363
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available [cloudstack]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
GitHub user boring-cyborg[bot] deleted a comment on the discussion: [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available
Thanks for opening your first issue here! Be sure to follow the issue template!
GitHub link: https://github.com/apache/cloudstack/discussions/11347#discussioncomment-13933582
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org
Re: [D] [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: [ROCKY 9.6 AS SETUP] Ne bean named DefaultConfigResources available
@furkandogmus , this would mean that the DB is not set up correctly or not reachable from the management server us user cloud.
GitHub link: https://github.com/apache/cloudstack/discussions/11347#discussioncomment-13933590
----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org