You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Wei ZHOU <us...@gmail.com> on 2023/05/14 06:35:51 UTC
Re: [GitHub] [cloudstack] hpepper opened a new issue, #7533: Cloudstack 4.18 HTTP 503 Error on Ubuntu 22.04
Hi,
Have you setup the database for cloudstack?
cloudstack-setup-databases
-Wei
On Sunday, 14 May 2023, hpepper (via GitHub) <gi...@apache.org> wrote:
>
> hpepper opened a new issue, #7533:
> URL: https://github.com/apache/cloudstack/issues/7533
>
>
> ##### ISSUE TYPE
>
> * Other
>
> ##### COMPONENT NAME
>
> Web access fails
>
> ##### CLOUDSTACK VERSION
>
> * cloudstack-management: 4.18.0.0
>
> ##### CONFIGURATION
>
>
> ##### OS / ENVIRONMENT
>
> * OS: Ubuntu 22.04.2 LTS
> * mysqld --version: /usr/sbin/mysqld Ver 8.0.33-0ubuntu0.22.04.1 for
> Linux on x86_64 ((Ubuntu))
>
>
>
> ##### SUMMARY
>
> Did a new installation of cloudstack on a new minimal Ubuntu
> installation.
> Following the instructions in [4.18.0.0 installation](http://docs.
> cloudstack.apache.org/en/4.18.0.0/installguide/index.html#
> general-installation)
>
> <h2>HTTP ERROR 503 Service Unavailable</h2>
>
>
> URI: | /client/
> -- | --
> 503
> Service Unavailable
> -
>
> ##
>
> * minimal install of Ubuntu 22.04
> * Install cloudstack as per the manuel, except for the iptables part
>
> ~~~
> May 13 15:36:51 cloudstack java[6754]: INFO [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
> (main:null) (logid:) Loading module context [system] from URL
> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.>
> May 13 15:36:51 cloudstack java[6754]: INFO [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
> (main:null) (logid:) Loading module context [system] from URL
> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.>
> May 13 15:36:51 cloudstack java[6754]: INFO [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
> (main:null) (logid:) Loading module context [system] from URL
> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.>
> May 13 15:36:51 cloudstack java[6754]: INFO [o.a.c.s.m.m.i.DefaultModuleDefinitionSet]
> (main:null) (logid:) Loading module context [system] from URL
> [jar:file:/usr/share/cloudstack-management/lib/cloudstack-4.>
> May 13 15:36:51 cloudstack java[6754]: WARNING: An illegal reflective
> access operation has occurred
> May 13 15:36:51 cloudstack java[6754]: WARNING: Illegal reflective
> access by net.sf.cglib.core.ReflectUtils$1 (file:/usr/share/cloudstack-
> management/lib/cloudstack-4.18.0.0.jar) to method java.lang.ClassLoader.>
> May 13 15:36:51 cloudstack java[6754]: WARNING: Please consider
> reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
> May 13 15:36:51 cloudstack java[6754]: WARNING: Use
> --illegal-access=warn to enable warnings of further illegal reflective
> access operations
> May 13 15:36:51 cloudstack java[6754]: WARNING: All illegal access
> operations will be denied in a future release
> May 13 15:36:52 cloudstack java[6754]: INFO [c.c.u.d.T.Transaction]
> (main:null) (logid:) Is Data Base High Availiability enabled? Ans : false
> May 13 15:36:56 cloudstack java[6754]: ERROR [c.c.u.d.Merovingian2]
> (main:null) (logid:) Unable to get a new db connection
> May 13 15:36:56 cloudstack java[6754]: java.sql.
> SQLNonTransientConnectionException: Could not create connection to
> database server. Attempted reconnect 3 times. Giving up.
> May 13 15:36:56 cloudstack java[6754]: at
> com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(
> SQLError.java:110)
> May 13 15:36:56 cloudstack java[6754]: at
> com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
> May 13 15:36:56 cloudstack java[6754]: at
> com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
> ~~~
>
> ##### EXPECTED RESULTS
>
> Getting access to the Cloudstack web UI.
>
> ##### ACTUAL RESULTS
>
> ~~~
> <h2>HTTP ERROR 503 Service Unavailable</h2>
>
>
> URI: | /client/
> -- | --
> 503
> Service Unavailable
> -
> ~~~
>
> ~~~
> systemctl status cloudstack-management
> ● cloudstack-management.service - CloudStack Management Server
> Loaded: loaded (/lib/systemd/system/cloudstack-management.service;
> enabled; vendor preset: enabled)
> Active: active (running) since Sat 2023-05-13 23:45:02 UTC; 1h
> 4min ago
> Main PID: 881 (java)
> Tasks: 37 (limit: 4571)
> Memory: 1.1G
> CPU: 50.660s
> CGroup: /system.slice/cloudstack-management.service
> └─881 /usr/bin/java -Djava.security.properties=/
> etc/cloudstack/management/java.security.ciphers -Djava.awt.headless=true
> -Dcom.sun.management.jmxremote=false -Xmx2G -XX:+UseParallelGC
> -XX:MaxGCPaus>
>
> May 13 23:45:23 cloudstack java[881]: at org.eclipse.jetty.util.
> component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
> May 13 23:45:23 cloudstack java[881]: at org.eclipse.jetty.util.
> component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
> May 13 23:45:23 cloudstack java[881]: at
> org.eclipse.jetty.server.Server.start(Server.java:423)
> May 13 23:45:23 cloudstack java[881]: at org.eclipse.jetty.util.
> component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
> May 13 23:45:23 cloudstack java[881]: at
> org.eclipse.jetty.server.handler.AbstractHandler.
> doStart(AbstractHandler.java:97)
> May 13 23:45:23 cloudstack java[881]: at
> org.eclipse.jetty.server.Server.doStart(Server.java:387)
> May 13 23:45:23 cloudstack java[881]: at org.eclipse.jetty.util.
> component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
> May 13 23:45:23 cloudstack java[881]: at org.apache.cloudstack.
> ServerDaemon.start(ServerDaemon.java:192)
> May 13 23:45:23 cloudstack java[881]: at org.apache.cloudstack.
> ServerDaemon.main(ServerDaemon.java:107)
> May 13 23:45:23 cloudstack java[881]: INFO [o.a.c.s.NfsMountManager]
> (main:null) (logid:) Clean up mounted NFS mount points used in current
> session.
> ~~~
>
> ~~~
> sudo grep -i -E 'error|exception' /var/log/cloudstack/
> management/management-server.log
> [sudo] password for cadm:
> 2023-05-13 23:45:23,725 ERROR [o.a.c.s.l.CloudStackExtendedLifeCycle]
> (main:null) (logid:) Failed to configure ClusterManagerImpl
> javax.naming.ConfigurationException: cluster node IP should be valid
> local address where the server is running, please check your configuration
> ~~~
>
> Any suggestions on how I can troubleshoot this?
>
>
> --
> This is an automated message from the Apache Git Service.
> To respond to the message, please log on to GitHub and use the
> URL above to go to the specific comment.
>
> To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.
> org
>
> For queries about this service, please contact Infrastructure at:
> users@infra.apache.org
>
>