Error while installing ERPNext

Hi,
I was trying to Install ERPNext and keep on getting the following error…

W: Failed to fetch http://ams2.mirrors.digitalocean.com/mariadb/repo/5.5/ubuntu/dists/utopic/main/binary-i386/Packages 404 Not Found [IP: 95.85.0.50 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

Please suggest the solution. I dont have much knowledge of UBUNTU

Hi ashish,

Can you share installation trace?

Sunil
Nescode(http://nescode.com)
Partner for ERPNext

Hi Sunil, Below is the command given from Easy Installation

pap@ubuntu:~$ wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
–2014-11-20 14:59:41-- 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.1’

100%[======================================>] 11,561 --.-K/s in 0.002s

2014-11-20 14:59:47 (6.39 MB/s) - ‘setup_frappe.sh.1’ saved [11561/11561]

pap@ubuntu:~$ sudo bash setup_frappe.sh --setup-production
[sudo] password for pap:
Installing for Ubuntu utopic amd64
In case you encounter an error, you can post on https://discuss.frappe.io

Adding debian mariadb repo
Ign http://in.archive.ubuntu.com utopic InRelease
Ign http://ams2.mirrors.digitalocean.com utopic InRelease
Ign http://ams2.mirrors.digitalocean.com utopic Release.gpg
Ign http://security.ubuntu.com utopic-security InRelease
Ign http://in.archive.ubuntu.com utopic-updates InRelease
Ign http://ams2.mirrors.digitalocean.com utopic Release
Get:1 http://security.ubuntu.com utopic-security Release.gpg [933 B]
Ign http://in.archive.ubuntu.com utopic-backports InRelease
Get:2 http://security.ubuntu.com utopic-security Release [62.0 kB]
Hit http://in.archive.ubuntu.com utopic Release.gpg
Get:3 http://in.archive.ubuntu.com utopic-updates Release.gpg [933 B]
Hit http://in.archive.ubuntu.com utopic-backports Release.gpg
Hit http://in.archive.ubuntu.com utopic Release
Get:4 http://in.archive.ubuntu.com utopic-updates Release [62.0 kB]
Get:5 http://security.ubuntu.com utopic-security/main Sources [15.7 kB]
Get:6 http://security.ubuntu.com utopic-security/restricted Sources [14 B]
Get:7 http://security.ubuntu.com utopic-security/universe Sources [5,252 B]
Hit http://in.archive.ubuntu.com utopic-backports Release
Get:8 http://security.ubuntu.com utopic-security/multiverse Sources [709 B]
Err http://ams2.mirrors.digitalocean.com utopic/main amd64 Packages
404 Not Found [IP: 95.85.0.50 80]
Get:9 http://security.ubuntu.com utopic-security/main amd64 Packages [46.9 kB]
Err http://ams2.mirrors.digitalocean.com utopic/main i386 Packages
404 Not Found [IP: 95.85.0.50 80]
Ign http://ams2.mirrors.digitalocean.com utopic/main Translation-en_IN
Ign http://ams2.mirrors.digitalocean.com utopic/main Translation-en
Get:10 http://security.ubuntu.com utopic-security/restricted amd64 Packages [14 B]
Get:11 http://security.ubuntu.com utopic-security/universe amd64 Packages [24.1 kB]
Get:12 http://security.ubuntu.com utopic-security/multiverse amd64 Packages [1,146 B]
Get:13 http://security.ubuntu.com utopic-security/main i386 Packages [46.5 kB]
Get:14 http://security.ubuntu.com utopic-security/restricted i386 Packages [14 B]
Get:15 http://security.ubuntu.com utopic-security/universe i386 Packages [24.1 kB]
Get:16 http://security.ubuntu.com utopic-security/multiverse i386 Packages [1,383 B]
Hit http://security.ubuntu.com utopic-security/restricted Translation-en
Get:17 http://in.archive.ubuntu.com utopic-updates/main Sources [19.2 kB]
Hit http://security.ubuntu.com utopic-security/main Translation-en
Hit http://security.ubuntu.com utopic-security/multiverse Translation-en
Get:18 http://in.archive.ubuntu.com utopic-updates/restricted Sources [14 B]
Hit http://security.ubuntu.com utopic-security/universe Translation-en
Get:19 http://in.archive.ubuntu.com utopic-updates/universe Sources [6,336 B]
Get:20 http://in.archive.ubuntu.com utopic-updates/multiverse Sources [709 B]
Get:21 http://in.archive.ubuntu.com utopic-updates/main amd64 Packages [52.6 kB]
Get:22 http://in.archive.ubuntu.com utopic-updates/restricted amd64 Packages [14 B]
Get:23 http://in.archive.ubuntu.com utopic-updates/universe amd64 Packages [26.1 kB]
Get:24 http://in.archive.ubuntu.com utopic-updates/multiverse amd64 Packages [1,146 B]
Get:25 http://in.archive.ubuntu.com utopic-updates/main i386 Packages [51.9 kB]
Get:26 http://in.archive.ubuntu.com utopic-updates/restricted i386 Packages [14 B]
Get:27 http://in.archive.ubuntu.com utopic-updates/universe i386 Packages [26.1 kB]
Get:28 http://in.archive.ubuntu.com utopic-updates/multiverse i386 Packages [1,383 B]
Hit http://in.archive.ubuntu.com utopic-updates/restricted Translation-en
Hit http://in.archive.ubuntu.com utopic-backports/main Sources
Hit http://in.archive.ubuntu.com utopic-backports/restricted Sources
Hit http://in.archive.ubuntu.com utopic-backports/multiverse Sources
Hit http://in.archive.ubuntu.com utopic-backports/main amd64 Packages
Hit http://in.archive.ubuntu.com utopic-backports/restricted amd64 Packages
Hit http://in.archive.ubuntu.com utopic-backports/multiverse amd64 Packages
Hit http://in.archive.ubuntu.com utopic-backports/main i386 Packages
Hit http://in.archive.ubuntu.com utopic-backports/restricted i386 Packages
Hit http://in.archive.ubuntu.com utopic-backports/multiverse i386 Packages
Hit http://in.archive.ubuntu.com utopic-backports/main Translation-en
Hit http://in.archive.ubuntu.com utopic-backports/multiverse Translation-en
Hit http://in.archive.ubuntu.com utopic-backports/restricted Translation-en
Hit http://in.archive.ubuntu.com utopic/main Sources
Hit http://in.archive.ubuntu.com utopic/restricted Sources
Hit http://in.archive.ubuntu.com utopic/universe Sources
Hit http://in.archive.ubuntu.com utopic/multiverse Sources
Hit http://in.archive.ubuntu.com utopic/main amd64 Packages
Hit http://in.archive.ubuntu.com utopic/restricted amd64 Packages
Hit http://in.archive.ubuntu.com utopic/universe amd64 Packages
Hit http://in.archive.ubuntu.com utopic/multiverse amd64 Packages
Hit http://in.archive.ubuntu.com utopic/main i386 Packages
Hit http://in.archive.ubuntu.com utopic/restricted i386 Packages
Hit http://in.archive.ubuntu.com utopic/universe i386 Packages
Hit http://in.archive.ubuntu.com utopic/multiverse i386 Packages
Hit http://in.archive.ubuntu.com utopic/main Translation-en
Hit http://in.archive.ubuntu.com utopic/multiverse Translation-en
Hit http://in.archive.ubuntu.com utopic/restricted Translation-en
Hit http://in.archive.ubuntu.com utopic/universe Translation-en
Hit http://in.archive.ubuntu.com utopic-updates/main Translation-en
Hit http://in.archive.ubuntu.com utopic-updates/multiverse Translation-en
Hit http://in.archive.ubuntu.com utopic-updates/universe Translation-en
Hit http://in.archive.ubuntu.com utopic-backports/universe Sources
Hit http://in.archive.ubuntu.com utopic-backports/universe amd64 Packages
Hit http://in.archive.ubuntu.com utopic-backports/universe i386 Packages
Hit http://in.archive.ubuntu.com utopic-backports/universe Translation-en
Fetched 477 kB in 24s (19.1 kB/s)
W: Failed to fetch http://ams2.mirrors.digitalocean.com/mariadb/repo/5.5/ubuntu/dists/utopic/main/binary-amd64/Packages 404 Not Found [IP: 95.85.0.50 80]

W: Failed to fetch http://ams2.mirrors.digitalocean.com/mariadb/repo/5.5/ubuntu/dists/utopic/main/binary-i386/Packages 404 Not Found [IP: 95.85.0.50 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
pap@ubuntu:~$

Thanks

Hello ashish,

I didn’t checked the latest easy installation script. Will check and revert you if i get any issue. In the meantime you can use these steps. Hope it should work well :smile:


Step 1:

Open your Terminal and enter:

wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
sudo bash setup_frappe.sh

Step 2:

To setup a bench that runs ERPNext, run the following commands

cd ~
bench init frappe-bench
cd frappe-bench

Step 3:
Update bench and patch mariadb by following command(this step is because of bug in mariadb):

bench update --bench
# As root run,
bench patch mariadb-config

Step 4:

bench get-app erpnext https://github.com/frappe/erpnext             # Add ERPNext to your bench apps
bench get-app shopping_cart https://github.com/frappe/shopping-cart # Add Shopping cart to your bench apps
bench new-site site1.local                                          # Create a new site
bench frappe --install_app erpnext site1.local                      # Install ERPNext for the site
bench frappe --install_app shopping_cart site1.local                # Install Shopping cart for the site

Step 5:
Configure supervisor

bench setup supervisor
sudo ln -s `pwd`/config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

Step 6:
Configure nginx

bench setup nginx
sudo ln -s `pwd`/config/nginx.conf /etc/nginx/conf.d/frappe.conf

Step 7:
Remove nginx default welcome page:

sudo rm -v /etc/nginx/sites-enabled/default
sudo service nginx restart

Step 8:
Restart supervisor

sudo service supervisor restart

Step 9: Re-read supervisor and restart

sudo supervisorctl reread
sudo supervisorctl update

Step 10: Celebrate “ERPNext” :smile:

Sunil
Nescode(http://nescode.com)
Partner for ERPNext

2 Likes

@Ashish Looks like network issue. Can you try to rebuild your droplet with Ubuntu 14.04 and try again.

@sunilsrikumar All steps are automated, sudo bash setup_frappe.sh --setup-production is the only thing required and bench patch mariadb-config is deprecated and no more shipped. Star the bench repo on github to get release updates :stuck_out_tongue:

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 /

Hi Ashish,

Looks like you missed a few errors. Start with a clean setup (reinstall). The only commands required are below. Everything is automated!

wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
sudo bash setup_frappe.sh --setup-production

Also, looking at the log, the script had exited because it was not able to resolve the a domainname (maybe due to DNS / network issue)

It worked !!..Installation done.

Thank you all for support.

revant@revant-laptop:~$ sudo bash setup_frappe.sh --setup-production
[sudo] password for revant: 
Installing for Ubuntu utopic amd64
In case you encounter an error, you can post on https://discuss.frappe.io

Installing packages for Ubuntu. This might take time...
Installing wkhtmltopdf
Cannot install wkhtmltodpdf. Skipping...
 * Stopping MariaDB database server mysqld                                                                                               [ OK ] 
 * Starting MariaDB database server mysqld                                                                                               [ OK ] 
 * Checking for corrupt, not cleanly closed and upgrade needing tables.
Adding frappe user
Installing frappe-bench
Setting up first site
Traceback (most recent call last):
  File "/home/revant/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.13.5', 'console_scripts', 'frappe')()
  File "/home/revant/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
    return run(fn, parsed_args)
  File "/home/revant/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
    out = globals().get(fn)(*args.get(fn), **args)
  File "/home/revant/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/revant/frappe-bench/apps/frappe/frappe/cli.py", line 336, in install
    _install(db_name, root_login, root_password, source_sql, admin_password, force, site_config, reinstall, quiet, install_apps)
  File "/home/revant/frappe-bench/apps/frappe/frappe/cli.py", line 317, in _install
    admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
  File "/home/revant/frappe-bench/apps/frappe/frappe/installer.py", line 31, in install_db
    create_database_and_user(force, verbose)
  File "/home/revant/frappe-bench/apps/frappe/frappe/installer.py", line 48, in create_database_and_user
    if force or (db_name not in dbman.get_database_list()):
  File "/home/revant/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/revant/frappe-bench/apps/frappe/frappe/database.py", line 79, in sql
    self.connect()
  File "/home/revant/frappe-bench/apps/frappe/frappe/database.py", line 49, in connect
    use_unicode=True, charset='utf8')
  File "/home/revant/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/home/revant/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 <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/revant/bench-repo/bench/cli.py", line 55, in cli
    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/revant/bench-repo/bench/cli.py", line 181, in new_site
    _new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)
  File "/home/revant/bench-repo/bench/utils.py", line 110, in new_site
    ), cwd=os.path.join(bench, 'sites'))
  File "/home/revant/bench-repo/bench/utils.py", line 72, 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/revant/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password ikPFPkjd5dTmgA7Z --admin_password lrAOoYFvqN3CAmqU' returned non-zero exit status 1
revant@revant-laptop:~$

now trying this:

Please start new threads for new errors.