Skip to content
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

[Bug] Nacos import config error. #358

Closed
dongzl opened this issue Aug 15, 2022 · 1 comment
Closed

[Bug] Nacos import config error. #358

dongzl opened this issue Aug 15, 2022 · 1 comment
Labels
bug Something isn't working config Config center.

Comments

@dongzl
Copy link
Contributor

dongzl commented Aug 15, 2022

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

GOROOT=/usr/local/go #gosetup
GOPATH=/Users/dongzonglei/go #gosetup
/usr/local/go/bin/go build -o /private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/___IMPORT -gcflags all=-N -l github.com/arana-db/arana/cmd #gosetup
/Applications/GoLand.app/Contents/plugins/go/lib/dlv/mac/dlv --listen=127.0.0.1:57705 --headless=true --api-version=2 --check-go-version=false --only-same-user=false exec /private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/___IMPORT -- import -c ./conf/bootstrap.yaml -s ./conf/config.yaml
API server listening at: 127.0.0.1:57705
debugserver-@(#)PROGRAM:LLDB  PROJECT:lldb-1200.0.44
 for x86_64.
Got a connection, launched process /private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/___IMPORT (pid = 74865).
2022/08/15 19:14:22 [INFO] logDir:</private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/log>   cacheDir:</private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/cache>
2022-08-15T19:14:22.818+0800    INFO    rpc/rpc_client.go:276   config-0-c373d025-5019-4b0a-bdad-3e4f269d4a64 register server push request:ConfigChangeNotifyRequest handler%!(EXTRA *config_client.ConfigChangeNotifyRequestHandler=&{0xc000238140})
2022-08-15T19:14:22.819+0800    INFO    rpc/rpc_client.go:276   config-0-c373d025-5019-4b0a-bdad-3e4f269d4a64 register server push request:ConnectResetRequest handler%!(EXTRA *rpc.ConnectResetRequestHandler=&{})
2022-08-15T19:14:22.819+0800    INFO    rpc/rpc_client.go:276   config-0-c373d025-5019-4b0a-bdad-3e4f269d4a64 register server push request:ClientDetectionRequest handler%!(EXTRA *rpc.ClientDetectionRequestHandler=&{})
2022-08-15T19:14:22.819+0800    INFO    rpc/rpc_client.go:214   [RpcClient.Start] config-0-c373d025-5019-4b0a-bdad-3e4f269d4a64 try to connect to server on start up, server: {serverIp:localhost serverPort:8848}
2022-08-15T19:14:22.819+0800    INFO    util/common.go:96       Local IP:192.168.43.163
2022-08-15T19:14:22.930+0800    INFO    rpc/rpc_client.go:224   config-0-c373d025-5019-4b0a-bdad-3e4f269d4a64 success to connect to server {serverIp:localhost serverPort:8848} on start up, connectionId=1660562062825_127.0.0.1_57717
2022-08-15T19:14:22.938+0800    ERROR   cache/disk_cache.go:84  failed to delete config file,cache:/private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/cache//arana-db/config/data/listeners@@arana@@arana ,value: ,err:remove /private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/cache//arana-db/config/data/listeners@@arana@@arana: no such file or directory
2022-08-15T19:14:22.943+0800    ERROR   cache/disk_cache.go:84  failed to delete config file,cache:/private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/cache//arana-db/config/data/dataSourceClusters@@arana@@arana ,value: ,err:remove /private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/cache//arana-db/config/data/dataSourceClusters@@arana@@arana: no such file or directory
2022-08-15T19:14:22.950+0800    ERROR   cache/disk_cache.go:84  failed to delete config file,cache:/private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/cache//arana-db/config/data/shardingRule@@arana@@arana ,value: ,err:remove /private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/cache//arana-db/config/data/shardingRule@@arana@@arana: no such file or directory
2022-08-15T19:14:22.954+0800    ERROR   cache/disk_cache.go:84  failed to delete config file,cache:/private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/cache//arana-db/config/metadata@@arana@@arana ,value: ,err:remove /private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/cache//arana-db/config/metadata@@arana@@arana: no such file or directory
2022-08-15T19:14:22.958+0800    ERROR   cache/disk_cache.go:84  failed to delete config file,cache:/private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/cache//arana-db/config/data/tenants@@arana@@arana ,value: ,err:remove /private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/cache//arana-db/config/data/tenants@@arana@@arana: no such file or directory
2022-08-15T19:14:22.966+0800    ERROR   cache/disk_cache.go:84  failed to delete config file,cache:/private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/cache//arana-db/config/data/filters@@arana@@arana ,value: ,err:remove /private/var/folders/qg/zk85p89j08n0h8dk0yg56l580000gp/T/GoLand/cache//arana-db/config/data/filters@@arana@@arana: no such file or directory
2022-08-15T19:14:22.991+0800    FATAL   tools/tools.go:79       persist config to config.store failed: %+v[client.PublishConfig] param.content can not be empty
github.com/arana-db/arana/cmd/tools.Run
        /Users/dongzonglei/source_code/Github/arana/cmd/tools/tools.go:79
github.com/spf13/cobra.(*Command).execute
        /Users/dongzonglei/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:860
github.com/spf13/cobra.(*Command).ExecuteC
        /Users/dongzonglei/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:974
github.com/spf13/cobra.(*Command).Execute
        /Users/dongzonglei/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:902
main.main
        /Users/dongzonglei/source_code/Github/arana/cmd/main.go:42
runtime.main
        /usr/local/go/src/runtime/proc.go:250
Exiting.

Debugger finished with the exit code 0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

config:
#  name: etcd
#  options:
#    endpoints: "http://localhost:2379"

  name: nacos
  options:
    endpoints: "localhost:8848"
    namespace: arana
    group: arana
    contextPath: /nacos
    scheme: http
    username: nacos
    password: nacos
@dongzl dongzl added bug Something isn't working config Config center. labels Aug 15, 2022
@dongzl
Copy link
Contributor Author

dongzl commented Sep 18, 2022

close by #374

@dongzl dongzl closed this as completed Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working config Config center.
Projects
None yet
Development

No branches or pull requests

1 participant