Try ERPNext Try Frappe Cloud Buy Support Partners Foundation

I want to update my erpnext from Version 12 to erpnext Version 13

Can I update ERP or I need to uninstall version 12 and install version 13?

If I need install version13 newly, how can I save my database in ERPNext Version 12?

1 Like

@eraakash this is a community forum, all of us will appreciate more if you try to help than advertising your services. There are other better means to advertise yourself and your services

3 Likes

To answer your question @Khang_Le, version 13 is not officially released yet so it is not recommended to install it in production. But if you want to try it out as a test setup, while doing bench init you can mention the version number as version-13-beta or develop.

https://github.com/frappe/bench refer this link for a more detailed setup instructions. Docker is also a good way to setup your test/dev environment quickly

2 Likes

Hi,

with following steps I had a successfull update from 12 to 13:

# update
cd ~/frappe-bench
bench update
 
# update to major release ex. v12 --> v13
# nodejs >= 10 required
cd ~
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
nodejs -v
 
# now upgrade
cd ~/frappe-bench
bench switch-to-branch version-13-beta frappe erpnext --upgrade
bench update --patch
bench migrate
bench update --build
20 Likes

I set up efficaciously at the digital container in home windows 10.it really works quality in localhost however I need to get admission to net url.Please make a devoted video for this. I suppose now no longer to be had right answers at the internet. Can you men make a dialogue on a way to make the SSL reference to the url?

Hi @mosenturm , I am getting below error ,

Executing erpnext.patches.v12_0.set_purchase_receipt_delivery_note_detail in demo.xxxxx.com (xxxxx)
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/srv/bench/erp12temp/apps/frappe/frappe/utils/bench_helper.py”, line 99, in
main()
File “/srv/bench/erp12temp/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/srv/bench/erp12temp/env/lib/python3.6/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/srv/bench/erp12temp/env/lib/python3.6/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/srv/bench/erp12temp/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/srv/bench/erp12temp/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/srv/bench/erp12temp/env/lib/python3.6/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/srv/bench/erp12temp/env/lib/python3.6/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/srv/bench/erp12temp/env/lib/python3.6/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/srv/bench/erp12temp/apps/frappe/frappe/commands/init.py”, line 26, in func
ret = f(frappe.dict(ctx.obj), *args, **kwargs)
File “/srv/bench/erp12temp/apps/frappe/frappe/commands/site.py”, line 265, in migrate
migrate(context.verbose, rebuild_website=rebuild_website, skip_failing=skip_failing)
File “/srv/bench/erp12temp/apps/frappe/frappe/migrate.py”, line 67, in migrate
frappe.modules.patch_handler.run_all(skip_failing)
File “/srv/bench/erp12temp/apps/frappe/frappe/modules/patch_handler.py”, line 41, in run_all
run_patch(patch)
File “/srv/bench/erp12temp/apps/frappe/frappe/modules/patch_handler.py”, line 30, in run_patch
if not run_single(patchmodule = patch):
File “/srv/bench/erp12temp/apps/frappe/frappe/modules/patch_handler.py”, line 71, in run_single
return execute_patch(patchmodule, method, methodargs)
File “/srv/bench/erp12temp/apps/frappe/frappe/modules/patch_handler.py”, line 91, in execute_patch
frappe.get_attr(patchmodule.split()[0] + “.execute”)()
File “/srv/bench/erp12temp/apps/erpnext/erpnext/patches/v12_0/set_purchase_receipt_delivery_note_detail.py”, line 91, in execute
set_document_detail_in_return_document(“Delivery Note”)
File “/srv/bench/erp12temp/apps/erpnext/erpnext/patches/v12_0/set_purchase_receipt_delivery_note_detail.py”, line 71, in set_document_detail_in_return_document
doc_items = frappe.get_cached_doc(doctype, docname).get(“items”)
File “/srv/bench/erp12temp/apps/frappe/frappe/init.py”, line 728, in get_cached_doc
doc = get_doc(*args, **kwargs)
File “/srv/bench/erp12temp/apps/frappe/frappe/init.py”, line 771, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
File “/srv/bench/erp12temp/apps/frappe/frappe/model/document.py”, line 71, in get_doc
return controller(*args, **kwargs)
File “/srv/bench/erp12temp/apps/erpnext/erpnext/stock/doctype/delivery_note/delivery_note.py”, line 25, in init
super(DeliveryNote, self).init(*args, **kwargs)
File “/srv/bench/erp12temp/apps/erpnext/erpnext/controllers/accounts_controller.py”, line 29, in init
super(AccountsController, self).init(*args, **kwargs)
File “/srv/bench/erp12temp/apps/frappe/frappe/model/document.py”, line 106, in init
self.load_from_db()
File “/srv/bench/erp12temp/apps/frappe/frappe/model/document.py”, line 149, in load_from_db
frappe.throw(
("{0} {1} not found").format(
(self.doctype), self.name), frappe.DoesNotExistError)
File “/srv/bench/erp12temp/apps/frappe/frappe/init.py”, line 396, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’, is_minimizable=is_minimizable)
File “/srv/bench/erp12temp/apps/frappe/frappe/init.py”, line 375, in msgprint
_raise_exception()
File “/srv/bench/erp12temp/apps/frappe/frappe/init.py”, line 326, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.DoesNotExistError: Delivery Note not found

thank you

updated success to v13 but when bench build we have new problems:

bench build
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: ‘run’

How can we solve this? thank you

This was related to some junk test entry for which delivery note did not exist. Removed related transaction and problem resolved. Thanks

after upgading, once i do bench start i am facing the following error

14:28:43 system | redis_socketio.1 started (pid=15792)
14:28:43 redis_socketio.1 | 15795:C 28 Aug 14:28:43.912 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
14:28:43 redis_socketio.1 | 15795:C 28 Aug 14:28:43.912 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=15795, just started
14:28:43 redis_socketio.1 | 15795:C 28 Aug 14:28:43.912 # Configuration loaded
14:28:43 redis_socketio.1 | 15795:M 28 Aug 14:28:43.913 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
14:28:43 redis_socketio.1 | 15795:M 28 Aug 14:28:43.913 # Server can’t set maximum open files to 10032 because of OS error: Operation not permitted.
14:28:43 redis_socketio.1 | 15795:M 28 Aug 14:28:43.913 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase ‘ulimit -n’.
14:28:43 redis_socketio.1 | 15795:M 28 Aug 14:28:43.913 # Creating Server TCP listening socket 127.0.0.1:12000: bind: Address already in use
14:28:43 system | redis_socketio.1 stopped (rc=1)
14:28:43 system | worker_long.1 started (pid=15797)
14:28:43 system | redis_queue.1 started (pid=15803)
14:28:43 redis_queue.1 | 15806:C 28 Aug 14:28:43.924 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
14:28:43 system | worker_default.1 started (pid=15802)
14:28:43 system | schedule.1 started (pid=15804)
14:28:43 redis_queue.1 | 15806:C 28 Aug 14:28:43.924 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=15806, just started
14:28:43 redis_queue.1 | 15806:C 28 Aug 14:28:43.925 # Configuration loaded
14:28:43 redis_queue.1 | 15806:M 28 Aug 14:28:43.926 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
14:28:43 redis_queue.1 | 15806:M 28 Aug 14:28:43.926 # Server can’t set maximum open files to 10032 because of OS error: Operation not permitted.
14:28:43 redis_queue.1 | 15806:M 28 Aug 14:28:43.926 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase ‘ulimit -n’.
14:28:43 redis_queue.1 | 15806:M 28 Aug 14:28:43.926 # Creating Server TCP listening socket 127.0.0.1:11000: bind: Address already in use
14:28:43 system | redis_queue.1 stopped (rc=1)
14:28:44 system | web.1 started (pid=15805)
14:28:44 system | watch.1 started (pid=15801)
14:28:44 system | redis_cache.1 started (pid=15819)
14:28:44 redis_cache.1 | 15827:C 28 Aug 14:28:44.012 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
14:28:44 redis_cache.1 | 15827:C 28 Aug 14:28:44.012 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=15827, just started
14:28:44 redis_cache.1 | 15827:C 28 Aug 14:28:44.012 # Configuration loaded
14:28:44 redis_cache.1 | 15827:M 28 Aug 14:28:44.015 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
14:28:44 redis_cache.1 | 15827:M 28 Aug 14:28:44.015 # Server can’t set maximum open files to 10032 because of OS error: Operation not permitted.
14:28:44 redis_cache.1 | 15827:M 28 Aug 14:28:44.015 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase ‘ulimit -n’.
14:28:44 redis_cache.1 | 15827:M 28 Aug 14:28:44.015 # Creating Server TCP listening socket 127.0.0.1:13000: bind: Address already in use
14:28:44 system | redis_cache.1 stopped (rc=1)
14:28:44 system | worker_short.1 started (pid=15814)
14:28:44 system | socketio.1 started (pid=15820)
14:28:44 system | sending SIGTERM to worker_long.1 (pid 15797)
14:28:44 system | sending SIGTERM to watch.1 (pid 15801)
14:28:44 system | sending SIGTERM to web.1 (pid 15805)
14:28:44 system | sending SIGTERM to schedule.1 (pid 15804)
14:28:44 system | sending SIGTERM to worker_default.1 (pid 15802)
14:28:44 system | sending SIGTERM to socketio.1 (pid 15820)
14:28:44 system | sending SIGTERM to worker_short.1 (pid 15814)
14:28:44 system | worker_default.1 stopped (rc=-15)
14:28:44 system | schedule.1 stopped (rc=-15)
14:28:44 system | worker_short.1 stopped (rc=-15)
14:28:44 system | watch.1 stopped (rc=-15)
14:28:44 system | worker_long.1 stopped (rc=-15)
14:28:44 system | web.1 stopped (rc=-15)
14:28:44 system | socketio.1 stopped (rc=-15)

Probably you need to stop whatever is squatting in port 3000.

PS. In future please use code formatting. It’s the </> button in the editor tool bar. Really not difficult.

i entered the following command in terminal sudo supervisorctl stop all
and then entered bench start then i face same error

