Skip to content

Common problems

serdrdoor edited this page Sep 7, 2021 · 48 revisions

3.0 Common Problems

3.1 Checklist

  • 3.1.1 Did you use active private key, not wallet password, when creating Worker

3.1.1.1 How to find active private key pictorial guide: https://imgur.com/a/eOVOlg4

  • 3.1.2 Did you use a separate account for each Worker
  • 3.1.3 Did you write the whole asset name with prefix (RUDEX.BTC, GPH, USD etc)
  • 3.1.4 Did you make sure the account holds both the assets to be traded
  • 3.1.5 Did you toggle the TURN WORKER ON/OFF button to make the Worker actually work
  • 3.1.6 Is your computer clock synchronized
  • 3.1.7 Are you running at least python 3.6?
  • 3.1.8 To prevent disturbance to your Environment, consider using a virtualenv

3.2 Clock problem

3.2.1 If you get the following message at the end of an error message:

bitsharesapi.exceptions.UnhandledRPCError: Assert Exception: now <= trx.expiration

3.2.2 Sync your computer's clock. It should fix the error. Guide for reference

3.3 Signature / key problems

base58CheckDecode

  • 3.3.1 Try upgrading the Python cryptography package with: pip3 install --upgrade cryptography and running again
  • 3.3.2 If you see errors about several private keys for the same account, you need to empty the wallet from keys. First delete all workers. Then run uptick wipewallet. Now there should be no wallet and no keys. Start from zero. For details see here

3.4 Upgrading and Installing problems

3.4.1 Graphenelib problem

AttributeError: can't set attribute

3.4.1.1 Fix by specifying graphenelib version: pip3 install graphenelib==0.6.2

3.5 Ubuntu 18.04, 18.10 Linux - AES problem on make install-user

Error on install: 
>scrypt-1.2.1/libcperciva/crypto/crypto_aes.c:6:10: fatal error: openssl/aes.h: No such file or directory
 #include <openssl/aes.h>
          ^~~~~~~~~~~~~~~

3.5.1. This is mainly due to the Ubuntu system was not able to find the scrypt package which can be easily fixed by sudo apt-get install libssl-dev

3.5.2 Also see similar resolutions from steemit install issues

3.6 Error on make install-user:

Best match: PyYAML 4.2b4
Processing PyYAML-4.2b4.tar.gz
Writing /tmp/easy_install-fccfyzzf/PyYAML-4.2b4/setup.cfg
Running PyYAML-4.2b4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-fccfyzzf/PyYAML-4.2b4/egg-dist-tmp-bunv4mwn
In file included from ext/_yaml.c:565:0:
ext/_yaml.h:2:10: fatal error: yaml.h: No such file or directory
 #include <yaml.h>
          ^~~~~~~~
compilation terminated.
Error compiling module, falling back to pure Python

3.6.1 To fix: pip3 install pyyaml to install pyyaml-3.13

3.7 [Errno 2] No such file or directory: 'pyuic5': 'pyuic5'

3.7.1 This means that 'pyuic5' is not in your PATH for some reason. Solution: find where 'pyuic5' is and add it into PATH:

export PATH=~/.local/bin:$PATH

3.8 Order placement takes 5 minutes

3.8.1 Uninstall and install scrypt with pip3 uninstall scrypt and pip3 --user install scrypt

3.9 Node connection problems

Possible error messages:

socket is already closed

3.9.1 Change the node defined in config.yml. See file location below. See what node gives you the lowest latency in the DEX, and copy it into the config file. Automatically changing nodes feature is available for the CLI version, soon to be on the GUI too.

3.10 DEXBot GUI freezes and no orders are created

3.10.1 Restart bot

3.11 Unknown order type

3.11.1 In GPH:MPA (Market Pegged Assets such as gpUSD and gpCNY) markets, if a force settlement fills your order, the bot doesn't yet recognize it and consequently disables itself because it isn't sure what happened. This will be fixed eventually but for time being just pause->play or restart the whole DEXBot-gui.

3.12 python version

DEXBot is currently running on a minimum version of python3.6. If you have trouble upgrading your system to this version, please see this guide for help https://realpython.com/installing-python/

3.13 Virtual Environments

3.13.1 When using OSX or linux, consider installing dexbot in a virtual env so that it does not collide with other existing settings on your platform. Windows Users should try the Install Wizard but alternatively can install DEXBot on a Virtual Machine; using software like VirtualBox Also available for use with MacOS.

This also enables experimentation with different versions. See this guide for how to use a virtualenv:

on OSX currently I use at the same level as DEXBot code directory for python3.7: $ python3 -m venv env $ source env/bin/activate $ cd DEXBot $ make clean; make install-user

3.14 Requirements.txt dependency issues

The uptick module is dependent on 4 other modules which must be installed in the following order. Any incompatible requirement may cause both uptick wallet as well dexbot to be non-functional. Order of install: 1. requests 2. graphenelib 3. bitshares 4. uptick.

3.15 raise MissingKeyError Issue

If an error such as raise MissingKeyError, graphenecommon.exceptions.MissingKeyError occurs, it is possible the keys in the uptick wallet were corrupted. To reset the uptick wallet,

$ uptick wipe wallet

Then re-add your keys. Uptick manual here: https://uptick.readthedocs.io

Clone this wiki locally