Blank record after doing bench update

Hello,

I run # bench update in frappe-bench, the update goes well, no issue, then i clear the cache by # bench clear-cache

The issue i am facing, all Buying info not display correctly, more detail in attachments.

Please show me how to fix this.
Thank you.


bz


Check the console? CTRL + SHIFT + I

Seems like your JS is broke

Also are you on master or develop?

hi @bzero,
Use the bench-build after is it work fine,
else use the bench migrate.

Thanks

Thanks @vjFaLk @sagar

I tried them all, but still getting issue, please prefer the attached logs,

Browser console:

desk.min.js:7370 localStorage cleared
desk.min.js:7367 Cleared App Cache.
desk.min.js:7370 localStorage cleared
VM1092:14 Uncaught SyntaxError: Unexpected token %frappe.ui.form.ScriptManager.Class.extend.setup @ form.min.js:229_f.Frm.setup @ form.min.js:17_f.Frm.refresh @ form.min.js:56frappe.views.FormFactory.frappe.views.Factory.extend.load @ form.min.js:14(anonymous function) @ form.min.js:14frappe.call.callback @ desk.min.js:7867callback @ desk.min.js:7469statusCode.200 @ desk.min.js:7471(anonymous function) @ desk.min.js:7477j @ jquery.min.js:2k.fireWith @ jquery.min.js:2x @ jquery.min.js:4(anonymous function) @ jquery.min.js:4
form.min.js:331 Uncaught TypeError: Cannot read property ‘refresh’ of undefinedfrappe.ui.form.set_viewers @ form.min.js:331(anonymous function) @ form.min.js:10Emitter.emit @ desk.min.js:1500Socket.onevent @ desk.min.js:1044Socket.onpacket @ desk.min.js:1002(anonymous function) @ desk.min.js:1362Emitter.emit @ desk.min.js:1500Manager.ondecoded @ desk.min.js:560(anonymous function) @ desk.min.js:1362Emitter.emit @ desk.min.js:1500Decoder.add @ desk.min.js:6111Manager.ondata @ desk.min.js:550(anonymous function) @ desk.min.js:1362Emitter.emit @ desk.min.js:1500Socket.onPacket @ desk.min.js:2118(anonymous function) @ desk.min.js:1936Emitter.emit @ desk.min.js:1500Transport.onPacket @ desk.min.js:2543Transport.onData @ desk.min.js:2535ws.onmessage @ desk.min.js:3598

Terminal console:

mksimple@lab9:~/frappe-bench$ bench clear-cache
mksimple@lab9:~/frappe-bench$ bench migrate
Migrating trading.marketsimple.com
Updating frappe : [========================================]
Updating erpnext : [========================================]
mksimple@lab9:~/frappe-bench$ bench build
Wrote ./assets/js/print_format_v3.min.js - 18k
Wrote ./assets/js/frappe-web.min.js - 107k
Wrote ./assets/js/form.min.js - 123k
Wrote ./assets/js/report.min.js - 157k
Wrote ./assets/js/erpnext.min.js - 39k
Wrote ./assets/css/list.min.css - 6k
Wrote ./assets/js/erpnext-web.min.js - 1k
Wrote ./assets/css/report.min.css - 8k
Wrote ./assets/css/frappe-web.css - 55k
Wrote ./assets/js/list.min.js - 67k
Wrote ./assets/js/dialog.min.js - 59k
Wrote ./assets/js/desk.min.js - 1084k
Wrote ./assets/css/form.min.css - 2k
Wrote ./assets/js/editor.min.js - 26k
Wrote ./assets/css/erpnext.css - 2k
Wrote ./assets/css/desk.min.css - 259k
Wrote ./assets/css/module.min.css - 2k
mksimple@lab9:~/frappe-bench$ bench clear-cache

@bzero can you try bench watch

1 Like

@ramielian

The result shows as below,


@bzero and still the same problem ?
These are jq syntax errors, you might have to rebuild /re fetch your erp build…

Are you in development ?

Yes. Still with same issue.

How could i rebuild or re fetch?

How could i know that?

FYI, i installed the erpnext, production branch, follow the instruction here,

Then, i update by executing the command # bench update

Ok, first thing check for development mode or production:
Ssh> frappe-bench directory > sites > your site > site_config…

Is there develop_mode 1 or 0 or nothing ?

@ramielian
there is no develop_mode mentioned in that file, only db_name and db_password.

Ok, so you are in production mode, which should be stable…

Do: bench update --upgrade

Check for any errors in there

@ramielian
There is no error after executing that command, please see below for the result.
Unfortunately, the error is still there, the content doesn’t show in any PO.

mksimple@lab9:~/frappe-bench$ bench update --upgrade
remote: Counting objects: 40, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 40 (delta 31), reused 37 (delta 28), pack-reused 0
Unpacking objects: 100% (40/40), done.
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
cc6e39e…44b0dec develop → upstream/develop

  • [new tag] v6.27.14 → v6.27.14
    INFO:bench.utils:updating bench
    remote: Counting objects: 13, done.
    remote: Compressing objects: 100% (13/13), done.
    remote: Total 13 (delta 6), reused 0 (delta 0), pack-reused 0
    Unpacking objects: 100% (13/13), done.
    From GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps
    dbac79b…ca97764 develop → origin/develop
    Already up-to-date.
    Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
    INFO:bench.app:pulling frappe
    From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript
  • branch develop → FETCH_HEAD
    Updating cc6e39e…44b0dec
    Fast-forward
    frappe/version.py | 2 ±
    frappe/hooks.py | 2 ±
    frappe/public/build.json | 3 ++
    frappe/public/css/list.css | 8 +++++
    frappe/public/js/frappe/form/footer/timeline.js | 8 ++±-
    frappe/public/js/frappe/form/quick_entry.js | 2 ±
    frappe/public/js/frappe/list/doclistview.js | 19 ++++++++++++
    frappe/public/js/frappe/model/meta.js | 12 +++++±-
    frappe/public/js/frappe/ui/sort_selector.html | 19 ++++++++++++
    frappe/public/js/frappe/ui/sort_selector.js | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    frappe/public/less/list.less | 10 ++++++
    frappe/utils/response.py | 2 ±
    setup.py | 2 ±
    13 files changed, 209 insertions(+), 9 deletions(-)
    create mode 100644 frappe/public/js/frappe/ui/sort_selector.html
    create mode 100644 frappe/public/js/frappe/ui/sort_selector.js
    INFO:bench.app:pulling erpnext
    remote: Counting objects: 35, done.
    remote: Compressing objects: 100% (8/8), done.
    remote: Total 35 (delta 31), reused 31 (delta 27), pack-reused 0
    Unpacking objects: 100% (35/35), done.
    From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
  • branch develop → FETCH_HEAD
    621283c…68d428b develop → upstream/develop
    Updating 621283c…68d428b
    Fast-forward
    erpnext/version.py | 2 ±
    erpnext/hooks.py | 2 ±
    erpnext/manufacturing/doctype/production_planning_tool/production_planning_tool.py | 12 +++++±-----
    erpnext/projects/doctype/project/project.json | 9 ++++±—
    erpnext/stock/page/stock_balance/stock_balance.html | 21 ±-------------------
    erpnext/stock/page/stock_balance/stock_balance.js | 39 ++++++++++++++++++±-------------------
    setup.py | 2 ±
    7 files changed, 34 insertions(+), 53 deletions(-)
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    Migrating trading.marketsimple.com
    Updating frappe : [========================================]
    Updating erpnext : [========================================]
    Wrote ./assets/js/print_format_v3.min.js - 18k
    Wrote ./assets/js/frappe-web.min.js - 107k
    Wrote ./assets/js/form.min.js - 123k
    Wrote ./assets/js/report.min.js - 157k
    Wrote ./assets/js/erpnext.min.js - 39k
    Wrote ./assets/css/list.min.css - 6k
    Wrote ./assets/js/erpnext-web.min.js - 1k
    Wrote ./assets/css/report.min.css - 8k
    Wrote ./assets/css/frappe-web.css - 55k
    Wrote ./assets/js/list.min.js - 68k
    Wrote ./assets/js/dialog.min.js - 59k
    Wrote ./assets/js/desk.min.js - 1087k
    Wrote ./assets/css/form.min.css - 2k
    Wrote ./assets/js/editor.min.js - 26k
    Wrote ./assets/css/erpnext.css - 2k
    Wrote ./assets/css/desk.min.css - 259k
    Wrote ./assets/css/module.min.css - 2k
    [sudo] password for mksimple:
    frappe-bench-frappe-async-worker: stopped
    frappe-bench-frappe-longjob-worker: stopped
    frappe-bench-frappe-workerbeat: stopped
    frappe-bench-frappe-web: stopped
    frappe-bench-frappe-worker: stopped
    frappe-bench-node-socketio: stopped
    frappe-bench-frappe-async-worker: started
    frappe-bench-frappe-longjob-worker: started
    frappe-bench-frappe-workerbeat: started
    frappe-bench-frappe-web: started
    frappe-bench-frappe-worker: started
    frappe-bench-node-socketio: started

Bench: Open source installer + admin for Frappe and ERPNext (https://erpnext.com)

Please do bench clear-cache
If you can restart your server

Is it only on po or everywhere ?

@ramielian
I did # bench clear-cache, but still not work.
This issue is happening to “Selling”, “Buying” while the Manufacturing - BOM is still working normally.

What browser are you using ?
There is jq function as I recall called refresh its triggered on onload to load the data, did you make any modifications ? Custom scripts ? Added jq js or python?

1 Like

@ramielian[quote=“ramielian, post:15, topic:11997”]
What browser are you using ?
[/quote]
i am using Chrome.

No i did nothing on script custom, except update # bench update

Am afraid more than this I cannot help, have to see by my self to diagnose it

1 Like

Hi,

This is the same issue we are facing here Email Issues After Latest Update - #15 by betabrain

Tried all of this things and still black documents. If anyone want to jump into our system to debug it, we are more than happy to grant you access.

Nathan

1 Like

I am also getting the same problem. I have tried it with both Chrome and Firefox. The message on the console of the browser is : VM169:12 Uncaught SyntaxError: Unexpected token %.
Kindly help to resolve.

-Amit

One more thing, i deleted all existing PO and Invoice, and creating again, but it’s still failed, blank content in “New Material Request”, please refer console error is attached below (couldn’t attach the image, cause the file is over 100Kb):

BOM works normally, no error.