Error after bench update

Hi,

i got this error when running bench update
Running latest for 128.199.253.52

Traceback (most recent call last):
File “/home/sigma/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.1.0’, ‘console_scripts’, ‘frappe’)()
File “/home/sigma/frappe-bench/apps/frappe/frappe/cli.py”, line 40, in main
ret = run(fn, args)
File “/home/sigma/frappe-bench/apps/frappe/frappe/cli.py”, line 84, in run
out = globals().get(fn)(**args)
File “/home/sigma/frappe-bench/apps/frappe/frappe/cli.py”, line 68, in new_fn
return fn(*args, **new_kwargs)
File “/home/sigma/frappe-bench/apps/frappe/frappe/cli.py”, line 432, in latest
frappe.modules.patch_handler.run_all()
File “/home/sigma/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 23, in run_all
for patch in get_all_patches():
File “/home/sigma/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 35, in get_all_patches
patches.extend(frappe.get_file_items(frappe.get_pymodule_path(app, “patches.txt”)))
File “/home/sigma/frappe-bench/apps/frappe/frappe/init.py”, line 399, in get_pymodule_path
return os.path.join(os.path.dirname(get_module(scrub(modulename)).file), *joins)
File “/home/sigma/frappe-bench/apps/frappe/frappe/init.py”, line 379, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named manufacture_costing
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/sigma/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/sigma/bench-repo/bench/cli.py”, line 170, in update
patch_sites()
File “/home/sigma/bench-repo/bench/utils.py”, line 91, in patch_sites
exec_cmd("{frappe} --latest all".format(frappe=get_frappe(bench=bench)), cwd=os.path.join(bench, ‘sites’))
File “/home/sigma/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)

i think that error comes because the module that im created is not in erpnext right?
but the program now becomes Internal server error

please help

Thanks

Have you edited the patchlist?

patchlist ?
i dunno what did you mean…what file is that?

OKay, manufacture_costing doesn’t seem to be a file in erpnext / frappe repo. Did you write a custom app?

Yes, right… that was my custom app…
i dunno what was the problem but i think i need to exclude my custom app for being updated, but i dont know how

Can you share the repository of your custom app? Maybe something is wrong with it.

sure , i can even share the ssh password, but can i just PM you for that ?

How was this issue resolved? I am in exactly same problem now. :frowning:
Thanks,
Akarsh

Make another post with all details and traceback