---------- Forwarded message ---------
From: Nikhil Pal <nikhilpalofficial...@gmail.com>
Date: Wed, 26 Mar 2025 at 03:11
Subject: Re: CloudStack and CloudMonkey Auto-completion
To: Pearl Dsilva <pearl1...@gmail.com>


Hi, I was setting up the dev environent for exploring the cloudstack to
participate as GSoC coordinator for the idea about improbing the ClodMonkey
User Exprience by enhancing auto-completetion. After multiple times of
trying out I need help...

*Here is what I did this time to set-up the environment.*

*[Step 1] Ran below command to install required dependencies.*

$ sudo apt-get install openjdk-11-jdk maven mysql-server mysql-client bzip2
nfs-common uuid-runtime python3-setuptools ipmitool genisoimage
nfs-kernel-server quota


[Step 2] cloned the code locally at /GSoC25/cloudstack and installed
'Intellii-idea-communtiy'


*[Step 3] Setup MySQL Server*

*3.1 Opening the configuration file *
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf

*3.2 added the configuration *

[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'

# Add the following for MySQL 8.x
default-authentication-plugin=mysql_native_password

# Ensure MySQL only listens on localhost
bind-address = 127.0.0.1

*3.3 Setting the MySQL Root Password as blank*
sudo mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH
mysql_native_password BY '';"

*3.4 Ensured that MySQL is running (active)* using "sudo systemctl status
mysql"




*[Step 4] Skipping NFS[Step 5] Skipping "Configure Environment"[Step 6]
Skipping "Building Cloudstack"*


*[Step 7] Setting up Simulator Based Development*

*7.1 building the simulator hypervisor (ran below command at
/GSoC25/cloudstack/)*
mvn clean install -Dsimulator -P developer,systemvm

*7.2 deploying the database for simulator*

mvn -Pdeveloper -pl developer -Ddeploydb
mvn -Pdeveloper -pl developer -Ddeploydb-simulator

>>>>> Build Success but there was an error as
"com.cloud.utils.db.DbProperties - failed to find db.properties",
"com.cloud.utils.ProperitesUtil - Unable to find properties file :
commands.properties"

*7.3 Run the management server with the simulator flag*
mvn -pl :cloud-client-ui jetty:run -Djava.net.preferIPv4Stack=true
-Dsimulator

>>>>> Some errors as below (and stuck at these errors)
.......
.......
.......
[INFO] Scanning elapsed time=6459ms
2025-03-26 00:02:06,909 main ERROR TcpSocketManager (TCP:localhost:4560)
caught exception and will continue: java.io.IOException: Unable to create
socket for localhost at port 4560 using ip address 127.0.0.1 and port 4560
at
org.apache.logging.log4j.core.net.TcpSocketManager$TcpSocketManagerFactory.createSocket(TcpSocketManager.java:509)
at
org.apache.logging.log4j.core.net.TcpSocketManager$TcpSocketManagerFactory.createManager(TcpSocketManager.java:478)
at
org.apache.logging.log4j.core.net.TcpSocketManager$TcpSocketManagerFactory.createManager(TcpSocketManager.java:459)
at
org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:144)
at
org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamMa
.........
.........
.........
2025-03-26 00:03:22,609 main ERROR Unable to write to stream
TCP:localhost:4560 for appender SYSLOG
org.apache.logging.log4j.core.appender.AppenderLoggingException: Error
writing to TCP:localhost:4560: socket not available
at
org.apache.logging.log4j.core.net.TcpSocketManager.write(TcpSocketManager.java:214)
at
org.apache.logging.log4j.core.appender.OutputStreamManager.write(OutputStreamManager.java:190)
at
org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.writeByteArrayToManager(AbstractOutputStreamAppender.java:224)
at
org.apache.logging.log4j.core.appender.SocketAppender.directEncodeEvent(SocketAppender.java:513)
at org.apache.logging.log4j.c
.......
.......
.......

Reply via email to