Hi Sunil,
I followed the steps given by you and successfully finished the installation.
But now I am unable to start ERPNext.
localhost:8080 or 80 or 8000 does not respond.
Below is the trace of installation process…
ashish@ashish-PowerEdge-R410:~$ wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
–2014-11-21 14:57:19-- https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 103.245.222.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|103.245.222.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 11561 (11K) [text/plain]
Saving to: ‘setup_frappe.sh’
100%[======================================>] 11,561 --.-K/s in 0.001s
2014-11-21 14:57:21 (9.80 MB/s) - ‘setup_frappe.sh’ saved [11561/11561]
ashish@ashish-PowerEdge-R410:~$ sudo bash setup_frappe.sh
[sudo] password for ashish:
Installing for Ubuntu trusty amd64
In case you encounter an error, you can post on https://discuss.frappe.io
Adding debian mariadb repo
Installing packages for Ubuntu. This might take time…
Installing wkhtmltopdf
Adding frappe user
setup_frappe.sh: line 300: hash: pip-2.7: not found
setup_frappe.sh: line 302: hash: pip2.7: not found
Installing frappe-bench
Already using interpreter /usr/bin/python
Cloning into ‘frappe’…
Compiling /home/ashish/frappe-bench/env/build/gunicorn/gunicorn/workers/_gaiohttp.py …
File “/home/ashish/frappe-bench/env/build/gunicorn/gunicorn/workers/_gaiohttp.py”, line 64
yield from self.wsgi.close()
^
SyntaxError: invalid syntax
Wrote ./assets/js/frappe-web.min.js - 90k
Wrote ./assets/js/print_format_v3.min.js - 18k
Wrote ./assets/css/frappe.css - 224k
Wrote ./assets/css/frappe-web.css - 163k
Wrote ./assets/js/editor.min.js - 27k
Wrote ./assets/js/frappe.min.js - 609k
Wrote ./assets/js/slickgrid.min.js - 102k
Wrote ./assets/js/canvasResize.min.js - 22k
no crontab for ashish
installing frappe
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/ashish/bench-repo/bench/cli.py”, line 36, in cli
return bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/ashish/bench-repo/bench/cli.py”, line 103, in init
no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch)
File “/home/ashish/bench-repo/bench/utils.py”, line 57, in init
install_apps_from_path(apps_path, bench=path)
File “/home/ashish/bench-repo/bench/app.py”, line 70, in install_apps_from_path
apps = get_apps_json(path)
File “/home/ashish/bench-repo/bench/app.py”, line 76, in get_apps_json
r = requests.get(path)
File “/usr/lib/python2.7/dist-packages/requests/api.py”, line 55, in get
return request(‘get’, url, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/api.py”, line 44, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/sessions.py”, line 455, in request
resp = self.send(prep, **send_kwargs)
File “/usr/lib/python2.7/dist-packages/requests/sessions.py”, line 558, in send
r = adapter.send(request, **kwargs)
File “/usr/lib/python2.7/dist-packages/requests/adapters.py”, line 378, in send
raise ConnectionError(e)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘raw.githubusercontent.com’, port=443): Max retries exceeded with url: /frappe/bench/master/install_scripts/erpnext-apps.json (Caused by <class ‘socket.gaierror’>: [Errno -2] Name or service not known)
ashish@ashish-PowerEdge-R410:~$ cd ~
ashish@ashish-PowerEdge-R410:~$ bench init frappe-bench
Directory frappe-bench already exists!
ashish@ashish-PowerEdge-R410:~$ cd frappe-bench
ashish@ashish-PowerEdge-R410:~/frappe-bench$ bench update --bench
Already up-to-date.
restarting
Already up-to-date.
restarting
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
- branch develop → FETCH_HEAD
Already up-to-date.
Wrote ./assets/js/frappe-web.min.js - 90k
Wrote ./assets/js/print_format_v3.min.js - 18k
Wrote ./assets/css/frappe.css - 224k
Wrote ./assets/css/frappe-web.css - 163k
Wrote ./assets/js/editor.min.js - 27k
Wrote ./assets/js/frappe.min.js - 609k
Wrote ./assets/js/slickgrid.min.js - 102k
Wrote ./assets/js/canvasResize.min.js - 22k
https://frappe.io/buy - Donate to help make better free and open source tools
ashish@ashish-PowerEdge-R410:~/frappe-bench$ # As root run,
ashish@ashish-PowerEdge-R410:~/frappe-bench$ bench patch mariadb-config
superuser privileges required for this command
ashish@ashish-PowerEdge-R410:~/frappe-bench$ bench get-app erpnext GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP) # Add ERPNext to your bench apps
Cloning into ‘erpnext’…
remote: Counting objects: 1742, done.
remote: Compressing objects: 100% (1430/1430), done.
remote: Total 1742 (delta 457), reused 694 (delta 209)
Receiving objects: 100% (1742/1742), 2.96 MiB | 162.00 KiB/s, done.
Resolving deltas: 100% (457/457), done.
Checking connectivity… done.
installing erpnext
Wrote ./assets/js/frappe-web.min.js - 90k
Wrote ./assets/js/print_format_v3.min.js - 18k
Wrote ./assets/js/erpnext.min.js - 12k
Wrote ./assets/css/frappe.css - 224k
Wrote ./assets/css/frappe-web.css - 163k
Wrote ./assets/js/editor.min.js - 27k
Wrote ./assets/css/erpnext.css - 0k
Wrote ./assets/js/frappe.min.js - 609k
Wrote ./assets/js/erpnext-web.min.js - 0k
Wrote ./assets/js/slickgrid.min.js - 102k
Wrote ./assets/js/canvasResize.min.js - 22k
ashish@ashish-PowerEdge-R410:~/frappe-bench$ bench get-app shopping_cart GitHub - frappe/shopping_cart: Online Shopping Cart integrated with ERPNext # Add Shopping cart to your bench apps
Cloning into ‘shopping_cart’…
remote: Counting objects: 98, done.
remote: Compressing objects: 100% (83/83), done.
remote: Total 98 (delta 12), reused 33 (delta 7)
Unpacking objects: 100% (98/98), done.
Checking connectivity… done.
installing shopping_cart
Wrote ./assets/js/frappe-web.min.js - 90k
Wrote ./assets/js/shopping-cart-web.min.js - 1k
Wrote ./assets/js/print_format_v3.min.js - 18k
Wrote ./assets/js/erpnext.min.js - 12k
Wrote ./assets/css/frappe.css - 224k
Wrote ./assets/css/frappe-web.css - 163k
Wrote ./assets/css/shopping-cart-web.css - 0k
Wrote ./assets/js/editor.min.js - 27k
Wrote ./assets/css/erpnext.css - 0k
Wrote ./assets/js/frappe.min.js - 609k
Wrote ./assets/js/erpnext-web.min.js - 0k
Wrote ./assets/js/slickgrid.min.js - 102k
Wrote ./assets/js/canvasResize.min.js - 22k
ashish@ashish-PowerEdge-R410:~/frappe-bench$ bench new-site site1.local # Create a new site
MySQL root password:
Traceback (most recent call last):
File “/home/ashish/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.5.9’, ‘console_scripts’, ‘frappe’)()
File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 53, in main
return run(fn, parsed_args)
File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 81, in run
out = globals().get(fn)(*args.get(fn), **args)
File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 67, in new_fn
return fn(*args, **new_kwargs)
File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 328, in install
_install(db_name, root_login, root_password, source_sql, admin_password, force, site_config, reinstall, quiet, install_apps)
File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 309, in _install
admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
File “/home/ashish/frappe-bench/apps/frappe/frappe/installer.py”, line 30, in install_db
create_database_and_user(force, verbose)
File “/home/ashish/frappe-bench/apps/frappe/frappe/installer.py”, line 46, in create_database_and_user
if force or (db_name not in dbman.get_database_list()):
File “/home/ashish/frappe-bench/apps/frappe/frappe/model/db_schema.py”, line 359, in get_database_list
return [d[0] for d in self.db.sql(“SHOW DATABASES”)]
File “/home/ashish/frappe-bench/apps/frappe/frappe/database.py”, line 79, in sql
self.connect()
File “/home/ashish/frappe-bench/apps/frappe/frappe/database.py”, line 49, in connect
use_unicode=True, charset=‘utf8’)
File “/home/ashish/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/init.py”, line 81, in Connect
return Connection(*args, **kwargs)
File “/home/ashish/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 193, in init
super(Connection, self).init(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1045, “Access denied for user ‘root’@‘localhost’ (using password: YES)”)
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/ashish/bench-repo/bench/cli.py”, line 36, in cli
return bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/ashish/bench-repo/bench/cli.py”, line 126, in new_site
_new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)
File “/home/ashish/bench-repo/bench/utils.py”, line 86, in new_site
), cwd=os.path.join(bench, ‘sites’))
File “/home/ashish/bench-repo/bench/utils.py”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/ashish/frappe-bench/env/bin/frappe --install site1.local site1.local ’ returned non-zero exit status 1
ashish@ashish-PowerEdge-R410:~/frappe-bench$ bench setup supervisor
ashish@ashish-PowerEdge-R410:~/frappe-bench$ sudo ln -s pwd
/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf
[sudo] password for ashish:
ashish@ashish-PowerEdge-R410:~/frappe-bench$ bench setup nginx
ashish@ashish-PowerEdge-R410:~/frappe-bench$ sudo ln -s pwd
/config/nginx.conf /etc/nginx/conf.d/frappe.conf
ashish@ashish-PowerEdge-R410:~/frappe-bench$ sudo rm -v /etc/nginx/sites-enabled/default
removed ‘/etc/nginx/sites-enabled/default’
ashish@ashish-PowerEdge-R410:~/frappe-bench$ sudo service nginx restart
- Restarting nginx nginx [ OK ]
ashish@ashish-PowerEdge-R410:~/frappe-bench$ sudo service supervisor restart
Restarting supervisor: supervisord.
ashish@ashish-PowerEdge-R410:~/frappe-bench$ sudo supervisorctl reread
No config updates to processes
ashish@ashish-PowerEdge-R410:~/frappe-bench$ sudo supervisorctl update
ashish@ashish-PowerEdge-R410:~/frappe-bench$ bench new-site site1.local
MySQL root password:
Traceback (most recent call last):
File “/home/ashish/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.5.9’, ‘console_scripts’, ‘frappe’)()
File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 53, in main
return run(fn, parsed_args)
File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 81, in run
out = globals().get(fn)(*args.get(fn), **args)
File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 67, in new_fn
return fn(*args, **new_kwargs)
File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 328, in install
_install(db_name, root_login, root_password, source_sql, admin_password, force, site_config, reinstall, quiet, install_apps)
File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 309, in _install
admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
File “/home/ashish/frappe-bench/apps/frappe/frappe/installer.py”, line 30, in install_db
create_database_and_user(force, verbose)
File “/home/ashish/frappe-bench/apps/frappe/frappe/installer.py”, line 46, in create_database_and_user
if force or (db_name not in dbman.get_database_list()):
File “/home/ashish/frappe-bench/apps/frappe/frappe/model/db_schema.py”, line 359, in get_database_list
return [d[0] for d in self.db.sql(“SHOW DATABASES”)]
File “/home/ashish/frappe-bench/apps/frappe/frappe/database.py”, line 79, in sql
self.connect()
File “/home/ashish/frappe-bench/apps/frappe/frappe/database.py”, line 49, in connect
use_unicode=True, charset=‘utf8’)
File “/home/ashish/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/init.py”, line 81, in Connect
return Connection(*args, **kwargs)
File “/home/ashish/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 193, in init
super(Connection, self).init(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1045, “Access denied for user ‘root’@‘localhost’ (using password: YES)”)
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/ashish/bench-repo/bench/cli.py”, line 36, in cli
return bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 610, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 590, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 936, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 782, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 416, in invoke
return callback(*args, **kwargs)
File “/home/ashish/bench-repo/bench/cli.py”, line 126, in new_site
_new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)
File “/home/ashish/bench-repo/bench/utils.py”, line 86, in new_site
), cwd=os.path.join(bench, ‘sites’))
File “/home/ashish/bench-repo/bench/utils.py”, line 61, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/ashish/frappe-bench/env/bin/frappe --install site1.local site1.local ’ returned non-zero exit status 1
ashish@ashish-PowerEdge-R410:~/frappe-bench$ bench start
15:41:44 web.1 | started with pid 17562
15:41:44 worker.1 | started with pid 17563
15:41:44 workerbeat.1 | started with pid 17565
15:41:44 web.1 | * Running on http://0.0.0.0:8000/
15:41:44 web.1 | Traceback (most recent call last):
15:41:44 web.1 | File “./env/bin/frappe”, line 9, in
15:41:44 web.1 | load_entry_point(‘frappe==4.5.9’, ‘console_scripts’, ‘frappe’)()
15:41:44 web.1 | File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 53, in main
15:41:44 web.1 | return run(fn, parsed_args)
15:41:44 web.1 | File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 83, in run
15:41:44 web.1 | out = globals().get(fn)(**args)
15:41:44 web.1 | File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 67, in new_fn
15:41:44 web.1 | return fn(*args, **new_kwargs)
15:41:44 web.1 | File “/home/ashish/frappe-bench/apps/frappe/frappe/cli.py”, line 814, in serve
15:41:44 web.1 | frappe.app.serve(port=port, profile=profile, site=frappe.local.site, sites_path=sites_path)
15:41:44 web.1 | File “/home/ashish/frappe-bench/apps/frappe/frappe/app.py”, line 144, in serve
15:41:44 web.1 | use_debugger=True, use_evalex=True, threaded=True)
15:41:44 web.1 | File “/home/ashish/frappe-bench/env/local/lib/python2.7/site-packages/werkzeug/serving.py”, line 706, in run_simple
15:41:44 web.1 | test_socket.bind((hostname, port))
15:41:44 web.1 | File “/usr/lib/python2.7/socket.py”, line 224, in meth
15:41:44 web.1 | return getattr(self._sock,name)(*args)
15:41:44 web.1 | socket.error: [Errno 98] Address already in use
15:41:44 workerbeat.1 | ERROR: Pidfile (celerybeat.pid) already exists.
15:41:44 workerbeat.1 | Seems we’re already running? (pid: 17456)
15:41:44 workerbeat.1 | celery beat v3.1.17 (Cipater) is starting.
15:41:44 web.1 | process terminated
15:41:44 system | sending SIGTERM to all processes
15:41:44 system | sending SIGTERM to pid 17563
15:41:44 workerbeat.1 | process terminated
15:41:44 worker.1 | process terminated
ashish@ashish-PowerEdge-R410:~/frappe-bench$ cd /