Problem with erpnext installation

Hi All,

I am installing erpnext on Centos 7. When I execute command “bench --site erp.itd.com install-app erpnext”, I get below screen. Can someone tell me what is this. Thanks in advance.

[bench@localhost erpnext]$ bench --site erp.itd.com install-app erpnext
Traceback (most recent call last):
  File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/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 <module>
    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/env/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/opt/bench/erpnext/apps/frappe/frappe/commands/__init__.py", line 25, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/opt/bench/erpnext/apps/frappe/frappe/commands/site.py", line 175, in install_app
    _install_app(app, verbose=context.verbose)
  File "/opt/bench/erpnext/apps/frappe/frappe/installer.py", line 51, in install_app
    frappe.clear_cache()
  File "/opt/bench/erpnext/apps/frappe/frappe/__init__.py", line 576, in clear_cache
    frappe.cache_manager.clear_user_cache()
  File "/opt/bench/erpnext/apps/frappe/frappe/cache_manager.py", line 42, in clear_user_cache
    clear_global_cache()
  File "/opt/bench/erpnext/apps/frappe/frappe/cache_manager.py", line 48, in clear_global_cache
    clear_website_cache()
  File "/opt/bench/erpnext/apps/frappe/frappe/website/render.py", line 301, in clear_cache
    for method in frappe.get_hooks("website_clear_cache"):
  File "/opt/bench/erpnext/apps/frappe/frappe/__init__.py", line 958, in get_hooks
    hooks = _dict(cache().get_value("app_hooks", load_app_hooks))
  File "/opt/bench/erpnext/apps/frappe/frappe/utils/redis_wrapper.py", line 79, in get_value
    val = generator()
  File "/opt/bench/erpnext/apps/frappe/frappe/__init__.py", line 932, in load_app_hooks
    for app in [app_name] if app_name else get_installed_apps(sort=True):
  File "/opt/bench/erpnext/apps/frappe/frappe/__init__.py", line 896, in get_installed_apps
    installed = json.loads(db.get_global("installed_apps") or "[]")
  File "/opt/bench/erpnext/apps/frappe/frappe/database/database.py", line 702, in get_global
    return self.get_default(key, user)
  File "/opt/bench/erpnext/apps/frappe/frappe/database/database.py", line 706, in get_default
    d = self.get_defaults(key, parent)
  File "/opt/bench/erpnext/apps/frappe/frappe/database/database.py", line 724, in get_defaults
    defaults = frappe.defaults.get_defaults(parent)
  File "/opt/bench/erpnext/apps/frappe/frappe/defaults.py", line 77, in get_defaults
    globald = get_defaults_for()
  File "/opt/bench/erpnext/apps/frappe/frappe/defaults.py", line 204, in get_defaults_for
    where parent = %s order by creation""", (parent,), as_dict=1)
  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.OperationalError: (1045, "Access denied for user '_5c7050106469806'@'localhost' (using password: YES)")
[bench@localhost erpnext]$

@abgjamil i would suggest you create a new site and install erpnext on that instead!

bench drop-site erp.itd.com --force
bench new-site erp.itd.com --install-app erpnext

Probably drop this one, unless you want to dig in and find the cause of the issue. But it’s likely that there’s a problem with the site_config that was generated.

hi @gavindsouza. thank you for replying my post. before that, I run command
“sudo pip install -e bench-repo” and get below error. is that because the error lead to this issue?

ERROR: ipaserver 4.6.5 requires dbus-python, which is not installed.
ERROR: ipaserver 4.6.5 requires dogtag-pki, which is not installed.
ERROR: ipaserver 4.6.5 requires jwcrpyto>=0.4.2, which is not installed.
ERROR: ipaserver 4.6.5 has requirement dnspython>=1.15, but you’ll have dnspython 1.12.0 which is incompatible.
ERROR: ipaserver 4.6.5 has requirement python-ldap>=3.0.0b1, but you’ll have python-ldap 2.4.15 which is incompatible.
ERROR: azure-keyvault 1.0.0 has requirement cryptography>=2.1.4, but you’ll have cryptography 1.7.2 which is incompatible.
ERROR: rtslib-fb 2.1.69 has requirement pyudev>=0.16.1, but you’ll have pyudev 0.15 which is incompatible.
ERROR: ipapython 4.6.5 has requirement dnspython>=1.15, but you’ll have dnspython 1.12.0 which is incompatible.
ERROR: ipapython 4.6.5 has requirement python-ldap>=3.0.0b1, but you’ll have python-ldap 2.4.15 which is incompatible.
Installing collected packages: requests, semantic-version, setuptools, six, virtualenv, bench

  • Attempting uninstall: requests*
  • Found existing installation: requests 2.6.0*
    ERROR: Cannot uninstall ‘requests’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

not necessarily. the first traceback is related to a database connection issue. It’s very unlikely that a dependency issue for bench would cause that.

in order to install erpnext, I need to install bench 1st. based on the error that i post yesterday, did i manage to install bench? for example, “ERROR: ipaserver 4.6.5 requires dbus-python, which is not installed.” but the dbus-phyton installed in my centos. sorry,i am asking because i have no experience in centos or python.

thank you in advance.

Hi,
Did you get any errors while installing the ERPNext?

Thanks,
www.LetsTechSoftwares.com

hi @sumant_kulkarni. i hit error while installing bench. is there any proper steps to install bench & erpnext on centos for dummies like me.

Try this:

It works better…

Thanks
www.LetsTechSoftwares.com

Thanks. Do you think this link is still avaialble " wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh".