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

Can't delete one of the Workers #75

Closed
MarkoPaasila opened this issue Apr 12, 2018 · 2 comments
Closed

Can't delete one of the Workers #75

MarkoPaasila opened this issue Apr 12, 2018 · 2 comments

Comments

@MarkoPaasila
Copy link
Collaborator

MarkoPaasila commented Apr 12, 2018

Had 2 Workers. After a freeze and kill I started the bot and tried to delete the first worker. No success. Terminal output below:

QApplication: invalid style override passed, ignoring it.
Traceback (most recent call last):
  File "/home/dexbotmake/dexbot/dexbot/views/worker_item.py", line 92, in remove_widget_dialog
    self.remove_widget()
  File "/home/dexbotmake/dexbot/dexbot/views/worker_item.py", line 96, in remove_widget
    self.main_ctrl.remove_worker(self.worker_name)
  File "/home/dexbotmake/dexbot/dexbot/controllers/main_controller.py", line 51, in remove_worker
    WorkerInfrastructure.remove_offline_worker(config, worker_name)
  File "/home/dexbotmake/dexbot/dexbot/worker.py", line 207, in remove_offline_worker
    strategy.purge()
  File "/home/dexbotmake/dexbot/dexbot/basestrategy.py", line 272, in purge
    self.cancel_all()
  File "/home/dexbotmake/dexbot/dexbot/basestrategy.py", line 266, in cancel_all
    account=self.account
  File "/home/dexbotmake/.local/lib/python3.5/site-packages/bitshares-0.1.13-py3.5.egg/bitshares/bitshares.py", line 1202, in cancel
    return self.finalizeOp(op, account["name"], "active", **kwargs)
  File "/home/dexbotmake/.local/lib/python3.5/site-packages/bitshares-0.1.13-py3.5.egg/bitshares/bitshares.py", line 292, in finalizeOp
    self.txbuffer.sign()
  File "/home/dexbotmake/.local/lib/python3.5/site-packages/bitshares-0.1.13-py3.5.egg/bitshares/transactionbuilder.py", line 345, in sign
    raise MissingKeyError
bitshares.exceptions.MissingKeyError

After this I successfully deleted the second Worker and tried the first again with no success. It should probably be noted that I had just wiped the wallet with uptick wipewallet

@CryptoKong
Copy link

I had the same problem.
delete worker

@mikakoi
Copy link
Collaborator

mikakoi commented Apr 13, 2018

It should be noted that mixing cli commands with gui isn't recommended. What happened here is that the gui tried to cancel the orders of the account when the worker was removed, but couldn't because the accounts private key was wiped from the wallet.

Fix for this is just to skip order canceling and remove the worker.

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

No branches or pull requests

4 participants