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

Error: Bare metal Backend not found #340

Closed
richardsonlima opened this issue Jan 8, 2015 · 4 comments
Closed

Error: Bare metal Backend not found #340

richardsonlima opened this issue Jan 8, 2015 · 4 comments
Labels

Comments

@richardsonlima
Copy link

Hello,

I would be than happy to have a 'help' for this problem, let me know more about correct form to deploy my own Mist

Thanks and I am looking forward to get a support.

  • My Deploy Env:
    sudo aptitude install python-dev build-essential git erlang libpcre3-dev
    sudo aptitude install python-virtualenv
    git clone https://github.com/mistio/mist.io.git
    cd mist.io
    virtualenv --no-site-packages .
    ./bin/pip install ansible
    ./bin/pip install setuptools --upgrade
    ./bin/python bootstrap.py
    ./bin/buildout -v

Deployment:
./bin/supervisord

Url: http://127.0.0.1:8000

  • Backend Baremetal (ssh connection)
    Error:

2015-01-08 13:37:28,722 INFO MainThread methods - add_backend_v_2: Adding new backend in provider 'bare_metal' with Api-Version: 2
2015-01-08 13:37:28,737 INFO MainThread shell - autoconfigure: autoconfiguring Shell for machine 3NixNnLQcd6bRuWy8rKRfZus856A:200238105150
2015-01-08 13:37:28,741 INFO MainThread shell - autoconfigure: ssh -i key1 ric@.x.y.z:22
2015-01-08 13:37:28,946 INFO Thread-1 log - log: Connected (version 2.0, client OpenSSH_5.9p1)
2015-01-08 13:37:29,560 INFO Thread-1 log - log: Authentication (publickey) successful!
2015-01-08 13:37:29,565 INFO MainThread shell - command: running command: 'uptime'
2015-01-08 13:37:30,253 INFO MainThread shell - command: running command: 'which sudo'
2015-01-08 13:37:30,574 INFO MainThread shell - command: running command: 'uptime'
2015-01-08 13:37:30,950 INFO MainThread shell - disconnect: Closing ssh connection to 200.x.y.z
2015-01-08 13:37:31,097 INFO MainThread shell - disconnect: Closing ssh connection to 200.x.y.z
2015-01-08 13:37:31,110 INFO MainThread methods - add_backend_v_2: Backend with id 'None' added succesfully.
2015-01-08 13:37:31,125 INFO MainThread views - exception_handler_mist: MistError: BackendNotFoundError('Backend not found',)
[pid: 43545|app: 0|req: 62/236] 127.0.0.1 () {52 vars in 793 bytes} [Thu Jan 8 13:37:28 2015] POST /backends => generated 19 bytes in 2415 msecs (HTTP/1.1 404) 2 headers in 86 bytes (1 switches on core 0)

@gtsop gtsop added the bug label Jan 8, 2015
@mgogoulos
Copy link

Hello,

you have added a server via 'Add backend' --> Other server and while the server was succesfully added on mist.io, you have received an error message ('backend not found'), right? This bug was recently introduced and we will issue a fix asap. Please notice that the backend was added (visit the machines tab, it will be there)

Hope this helps!

@mgogoulos
Copy link

We have now fixed the issue on mist.io master branch.

On your local installation of mist.io, type git pull to get the latest commits, and restart uwsgi (./bin/supervisorctl restart uwsgi)

@richardsonlima
Copy link
Author

Hello,
Backend (bare metal) added successfully, but Machines numbers equal to 0

Thanks and I am looking forward to get a support.

  • Step 1:

(1:596)$ sudo git pull https://github.com/mistio/mist.io.git
remote: Counting objects: 26, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 26 (delta 5), reused 4 (delta 0)
Unpacking objects: 100% (26/26), done.
From https://github.com/mistio/mist.io

  • branch HEAD -> FETCH_HEAD
    Updating 691a66e..d5859cd
    Fast-forward
    src/mist/io/methods.py | 5 ++---
    src/mist/io/static/build/{mist-1418926853.js => mist-1420731240.js} | 0
    src/mist/io/static/build/mist.js | 2 +-
    src/mist/io/static/js/lib/term.js | 27 +++++++++++++++++++++++++++
    src/mist/io/static/{mist-1418926853.css => mist-1420731240.css} | 0
    src/mist/io/templates/home.pt | 4 ++--
    6 files changed, 32 insertions(+), 6 deletions(-)
    rename src/mist/io/static/build/{mist-1418926853.js => mist-1420731240.js} (100%)
    rename src/mist/io/static/{mist-1418926853.css => mist-1420731240.css} (100%)
  • Step 2:

(1:597)$ ./bin/supervisorctl restart uwsgi
uwsgi: stopped
uwsgi: started

  • Step 3:

2015-01-08 16:34:27,179 INFO MainThread methods - add_backend_v_2: Backend with id '3NixNnLQcd6bRuWy8rKRfZus856A' added succesfully.

@gtsop
Copy link

gtsop commented Jan 9, 2015

Closing this since the new error is on this ticket: #342

@gtsop gtsop closed this as completed Jan 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants