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

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.

Thank you for your time and effort.

Hi Mosenturm, I am having this error on running ```
bench switch-to-branch version-13-beta frappe erpnext --upgrade

Fantastic! it worked with VM as well.

@Himanshu_Tewari Please could you give a little more insight on how you fixed this?

It’s been a while, but basically what I did was to print out delivery trip and sales order related to all delivery note and found that one of the delivery trip was missing out on delivery note. Idea is to clean up any linked related record for the missing entry.

Best
Himanshu

ref,

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

I am getting below error while updating using bench update --patch command

  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/erpnext/erpnext/regional/india/setup.py", line 15, in setup
    setup_company_independent_fixtures(patch=patch)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/erpnext/erpnext/regional/india/setup.py", line 24, in setup_company_independent_fixtures
    add_custom_roles_for_reports()
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/erpnext/erpnext/regional/india/setup.py", line 62, in add_custom_roles_for_reports
    dict(role='Accounts Manager')
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 231, in insert
    self._validate_links()
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py", line 816, in _validate_links
    frappe.LinkValidationError)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/__init__.py", line 424, in throw
    msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable, wide=wide, as_list=as_list)
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/__init__.py", line 403, in msgprint
    _raise_exception()
  File "/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/__init__.py", line 357, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.LinkValidationError: Could not find Report: E-Invoice Summary

after bench update i got this error:

frappe.exceptions.DoesNotExistError: DocType POS Invoice not found

how can resolve this?

not a recommended way but this is what i have tried.
first run
bench --site your.site migrate --skip-failing. It will take more than 2 mins. It will go through.
then
bench update --patch

1 Like

Solution:-

Hi,
I am facing below issue
attributeerror: ‘user’ object has no attribute ‘module profile’ at the time of migrate

due to this issue showing system is updating

can anyone help