-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple Mac M1 docker环境下nacos无法启动 #6340
Comments
补充信息: A fatal error has been detected by the Java Runtime Environment:SIGILL (0x4) at pc=0x000000400d1b0485, pid=1, tid=0x0000004089932700JRE version: OpenJDK Runtime Environment (8.0_292-b10) (build 1.8.0_292-b10)Java VM: OpenJDK 64-Bit Server VM (25.292-b10 mixed mode linux-amd64 compressed oops)Problematic frame:J 1507 C1 com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(ILcom/sun/org/apache/xerces/internal/impl/XMLScanner$NameType;)Z (285 bytes) @ 0x000000400d1b0485 [0x000000400d1b0460+0x25]Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java againAn error report file with more information is saved as:/home/nacos/hs_err_pid1.log |
你的系统没有实现filewatch,换个os版本试试 |
这个是拉取的官方镜像,compose如下 |
你说的对,想了想还是拿官方Dockfile,确认里面的基础镜像为centos:8.3.2011,支持arm64,修改了一下不装libcurl(已内置,若装还有冲突),然后在apple mac m1环境下重新build了一个镜像,然后一切ok。 最后,谢谢指点。 踏实了 |
能否提供一下Dockfile |
请问修改哪个文件的东西? |
请问解决了吗? |
能否解决一下,docker 镜像 不支持apple M1 arm64架构的问题。 |
可以这样改,hiwangzi/nacos-docker@6307130 或者直接用楼上打包的镜像,或者我打的这个也可以
|
thanks a lot |
|
#6340 (comment) |
FROM centos:8.3.2011 set environmentENV MODE="cluster" ARG NACOS_VERSION=2.0.2 WORKDIR $BASE_DIR RUN set -x ADD bin/docker-startup.sh bin/docker-startup.sh set startup log dirRUN mkdir -p logs EXPOSE 8848 |
Thanks a lot. That solved my problem. @zill057 |
Hi,That solved my problem:
|
Hi,Thanks a lot.That solved my problem:
|
@KomachiSion any interest in getting this fix into official nacos/nacos-server image? |
2.X needs port 9848,right? |
Thanks, this also solve the issue on my macOS. |
Thanks, this also solve the issue on my macOS. |
在dockerfile里,把安装libcurl的代码删掉就好了 |
老哥,造福人类哇 |
太垃圾了, 阿里就不能适配下,build一个arm架构的镜像吗 |
感谢 nacos 1.4.0 多平台兼容性疑问 #4336中 plusmancn 的解决方案,通过指定jdk版本后可以运行nacos 2.0.2。但是基于环境的安装配置的复杂程度以及对本地开发环境的配置复杂,不利于快速开展开发,所以还是想继续折腾docker方式的。
以官方文档提供的方法启动nacos,standalone模式,配合mysql-server 8依然无法启动,错误日志如下:
14:40:05.050 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: ErrCode:500, ErrMsg:Function not implemented
at com.alibaba.nacos.core.listener.StartingApplicationListener.loadPreProperties(StartingApplicationListener.java:160)
at com.alibaba.nacos.core.listener.StartingApplicationListener.environmentPrepared(StartingApplicationListener.java:99)
at com.alibaba.nacos.core.code.SpringApplicationRunListener.environmentPrepared(SpringApplicationRunListener.java:65)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:342)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:305)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204)
at com.alibaba.nacos.Nacos.main(Nacos.java:35)
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.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
Caused by: com.alibaba.nacos.api.exception.NacosException: java.io.IOException: Function not implemented
at com.alibaba.nacos.sys.file.WatchFileCenter$WatchDirJob.(WatchFileCenter.java:189)
at com.alibaba.nacos.sys.file.WatchFileCenter.registerWatcher(WatchFileCenter.java:97)
at com.alibaba.nacos.core.listener.StartingApplicationListener.registerWatcher(StartingApplicationListener.java:166)
at com.alibaba.nacos.core.listener.StartingApplicationListener.loadPreProperties(StartingApplicationListener.java:158)
... 16 common frames omitted
Caused by: java.io.IOException: Function not implemented
at sun.nio.fs.LinuxWatchService.(LinuxWatchService.java:64)
at sun.nio.fs.LinuxFileSystem.newWatchService(LinuxFileSystem.java:47)
at com.alibaba.nacos.sys.file.WatchFileCenter$WatchDirJob.(WatchFileCenter.java:184)
... 19 common frames omitted
14:40:05.106 [Thread-4] WARN com.alibaba.nacos.common.executor.ThreadPoolManager - [ThreadPoolManager] Start destroying ThreadPool
14:40:05.109 [Thread-4] WARN com.alibaba.nacos.common.executor.ThreadPoolManager - [ThreadPoolManager] Destruction of the end
求助,谢谢
The text was updated successfully, but these errors were encountered: