Replies: 22 comments 22 replies
-
can you search |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@gobiursus can you re-do all steps and share the output ? |
Beta Was this translation helpful? Give feedback.
-
How do I check the connection? How do I fix?
…On October 18, 2024 8:35:27 AM UTC, Wei Zhou ***@***.***> wrote:
@gobiursus
from my experience, it is mostly caused by db misconfiguration.
in short, the mgmt server cannot connect to the db
--
Reply to this email directly or view it on GitHub:
#9815 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
There was no error during installation. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I captured some extra stuff, I am not sure if they are related:
|
Beta Was this translation helpful? Give feedback.
-
Logs look ok |
Beta Was this translation helpful? Give feedback.
-
I loaded the full log earlier in the link.
…On October 18, 2024 7:58:39 PM UTC, Wei Zhou ***@***.***> wrote:
> I captured some extra stuff, I am not sure if they are related:
> ```
> ● cloudstack-management.service - CloudStack Management Server
> Loaded: loaded (/lib/systemd/system/cloudstack-management.service; enabled; preset: enabled)
> Active: active (running) since Fri 2024-10-18 14:33:44 EDT; 1s ago
> Main PID: 20191 (java)
> Tasks: 30 (limit: 9471)
> Memory: 320.8M
> CPU: 1.919s
> CGroup: /system.slice/cloudstack-management.service
> └─20191 /usr/bin/java -Djava.security.properties=/etc/cloudstack/management/java.security.ciphers -Djava.awt.headless=true -Xmx2G -XX:+UseParallelGC -XX:MaxGCPauseMillis=500 -XX:+HeapDumpOnOutOfMem>
>
> Oct 18 14:33:44 manage systemd[1]: Started cloudstack-management.service - CloudStack Management Server.
> Oct 18 14:33:45 manage java[20191]: INFO [o.a.c.ServerDaemon] (main:null) (logid:) Server configuration file found: /etc/cloudstack/management/server.properties
> Oct 18 14:33:45 manage java[20191]: INFO [o.a.c.ServerDaemon] (main:null) (logid:) Initializing server daemon on null, with http.enable=true, http.port=8080, https.enable=false, https.port=8443, context.path=/>
> Oct 18 14:33:45 manage java[20191]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> Oct 18 14:33:45 manage java[20191]: SLF4J: Defaulting to no-operation (NOP) logger implementation
> Oct 18 14:33:45 manage java[20191]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details
> ```
Logs look ok
Can you load the full management-server.log ?
--
Reply to this email directly or view it on GitHub:
#9815 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
<https://pastebin.com/R3CT2v5Y>
There you go
…On October 18, 2024 7:58:39 PM UTC, Wei Zhou ***@***.***> wrote:
> I captured some extra stuff, I am not sure if they are related:
> ```
> ● cloudstack-management.service - CloudStack Management Server
> Loaded: loaded (/lib/systemd/system/cloudstack-management.service; enabled; preset: enabled)
> Active: active (running) since Fri 2024-10-18 14:33:44 EDT; 1s ago
> Main PID: 20191 (java)
> Tasks: 30 (limit: 9471)
> Memory: 320.8M
> CPU: 1.919s
> CGroup: /system.slice/cloudstack-management.service
> └─20191 /usr/bin/java -Djava.security.properties=/etc/cloudstack/management/java.security.ciphers -Djava.awt.headless=true -Xmx2G -XX:+UseParallelGC -XX:MaxGCPauseMillis=500 -XX:+HeapDumpOnOutOfMem>
>
> Oct 18 14:33:44 manage systemd[1]: Started cloudstack-management.service - CloudStack Management Server.
> Oct 18 14:33:45 manage java[20191]: INFO [o.a.c.ServerDaemon] (main:null) (logid:) Server configuration file found: /etc/cloudstack/management/server.properties
> Oct 18 14:33:45 manage java[20191]: INFO [o.a.c.ServerDaemon] (main:null) (logid:) Initializing server daemon on null, with http.enable=true, http.port=8080, https.enable=false, https.port=8443, context.path=/>
> Oct 18 14:33:45 manage java[20191]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> Oct 18 14:33:45 manage java[20191]: SLF4J: Defaulting to no-operation (NOP) logger implementation
> Oct 18 14:33:45 manage java[20191]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details
> ```
Logs look ok
Can you load the full management-server.log ?
--
Reply to this email directly or view it on GitHub:
#9815 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have the same issue after upgrading from 4.19.0.0 to 4.19.1.2 on Ubuntu 22.04. MySQL and the management server are running on the same node. After the following steps, the management console works now (although it may not be a good solution since the password is saved in plaintext). The problem may be related to somewhere around encryption / decryption logic?
--- db.properties.bak 2024-10-25 08:51:07.179157143 +0900
+++ db.properties 2024-10-25 08:50:10.391852007 +0900
@@ -22,7 +22,7 @@
# CloudStack database settings
db.cloud.username=cloud
-db.cloud.password=ENC(<encrypted_text>)
+db.cloud.password=plain_password_text
db.cloud.host=localhost
db.cloud.driver=jdbc:mysql
db.cloud.port=3306
@@ -53,7 +53,7 @@
# usage database settings
db.usage.username=cloud
-db.usage.password=ENC(<encrypted_text>)
+db.usage.password=plain_password_text
db.usage.host=localhost
db.usage.driver=jdbc:mysql
db.usage.port=3306
@@ -100,4 +100,4 @@
db.usage.secondsBeforeRetrySource=3600
db.usage.queriesBeforeRetrySource=5000
db.usage.initialTimeout=3600
-db.cloud.encryptor.version=V2
+#db.cloud.encryptor.version=V2
|
Beta Was this translation helpful? Give feedback.
-
I was having the exact same issue on AlmaLinux 9.3 and this resolved the problem as well. |
Beta Was this translation helpful? Give feedback.
-
@purteppers |
Beta Was this translation helpful? Give feedback.
-
Yes, specifically 8.0.36 |
Beta Was this translation helpful? Give feedback.
-
I suggest we shouldn't use MySQL from its official repo, we should use MariaDB from repo of Debian Stable.
…On October 30, 2024 4:02:10 PM UTC, purteppers ***@***.***> wrote:
> > I was having the exact same issue on AlmaLinux 9.3 and this resolved the problem as well.
>
> @purteppers do you use mysql 8.0 as well ?
Yes, specifically 8.0.36
--
Reply to this email directly or view it on GitHub:
#9815 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I did not find any valuable information in the log. is there anything wrong in the db upgrade ? cc @gobiursus @purteppers |
Beta Was this translation helpful? Give feedback.
-
How did you install your MySQL?Please don't use the MySQL from MySQL's official repo.
On Thursday, October 31, 2024 at 03:30:46 p.m. GMT, Wei Zhou ***@***.***> wrote:
I have tested debian/ubuntu/alma/rocky with different versions, cannot reproduce the issue unfortunately.
@purteppers
can you share the output of some commands ?
egrep 'secret|password' /etc/cloudstack/management/db.properties
cat /etc/cloudstack/management/key
# the logs when the issue is not fixed
egrep 'c.c.u.c.CloudStackEncryptor|c.c.u.Database' /var/log/cloudstack/management/management-server.log
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I installed MariaDB 10.11.6 from Debian 12 Stable repo byapt install mariadb-server
On Thursday, October 31, 2024 at 03:37:05 p.m. GMT, Wei Zhou ***@***.***> wrote:
How did you install your MySQL?Please don't use the MySQL from MySQL's official repo.
@gobiursus
I installed mysql 8.0.36 from the alma9/rocky9 official repo by
dnf install -y mysql-server
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Java 17 is the default version of Debian 12.
Also the default database in Debian 12 is MariaDB not MySQL.
…On November 6, 2024 2:45:30 PM UTC, Wei Zhou ***@***.***> wrote:
@penguin2716
if you run with cloudstack 4.19 or prior, JAVA 17 is not supported.
JAVA 17 is supported since 4.20 (will be released in the coming weeks): #8497
--
Reply to this email directly or view it on GitHub:
#9880 (reply in thread)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@gobiursus @penguin2716 @purteppers |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
ISSUE TYPE
503 Unavailable after installation
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
OS / ENVIRONMENT
Debian 12.7 Stable
SUMMARY
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
Beta Was this translation helpful? Give feedback.
All reactions