Error during making custom app

Hi,
Now I am developing custom app in frappe 7.2.31
Steps

  • bench new-app library_management

  • bench new-site library

  • bench use library

  • bench --site library install-app library_management

  • bench start

After bench start, login page is showing. After put username and password, console log is

10:55:39 web.1 | fatal: Not a git repository (or any of the parent directories): .git
10:55:39 web.1 | Traceback (most recent call last):
10:55:39 web.1 | File “/home/arifur/frappe-bench/apps/frappe/frappe/website/context.py”, line 46, in update_controller_context
10:55:39 web.1 | ret = module.get_context(context)
10:55:39 web.1 | File “/home/arifur/frappe-bench/apps/frappe/frappe/www/desk.py”, line 21, in get_context
10:55:39 web.1 | boot = frappe.sessions.get()
10:55:39 web.1 | File “/home/arifur/frappe-bench/apps/frappe/frappe/sessions.py”, line 150, in get
10:55:39 web.1 | bootinfo = get_bootinfo()
10:55:39 web.1 | File “/home/arifur/frappe-bench/apps/frappe/frappe/boot.py”, line 65, in get_bootinfo
10:55:39 web.1 | bootinfo.versions = {k: v[‘version’] for k, v in get_versions().items()}
10:55:39 web.1 | File “/home/arifur/frappe-bench/apps/frappe/frappe/utils/change_log.py”, line 97, in get_versions
10:55:39 web.1 | “branch”: get_app_branch(app)
10:55:39 web.1 | File “/home/arifur/frappe-bench/apps/frappe/frappe/utils/change_log.py”, line 115, in get_app_branch
10:55:39 web.1 | shell=True).strip()
10:55:39 web.1 | File “/usr/lib/python2.7/subprocess.py”, line 573, in check_output
10:55:39 web.1 | raise CalledProcessError(retcode, cmd, output=output)
10:55:39 web.1 | CalledProcessError: Command ‘cd …/apps/erpw3 && git rev-parse --abbrev-ref HEAD’ returned non-zero exit status 128

Hi @arif

Can you run command git init in the cd frappe-bench/apps/custom_app folder

Hi @rohit_w,

I have checkout 7.2.30 then custom app is working.
Very buggy framework.
Why you are lots of version updating for frappe. ?
I think, you need to stop update frappe version. You can update only ERPNext module.

I am development a Custom App and when login in the browser, console log is
14:48:03 web.1 | * Debugger is active!
14:48:03 web.1 | * Debugger PIN: 125-692-046
14:48:10 web.1 | 127.0.0.1 - - [29/Mar/2017 14:48:10] “GET / HTTP/1.1” 200 -
14:48:12 web.1 | 127.0.0.1 - - [29/Mar/2017 14:48:12] “GET / HTTP/1.1” 200 -
14:48:12 web.1 | 127.0.0.1 - - [29/Mar/2017 14:48:12] “GET /assets/frappe/css/bootstrap.css HTTP/1.1” 304 -
14:48:12 web.1 | 127.0.0.1 - - [29/Mar/2017 14:48:12] “GET /assets/css/frappe-web.css HTTP/1.1” 200 -
14:48:12 web.1 | 127.0.0.1 - - [29/Mar/2017 14:48:12] “GET /assets/frappe/js/lib/jquery/jquery.min.js HTTP/1.1” 304 -
14:48:12 web.1 | 127.0.0.1 - - [29/Mar/2017 14:48:12] “GET /assets/js/frappe-web.min.js HTTP/1.1” 200 -
14:48:12 web.1 | 127.0.0.1 - - [29/Mar/2017 14:48:12] “GET /website_theme.css HTTP/1.1” 200 -
14:48:12 web.1 | 127.0.0.1 - - [29/Mar/2017 14:48:12] “GET /website_script.js HTTP/1.1” 200 -
14:48:17 worker_default.1 | 14:48:17 default: frappe.utils.background_jobs.execute_job(async=True, event=None, job_name=u’frappe.utils.global_search.update_global_search’, kwargs={‘doc’: <frappe.core.doctype.authentication_log.authentication_log.AuthenticationLog object at 0xac7bc32c>}, method=u’frappe.utils.global_search.update_global_search’, site=‘meeting.dev’, user=u’Administrator’) (1a5c2552-f685-479a-aaa4-aad589b3c043)
14:48:17 worker_default.1 | 14:48:17 default: Job OK (1a5c2552-f685-479a-aaa4-aad589b3c043)
14:48:17 worker_default.1 | 14:48:17 Result is kept for 500 seconds
14:48:17 worker_default.1 | 14:48:17
14:48:17 worker_default.1 | 14:48:17 *** Listening on default…
14:48:17 web.1 | 127.0.0.1 - - [29/Mar/2017 14:48:17] “POST / HTTP/1.1” 200 -
14:48:18 web.1 | fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
14:48:18 web.1 | Use ‘–’ to separate paths from revisions, like this:
14:48:18 web.1 | ‘git […] – […]’
14:48:18 web.1 | Traceback (most recent call last):
14:48:18 web.1 | File “/home/cgalo70/frappe-bench/apps/frappe/frappe/website/context.py”, line 46, in update_controller_context
14:48:18 web.1 | ret = module.get_context(context)
14:48:18 web.1 | File “/home/cgalo70/frappe-bench/apps/frappe/frappe/www/desk.py”, line 21, in get_context
14:48:18 web.1 | boot = frappe.sessions.get()
14:48:18 web.1 | File “/home/cgalo70/frappe-bench/apps/frappe/frappe/sessions.py”, line 150, in get
14:48:18 web.1 | bootinfo = get_bootinfo()
14:48:18 web.1 | File “/home/cgalo70/frappe-bench/apps/frappe/frappe/boot.py”, line 65, in get_bootinfo
14:48:18 web.1 | bootinfo.versions = {k: v[‘version’] for k, v in get_versions().items()}
14:48:18 web.1 | File “/home/cgalo70/frappe-bench/apps/frappe/frappe/utils/change_log.py”, line 97, in get_versions
14:48:18 web.1 | “branch”: get_app_branch(app)
14:48:18 web.1 | File “/home/cgalo70/frappe-bench/apps/frappe/frappe/utils/change_log.py”, line 115, in get_app_branch
14:48:18 web.1 | shell=True).strip()
14:48:18 web.1 | File “/usr/lib/python2.7/subprocess.py”, line 573, in check_output
14:48:18 web.1 | raise CalledProcessError(retcode, cmd, output=output)
14:48:18 web.1 | CalledProcessError: Command ‘cd …/apps/meeting && git rev-parse --abbrev-ref HEAD’ returned non-zero exit status 128
14:48:18 web.1 |
14:48:18 web.1 | 127.0.0.1 - - [29/Mar/2017 14:48:18] “GET /desk HTTP/1.1” 200 -
14:48:24 web.1 | 127.0.0.1 - - [29/Mar/2017 14:48:24] “GET / HTTP/1.1” 200 -

And in the console give this:

@rasec70, @arif

this is issue has been fixed please check the https://github.com/frappe/frappe/pull/2968. Once this is merge please update the frappe repo then try to reload the page.

Thanks,
Makarand