Error when make bench new-site site1.local

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/media/hany/New Volume/Hany/Python/bench-repo/bench/”, line 40, in cli
File “/usr/local/lib/python2.7/dist-packages/click/”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 535, in invoke
return callback(*args, **kwargs)
File “/media/hany/New Volume/Hany/Python/bench-repo/bench/commands/”, line 58, in new_site
new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)
File “/media/hany/New Volume/Hany/Python/bench-repo/bench/”, line 168, in new_site
mysql_root_password_fragment = ‘–root_password {}’.format(mariadb_root_password) if mariadb_root_password else ‘’
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-3: ordinal not in range(128)


Have you used any odd non ASCII characters in your Maria dB root password?

Otherwise you should be using UTF 8 with your dB setup. Check this is so.

how can I use UTF 8 with this setup please can you give me more details?

Firstly what is are you running ?

I notice that the directory is /media which sounds like a usb stick which I wouldn’t suggest is best. You nori what to run the script from your home directory.

Please explain how you are trying to install ERPNEXT so we can help you better


the problem is fixed thanks :relieved:
but there are some issues in running. when I use bench start this message is shown and exit the redis server unexpectedly :expressionless:

Hmm odd

Try starting redid on its only and check it’s logs