confluence?????8090?????????????8090?????
Asked by zhan zhao:

confluence?????8090?????????????8090????????????????


Answers:
author: Nic Brough -Adaptavist-
body: Have a read of <https://confluence.atlassian.com/kb/changing-port-that-your-atlassian-application-listens-on-834000041.html>

comments: author: zhan zhao
body: Thank you. It has been modified according to your way, but the conference service can't be started.


author: Nic Brough -Adaptavist-
body: What errors are you getting? What does the log file say the problem is?

If you've followed the documentation, the most likely problem is that you've edited server.xml and miskeyed something that has broken it so that Tomcat can't make sense of the file and hence stops when it tries to read it.


author: zhan zhao
body: ![Modify server.xml file information.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/137226iB3206BE25E003560/image-size/large?v=v2&px=999 "Modify server.xml file information.jpg")


author: zhan zhao
body: ![Tomcat start.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/137227i91FDECC7E230FD5E/image-size/large?v=v2&px=999 "Tomcat start.jpg")![after.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/137228i0438EC11FF0666A2/image-size/large?v=v2&px=999 "after.jpg")


author: zhan zhao
body: \[root@192 logs\]# tail atlassian-confluence.log  
at com.atlassian.migration.agent.store.jpa.impl.DefaultPluginTransactionTemplate.on(DefaultPluginTransactionTemplate.java:29)  
at com.atlassian.migration.agent.store.tx.PluginTransactionTemplate.read(PluginTransactionTemplate.java:16)  
at com.atlassian.migration.agent.service.impl.DefaultStatisticsService.loadSpaceStatistics(DefaultStatisticsService.java:138)  
at com.atlassian.migration.agent.service.impl.DefaultStatisticsService.calculateServerStats(DefaultStatisticsService.java:167)  
at com.atlassian.migration.agent.service.impl.SingleJobExecutor.lambda$execute$0(SingleJobExecutor.java:33)  
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)  
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
... 1 more  
2021-04-02 08:39:06,228 WARN \[synchrony-interop-executor:thread-3\] \[plugins.synchrony.bootstrap.DefaultSynchronyProxyMonitor\] pollHealthcheck Could not ping the synchrony-proxy \[<http://127.0.0.1:80/synchrony-proxy/healthcheck>\]: Connect to 127.0.0.1:80 \[/127.0.0.1\] failed: Connection refused (Connection refused)


author: zhan zhao
body: Thank you very much for helping to check the fault. I have also checked the screenshots and logs for a long time. I have studied for a long time and have limited technical experience. Please help us to check it out. If possible, please help to post the detailed steps that need to be operated. Thank you for your advice.


author: zhan zhao
body: 2021-04-02 08:40:22,878 ERROR \[Caesium-1-4\] \[migration.agent.queue.QueueBroker\] error An error occurred when getting the next batch for consumer type: CONFLUENCE_IMPORT. Message: java.lang.ClassCastException: class java.time.LocalDateTime cannot be cast to class java.lang.String (java.time.LocalDateTime and java.lang.String are in module java.base of loader 'bootstrap')  
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.ClassCastException: class java.time.LocalDateTime cannot be cast to class java.lang.String (java.time.LocalDateTime and java.lang.String are in module java.base of loader 'bootstrap')  
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)  
at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)  
at com.atlassian.migration.agent.store.jpa.impl.DefaultSessionFactorySupplier.get(DefaultSessionFactorySupplier.java:65)  
at com.atlassian.migration.agent.store.jpa.impl.DefaultSessionFactorySupplier.get(DefaultSessionFactorySupplier.java:40)  
at com.atlassian.migration.agent.store.jpa.impl.DefaultPluginTransactionTemplate.on(DefaultPluginTransactionTemplate.java:29)  
at com.atlassian.migration.agent.store.tx.PluginTransactionTemplate.write(PluginTransactionTemplate.java:24)  
at com.atlassian.migration.agent.queue.QueueBroker.getNextBatch(QueueBroker.java:119)  
at com.atlassian.migration.agent.queue.QueueBroker.dispatchBatchToConsumer(QueueBroker.java:113)  
at java.base/java.util.ArrayList.forEach(Unknown Source)  
at com.atlassian.migration.agent.queue.QueueBroker.runJob(QueueBroker.java:100)  
at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.doRunJob(JobRunnerWrapper.java:117)  
at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.lambda$runJob$0(JobRunnerWrapper.java:87)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:84)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:68)  
at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.runJob(JobRunnerWrapper.java:87)  
at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:134)  
at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:106)  
at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:90)  
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:435)  
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:402)  
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:380)  
at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:66)  
at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:60)  
at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:35)  
at java.base/java.lang.Thread.run(Unknown Source)  
Caused by: java.lang.ClassCastException: class java.time.LocalDateTime cannot be cast to class java.lang.String (java.time.LocalDateTime and java.lang.String are in module java.base of loader 'bootstrap')  
at liquibase.changelog.StandardChangeLogHistoryService.getRanChangeSets(StandardChangeLogHistoryService.java:324)  
at liquibase.changelog.AbstractChangeLogHistoryService.upgradeChecksums(AbstractChangeLogHistoryService.java:66)  
at liquibase.changelog.StandardChangeLogHistoryService.upgradeChecksums(StandardChangeLogHistoryService.java:293)  
at liquibase.Liquibase.checkLiquibaseTables(Liquibase.java:1221)  
at liquibase.Liquibase.update(Liquibase.java:193)  
at liquibase.Liquibase.update(Liquibase.java:179)  
at com.atlassian.migration.agent.store.jpa.impl.LiquibaseSchemaUpgrader.upgrade(LiquibaseSchemaUpgrader.java:30)  
at com.atlassian.migration.agent.store.jpa.impl.DefaultSessionFactorySupplier.buildSessionFactory(DefaultSessionFactorySupplier.java:70)  
at com.atlassian.util.concurrent.Lazy$Strong.create(Lazy.java:85)  
at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:325)  
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)  
at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)  
at com.atlassian.migration.agent.store.jpa.impl.DefaultSessionFactorySupplier.get(DefaultSessionFactorySupplier.java:65)  
at com.atlassian.migration.agent.store.jpa.impl.DefaultSessionFactorySupplier.get(DefaultSessionFactorySupplier.java:40)  
at com.atlassian.migration.agent.store.jpa.impl.DefaultPluginTransactionTemplate.on(DefaultPluginTransactionTemplate.java:29)  
at com.atlassian.migration.agent.store.tx.PluginTransactionTemplate.read(PluginTransactionTemplate.java:16)  
at com.atlassian.migration.agent.service.impl.DefaultStatisticsService.loadSpaceStatistics(DefaultStatisticsService.java:138)  
at com.atlassian.migration.agent.service.impl.DefaultStatisticsService.calculateServerStats(DefaultStatisticsService.java:167)  
at com.atlassian.migration.agent.service.impl.SingleJobExecutor.lambda$execute$0(SingleJobExecutor.java:33)  
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)  
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
... 1 more


author: Nic Brough -Adaptavist-
body: Have another read of the document I linked to - there's a bit in there about privileged port usage that I suspect you've missed.


author: zhan zhao
body: Hello, where should bitbucket be opened? Are there any steps? Thank you very much.

"If you are running an atlas application on a Linux server and want to bind to a privileged port (for example, a port below port 80), you need to start the bitbucket server as the root to successfully bind to the port. As this is not recommended, you should consider:"


author: Nic Brough -Adaptavist-
body: You don't, they've made a mistake in the doc and said "Bitbucket" when they mean "your Atlassian application"


author: zhan zhao
body: The default port of conference is 8090. Now that I have built it, how can I modify the 8090 port? Please post the configuration, thank you.


Tags: cloud

confluence-cloud