Thanks dude for your assistance. much appreciated!!!
I am almost done with the installation.
Following user guide
i create my site as intellect.com (instead of foo.bar)
I am at the step
Installing Frappé Apps onto Sites
$ bench --site <MY_SITE> install-app <MY_APP_NAME>
e.g.
$ bench --site intellect.com install-app erpnext
when i am executing above command from my frappe-bench directoy , i encounter following problem!
fawwad@erpnext:~$ cd frappe-bench
fawwad@erpnext:~/frappe-bench$ bench --site intellect.com install-app erpnext
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 162, in _run_module_as_main
“main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/fawwad/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/home/fawwad/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/fawwad/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/home/fawwad/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/home/fawwad/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/fawwad/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/fawwad/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/fawwad/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/fawwad/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/fawwad/frappe-bench/apps/frappe/frappe/commands/init.py”, line 25, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/fawwad/frappe-bench/apps/frappe/frappe/commands/site.py”, line 165, in install_app
_install_app(app, verbose=context.verbose)
File “/home/fawwad/frappe-bench/apps/frappe/frappe/installer.py”, line 113, in install_app
frappe.clear_cache()
File “/home/fawwad/frappe-bench/apps/frappe/frappe/init.py”, line 513, in clear_cache
frappe.cache_manager.clear_user_cache()
File “/home/fawwad/frappe-bench/apps/frappe/frappe/cache_manager.py”, line 29, in clear_user_cache
clear_global_cache()
File “/home/fawwad/frappe-bench/apps/frappe/frappe/cache_manager.py”, line 37, in clear_global_cache
clear_website_cache()
File “/home/fawwad/frappe-bench/apps/frappe/frappe/website/render.py”, line 287, in clear_cache
for method in frappe.get_hooks(“website_clear_cache”):
File “/home/fawwad/frappe-bench/apps/frappe/frappe/init.py”, line 835, in get_hooks
hooks = _dict(cache().get_value(“app_hooks”, load_app_hooks))
File “/home/fawwad/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py”, line 72, in get_value
val = generator()
File “/home/fawwad/frappe-bench/apps/frappe/frappe/init.py”, line 813, in load_app_hooks
for app in [app_name] if app_name else get_installed_apps(sort=True):
File “/home/fawwad/frappe-bench/apps/frappe/frappe/init.py”, line 777, in get_installed_apps
installed = json.loads(db.get_global(“installed_apps”) or “[]”)
File “/home/fawwad/frappe-bench/apps/frappe/frappe/database.py”, line 770, in get_global
return self.get_default(key, user)
File “/home/fawwad/frappe-bench/apps/frappe/frappe/database.py”, line 782, in get_default
d = self.get_defaults(key, parent)
File “/home/fawwad/frappe-bench/apps/frappe/frappe/database.py”, line 788, in get_defaults
defaults = frappe.defaults.get_defaults(parent)
File “/home/fawwad/frappe-bench/apps/frappe/frappe/defaults.py”, line 71, in get_defaults
globald = get_defaults_for()
File “/home/fawwad/frappe-bench/apps/frappe/frappe/defaults.py”, line 196, in get_defaults_for
where parent = %s order by creation"“”, (parent,), as_dict=1)
File “/home/fawwad/frappe-bench/apps/frappe/frappe/database.py”, line 166, in sql
self.connect()
File “/home/fawwad/frappe-bench/apps/frappe/frappe/database.py”, line 116, in connect
charset=‘utf8mb4’, use_unicode = True, conv = conversions, local_infile = self.local_infile)
File “/home/fawwad/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/init.py”, line 94, in Connect
return Connection(*args, **kwargs)
File “/home/fawwad/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 327, in init
self.connect()
File “/home/fawwad/frappe-bench/env/local/lib/python2.7/site-packages/pymysql/connections.py”, line 629, in connect
raise exc
pymysql.err.OperationalError: (2003, “Can’t connect to MySQL server on u’localhost’ ([Errno 111] Connection refused)”)
fawwad@erpnext:~/frappe-bench$
Please assist
note: I tried to make a connection to my RDBMS from another terminal and i can make connection!