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 when sharing terminal on a Docker container #38

Open
amiiit opened this issue Sep 22, 2015 · 1 comment
Open

Error when sharing terminal on a Docker container #38

amiiit opened this issue Sep 22, 2015 · 1 comment

Comments

@amiiit
Copy link

amiiit commented Sep 22, 2015

Hi,

I'm trying to share a terminal on a Docker container (hence the root), but no luck:

root@d2eecad4f364:/app# cat ~/.floorc.json
{
  "auth": {
    "floobits.com": {
      "username": "amitit",
      "api_key": "MY_API_KEY",
      "secret": "MY_SECRET"
    }
  }
}
root@d2eecad4f364:/app# flootty --url=https://floobits.com/amitit/myworkspace --unsafe
Terminal is unsafe. Other users will be able to send [enter]. Be wary!
Connecting to https://floobits.com/amitit/myworkspace
Connected!
There is no active terminal in this workspace. Do you want to share your terminal? (y/n)
y
Traceback (most recent call last):
  File "/usr/local/bin/flootty", line 9, in <module>
    load_entry_point('Flootty==3.1.7', 'console_scripts', 'flootty')()
  File "/usr/local/lib/python2.7/dist-packages/flootty/flootty.py", line 357, in main
    f.select()
  File "/usr/local/lib/python2.7/dist-packages/flootty/flootty.py", line 480, in select
    handler(fd)
  File "/usr/local/lib/python2.7/dist-packages/flootty/flootty.py", line 496, in cloud_read
    self.handle(buf)
  File "/usr/local/lib/python2.7/dist-packages/flootty/flootty.py", line 533, in handle
    self.handle_event(data)
  File "/usr/local/lib/python2.7/dist-packages/flootty/flootty.py", line 543, in handle_event
    func(data)
  File "/usr/local/lib/python2.7/dist-packages/flootty/flootty.py", line 622, in on_create_term
    self.create_term()
  File "/usr/local/lib/python2.7/dist-packages/flootty/flootty.py", line 791, in create_term
    shell = os.environ['SHELL']
  File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'SHELL'
ciao.
root@d2eecad4f364:/app#

It seems like the credentials and workspace namings are in place. If I change them to something invalid, flootty warns properly about it.

Thanks

@kans
Copy link
Member

kans commented Sep 23, 2015

this should be fixed as of 41be4d6. Please let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants