Giter VIP home page Giter VIP logo

frappe's People

Contributors

achillesrasquinha avatar adityahase avatar akhileshdarjee avatar anandpdoshi avatar codingcoffee avatar deepeshgarg007 avatar frappe-bot avatar gavindsouza avatar hrwx avatar kanchanchauhan avatar mangesh-khairnar avatar mbauskar avatar mergify[bot] avatar nabinhait avatar netchampfaris avatar pdvyas avatar pratu16x7 avatar prssanna avatar revant avatar rmehta avatar robertschouten avatar rohitwaghchaure avatar ruchamahabal avatar sagarvora avatar sahil28297 avatar saurabh6790 avatar scmmishra avatar surajshetty3416 avatar thunderbottom avatar zlash65 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

frappe's Issues

[production] Sorry, we will be back soon!

Trying to connect to a new production instance would produce the following NGINX log:

2020/09/02 16:16:04 [error] 22136#22136: *4357 upstream prematurely closed connection while reading response header from upstream, client: ip, server: server, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "site"

2020/09/02 16:16:05 [error] 22136#22136: *4357 upstream prematurely closed connection while reading response header from upstream, client: ip, server: server, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8000/favicon.ico", host: "site", referrer: "https://site/"

image

<X> DocType Not Found, While 'Bench Update'

Context

bench update is huge Command, which will do all the following task for you in just one go!

  1. Update all your instances to the latest app versions.
  2. Update dependencies, run patches, and also migrate the database schema.
  3. And if executed outside a bench directory, it just updates the bench tool!

Scenario

Lets consider a bench with 2 sites:

  • Site A
  • Site B

and the apps installed as:

  • Site A: frappe, erpnext, bloomstack_core
  • Site B: frappe, bloomstack_core

Here, site B is not fulfilling the dependencies of bloomstack_core, which is erpnext.

Issue

When you run bench update, site A will proceed and update successfully, but site B will fail trying to resolve its dependencies, but since the erpnext app does not exist on the site, it fails with an error: <X> DocType Not Found

'NoneType' object is not subscriptable

Issue title: 'NoneType' object is not subscriptable

Screenshots:
screenshot-localhost_8005-2020 07 23-20_14_33

When is the issue arising: When I go to '/desk'

My Findings: I have found some sites where this issue is getting resolved with bench update/ bench clear-cache/ bench migrate But it's not working for me.
Also, I found that it can be an issue related to database corruption.

System Information:
OS: Ubuntu 18.04
Python: 3.6.9
Bench: 5.0.0
Frappe Branch: bloomstack-v12-staging
ErpNext Branch: bloomstack-v12-staging

Traceback of the error:

File "/home/neha/Frappeoffice/frappe_bloomstack_core/apps/frappe/frappe/website/context.py", line 48, in update_controller_context
	ret = module.get_context(context)
File "/home/neha/Frappeoffice/frappe_bloomstack_core/apps/frappe/frappe/www/desk.py", line 21, in get_context
	boot = frappe.sessions.get()
File "/home/neha/Frappeoffice/frappe_bloomstack_core/apps/frappe/frappe/sessions.py", line 130, in get
	bootinfo = get_bootinfo()
File "/home/neha/Frappeoffice/frappe_bloomstack_core/apps/frappe/frappe/boot.py", line 73, in get_bootinfo
	bootinfo.versions = {k: v['version'] for k, v in get_versions().items()}
File "/home/neha/Frappeoffice/frappe_bloomstack_core/apps/frappe/frappe/utils/change_log.py", line 101, in get_versions
	"title": app_hooks.get("app_title")[0],
TypeError: 'NoneType' object is not subscriptable

Any help is highly appreciated

`bench update` fails with the error

Running bench update is giving following traceback:

Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/apps/frappe/frappe/utils/bench_helper.py", line 97, in <module>
    main()
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/env/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/env/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/env/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/env/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/env/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/env/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/env/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/apps/frappe/frappe/commands/__init__.py", line 25, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/apps/frappe/frappe/commands/site.py", line 235, in migrate
    migrate(context.verbose, rebuild_website=rebuild_website, skip_failing=skip_failing)
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/apps/frappe/frappe/migrate.py", line 54, in migrate
    sync_jobs()
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py", line 120, in sync_jobs
    insert_events(all_events, scheduler_events)
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py", line 130, in insert_events
    insert_event_list(events, event_type, all_events)
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py", line 142, in insert_event_list
    insert_single_event(frequency, event)
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py", line 150, in insert_single_event
    frequency = frequency
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/apps/frappe/frappe/model/document.py", line 248, in insert
    raise e
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/apps/frappe/frappe/model/document.py", line 245, in insert
    self.db_insert()
  File "/Users/jitendraharpalani/Jeet/workspace/bloomstack/apps/frappe/frappe/model/base_document.py", line 336, in db_insert
    raise frappe.DuplicateEntryError(self.doctype, self.name, e)
frappe.exceptions.DuplicateEntryError: ('Scheduled Job Type', 'contract.update_status_for_contracts', IntegrityError(1062, "Duplicate entry 'contract.update_status_for_contracts' for key 'PRIMARY'"))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.