Closed pinxiong closed 3 years ago
Thanks for your feedback,I will try to borrow a Mac with M1 chip tomorrow
By the way,which version of golang are you using? @pinxiong
By the way,which version of golang are you using? @pinxiong
****:layotto ****$ go version
go version go1.16.5 darwin/arm64
@pinxiong Hi, I submitted a pr to fix this issue.Could u try again?
Thank you very much! Your PR can fix my issue! (You can close #68)
I have pasted more detailed info for helping other with the same problems before.
mosn
's version from v0.22.1
to v0.23.0
)****:layotto ****$ git log
commit 8bcebb92b30df8b5c396f1e0bf3b86b143d233d8 (HEAD -> main, upstream/main)
Author: seeflood <349895584@qq.com>
Date: Mon Jun 21 15:27:22 2021 +0800
fix m1 compile error (#73)
cd ${projectpath}/cmd/layotto
go build
the lastest mosn
downloaded successfully
****:layotto ****$ go build
go: downloading mosn.io/mosn v0.23.0
go: downloading mosn.io/pkg v0.0.0-20210604065522-6e8f5a087814
****:layotto ****$ pwd
/********/layotto/cmd/layotto
And then run ./layotto start -c ../../configs/config_apollo.json
2021-06-21 15:51:56,885 [INFO] [network] [ register pool factory] register protocol: Http1 factory
2021-06-21 15:51:56,888 [INFO] register a new handler maker, name is default, is default: true
2021-06-21 15:51:56,888 [INFO] [config] processor added to configParsedCBMaps
2021-06-21 15:51:56,898 [INFO] register a grpc server named: runtime, success: true
2021-06-21 15:51:56,899 [INFO] load config from : ../../configs/config_apollo.json
2021-06-21 15:51:56,899 [INFO] mosn parameters parsed cost: 634.458µs
2021-06-21 15:51:56,900 [INFO] [mosn] [init tracing] disable tracing
2021-06-21 15:51:56,900 [INFO] [mosn start] create a new mosn structure
2021-06-21 15:51:56,900 [INFO] [server] [reconfigure] not reconfigure: dial unix /********/layotto/configs/reconfig.sock: connect: no such file or directory
2021-06-21 15:51:56,900 [INFO] [mosn] [NewMosn] new mosn created
2021-06-21 15:51:56,900 [INFO] [mosn start] mosn init cluster structures
2021-06-21 15:51:56,900 [WARN] [config] [parse cluster] No Cluster provided in cluster config
2021-06-21 15:51:56,900 [INFO] [mosn start] mosn init server structures
2021-06-21 15:51:56,900 [DEBUG] [server] [init] add server conn handler, server name =
2021-06-21 15:51:56,900 [INFO] parsing listen config:tcp
2021-06-21 15:51:56,900 [WARN] [streamfilter] createStreamFilterFactoryFromConfig return nil factories
2021-06-21 15:51:56,900 [INFO] [streamfilter] AddOrUpdateStreamFilterConfig add filter chain key: grpc
2021-06-21 15:51:56,900 [DEBUG] [dumpConfig] update app dump config, value={"cpu_max_rate":80,"duration":10,"interval":30,"mem_max_rate":80,"switch":"ON"}
2021-06-21 15:51:56,900 [DEBUG] [DUMP] start updateSampleFlag.
2021-06-21 15:51:56,900 [DEBUG] tcpcopy filter initialized success
2021-06-21 15:51:56,900 [DEBUG] grpc server filter: create a grpc server name: runtime
2021-06-21 15:51:56,900 [INFO] [runtime] init hello service
2021-06-21 15:51:56,900 [INFO] [runtime] init config service
2021-06-21 15:51:56,977 [INFO] [[agollo start finished ! ]]
2021-06-21 15:51:57,35 [INFO] [[agollo start finished ! ]]
2021-06-21 15:51:57,35 [INFO] [runtime] init rpc service
2021-06-21 15:51:57,35 [INFO] [runtime] start initializing pubsub components
2021-06-21 15:51:57,35 [INFO] [runtime] start initializing state components
2021-06-21 15:51:57,35 [DEBUG] grpc server filter initialized success
2021-06-21 15:51:57,35 [INFO] mosn init cost: 136.298916ms
2021-06-21 15:51:57,35 [INFO] [server] [conn handler] [add listener] add listener: 127.0.0.1:34904
2021-06-21 15:51:57,35 [INFO] [mosn start] mosn start xds client
2021-06-21 15:51:57,36 [WARN] [feature gate] feature XdsMtlsEnable is not enabled
2021-06-21 15:51:57,36 [WARN] [feature gate] feature PayLoadLimitEnable is not enabled
2021-06-21 15:51:57,36 [WARN] [feature gate] feature MultiTenantMode is not enabled
2021-06-21 15:51:57,36 [WARN] [feature gate] feature auto_config is not enabled
2021-06-21 15:51:57,36 [WARN] no admin config, no admin api served
2021-06-21 15:51:57,36 [INFO] [admin store] [mosn state] state changed to 1
2021-06-21 15:51:57,36 [INFO] xds client start
2021-06-21 15:51:57,36 [ERROR] StaticResources is null
2021-06-21 15:51:57,36 [WARN] fail to init xds config, skip xds: null point exception
2021-06-21 15:51:57,36 [INFO] [mosn start] mosn parse extend config
2021-06-21 15:51:57,36 [INFO] mosn prepare to start cost: 130.958µs
2021-06-21 15:51:57,36 [INFO] [mosn start] mosn transfer connections
2021-06-21 15:51:57,36 [INFO] [mosn start] mosn clean upgrade datas
2021-06-21 15:51:57,36 [INFO] [mosn start] mosn start server
2021-06-21 15:51:57,36 [INFO] mosn start cost: 9.875µs
2021-06-21 15:51:58,40 [INFO] [server] [reconfigure] reconfigureHandler start
2021-06-21 15:52:27,906 [DEBUG] [DUMP] cpuRate:%!s(float64=22.732919254663774) is less than max rate %!s(float64=79.57048416137695), memRate:%!s(float64=80) is less than max rate %!s(float64=80)
2021-06-21 15:52:27,906 [DEBUG] [DUMP] open sample window
2021-06-21 15:52:37,910 [DEBUG] [DUMP] close sample window
2021-06-21 15:53:08,918 [DEBUG] [DUMP] cpuRate:%!s(float64=25.374999998894054) is less than max rate %!s(float64=78.82013320922852), memRate:%!s(float64=80) is less than max rate %!s(float64=80)
2021-06-21 15:53:08,918 [DEBUG] [DUMP] open sample window
Start the client
cd ${projectpath}/demo/configuration/apollo
go build -o apolloClientDemo
./apolloClientDemo
Verify
****:apollo ****$ ./apolloClientDemo
runtime client initializing for: 127.0.0.1:34904
save key success
get configuration after save, &{Key:key1 Content:value1 Group:application Label:prod Tags:map[feature:print release:1.0.0] Metadata:map[]}
get configuration after save, &{Key:haha Content:heihei Group:application Label:prod Tags:map[feature:haha release:1.0.0] Metadata:map[]}
delete keys success
Thanks again for your information. Welcome to Layotto Commutiy!
What happened:
I tried to run build this project and know how it works, so I downloaded the source code and then followed the quick-start to run the
apollo
demo.Failed to run the command below:
Error
What you expected to happen:
Hope I can build this project successfully
How to reproduce it (as minimally and precisely as possible):
see above
Anything else we need to know?:
Layotto Version:
master
OS:Mac OS Big Sur 11.4
I guess that
mosn
don't supportApple M1 chip
well