alibaba / nacos

an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
https://nacos.io
Apache License 2.0
30.27k stars 12.84k forks source link

Nacos Docker Failed to Start (MBA-m1): Function not implemented #7181

Closed paul4156 closed 3 years ago

paul4156 commented 3 years ago

Describe the bug Nacos Docker failed to start with error "Function not implemented"

How to Reproduce Steps to reproduce the behavior:

  1. Install docker desktop
  2. git clone https://github.com/nacos-group/nacos-docker.git
  3. cd nacos-docker
  4. docker-compose -f example/standalone-derby.yaml up

Desktop (please complete the following information):

Additional context

logs:

paulzhang@Pauls-MacBook-Air nacos-docker % docker-compose -f example/standalone-derby.yaml up
Starting grafana          ... done
Starting nacos-standalone ... done
Starting prometheus       ... done
Attaching to nacos-standalone, grafana, prometheus
grafana       | t=2021-11-04T10:04:19+0000 lvl=warn msg="falling back to legacy setting of 'min_interval_seconds'; please use the configuration option in the `unified_alerting` section if Grafana 8 alerts are enabled." logger=settings
grafana       | t=2021-11-04T10:04:19+0000 lvl=warn msg="falling back to legacy setting of 'min_interval_seconds'; please use the configuration option in the `unified_alerting` section if Grafana 8 alerts are enabled." logger=settings
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Config loaded from" logger=settings file=/usr/share/grafana/conf/defaults.ini
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Config loaded from" logger=settings file=/etc/grafana/grafana.ini
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.data=/var/lib/grafana"
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.logs=/var/log/grafana"
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.plugins=/var/lib/grafana/plugins"
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.provisioning=/etc/grafana/provisioning"
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.log.mode=console"
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_DATA=/var/lib/grafana"
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_LOGS=/var/log/grafana"
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_PLUGINS=/var/lib/grafana/plugins"
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_PROVISIONING=/etc/grafana/provisioning"
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Path Home" logger=settings path=/usr/share/grafana
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Path Data" logger=settings path=/var/lib/grafana
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Path Logs" logger=settings path=/var/log/grafana
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Path Plugins" logger=settings path=/var/lib/grafana/plugins
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Path Provisioning" logger=settings path=/etc/grafana/provisioning
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="App mode production" logger=settings
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=sqlite3
nacos-standalone | + export CUSTOM_SEARCH_NAMES=application,custom
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Starting DB migrations" logger=migrator
nacos-standalone | + CUSTOM_SEARCH_NAMES=application,custom
nacos-standalone | + export CUSTOM_SEARCH_LOCATIONS=/home/nacos/init.d/,file:/home/nacos/conf/
nacos-standalone | + CUSTOM_SEARCH_LOCATIONS=/home/nacos/init.d/,file:/home/nacos/conf/
nacos-standalone | + export MEMBER_LIST=
nacos-standalone | + MEMBER_LIST=
nacos-standalone | + PLUGINS_DIR=/home/nacos/plugins/peer-finder
nacos-standalone | + [[ standalone == \s\t\a\n\d\a\l\o\n\e ]]
nacos-standalone | + JAVA_OPT=' -Xms1g -Xmx1g -Xmn512m'
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="migrations completed" logger=migrator performed=0 skipped=346 duration=445.916µs
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Starting plugin search" logger=plugins
nacos-standalone | + JAVA_OPT=' -Xms1g -Xmx1g -Xmn512m -Dnacos.standalone=true'
nacos-standalone | + [[ all == \c\o\n\f\i\g ]]
nacos-standalone | + [[ all == \n\a\m\i\n\g ]]
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Registering plugin" logger=plugins id=input
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="Live Push Gateway initialization" logger=live.push_http
grafana       | t=2021-11-04T10:04:19+0000 lvl=info msg="HTTP Server Listen" logger=http.server address=[::]:3000 protocol=http subUrl= socket=
nacos-standalone | + [[ ! -z '' ]]
nacos-standalone | + [[ ! -z '' ]]
nacos-standalone | + [[ ! -z '' ]]
nacos-standalone | + [[ ! -z '' ]]
nacos-standalone | + [[ ! -z '' ]]
nacos-standalone | + [[ hostname == \h\o\s\t\n\a\m\e ]]
nacos-standalone | + JAVA_OPT=' -Xms1g -Xmx1g -Xmn512m -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true'
nacos-standalone | + JAVA_OPT=' -Xms1g -Xmx1g -Xmn512m -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true -Dnacos.member.list='
nacos-standalone | ++ /usr/lib/jvm/java-1.8.0-openjdk/bin/java -version
nacos-standalone | ++ sed -E -n 's/.* version "([0-9]*).*$/\1/p'
prometheus    | ts=2021-11-04T10:04:19.524Z caller=main.go:406 level=info msg="No time or size retention was set so using the default time retention" duration=15d
prometheus    | ts=2021-11-04T10:04:19.524Z caller=main.go:444 level=info msg="Starting Prometheus" version="(version=2.31.0, branch=HEAD, revision=d4c83da6d252d4edfdbd639fb817ebdb8e9ab2e4)"
prometheus    | ts=2021-11-04T10:04:19.524Z caller=main.go:449 level=info build_context="(go=go1.17.2, user=root@a20d1f4f5efe, date=20211102-10:14:24)"
prometheus    | ts=2021-11-04T10:04:19.524Z caller=main.go:450 level=info host_details="(Linux 5.10.47-linuxkit #1 SMP PREEMPT Sat Jul 3 21:50:16 UTC 2021 aarch64 e7ec61beba18 (none))"
prometheus    | ts=2021-11-04T10:04:19.524Z caller=main.go:451 level=info fd_limits="(soft=1048576, hard=1048576)"
prometheus    | ts=2021-11-04T10:04:19.524Z caller=main.go:452 level=info vm_limits="(soft=unlimited, hard=unlimited)"
prometheus    | ts=2021-11-04T10:04:19.526Z caller=web.go:542 level=info component=web msg="Start listening for connections" address=0.0.0.0:9090
prometheus    | ts=2021-11-04T10:04:19.527Z caller=main.go:839 level=info msg="Starting TSDB ..."
prometheus    | ts=2021-11-04T10:04:19.527Z caller=tls_config.go:195 level=info component=web msg="TLS is disabled." http2=false
prometheus    | ts=2021-11-04T10:04:19.530Z caller=head.go:479 level=info component=tsdb msg="Replaying on-disk memory mappable chunks if any"
prometheus    | ts=2021-11-04T10:04:19.530Z caller=head.go:513 level=info component=tsdb msg="On-disk memory mappable chunks replay completed" duration=10µs
prometheus    | ts=2021-11-04T10:04:19.530Z caller=head.go:519 level=info component=tsdb msg="Replaying WAL, this may take a while"
prometheus    | ts=2021-11-04T10:04:19.533Z caller=head.go:590 level=info component=tsdb msg="WAL segment loaded" segment=0 maxSegment=1
prometheus    | ts=2021-11-04T10:04:19.534Z caller=head.go:590 level=info component=tsdb msg="WAL segment loaded" segment=1 maxSegment=1
prometheus    | ts=2021-11-04T10:04:19.534Z caller=head.go:596 level=info component=tsdb msg="WAL replay completed" checkpoint_replay_duration=29.084µs wal_replay_duration=3.624541ms total_replay_duration=3.673209ms
prometheus    | ts=2021-11-04T10:04:19.535Z caller=main.go:866 level=info fs_type=EXT4_SUPER_MAGIC
prometheus    | ts=2021-11-04T10:04:19.535Z caller=main.go:869 level=info msg="TSDB started"
prometheus    | ts=2021-11-04T10:04:19.535Z caller=main.go:996 level=info msg="Loading configuration file" filename=/etc/prometheus/prometheus.yml
prometheus    | ts=2021-11-04T10:04:19.538Z caller=main.go:1033 level=info msg="Completed loading of configuration file" filename=/etc/prometheus/prometheus.yml totalDuration=3.089458ms db_storage=1.084µs remote_storage=1.5µs web_handler=458ns query_engine=792ns scrape=782.584µs scrape_sd=81.625µs notify=27.75µs notify_sd=3.959µs rules=1.375µs
prometheus    | ts=2021-11-04T10:04:19.538Z caller=main.go:811 level=info msg="Server is ready to receive web requests."
nacos-standalone | + JAVA_MAJOR_VERSION=1
nacos-standalone | + [[ 1 -ge 9 ]]
nacos-standalone | + JAVA_OPT=' -Xms1g -Xmx1g -Xmn512m -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true -Dnacos.member.list= -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/ext:/usr/lib/jvm/java-1.8.0-openjdk/lib/ext:/home/nacos/plugins/health:/home/nacos/plugins/cmdb:/home/nacos/plugins/mysql'
nacos-standalone | + JAVA_OPT=' -Xms1g -Xmx1g -Xmn512m -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true -Dnacos.member.list= -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/ext:/usr/lib/jvm/java-1.8.0-openjdk/lib/ext:/home/nacos/plugins/health:/home/nacos/plugins/cmdb:/home/nacos/plugins/mysql -Xloggc:/home/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M'
nacos-standalone | + JAVA_OPT=' -Xms1g -Xmx1g -Xmn512m -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true -Dnacos.member.list= -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/ext:/usr/lib/jvm/java-1.8.0-openjdk/lib/ext:/home/nacos/plugins/health:/home/nacos/plugins/cmdb:/home/nacos/plugins/mysql -Xloggc:/home/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dnacos.home=/home/nacos'
nacos-standalone | + JAVA_OPT=' -Xms1g -Xmx1g -Xmn512m -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true -Dnacos.member.list= -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/ext:/usr/lib/jvm/java-1.8.0-openjdk/lib/ext:/home/nacos/plugins/health:/home/nacos/plugins/cmdb:/home/nacos/plugins/mysql -Xloggc:/home/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dnacos.home=/home/nacos -jar /home/nacos/target/nacos-server.jar'
nacos-standalone | + JAVA_OPT=' -Xms1g -Xmx1g -Xmn512m -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true -Dnacos.member.list= -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/ext:/usr/lib/jvm/java-1.8.0-openjdk/lib/ext:/home/nacos/plugins/health:/home/nacos/plugins/cmdb:/home/nacos/plugins/mysql -Xloggc:/home/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dnacos.home=/home/nacos -jar /home/nacos/target/nacos-server.jar '
nacos-standalone | + JAVA_OPT=' -Xms1g -Xmx1g -Xmn512m -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true -Dnacos.member.list= -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/ext:/usr/lib/jvm/java-1.8.0-openjdk/lib/ext:/home/nacos/plugins/health:/home/nacos/plugins/cmdb:/home/nacos/plugins/mysql -Xloggc:/home/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dnacos.home=/home/nacos -jar /home/nacos/target/nacos-server.jar  --spring.config.additional-location=/home/nacos/init.d/,file:/home/nacos/conf/'
nacos-standalone | + JAVA_OPT=' -Xms1g -Xmx1g -Xmn512m -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true -Dnacos.member.list= -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/ext:/usr/lib/jvm/java-1.8.0-openjdk/lib/ext:/home/nacos/plugins/health:/home/nacos/plugins/cmdb:/home/nacos/plugins/mysql -Xloggc:/home/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dnacos.home=/home/nacos -jar /home/nacos/target/nacos-server.jar  --spring.config.additional-location=/home/nacos/init.d/,file:/home/nacos/conf/ --spring.config.name=application,custom'
nacos-standalone | + JAVA_OPT=' -Xms1g -Xmx1g -Xmn512m -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true -Dnacos.member.list= -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/ext:/usr/lib/jvm/java-1.8.0-openjdk/lib/ext:/home/nacos/plugins/health:/home/nacos/plugins/cmdb:/home/nacos/plugins/mysql -Xloggc:/home/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dnacos.home=/home/nacos -jar /home/nacos/target/nacos-server.jar  --spring.config.additional-location=/home/nacos/init.d/,file:/home/nacos/conf/ --spring.config.name=application,custom --logging.config=/home/nacos/conf/nacos-logback.xml'
nacos-standalone | + JAVA_OPT=' -Xms1g -Xmx1g -Xmn512m -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true -Dnacos.member.list= -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/ext:/usr/lib/jvm/java-1.8.0-openjdk/lib/ext:/home/nacos/plugins/health:/home/nacos/plugins/cmdb:/home/nacos/plugins/mysql -Xloggc:/home/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dnacos.home=/home/nacos -jar /home/nacos/target/nacos-server.jar  --spring.config.additional-location=/home/nacos/init.d/,file:/home/nacos/conf/ --spring.config.name=application,custom --logging.config=/home/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288'
nacos-standalone | + echo 'Nacos is starting, you can docker logs your container'
nacos-standalone | Nacos is starting, you can docker logs your container
nacos-standalone | + exec /usr/lib/jvm/java-1.8.0-openjdk/bin/java -Xms1g -Xmx1g -Xmn512m -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true -Dnacos.member.list= -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/ext:/usr/lib/jvm/java-1.8.0-openjdk/lib/ext:/home/nacos/plugins/health:/home/nacos/plugins/cmdb:/home/nacos/plugins/mysql -Xloggc:/home/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dnacos.home=/home/nacos -jar /home/nacos/target/nacos-server.jar --spring.config.additional-location=/home/nacos/init.d/,file:/home/nacos/conf/ --spring.config.name=application,custom --logging.config=/home/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288
nacos-standalone | 18:04:24.495 [main] DEBUG org.springframework.boot.context.logging.ClasspathLoggingApplicationListener - Application failed to start with classpath: [jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/classes!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-config-2.0.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-starter-web-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-starter-json-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jackson-datatype-jdk8-2.9.10.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jackson-datatype-jsr310-2.9.10.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jackson-module-parameter-names-2.9.10.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/hibernate-validator-6.0.20.Final.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/validation-api-2.0.1.Final.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jboss-logging-3.3.3.Final.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/classmate-1.4.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-web-5.1.18.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-webmvc-5.1.18.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-api-2.0.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/reflections-0.9.11.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/javassist-3.21.0-GA.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/javax.annotation-api-1.3.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-core-2.0.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-common-2.0.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-consistency-2.0.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/hessian-4.0.63.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-auth-2.0.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-sys-2.0.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jjwt-api-0.11.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jjwt-impl-0.11.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jjwt-jackson-0.11.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-test-5.1.18.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-test-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jraft-core-1.3.5.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/asm-6.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/rocksdbjni-5.18.4.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jna-4.5.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jctools-core-2.1.1.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/disruptor-3.3.7.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/commons-lang-2.6.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/hessian-3.3.6.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/metrics-core-4.0.7.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/rpc-grpc-impl-1.3.5.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/guava-30.1-jre.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/failureaccess-1.0.1.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jsr305-3.0.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/checker-qual-3.5.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/j2objc-annotations-1.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-starter-jdbc-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/HikariCP-3.4.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-jdbc-5.1.18.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-tx-5.1.18.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/commons-io-2.7.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/mysql-connector-java-8.0.21.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/derby-10.14.2.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/logback-classic-1.2.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/aspectjrt-1.9.6.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/cglib-nodep-2.1.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/httpasyncclient-4.1.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/httpcore-nio-4.4.13.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/commons-logging-1.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-starter-tomcat-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/tomcat-embed-websocket-9.0.38.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jackson-core-2.12.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jackson-databind-2.12.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jackson-annotations-2.12.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/micrometer-registry-prometheus-1.1.18.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/micrometer-core-1.1.18.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/HdrHistogram-2.1.9.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/LatencyUtils-2.0.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/simpleclient_common-0.5.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/micrometer-registry-influx-1.1.18.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/micrometer-registry-elastic-1.1.18.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-starter-aop-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/aspectjweaver-1.9.6.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-starter-actuator-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-actuator-autoconfigure-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-actuator-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/snakeyaml-1.23.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/tomcat-embed-jasper-9.0.40.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/tomcat-embed-core-9.0.38.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/tomcat-annotations-api-9.0.38.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/tomcat-embed-el-9.0.38.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/ecj-3.18.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-naming-2.0.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/netty-all-4.1.59.Final.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-core-5.1.18.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-jcl-5.1.18.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-context-5.1.18.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/commons-collections-3.2.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jackson-core-asl-1.9.13.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/slf4j-api-1.7.7.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/logback-core-1.2.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/mina-core-2.0.0-RC1.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/javatuples-1.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/httpcore-4.4.13.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/httpclient-4.5.12.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/commons-codec-1.11.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-cmdb-2.0.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-istio-2.0.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos-client-2.0.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/simpleclient-0.5.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/grpc-netty-shaded-1.24.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/grpc-core-1.24.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/gson-2.8.6.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/annotations-4.1.1.4.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/perfmark-api-0.17.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/opencensus-api-0.21.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/opencensus-contrib-grpc-metrics-0.21.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/grpc-protobuf-1.24.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/grpc-api-1.24.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/grpc-context-1.24.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/error_prone_annotations-2.3.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/animal-sniffer-annotations-1.17.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/grpc-protobuf-lite-1.24.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/grpc-stub-1.24.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/proto-google-common-protos-1.17.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/protobuf-java-3.8.0.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/api-0.1.27.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/log4j-over-slf4j-1.7.30.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jcl-over-slf4j-1.7.30.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/jul-to-slf4j-1.7.30.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-starter-security-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-starter-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-autoconfigure-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-starter-logging-2.1.17.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/log4j-to-slf4j-2.11.2.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/log4j-api-2.13.3.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-aop-5.1.18.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-beans-5.1.18.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-security-config-5.1.12.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-security-core-5.1.12.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-security-web-5.1.12.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-expression-5.1.18.RELEASE.jar!/, jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/spring-boot-jarmode-layertools-2.5.3.jar!/]
nacos-standalone | 18:04:24.594 [background-preinit] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Log4j2LoggerProvider
nacos-standalone | 18:04:24.601 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 6.0.20.Final
nacos-standalone | 18:04:24.652 [background-preinit] DEBUG org.hibernate.validator.internal.engine.resolver.TraversableResolvers - Cannot find javax.persistence.Persistence on classpath. Assuming non JPA 2 environment. All properties will per default be traversable.
nacos-standalone | 18:04:24.675 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ValidationXmlParser - Trying to load META-INF/validation.xml for XML based Validator configuration.
nacos-standalone | 18:04:24.683 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ResourceLoaderHelper - Trying to load META-INF/validation.xml via TCCL
nacos-standalone | 18:04:24.685 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ResourceLoaderHelper - Trying to load META-INF/validation.xml via Hibernate Validator's class loader
nacos-standalone | 18:04:24.686 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ValidationXmlParser - No META-INF/validation.xml found. Using annotation based configuration only.
nacos-standalone | 18:04:25.385 [background-preinit] DEBUG org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator - Loaded expression factory via original TCCL
nacos-standalone | 18:04:25.415 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator as ValidatorFactory-scoped message interpolator.
nacos-standalone | 18:04:25.416 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.engine.resolver.TraverseAllTraversableResolver as ValidatorFactory-scoped traversable resolver.
nacos-standalone | 18:04:25.417 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.util.ExecutableParameterNameProvider as ValidatorFactory-scoped parameter name provider.
nacos-standalone | 18:04:25.417 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.engine.DefaultClockProvider as ValidatorFactory-scoped clock provider.
nacos-standalone | 18:04:25.418 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.engine.scripting.DefaultScriptEvaluatorFactory as ValidatorFactory-scoped script evaluator factory.
nacos-standalone | 18:04:28.972 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
nacos-standalone | com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: ErrCode:500, ErrMsg:Function not implemented
nacos-standalone |  at com.alibaba.nacos.core.listener.StartingApplicationListener.loadPreProperties(StartingApplicationListener.java:161)
nacos-standalone |  at com.alibaba.nacos.core.listener.StartingApplicationListener.environmentPrepared(StartingApplicationListener.java:100)
nacos-standalone |  at com.alibaba.nacos.core.code.SpringApplicationRunListener.environmentPrepared(SpringApplicationRunListener.java:65)
nacos-standalone |  at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)
nacos-standalone |  at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:342)
nacos-standalone |  at org.springframework.boot.SpringApplication.run(SpringApplication.java:305)
nacos-standalone |  at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
nacos-standalone |  at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204)
nacos-standalone |  at com.alibaba.nacos.Nacos.main(Nacos.java:35)
nacos-standalone |  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
nacos-standalone |  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
nacos-standalone |  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
nacos-standalone |  at java.lang.reflect.Method.invoke(Method.java:498)
nacos-standalone |  at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
nacos-standalone |  at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
nacos-standalone |  at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
nacos-standalone |  at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
nacos-standalone | Caused by: com.alibaba.nacos.api.exception.NacosException: java.io.IOException: Function not implemented
nacos-standalone |  at com.alibaba.nacos.sys.file.WatchFileCenter$WatchDirJob.<init>(WatchFileCenter.java:189)
nacos-standalone |  at com.alibaba.nacos.sys.file.WatchFileCenter.registerWatcher(WatchFileCenter.java:97)
nacos-standalone |  at com.alibaba.nacos.core.listener.StartingApplicationListener.registerWatcher(StartingApplicationListener.java:167)
nacos-standalone |  at com.alibaba.nacos.core.listener.StartingApplicationListener.loadPreProperties(StartingApplicationListener.java:159)
nacos-standalone |  ... 16 common frames omitted
nacos-standalone | Caused by: java.io.IOException: Function not implemented
nacos-standalone |  at sun.nio.fs.LinuxWatchService.<init>(LinuxWatchService.java:64)
nacos-standalone |  at sun.nio.fs.LinuxFileSystem.newWatchService(LinuxFileSystem.java:47)
nacos-standalone |  at com.alibaba.nacos.sys.file.WatchFileCenter$WatchDirJob.<init>(WatchFileCenter.java:184)
nacos-standalone |  ... 19 common frames omitted
nacos-standalone | 18:04:28.989 [Thread-4] WARN com.alibaba.nacos.common.executor.ThreadPoolManager - [ThreadPoolManager] Start destroying ThreadPool
nacos-standalone | 18:04:28.992 [Thread-4] WARN com.alibaba.nacos.common.executor.ThreadPoolManager - [ThreadPoolManager] Destruction of the end
nacos-standalone exited with code 1
paul4156 commented 3 years ago

found https://github.com/alibaba/nacos/issues/6340#issuecomment-903501320 and it worked. :)