Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 216173 files and directories currently installed.)
Preparing to unpack .../mysql-common_10.0.15+maria-1~trusty_all.deb ...
Unpacking mysql-common (10.0.15+maria-1~trusty) ...
Selecting previously unselected package mariadb-common.
Preparing to unpack .../mariadb-common_10.0.15+maria-1~trusty_all.deb ...
Unpacking mariadb-common (10.0.15+maria-1~trusty) ...
Selecting previously unselected package libmariadbclient18.
Preparing to unpack .../libmariadbclient18_10.0.15+maria-1~trusty_amd64.deb ...
Unpacking libmariadbclient18 (10.0.15+maria-1~trusty) ...
Selecting previously unselected package libmysqlclient18.
Preparing to unpack .../libmysqlclient18_10.0.15+maria-1~trusty_amd64.deb ...
Unpacking libmysqlclient18 (10.0.15+maria-1~trusty) ...
Selecting previously unselected package libdbd-mysql-perl.
Preparing to unpack .../libdbd-mysql-perl_4.025-1_amd64.deb ...
Unpacking libdbd-mysql-perl (4.025-1) ...
Selecting previously unselected package mariadb-client-core-10.0.
Preparing to unpack .../mariadb-client-core-10.0_10.0.15+maria-1~trusty_amd64.deb ...
Unpacking mariadb-client-core-10.0 (10.0.15+maria-1~trusty) ...
Selecting previously unselected package mariadb-client-10.0.
Preparing to unpack .../mariadb-client-10.0_10.0.15+maria-1~trusty_amd64.deb ...
Unpacking mariadb-client-10.0 (10.0.15+maria-1~trusty) ...
Selecting previously unselected package mariadb-server-core-10.0.
Preparing to unpack .../mariadb-server-core-10.0_10.0.15+maria-1~trusty_amd64.deb ...
Unpacking mariadb-server-core-10.0 (10.0.15+maria-1~trusty) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up mysql-common (10.0.15+maria-1~trusty) ...
Setting up mariadb-common (10.0.15+maria-1~trusty) ...
Selecting previously unselected package mariadb-server-10.0.
(Reading database ... 216359 files and directories currently installed.)
Preparing to unpack .../mariadb-server-10.0_10.0.15+maria-1~trusty_amd64.deb ...
Unpacking mariadb-server-10.0 (10.0.15+maria-1~trusty) ...
Selecting previously unselected package libmariadbclient-dev.
Preparing to unpack .../libmariadbclient-dev_10.0.15+maria-1~trusty_amd64.deb ...
Unpacking libmariadbclient-dev (10.0.15+maria-1~trusty) ...
Selecting previously unselected package mariadb-server.
Preparing to unpack .../mariadb-server_10.0.15+maria-1~trusty_all.deb ...
Unpacking mariadb-server (10.0.15+maria-1~trusty) ...
Selecting previously unselected package python-mysqldb.
Preparing to unpack .../python-mysqldb_1.2.3-2ubuntu1_amd64.deb ...
Unpacking python-mysqldb (1.2.3-2ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libmysqlclient18 (10.0.15+maria-1~trusty) ...
Setting up libdbd-mysql-perl (4.025-1) ...
Setting up python-mysqldb (1.2.3-2ubuntu1) ...
Setting up libmariadbclient18 (10.0.15+maria-1~trusty) ...
Setting up mariadb-client-core-10.0 (10.0.15+maria-1~trusty) ...
Setting up mariadb-client-10.0 (10.0.15+maria-1~trusty) ...
Setting up mariadb-server-core-10.0 (10.0.15+maria-1~trusty) ...
Setting up mariadb-server-10.0 (10.0.15+maria-1~trusty) ...
* Stopping MariaDB database server mysqld [ OK ]
141224 18:38:17 [Note] InnoDB: Using mutexes to ref count buffer pool pages
141224 18:38:17 [Note] InnoDB: The InnoDB memory heap is disabled
141224 18:38:17 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
141224 18:38:17 [Note] InnoDB: Memory barrier is not used
141224 18:38:17 [Note] InnoDB: Compressed tables use zlib 1.2.8
141224 18:38:17 [Note] InnoDB: Using Linux native AIO
141224 18:38:17 [Note] InnoDB: Using CPU crc32 instructions
141224 18:38:17 [Note] InnoDB: Initializing buffer pool, size = 256.0M
141224 18:38:17 [Note] InnoDB: Completed initialization of buffer pool
141224 18:38:17 [Note] InnoDB: Highest supported file format is Barracuda.
141224 18:38:18 [Note] InnoDB: 128 rollback segment(s) are active.
141224 18:38:18 [Note] InnoDB: Waiting for purge to start
141224 18:38:18 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.21-70.0 started; log sequence number 9100107
141224 18:38:18 [Note] Plugin 'FEEDBACK' is disabled.
141224 18:38:18 [Note] InnoDB: FTS optimize thread exiting.
141224 18:38:18 [Note] InnoDB: Starting shutdown...
141224 18:38:20 [Note] InnoDB: Shutdown completed; log sequence number 9100117
* Starting MariaDB database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.
Setting up libmariadbclient-dev (10.0.15+maria-1~trusty) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mariadb-server (10.0.15+maria-1~trusty) ...
Processing triggers for libc-bin (2.19-0ubuntu6.3) ...
Installing wkhtmltopdf
--2014-12-24 18:38:30-- http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://softlayer-sng.dl.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb [following]
--2014-12-24 18:38:31-- http://softlayer-sng.dl.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
Resolving softlayer-sng.dl.sourceforge.net (softlayer-sng.dl.sourceforge.net)... 216.12.198.152
Connecting to softlayer-sng.dl.sourceforge.net (softlayer-sng.dl.sourceforge.net)|216.12.198.152|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14166104 (14M) [application/octet-stream]
Saving to: ‘wkhtmltox-0.12.1_linux-trusty-amd64.deb’
100%[======================================>] 1,41,66,104 306KB/s in 65s
2014-12-24 18:39:36 (211 KB/s) - ‘wkhtmltox-0.12.1_linux-trusty-amd64.deb’ saved [14166104/14166104]
(Reading database ... 216819 files and directories currently installed.)
Preparing to unpack wkhtmltox-0.12.1_linux-trusty-amd64.deb ...
Unpacking wkhtmltox (0.12.1) over (0.12.1) ...
Setting up wkhtmltox (0.12.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Adding frappe user
Cloning into 'bench-repo'...
remote: Counting objects: 764, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 764 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (764/764), 148.65 KiB | 74.00 KiB/s, done.
Resolving deltas: 100% (493/493), done.
Checking connectivity... done.
Obtaining file:///home/raman/bench-repo
Running setup.py (path:/home/raman/bench-repo/setup.py) egg_info for package from file:///home/raman/bench-repo
file bench.py (for module bench) not found
Requirement already satisfied (use --upgrade to upgrade): Click in /usr/local/lib/python2.7/dist-packages (from bench==0.1)
Requirement already satisfied (use --upgrade to upgrade): jinja2 in /usr/local/lib/python2.7/dist-packages (from bench==0.1)
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/local/lib/python2.7/dist-packages (from bench==0.1)
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python2.7/dist-packages (from bench==0.1)
Requirement already satisfied (use --upgrade to upgrade): honcho in /usr/local/lib/python2.7/dist-packages (from bench==0.1)
Requirement already satisfied (use --upgrade to upgrade): semantic-version in /usr/local/lib/python2.7/dist-packages (from bench==0.1)
Requirement already satisfied (use --upgrade to upgrade): GitPython==0.3.2.RC1 in /usr/local/lib/python2.7/dist-packages (from bench==0.1)
Requirement already satisfied (use --upgrade to upgrade): markupsafe in /usr/local/lib/python2.7/dist-packages (from jinja2->bench==0.1)
Requirement already satisfied (use --upgrade to upgrade): gitdb>=0.5.1 in /usr/local/lib/python2.7/dist-packages (from GitPython==0.3.2.RC1->bench==0.1)
Requirement already satisfied (use --upgrade to upgrade): smmap>=0.8.3 in /usr/local/lib/python2.7/dist-packages (from gitdb>=0.5.1->GitPython==0.3.2.RC1->bench==0.1)
Installing collected packages: bench
Running setup.py develop for bench
file bench.py (for module bench) not found
Creating /usr/local/lib/python2.7/dist-packages/bench.egg-link (link to .)
bench 0.1 is already the active version in easy-install.pth
Installing bench script to /usr/local/bin
Installed /home/raman/bench-repo
Successfully installed bench
Cleaning up...
Installing frappe-bench
Already using interpreter /usr/bin/python2.7
Cloning into 'frappe'...
remote: Counting objects: 63019, done.
remote: Compressing objects: 100% (311/311), done.
remote: Total 63019 (delta 168), reused 75 (delta 47)
Receiving objects: 100% (63019/63019), 26.39 MiB | 268.00 KiB/s, done.
Resolving deltas: 100% (44620/44620), done.
Checking connectivity... done.
installing frappe
Compiling /home/raman/frappe-bench/env/build/gunicorn/gunicorn/workers/_gaiohttp.py ...
File "/home/raman/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
Cloning into 'erpnext'...
remote: Counting objects: 122770, done.
remote: Compressing objects: 100% (359/359), done.
remote: Total 122770 (delta 276), reused 97 (delta 65)
Receiving objects: 100% (122770/122770), 40.83 MiB | 265.00 KiB/s, done.
Resolving deltas: 100% (88125/88125), done.
Checking connectivity... done.
installing erpnext
Cloning into 'shopping_cart'...
remote: Counting objects: 1032, done.
remote: Total 1032 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (1032/1032), 292.61 KiB | 158.00 KiB/s, done.
Resolving deltas: 100% (711/711), 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 - 15k
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
Bench frappe-bench initialized
Setting up first site
Traceback (most recent call last):
File "/home/raman/frappe-bench/env/bin/frappe", line 9, in <module>
load_entry_point('frappe==4.9.1', 'console_scripts', 'frappe')()
File "/home/raman/frappe-bench/apps/frappe/frappe/cli.py", line 54, in main
return run(fn, parsed_args)
File "/home/raman/frappe-bench/apps/frappe/frappe/cli.py", line 82, in run
out = globals().get(fn)(*args.get(fn), **args)
File "/home/raman/frappe-bench/apps/frappe/frappe/cli.py", line 68, in new_fn
return fn(*args, **new_kwargs)
File "/home/raman/frappe-bench/apps/frappe/frappe/cli.py", line 337, in install
_install(db_name, root_login, root_password, source_sql, admin_password, force, site_config, reinstall, quiet, install_apps)
File "/home/raman/frappe-bench/apps/frappe/frappe/cli.py", line 318, in _install
admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
File "/home/raman/frappe-bench/apps/frappe/frappe/installer.py", line 31, in install_db
create_database_and_user(force, verbose)
File "/home/raman/frappe-bench/apps/frappe/frappe/installer.py", line 52, in create_database_and_user
raise Exception("Database %s already exists" % (db_name,))
Exception: Database site1.local already exists
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/raman/bench-repo/bench/cli.py", line 38, 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/raman/bench-repo/bench/cli.py", line 129, in new_site
_new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)
File "/home/raman/bench-repo/bench/utils.py", line 86, in new_site
), cwd=os.path.join(bench, 'sites'))
File "/home/raman/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/raman/frappe-bench/env/bin/frappe --install site1.local site1.local --root_password YcSPXiUsWB4wLNWF --admin_password oojuYiQcZdmrL9E2' returned non-zero exit status 1
raman@nccorplap004:~$ cd frappe-bench
raman@nccorplap004:~/frappe-bench$ bench start
18:47:04 web.1 | started with pid 3619
18:47:04 worker.1 | started with pid 3620
18:47:04 workerbeat.1 | started with pid 3622
18:47:05 web.1 | * Running on http://0.0.0.0:8000/
18:47:05 web.1 | * Restarting with reloader
18:47:05 workerbeat.1 | [2014-12-24 18:47:05,111: INFO/MainProcess] beat: Starting...
18:47:06 worker.1 | [2014-12-24 18:47:06,338: WARNING/MainProcess] celery@nccorplap004 ready.
18:47:16 web.1 | 127.0.0.1 - - [24/Dec/2014 18:47:16] "GET / HTTP/1.1" 404 -
18:47:16 web.1 | 127.0.0.1 - - [24/Dec/2014 18:47:16] "GET /favicon.ico HTTP/1.1" 404 -
18:47:18 web.1 | 127.0.0.1 - - [24/Dec/2014 18:47:18] "GET / HTTP/1.1" 404 -
Raman