Erpnext Installation on localhost - Linux Mint support?

Hello guys,
Iam quite new to the erpnext and iam trying to install it on my localhost but when i use the command line bench new-site site1.local it requires to type MySQL root password but when i type it i got the following problem.
i used this documentation for the installation :
Guide: Manual Install ERPNext on Ubuntu 17.xx & 18.xx

OS : Linux mint

@revant_one

Traceback (most recent call last):

File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/opt/bench/erpnext/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/opt/bench/erpnext/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/opt/bench/erpnext/apps/frappe/frappe/commands/site.py”, line 34, in new_site
db_type=db_type, db_host=db_host, db_port=db_port)
File “/opt/bench/erpnext/apps/frappe/frappe/commands/site.py”, line 71, in _new_site
source_sql=source_sql, force=force, reinstall=reinstall, db_type=db_type, db_host=db_host, db_port=db_port)
File “/opt/bench/erpnext/apps/frappe/frappe/installer.py”, line 35, in install_db
setup_database(force, source_sql, verbose)
File “/opt/bench/erpnext/apps/frappe/frappe/database/init.py”, line 16, in setup_database
return frappe.database.mariadb.setup_db.setup_database(force, source_sql, verbose)
File “/opt/bench/erpnext/apps/frappe/frappe/database/mariadb/setup_db.py”, line 39, in setup_database
if force or (db_name not in dbman.get_database_list()):
File “/opt/bench/erpnext/apps/frappe/frappe/database/db_manager.py”, line 61, in get_database_list
return [d[0] for d in self.db.sql(“SHOW DATABASES”)]
File “/opt/bench/erpnext/apps/frappe/frappe/database/database.py”, line 122, in sql
self.connect()
File “/opt/bench/erpnext/apps/frappe/frappe/database/database.py”, line 75, in connect
self._conn = self.get_connection()
File “/opt/bench/erpnext/apps/frappe/frappe/database/mariadb/database.py”, line 90, in get_connection
local_infile = frappe.conf.local_infile)
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/init.py”, line 94, in Connect
return Connection(*args, **kwargs)
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/connections.py”, line 325, in init
self.connect()
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/connections.py”, line 599, in connect
self._request_authentication()
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/connections.py”, line 861, in _request_authentication
auth_packet = self._read_packet()
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/connections.py”, line 684, in _read_packet
packet.check_error()
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/protocol.py”, line 220, in check_error
err.raise_mysql_exception(self._data)
File “/opt/bench/erpnext/env/lib/python3.6/site-packages/pymysql/err.py”, line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.InternalError: (1698, “Access denied for user ‘root’@‘localhost’”)

Hi @Abdulrahman! It seems that there is a problem with your mysql or with its privilege. Anyways, since this is you are new in ERPnext I do highly recommend you to use the official Easy installation of ERPnext.

hi @ozner102 actually i tried this installation first but i had the following error
it seems that it does not support linux mint but i will try again
Thanks

Sorry, the installer doesn't support linuxmint 19. Aborting installation!

This is what ERPNext can support. This is based on install.py

def check_distribution_compatibility():
dist_name, dist_version = get_distribution_info()
supported_dists = {
‘macos’: [10.9, 10.10, 10.11, 10.12],
‘ubuntu’: [14, 15, 16, 18, 19],
‘debian’: [8, 9],
‘centos’: [7]
}

But as i know that linux mint is based on Ubuntu which is supported by ERPnext

use ubuntu first to be in the save side then once you are comfortable with move to other distro

@nmami @ozner102 @rmehta i have tried the easy installation but i faced the following problem, when i tried to run this command sudo python3 install.py --production --user frappe
frappe is the username

OS : Ubuntu LTS 18

Thanks

 [WARNING]: No inventory was parsed, only implicit localhost is available
 [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
Traceback (most recent call last):
  File "install.py", line 414, in <module>
    install_bench(args)
  File "install.py", line 230, in install_bench
    run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
  File "install.py", line 351, in run_playbook
    success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'), stdout=log_stream, stderr=sys.stderr)
  File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'site.yml', '-vvvv', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=frappe']' returned non-zero exit status 2.

Are you trying to install a production or a development?

hey @Abdulrahman, the easy install script dumps it’s logs under /tmp/logs/*.log and it’s location should be a part of the output/error you received. Can you look inside it and/or share the logfile?

@ozner102 iam trying to install production

hi guys,
i have finally found the solution of my problem at first i tried to install erpNext on linux mint but i got the following problem because erpNext does not support linux mint
Sorry, the installer doesn’t support linuxmint 19. Aborting installation
than i tried the installation on Ubuntu OS which works perfectly while the installation i got the following problem

 [WARNING]: No inventory was parsed, only implicit localhost is available

[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match ‘all’
Traceback (most recent call last):
File “install.py”, line 414, in
install_bench(args)
File “install.py”, line 230, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 351, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’), stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-vvvv’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2.

to solve the problem i used the following commands :

to stop all what is running use

sudo supervisorctl stop all

than

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Thanks