Installation error on production mode

While executing sudo python install.py --production, I got the following error-

fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["bench", "new-site", "site1.local", "--admin-password", "abcd", "--mariadb-root-password", "abcd"], "delta": "0:00:00.672822", "end": "2017-06-28 07:13:39.595069", "failed": true, "rc": 1, "start": "2017-06-28 07:13:38.922247", "stderr": "INFO:bench.utils:creating new site site1.local\nINFO:bench.utils:/home/frappe/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password abcd --admin_password abcd\n/bin/sh: 1: /home/frappe/frappe-bench/env/bin/frappe: not found\nTraceback (most recent call last):\n File \"/usr/local/bin/bench\", line 11, in <module>\n load_entry_point('bench', 'console_scripts', 'bench')()\n File \"/home/frappe/.bench/bench/cli.py\", line 40, in cli\n bench_command()\n File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 722, in __call__\n return self.main(*args, **kwargs)\n File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 697, in main\n rv = self.invoke(ctx)\n File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 1066, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 895, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 535, in invoke\n return callback(*args, **kwargs)\n File \"/home/frappe/.bench/bench/commands/make.py\", line 56, in new_site\n new_site(site, mariadb_root_password=mariadb_root_password, admin_password=admin_password)\n File \"/home/frappe/.bench/bench/utils.py\", line 167, in new_site\n ), cwd=os.path.join(bench_path, 'sites'))\n File \"/home/frappe/.bench/bench/utils.py\", line 130, in exec_cmd\n raise CommandFailedError(cmd)\nbench.utils.CommandFailedError: /home/frappe/frappe-bench/env/bin/frappe site1.local --install 1bd3e0294d --root_password abcd --admin_password abcd", "stdout": "frappe app is not installed. Run the following command to install frappe\nbench get-app https://github.com/frappe/frappe.git", "stdout_lines": ["frappe app is not installed. Run the following command to install frappe", "bench get-app https://github.com/frappe/frappe.git"], "warnings": []}

Hi,

It says:

frappe app is not installed. Run the following command to install frappe:

“bench get-app GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript

Thanks. It helped.

I have another question. Once I installed production mode, all I can see in my home directory are the files passwords.txt, install.py and get-pip.py. How do I start bench?

I think the frappe user got created. You should find all the files in that user’s home directory.

In production, bench starts on system startup.