Sorry, I misread your last message.
Yes: this is a valid sequence of steps

supervisorctl stop all;
bench start;

can you help me out with the command

Have you tried rebooting?

Do you see something like this…

erpdev@loso:~$ lsof -i :13000
COMMAND    PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
redis-ser 1361 erpdev    6u  IPv4  28443      0t0  TCP localhost:13000 (LISTEN)
redis-ser 1361 erpdev    7u  IPv4  28907      0t0  TCP localhost:13000->localhost:37912 (ESTABLISHED)
redis-ser 1361 erpdev    8u  IPv4  28923      0t0  TCP localhost:13000->localhost:37920 (ESTABLISHED)
redis-ser 1361 erpdev    9u  IPv4  28943      0t0  TCP localhost:13000->localhost:37932 (ESTABLISHED)
redis-ser 1361 erpdev   10u  IPv4  28965      0t0  TCP localhost:13000->localhost:37944 (ESTABLISHED)
python    1370 erpdev    3u  IPv4  28922      0t0  TCP localhost:37920->localhost:13000 (ESTABLISHED)
gunicorn  1416 erpdev   10u  IPv4  28964      0t0  TCP localhost:37944->localhost:13000 (ESTABLISHED)
gunicorn  1417 erpdev   10u  IPv4  28942      0t0  TCP localhost:37932->localhost:13000 (ESTABLISHED)
gunicorn  1418 erpdev   10u  IPv4  28906      0t0  TCP localhost:37912->localhost:13000 (ESTABLISHED)
erpdev@loso:~$ sudo supervisorctl stop all;
frappe-bench-redis:frappe-bench-redis-cache: stopped
frappe-bench-redis:frappe-bench-redis-queue: stopped
frappe-bench-redis:frappe-bench-redis-socketio: stopped
frappe-bench-einvoice_svc: stopped
frappe-bench-web:frappe-bench-node-socketio: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: stopped
frappe-bench-workers:frappe-bench-frappe-default-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
frappe-bench-web:frappe-bench-frappe-web: stopped
erpdev@loso:~$ lsof -i :13000
erpdev@loso:~$ 
erpdev@loso:~$ sudo supervisorctl restart all;
frappe-bench-einvoice_svc: started
frappe-bench-redis:frappe-bench-redis-cache: started
frappe-bench-redis:frappe-bench-redis-queue: started
frappe-bench-redis:frappe-bench-redis-socketio: started
frappe-bench-web:frappe-bench-frappe-web: started
frappe-bench-web:frappe-bench-node-socketio: started
frappe-bench-workers:frappe-bench-frappe-schedule: started
frappe-bench-workers:frappe-bench-frappe-default-worker-0: started
frappe-bench-workers:frappe-bench-frappe-short-worker-0: started
frappe-bench-workers:frappe-bench-frappe-long-worker-0: started
erpdev@loso:~$ 

rakesh@rakesh-VirtualBox:~$ lsof -i:13000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
redis-ser 2602 rakesh 6u IPv4 31833 0t0 TCP localhost:13000 (LISTEN)
redis-ser 2602 rakesh 7u IPv4 37402 0t0 TCP localhost:13000->localhost:42798 (ESTABLISHED)
redis-ser 2602 rakesh 8u IPv4 38644 0t0 TCP localhost:13000->localhost:42836 (ESTABLISHED)
redis-ser 2602 rakesh 9u IPv4 40677 0t0 TCP localhost:13000->localhost:43640 (ESTABLISHED)
redis-ser 2602 rakesh 10u IPv4 39430 0t0 TCP localhost:13000->localhost:43670 (ESTABLISHED)
redis-ser 2602 rakesh 11u IPv4 38923 0t0 TCP localhost:13000->localhost:42870 (ESTABLISHED)
redis-ser 2602 rakesh 12u IPv4 39432 0t0 TCP localhost:13000->localhost:43674 (ESTABLISHED)
redis-ser 2602 rakesh 13u IPv4 44051 0t0 TCP localhost:13000->localhost:44092 (ESTABLISHED)
python 2620 rakesh 4u IPv4 38643 0t0 TCP localhost:42836->localhost:13000 (ESTABLISHED)
python 2712 rakesh 9u IPv4 38270 0t0 TCP localhost:42798->localhost:13000 (ESTABLISHED)
python 2712 rakesh 16u IPv4 38922 0t0 TCP localhost:42870->localhost:13000 (ESTABLISHED)
python 2712 rakesh 20u IPv4 39370 0t0 TCP localhost:43640->localhost:13000 (ESTABLISHED)
python 2712 rakesh 22u IPv4 39429 0t0 TCP localhost:43670->localhost:13000 (ESTABLISHED)
python 2712 rakesh 25u IPv4 40726 0t0 TCP localhost:43674->localhost:13000 (ESTABLISHED)
python 2712 rakesh 27u IPv4 44050 0t0 TCP localhost:44092->localhost:13000 (ESTABLISHED)

awsome, after executing this commands ,once after the reboot it is working fine, thanks @MartinHBramwell

Oh cool!
:beers:

Thanks for the info and your time.