prepare.sh return error
Closed this issue · 9 comments
我的执行步骤
1.下载 Phantoscope
git clone https://github.com/zilliztech/phantoscope.git -b 0.1.0
cd phantoscope
2.设置环境变量
$ export LOCAL_ADDRESS=$(ip a | grep -Eo 'inet (addr:)?([0-9].){3}[0-9]' | grep -Eo '([0-9].){3}[0-9]' | grep -v '127.0.0.1'| head -n 1)
3.启动 Phantoscope 容器:
$ sudo docker-compose up -d
4.检查所有容器状态
$ sudo docker-compose ps
Ok
5.创建pipeline
chmod +x scripts/prepare.sh
./scripts/prepare.sh
这儿返回了错误:
{"message": "opeartor vgg16 regist error", "error": "OperatorRegistError"}{"message": "query from sql error", "error": "QueryFromSQLError"}{"message": "query from sql error", "error": "QueryFromSQLError"}
Follow those steps:
docker-compose down
docker-compose up -d
./scripts/prepare.sh
can you paste your docker info
?
执行后的返回值
{"_name": "vgg16", "_backend": "vgg16", "_type": "encoder", "_input": "image", "_output": "vector", "_endpoint": ":50001", "_metric_type": "L2", "_dimension": 512}{"_pipeline_name": "example_pipeline", "_input": "image", "_output": "vector", "_dimension": 512, "_index_file_size": 1024, "_metric_type": "L2", "_pipeline_description": "pipeline example", "_processors": [""], "_encoder": "vgg16", "_description": "pipeline example"}{"message": "There has some error when create s3 buckets", "error": "S3Error"}
docker info信息
Client:
Debug Mode: false
Server:
Containers: 13
Running: 5
Paused: 0
Stopped: 8
Images: 59
Server Version: 19.03.6
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version:
runc version:
init version:
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 5.3.0-59-generic
Operating System: Ubuntu 18.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 7.56GiB
Name: dssy-HP
ID: PNCA:W6DA:YEZU:WITU:CXZG:UV3W:LGTA:E2EE:M6RT:HVB6:7XEW:WCJI
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support
Did you run export LOCAL_ADDRESS=$(ip a | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'| head -n 1)
command in this shell? Or run in the previous shell terminator?
This error is always caused by this.
try these steps to fix it, or delete all to rerun quick start.
$ export LOCAL_ADDRESS=$(ip a | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'| head -n 1)
$ docker-compose down
$ docker-compose up -d
$ ./scripts/prepare.sh # ignore other errors if you create application successfully in this command
Hello @gachiemchiep
Yeah, you are right. We did some api changes during 0.2.0.
So, we recommand to checkout 0.1.0 branch to use until the publish of 0.2.0.
Of course, we are changing all docs in the next days to prepare the publish of 0.2.0.
Thanks for your issue to point out this.
换了一台新机子,重新配置的
执行 ./scripts/prepare.sh 后返回
{"_name": "vgg16", "_backend": "vgg16", "_type": "encoder", "_input": "image", "output": "vector", " endpoint": ":50001", "_metric_type": "L2", "_dimension": 512}{"pipeline_name": "example_pipeline", " input": "image", "_output": "vector", "_dimension": 512, "_index_file_size": 1024, "_metric_type": "L2 ", "_pipeline_description": "pipeline example", "_processors": [""], "_encoder": "vgg16", "_descriptio n": "pipeline example"}{"message": "There has some error when create s3 buckets", "error": "S3Error"}
这个算ok么?好像还是有些error
This is not machine problem.
You may execute docker-compose up -d
without running commandexport export LOCAL_ADDRESS=$(ip a | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'| head -n 1)
before.
Please ensure you run in the same teminator shell.
thank you!
我全部切换到root账户下执行了一遍可以了
可能是因为 docker-compose up -d 我加了sudo
而export 是当前用户
Happy for you. I will close this issue.