oms社区版4.2.2
oms多地域多节点部署,每个地区是要有一个vip吗,还是可以多个地域使用一个vip。
供参考https://open.oceanbase.com/blog/6196030208
这个是容灾双活的迁移的吧,如果我用北京的数据源同步到上海的数据源,那我上海的数据源是不是地域应该选择上海区才可以上海起来增量同步组件呢
我在部署新的地域上海的机器的时候在步骤五】初始化 OMS 资源标签和资源组他一直在尝试 post url : http://xxxxx:8088/resource/host/add, 这个是什么原因呢,这个机器端口有服务,别的机器也能ping和telnet这个机器
详细日志报错如下文件
1.txt (3.4 KB)
进入oms容器,telnet xxxxx 8088 看这个端口通不通
supervisorctl status 看一下各个组件的状态,8088这个端口是cm组件的
每个地域有几台机器?如果每个地域之后一台机器cm url中的ip可以直接使用那台机器的ip
我的上海目前只有一台机器,在oms里面可以telnet域名和ip,运行也可以
supervisorctl status
nginx RUNNING pid 95278, uptime 0:11:34
oms_console RUNNING pid 95281, uptime 0:11:24
oms_drc_cm RUNNING pid 95515, uptime 0:11:14
oms_drc_supervisor RUNNING pid 95940, uptime 0:11:03
sshd RUNNING pid 96601, uptime 0:10:53
你的意思是我一台机器不用使用域名或者VIP是吧,只需要ip就行吗
是的,每个地域只有一台机器可以不用vip
/home/admin/logs/cm/log/common-error.log 看一下有没有异常报错
但是这个用也可以吧,后面还有可能加机器的
空的 -ltnh | grep common-error.log
-rw-r–r-- 1 0 0 0 May 14 15:11 common-error.log
oceanbase的租户可以多个地域使用一个吗,我这个多个地域使用的同一个租户
元数据库就用一个就好了
重试一下sh /root/docker_init.sh
重启了,vip也换成机器ip了,还是同样的报错,看/home/admin/logs/cm/log/common-error.log没有日志,直接访问http://ip:8089 显示502,具体如下,
502 Bad Gateway502 Bad Gateway
nginx
sh /root/docker_init.sh
执行了吗?
执行多次还是同样报错
/home/admin/logs 下面的打包传一下上来
主要要哪几个呢,里面日志文件太多了。
console的common-error.log如下。
common-error.txt (12.5 KB)
Supervisor 组件日志里面error.log如下所示
error.txt (10.3 KB)
cm里面的service.log日志内容如下。
service.txt (56.9 KB)
cm里面的cm-web.log日志内容如下。
cm-web.txt (9.6 KB)
看一下hostname是不是有问题
,2024-05-15 10:53:18.572 [main] ERROR c.a.d.c.o.u.HostnameUtil 31 - [] error getting hostname.
2 java.net.UnknownHostException: kcs-offline-gpu-test-master-014013: kcs-offline-gpu-test-master-014013: Name or service not known
3 at java.net.InetAddress.getLocalHost(InetAddress.java:1506)
4 at com.alipay.dss.core.operation.util.HostnameUtil.getCurrentHostname(HostnameUtil.java:29)
5 at com.alipay.dss.core.operation.innnerService.innerServiceImpl.LockServiceImpl.lock(LockServiceImpl.java:41)
6 at com.alipay.dss.core.operation.innnerService.innerServiceImpl.LockServiceImpl$$FastClassBySpringCGLIB$$b7a0ed1b.invoke()
7 at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
8 at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:750)
9 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
10 at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
11 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
12 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
13 at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)
14 at com.alipay.dss.core.operation.innnerService.innerServiceImpl.LockServiceImpl$$EnhancerBySpringCGLIB$$373acd70.lock()
15 at com.alipay.oms.aop.drc.LockAspect.lock(LockAspect.java:135)
16 at com.alipay.oms.aop.drc.LockAspect.lockAround(LockAspect.java:72)
17 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
19 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
20 at java.lang.reflect.Method.invoke(Method.java:498)
21 at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
22 at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
23 at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
24 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
25 at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)
26 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
27 at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)
28 at com.alipay.oms.service.scheduler.TaskJob$$EnhancerBySpringCGLIB$$3f87467b.cleanUpProjectIncrSyncComponents()
29 at com.alipay.dss.biz.service.inner.StartupService.start(StartupService.java:70)
30 at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182)
31 at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53)
32 at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:360)
33 at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:158)
34 at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122)
35 at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:893)
36 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:162)
37 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
38 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
39 at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)
40 at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)
41 at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
42 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
43 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204)
44 at com.alipay.oms.OmsConsoleApplication.main(OmsConsoleApplication.java:27)
45 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
46 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
47 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
48 at java.lang.reflect.Method.invoke(Method.java:498)
49 at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
50 at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
51 at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
52 at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
53 Caused by: java.net.UnknownHostException: kcs-offline-gpu-test-master-014013: Name or service not known
54 at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
55 at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
56 at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
57 at java.net.InetAddress.getLocalHost(InetAddress.java:1501)
58 … 49 common frames omitted
hostname就是这个,或者说有什么排查手段呢
你在容器内部ping 一下kcs-offline-gpu-test-master-014013
不行的话,在/etc/hosts中配置一下