HTTP ERROR 503 - Service Unavailable
More and more issues.... not a very good experience so far of even getting the management server working.
It is set to the correct IP in the properties but and started the service and so on but still getting this error
HTTP ERROR 503
Problem accessing /client/. Reason:
Service Unavailable
@CobbyJ cloudstack version ?
Latest 4.13 also tried previous versions.
@CobbyJ any errors in /var/log/cloudstack/management/management-server.log ?
grep -i -E 'error|exception' /var/log/cloudstack/management/management-server.log
[root@cloudstack ~]# grep -i -E 'error|exception' /var/log/cloudstack/management/management-server.log
2020-01-27 16:11:13,532 DEBUG [c.c.u.d.ScriptRunner] (main:null) (logid:) CREATE TABLE cloud.s3( idbigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', uuidvarchar(40), access_keyvarchar(20) NOT NULL COMMENT ' The S3 access key', secret_keyvarchar(40) NOT NULL COMMENT ' The S3 secret key', end_pointvarchar(1024) COMMENT ' The S3 host', bucketvarchar(63) NOT NULL COMMENT ' The S3 host', httpstinyint unsigned DEFAULT NULL COMMENT ' Flag indicating whether or not to connect over HTTPS', connection_timeoutinteger COMMENT ' The amount of time to wait (in milliseconds) when initially establishing a connection before giving up and timing out.', max_error_retryinteger COMMENT ' The maximum number of retry attempts for failed retryable requests (ex: 5xx error responses from services).', socket_timeoutinteger COMMENT ' The amount of time to wait (in milliseconds) for data to be transfered over an established, open connection before the connection times out and is closed.', created datetime COMMENT 'date the s3 first signed on', PRIMARY KEY (id), CONSTRAINT uc_s3__uuid UNIQUE (uuid) ) ENGINE=InnoDB DEFAULT CHARSET=utf8
2020-01-27 16:11:26,368 DEBUG [c.c.u.d.ScriptRunner] (main:null) (logid:) CREATE VIEW cloud.volume_viewAS select volumes.id, volumes.uuid, volumes.name, volumes.device_id, volumes.volume_type, volumes.size, volumes.created, volumes.state, volumes.attached, volumes.removed, volumes.pod_id, account.id account_id, account.uuid account_uuid, account.account_name account_name, account.type account_type, domain.id domain_id, domain.uuid domain_uuid, domain.name domain_name, domain.path domain_path, projects.id project_id, projects.uuid project_uuid, projects.name project_name, data_center.id data_center_id, data_center.uuid data_center_uuid, data_center.name data_center_name, vm_instance.id vm_id, vm_instance.uuid vm_uuid, vm_instance.name vm_name, vm_instance.state vm_state, vm_instance.vm_type, user_vm.display_name vm_display_name, volume_host_ref.size volume_host_size, volume_host_ref.created volume_host_created, volume_host_ref.format, volume_host_ref.download_pct, volume_host_ref.download_state, volume_host_ref.error_str, disk_offering.id disk_offering_id, disk_offering.uuid disk_offering_uuid, disk_offering.name disk_offering_name, disk_offering.display_text disk_offering_display_text, disk_offering.use_local_storage, disk_offering.system_use, storage_pool.id pool_id, storage_pool.uuid pool_uuid, storage_pool.name pool_name, cluster.hypervisor_type, vm_template.id template_id, vm_template.uuid template_uuid, vm_template.extractable, vm_template.type template_type, resource_tags.id tag_id, resource_tags.uuid tag_uuid, resource_tags.key tag_key, resource_tags.value tag_value, resource_tags.domain_id tag_domain_id, resource_tags.account_id tag_account_id, resource_tags.resource_id tag_resource_id, resource_tags.resource_uuid tag_resource_uuid, resource_tags.resource_type tag_resource_type, resource_tags.customer tag_customer, async_job.id job_id, async_job.uuid job_uuid, async_job.job_status job_status, async_job.account_id job_account_id from cloud.volumes inner join cloud.accountON volumes.account_id = account.id inner join cloud.domainON volumes.domain_id = domain.id left join cloud.projectsON projects.project_account_id = account.id left join cloud.data_centerON volumes.data_center_id = data_center.id left join cloud.vm_instanceON volumes.instance_id = vm_instance.id left join cloud.user_vmON user_vm.id = vm_instance.id left join cloud.volume_host_refON volumes.id = volume_host_ref.volume_id and volumes.data_center_id = volume_host_ref.zone_id left join cloud.disk_offeringON volumes.disk_offering_id = disk_offering.id left join cloud.storage_poolON volumes.pool_id = storage_pool.id left join cloud.clusterON storage_pool.cluster_id = cluster.id left join cloud.vm_templateON volumes.template_id = vm_template.id left join cloud.resource_tagsON resource_tags.resource_id = volumes.id and resource_tags.resource_type = 'Volume' left join cloud.async_jobON async_job.instance_id = volumes.id and async_job.instance_type = 'Volume' and async_job.job_status = 0
2020-01-27 16:11:27,487 ERROR [c.c.u.DatabaseUpgradeChecker] (main:null) (logid:) Unable to upgrade the database
com.cloud.utils.exception.CloudRuntimeException: Problem with getting the ec attribute
Caused by: java.lang.IllegalArgumentException: Can not set long field com.cloud.upgrade.dao.VersionVO.id to java.math.BigInteger
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
2020-01-27 16:11:27,491 WARN [o.a.c.s.m.c.ResourceApplicationContext] (main:null) (logid:) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
org.springframework.context.ApplicationContextException: Failed to start bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
Caused by: com.cloud.utils.exception.CloudRuntimeException: Problem with getting the ec attribute
Caused by: java.lang.IllegalArgumentException: Can not set long field com.cloud.upgrade.dao.VersionVO.id to java.math.BigInteger
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
2020-01-27 16:15:22,058 ERROR [c.c.u.d.ScriptRunner] (main:null) (logid:) Error executing: alter table vm_template add size bigint unsigned
2020-01-27 16:15:22,058 ERROR [c.c.u.d.ScriptRunner] (main:null) (logid:) java.sql.SQLSyntaxErrorException: Duplicate column name 'size'
2020-01-27 16:15:22,060 ERROR [c.c.u.DatabaseUpgradeChecker] (main:null) (logid:) Unable to execute upgrade script
java.sql.SQLSyntaxErrorException: Duplicate column name 'size'
2020-01-27 16:15:22,062 ERROR [c.c.u.DatabaseUpgradeChecker] (main:null) (logid:) Unable to upgrade the database
com.cloud.utils.exception.CloudRuntimeException: Unable to execute upgrade script
Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name 'size'
2020-01-27 16:15:22,084 WARN [o.a.c.s.m.c.ResourceApplicationContext] (main:null) (logid:) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
org.springframework.context.ApplicationContextException: Failed to start bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to execute upgrade script
Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name 'size'
2020-01-27 16:20:14,032 ERROR [c.c.u.d.ScriptRunner] (main:null) (logid:) Error executing: alter table vm_template add size bigint unsigned
2020-01-27 16:20:14,033 ERROR [c.c.u.d.ScriptRunner] (main:null) (logid:) java.sql.SQLSyntaxErrorException: Duplicate column name 'size'
2020-01-27 16:20:14,035 ERROR [c.c.u.DatabaseUpgradeChecker] (main:null) (logid:) Unable to execute upgrade script
java.sql.SQLSyntaxErrorException: Duplicate column name 'size'
2020-01-27 16:20:14,037 ERROR [c.c.u.DatabaseUpgradeChecker] (main:null) (logid:) Unable to upgrade the database
com.cloud.utils.exception.CloudRuntimeException: Unable to execute upgrade script
Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name 'size'
2020-01-27 16:20:14,079 WARN [o.a.c.s.m.c.ResourceApplicationContext] (main:null) (logid:) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
org.springframework.context.ApplicationContextException: Failed to start bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to execute upgrade script
Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name 'size'
2020-01-27 16:27:33,712 ERROR [c.c.u.d.ConnectionConcierge] (ConnectionConcierge-1:ctx-a3ba11aa) (logid:9c67c0d1) Unable to keep the db connection for LockMaster1
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64)
Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
2020-01-27 16:27:57,715 ERROR [c.c.u.d.ConnectionConcierge] (ConnectionConcierge-1:ctx-fc81bc58) (logid:9712d26f) Unable to keep the db connection for LockMaster1
java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73)
Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
Caused by: java.net.ConnectException: Connection refused (Connection refused)
2020-01-27 16:41:30,444 DEBUG [c.c.u.d.ScriptRunner] (main:null) (logid:) CREATE TABLEcloud.s3( idbigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', uuidvarchar(40), access_keyvarchar(20) NOT NULL COMMENT ' The S3 access key', secret_keyvarchar(40) NOT NULL COMMENT ' The S3 secret key', end_pointvarchar(1024) COMMENT ' The S3 host', bucketvarchar(63) NOT NULL COMMENT ' The S3 host', httpstinyint unsigned DEFAULT NULL COMMENT ' Flag indicating whether or not to connect over HTTPS', connection_timeoutinteger COMMENT ' The amount of time to wait (in milliseconds) when initially establishing a connection before giving up and timing out.', max_error_retryinteger COMMENT ' The maximum number of retry attempts for failed retryable requests (ex: 5xx error responses from services).', socket_timeoutinteger COMMENT ' The amount of time to wait (in milliseconds) for data to be transfered over an established, open connection before the connection times out and is closed.', created datetime COMMENT 'date the s3 first signed on', PRIMARY KEY (id), CONSTRAINT uc_s3__uuid UNIQUE (uuid) ) ENGINE=InnoDB DEFAULT CHARSET=utf8
2020-01-27 16:41:42,151 DEBUG [c.c.u.d.ScriptRunner] (main:null) (logid:) CREATE VIEW cloud.volume_viewAS select volumes.id, volumes.uuid, volumes.name, volumes.device_id, volumes.volume_type, volumes.size, volumes.created, volumes.state, volumes.attached, volumes.removed, volumes.pod_id, account.id account_id, account.uuid account_uuid, account.account_name account_name, account.type account_type, domain.id domain_id, domain.uuid domain_uuid, domain.name domain_name, domain.path domain_path, projects.id project_id, projects.uuid project_uuid, projects.name project_name, data_center.id data_center_id, data_center.uuid data_center_uuid, data_center.name data_center_name, vm_instance.id vm_id, vm_instance.uuid vm_uuid, vm_instance.name vm_name, vm_instance.state vm_state, vm_instance.vm_type, user_vm.display_name vm_display_name, volume_host_ref.size volume_host_size, volume_host_ref.created volume_host_created, volume_host_ref.format, volume_host_ref.download_pct, volume_host_ref.download_state, volume_host_ref.error_str, disk_offering.id disk_offering_id, disk_offering.uuid disk_offering_uuid, disk_offering.name disk_offering_name, disk_offering.display_text disk_offering_display_text, disk_offering.use_local_storage, disk_offering.system_use, storage_pool.id pool_id, storage_pool.uuid pool_uuid, storage_pool.name pool_name, cluster.hypervisor_type, vm_template.id template_id, vm_template.uuid template_uuid, vm_template.extractable, vm_template.type template_type, resource_tags.id tag_id, resource_tags.uuid tag_uuid, resource_tags.key tag_key, resource_tags.value tag_value, resource_tags.domain_id tag_domain_id, resource_tags.account_id tag_account_id, resource_tags.resource_id tag_resource_id, resource_tags.resource_uuid tag_resource_uuid, resource_tags.resource_type tag_resource_type, resource_tags.customer tag_customer, async_job.id job_id, async_job.uuid job_uuid, async_job.job_status job_status, async_job.account_id job_account_id from cloud.volumes inner join cloud.accountON volumes.account_id = account.id inner join cloud.domainON volumes.domain_id = domain.id left join cloud.projectsON projects.project_account_id = account.id left join cloud.data_centerON volumes.data_center_id = data_center.id left join cloud.vm_instanceON volumes.instance_id = vm_instance.id left join cloud.user_vmON user_vm.id = vm_instance.id left join cloud.volume_host_refON volumes.id = volume_host_ref.volume_id and volumes.data_center_id = volume_host_ref.zone_id left join cloud.disk_offeringON volumes.disk_offering_id = disk_offering.id left join cloud.storage_poolON volumes.pool_id = storage_pool.id left join cloud.clusterON storage_pool.cluster_id = cluster.id left join cloud.vm_templateON volumes.template_id = vm_template.id left join cloud.resource_tagsON resource_tags.resource_id = volumes.id and resource_tags.resource_type = 'Volume' left join cloud.async_job ON async_job.instance_id = volumes.id and async_job.instance_type = 'Volume' and async_job.job_status = 0
2020-01-27 16:41:44,045 ERROR [c.c.u.DatabaseUpgradeChecker] (main:null) (logid:) Unable to upgrade the database
com.cloud.utils.exception.CloudRuntimeException: Problem with getting the ec attribute
Caused by: java.lang.IllegalArgumentException: Can not set long field com.cloud.upgrade.dao.VersionVO.id to java.math.BigInteger
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
2020-01-27 16:41:44,049 WARN [o.a.c.s.m.c.ResourceApplicationContext] (main:null) (logid:) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
org.springframework.context.ApplicationContextException: Failed to start bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
Caused by: com.cloud.utils.exception.CloudRuntimeException: Problem with getting the ec attribute
Caused by: java.lang.IllegalArgumentException: Can not set long field com.cloud.upgrade.dao.VersionVO.id to java.math.BigInteger
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
2020-01-27 16:52:07,592 ERROR [c.c.u.d.ScriptRunner] (main:null) (logid:) Error executing: alter table vm_template add size bigint unsigned
2020-01-27 16:52:07,593 ERROR [c.c.u.d.ScriptRunner] (main:null) (logid:) java.sql.SQLSyntaxErrorException: Duplicate column name 'size'
2020-01-27 16:52:07,596 ERROR [c.c.u.DatabaseUpgradeChecker] (main:null) (logid:) Unable to execute upgrade script
java.sql.SQLSyntaxErrorException: Duplicate column name 'size'
2020-01-27 16:52:07,598 ERROR [c.c.u.DatabaseUpgradeChecker] (main:null) (logid:) Unable to upgrade the database
com.cloud.utils.exception.CloudRuntimeException: Unable to execute upgrade script
Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name 'size'
2020-01-27 16:52:07,602 WARN [o.a.c.s.m.c.ResourceApplicationContext] (main:null) (logid:) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
org.springframework.context.ApplicationContextException: Failed to start bean 'cloudStackLifeCycle'; nested exception is com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to upgrade the database
Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to execute upgrade script
Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name 'size'
@CobbyJ it seems you have the same issue as #3842
please read this comment: https://github.com/apache/cloudstack/issues/3842#issuecomment-578947796
I am currently installing the latest CentOS 8.1.1911. to see if it will work on that, i followed the instructions exactly and imported the database exact to the commands provided.
@CobbyJ it is not related to the os of management server. If you import the database from existing sql, you have to drop the default databases before importing.
drop database cloud;
drop database cloud_usage;
Driving me insane now...... exact same issue
Reinstalled CentOS 7 - Followed the guide exactly and again needed to do the pip install which i dont know why its not in the original install or in the documentation which is pretty bad.
Again same 503, think i will give up at this point and find a system that works, it should not be this difficult to install a simple management gui. this is insane i cant see how anyone can use this.
@weizhouapache
Im happy to put on a temporary public ip and PM you the login details if you would like?
Im very sure i havent missed anything.
@CobbyJ yes, you can send to me by email : weizhou <@> apache.org (remove < >)
thank you. will configure with a public IP and send tomorrow
Hi, I'm trying to install new installation of cloudstack and after I following steps in documentation I see the same problem. I running server with CentOS 7 and try to install Cloudstack 4.13. After I execute cloudstack-setup-management I see this: [root@cls-control ~]# cloudstack-setup-management Starting to configure CloudStack Management Server: Configure Firewall ... [OK] Configure CloudStack Management Server ...[OK] CloudStack Management Server setup is Done! [root@cls-control ~]#
But when I try to open UI I'm seeing: HTTP ERROR 503 Problem accessing /client/. Reason:
Service Unavailable
In the log file I see this error:
2020-01-31 03:33:55,578 DEBUG [c.c.u.d.T.Transaction] (main:null) (logid:) Rolling back the transaction: Time = 33604 Name = Upgrade; called by -TransactionLegacy.rollback:890-TransactionLegacy.removeUpTo:833-TransactionLegacy.close:657-TransactionContextInterceptor.invoke:36-ReflectiveMethodInvocation.proceed:174-ExposeInvocationInterceptor.invoke:92-ReflectiveMethodInvocation.proceed:185-JdkDynamicAopProxy.invoke:212-$Proxy30.persist:-1-DatabaseUpgradeChecker.upgrade:589-DatabaseUpgradeChecker.check:666-CloudStackExtendedLifeCycle.checkIntegrity:65
2020-01-31 03:33:55,641 ERROR [c.c.u.DatabaseUpgradeChecker] (main:null) (logid:) Unable to upgrade the database
com.cloud.utils.exception.CloudRuntimeException: Problem with getting the ec attribute
at com.cloud.utils.db.GenericDaoBase.persist(GenericDaoBase.java:1439)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:338)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at com.cloud.utils.db.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:34)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy30.persist(Unknown Source)
at com.cloud.upgrade.DatabaseUpgradeChecker.upgrade(DatabaseUpgradeChecker.java:589)
at com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:666)
at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.checkIntegrity(CloudStackExtendedLifeCycle.java:65)
at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:55)
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:183)
at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:52)
at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:358)
at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:159)
at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:884)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:145)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.with(DefaultModuleDefinitionSet.java:122)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:245)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:233)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContexts(DefaultModuleDefinitionSet.java:117)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.load(DefaultModuleDefinitionSet.java:79)
at org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadModules(ModuleBasedContextFactory.java:37)
at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(CloudStackSpringContext.java:71)
at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.
@vvaleriev you need to downgrade mysql-connector-java from 8.0.X to 5.1.X
#3826 #3856
@vvaleriev you need to downgrade mysql-connector-java from 8.0.X to 5.1.X
@weizhouapache thanks. It's works!
@vvaleriev you need to downgrade mysql-connector-java from 8.0.X to 5.1.X
hi @weizhouapache, curious to know how you figured this out ? didn't find it obvious after looking at the logs..
@skattoju4 the workaround is provided in #3826
@vvaleriev you need to downgrade mysql-connector-java from 8.0.X to 5.1.X
which is the procedure to downgrade? i am completely new to cloudstack and yesterday installed and faced this issue
@AlexanderKgr you can downgrade to specified version using yum if you use CentOS/RHEL, or apt if you use Ubuntu/Debian.
Hi, I'm trying startup cloudstack-management.service, but failed. I installed cloudstack-management 4.11 in centos7. Here are the env: mysql Ver 14.14 Distrib 5.7.31, for Linux (x86_64) using EditLine wrapper java openjdk version "1.8.0_252"
2020-07-17 04:34:21,829 INFO [c.c.u.DatabaseUpgradeChecker] (main:null) (logid:) Grabbing lock to check for database upgrade.
2020-07-17 04:34:21,866 ERROR [c.c.u.d.DbUtil] (main:null) (logid:) GET_LOCK() throws exception
java.sql.SQLException: Operation not allowed for a result set of type ResultSet.TYPE_FORWARD_ONLY.
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.result.ResultSetImpl.first(ResultSetImpl.java:584)
at org.apache.commons.dbcp2.DelegatingResultSet.first(DelegatingResultSet.java:402)
at org.apache.commons.dbcp2.DelegatingResultSet.first(DelegatingResultSet.java:402)
at com.cloud.utils.db.DbUtil.getGlobalLock(DbUtil.java:210)
at com.cloud.utils.db.GlobalLock.lock(GlobalLock.java:154)
at com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:641)
at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.checkIntegrity(CloudStackExtendedLifeCycle.java:65)
at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:55)
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:183)
at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:52)
at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:358)
at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:159)
at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:884)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:145)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.with(DefaultModuleDefinitionSet.java:122)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:245)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:233)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContexts(DefaultModuleDefinitionSet.java:117)
at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.load(DefaultModuleDefinitionSet.java:79)
at org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadModules(ModuleBasedContextFactory.java:37)
at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(CloudStackSpringContext.java:71)
at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.