Skip to content

Instantly share code, notes, and snippets.

@pythonhacker
Last active November 6, 2019 07:29
Show Gist options
  • Save pythonhacker/a11e111e48a55b1514db245b85dda9ba to your computer and use it in GitHub Desktop.
Save pythonhacker/a11e111e48a55b1514db245b85dda9ba to your computer and use it in GitHub Desktop.
Error when running docli
$ docli droplet --snapshot 163461766
╒═══════════════╤═════════════════════════════╕
│ Fields │ Values │
╞═══════════════╪═════════════════════════════╡
│ SnapShot Id │ 53919120 │
├───────────────┼─────────────────────────────┤
│ SnapShot Name │ pfaas-sg-ps-1-1571760580915 │
├───────────────┼─────────────────────────────┤
│ Distribution │ Debian │
├───────────────┼─────────────────────────────┤
│ Public │ False │
├───────────────┼─────────────────────────────┤
│ Regions │ [u'nyc1', u'sgp1'] │
├───────────────┼─────────────────────────────┤
│ Created At │ 2019-10-22T16:09:43Z │
╘═══════════════╧═════════════════════════════╛
# 53919120 is our droplet's snapshot id - trying to create another one using this snapshot.
$ docli droplet -c -r nyc1 -i 54583746 -s 1gb -n pfaas-nyc2
Traceback (most recent call last):
File "/home/anand/virtualenvs/crawler/bin/docli", line 11, in <module>
load_entry_point('docli==1.0', 'console_scripts', 'docli')()
File "/home/anand/virtualenvs/crawler/local/lib/python2.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/anand/virtualenvs/crawler/local/lib/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/anand/virtualenvs/crawler/local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/anand/virtualenvs/crawler/local/lib/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/anand/virtualenvs/crawler/local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/anand/virtualenvs/crawler/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "build/bdist.linux-x86_64/egg/docli/commands/droplet.py", line 110, in droplet
File "/home/anand/virtualenvs/crawler/local/lib/python2.7/site-packages/click/utils.py", line 260, in echo
file.write(message)
AttributeError: 'unicode' object has no attribute 'write'
# Another error - when trying to supply SSH keys
$ docli droplet -c -r nyc1 -i 53919120 -s 1gb -n pfaas-nyc2-ps-1 -S diproxylb-ssh-key,anand-key
Error: -S option requires 10 arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment