cello icon indicating copy to clipboard operation
cello copied to clipboard

Unable to create agent or node in cello

Open slebear opened this issue 6 years ago • 13 comments

When I use cello to create agent or node, I am facing the following issue:

  1. Try to create a new agent, receive the Success response and Error 400 response together; 184f4889fc5966e14a4339cf92c5927 Image 1 Try to create a new agent

  2. Try to create a new node, receive Error 400 response as I chose type "CA", receive NOTHING as I chose another types(Front-end seems don't make any request to service). d23afb997cf6f5da2a6ab0e86003ead Image 2 Try to create CA Node 4d158cca986bc770ffb0b5b3dc53b51 Image 3 Try to create another types Node(Peer or Order)

Though I tried ,but still can't solve this problem.

I guess there was something wrong in my deployment of cello, maybe I miss some key steps or uninstall some dependencies?


Here is the environment Info:

  • OS: Ubuntu 16.04.4 LTS

  • Kernal: Linux 4.4.0-145-generic

  • Architecture: x86-64

  • docker version: 18.03.0-ce, build 0520e24

  • docker componse version: 1.24.1, build 4667896b

Here is the steps I done:

  1. make setup-master

  2. make setup-worker

  3. make start

And here is cello start logs:

image Image 4 start script output

image Image 5 api-engine log(Unable to load uWSGI plugin, maybe caused by this?)

image Image 6 api-engine-task log

image Image 7 redis log

9e1afb4ca433c6db0816540fdbcf2fe Image 8 postgress log

slebear avatar Oct 24 '19 02:10 slebear

@slebear The first issue is that you can't create agent successfully, let's fix it at first. I want to know what is the config file of agent you uploaded. And if you run in product mode, the api log is the file /tmp/server.log which is in cello-api-engine container. please show the output of that file for the 400 bad request.

hightall avatar Oct 24 '19 03:10 hightall

@hightall Actually, when I try to create agent, the page didn't ask me to upload the config file, so I didn't upload it.And I use "test_image_1" as the input of image name.

Here is my form:

image Image 1 Input form I used

Here is the log: image Image 2 api-engine log

Is that a wrong usege case? If it is, please tell me the correct usage.

Thanks a lot.

slebear avatar Oct 24 '19 03:10 slebear

@slebear oh, yes, the config is not required, but for kubernetes agent, it's required field. you need upload zip file which archive .kube folder into it.

hightall avatar Oct 24 '19 04:10 hightall

截屏2019-10-24下午12 27 49 This is my .kube folder and config file.

hightall avatar Oct 24 '19 04:10 hightall

@hightall Sorry to reply you late, it took me a lot of time(mainly costed in network) to install k8s environment.Follow your guide, I create an agent successfully.

image

Image 1 agent I created

But when I try to create a CA node logining as an org admin, I meet this situation:

image

Image 2 Stucking in the “Deploying” state

The create tasks are all stucking in the "Deploying" state.Before this, I have done this steps:

  1. create an agent, agent args:
  • name : Agent-1

  • host: 192.168.32.116(with k8s environment, and executed "make setup-worker")

  • type: k8s

  • image name: hyperledger/cello-agent-kubernetes

  • config file: (use below)

  1. create an org name ‘Org1’

  2. create an org admin of org ‘Org1’ name ‘Org1Admin’

  3. apply the agent for 'Org1'

  4. create a TLS CA node and a Signiture CA node

How should I continue or fix this situation?

Thanks a lot.


Matser node status:

  • [x] pulled patch 51

  • [x] make reset

  • [x] make setup-master

image

Image 3 master node git log

worker node environment:

  • OS: Ubuntu 16.04.5 LTS

  • Kernal: Linux 4.4.0-157-generic

  • Architecture: x86-64

  • docker version: 18.06.1-ce, build e68fc7a

  • docker compose version: 1.24.1, build 4667896b

  • k8s environment: minikube v1.4.0

config file:

image

Image 4 config file(Base on your .kubo, just modified "clusters.cluster.server")

slebear avatar Oct 25 '19 09:10 slebear

@slebear if you test the node creation with PR #51, you need build dashboard image locally, because the patch need rebuild dashboard image, and now I think the latest dashboard image has been updated, and if you don't want to build image locally, you need pull the dashboard image again, and restart the service, and then retry to create the ca node again. I think it will be successfully.

hightall avatar Oct 25 '19 13:10 hightall

Hi, i just meet the same question when created the agent. And i see my api log "/tmp/server.log" but find not much useful messages. Could you help me? 1、Same issue with you when try to create a new agent: WechatIMG429 2、And here is my form: WechatIMG429 3、And i dont want to use K8S but docker.

Thank you !

Sorry this is my from: WechatIMG428

yytcyytc avatar Dec 10 '19 02:12 yytcyytc

Hi, i just meet the same question when created the agent. And i see my api log "/tmp/server.log" but find not much useful messages. Could you help me? 1、Same issue with you when try to create a new agent: WechatIMG429 2、And here is my form: WechatIMG429 3、And i dont want to use K8S but docker. Thank you !

Sorry this is my from: WechatIMG428

I have same problem as this, it seems like the wiki doc don't have any information let us know how to add the agent.

perfectjoey avatar Jan 03 '20 04:01 perfectjoey

What's the reason? Create Agent failure.

docker logs cello-api-engine : All initial Done!! Migrations for 'api': api/migrations/0001_initial.py - Create model UserProfile - Create model Agent - Create model FabricCA - Create model FabricPeer - Create model File - Create model Govern - Create model KubernetesConfig - Create model Network - Create model Node - Create model NodeUser - Create model Organization - Create model PeerCa - Create model PeerCaUser - Create model Port - Add field organization to node - Add field peer to node - Add field user to node - Add field organization to file - Add field govern to agent - Add field organization to agent - Add field organization to userprofile - Add field user_permissions to userprofile Operations to perform: Apply all migrations: account, api, auth, authtoken, contenttypes, sessions, sites, socialaccount Running migrations: No migrations to apply. Your models have changes that are not yet reflected in a migration, and so won't be applied. Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them. Create user successfully 98ed92e6-84dc-4814-ab99-70290544a5d9 [uWSGI] getting INI configuration from /etc/uwsgi/apps-enabled/server.ini open("./python_plugin.so"): No such file or directory [core/utils.c line 3721] !!! UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!!

991135919 avatar Jan 13 '20 08:01 991135919

对不起,这是我的来信:

@perfectjoey Hello. Have you solved your problem? I have the same problem

Smy0521 avatar May 12 '20 08:05 Smy0521

I have same problem as this(Create Agent with docker type) How to create Agent?? image

/tmp/server.log image

iamksseo avatar Jun 22 '20 06:06 iamksseo

@hightall What format is the zip file which archive .kube folder into it ? tar.gz format ? or .zip ?

iamksseo avatar Jun 23 '20 05:06 iamksseo

is only support minikube ??

iamksseo avatar Jun 23 '20 07:06 iamksseo