ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

How to update from v10 to V11


#25

Hi @root13F, I’m facing the same issue. The versions are:

Installed Apps
ERPNext: v10.1.64 (master)
Frappe Framework: v11.0.3-beta.14 () (staging)

This is my test instance. It was Frappe v10 before. I switched the branch and stuff. I mean, I don’t see any changes ; I think , I need ERPNext v11 for updated features. How can I achieve that?

I’m also willing to start from scratch.

Thanks in advance.


#26

First it has been recommended that both your apps should be on the same branch i.e. master or staging. Also, one thing to note is v11 features have not yet been merged into master. SO to try them out you’ll have to switch to staging branch.

I recommend that If you are testing v11 then make a new site and try those changes there in your development server or PC. Then try bench switch-to-branch staging and bench update --patch to get it done.


#27

@root13F I’m trying to switch to staging branch; while switching ERPNext, it shows “Branch staging does not exist in Upstream for erpnext”

I’m following this

Master branch : v10
Staging branch : v11

If you want to switch to v11, goto your bench and run

Switch to staging branch
bench switch-to-branch staging frappe
bench switch-to-branch staging erpnext

Setup requirements
bench setup requirements

Migrate site
bench --site site-name migrate

Restart supervisor.
bench restart

Getting “Branch staging does not exist in Upstream for erpnext” in the 2nd step.


#28

@chdecultot How do I make sure to fetch all branches on upstream?

I can switch Frappe to staging but for ERPNext it says, doesn’t exist on upstream!


#29

Hi,

Refer to my solution here:


#30

Thanks @snv. I already did. Using the Staging now; testing. Getting errors after saving stuffs.

Hopefully a master version will be released soon.

Thanks again.


#31

Hi @fnrfarid,
@snv solution is the correct one.
If it’s still not working check the .git/config file directly in the erpnext folder.

If correctly configured (like in @snv post) you should be able to make a git fetch and fetch the staging branch.

It’s strictly a git issue, so maybe you can find some help by making some git tutorials or looking in Google in reference to the error generated by the git command.

Good luck! :blush:


#32

Sorry didn’t see your last message :hushed:

Maybe you can post your issues with the staging branch?
You may not be the only one facing these issues.


#33

as shown by @snv here


#34

getting the following error

any solution


#35

Change the line in git .config file as shown in post 19 of this thread. The text after fetch =
Then try again to migrate ERPNext


#36

tried it
made changes to erpnext git config file
image

but still giving me same error while trying to switch branch


#37

You need to edit it as below.

fetch = +refs/heads/:refs/remotes/upstream/
Ensure the characters are correct. Save the file and then use

bench switch-to-branch staging erpnext

use bench switch-to-branch staging frappe (if your frappe is still on Master)

bench setup requirements

bench --site site-name migrate

bench restart

Frappe and ERPNext should both be on Staging. Had the same issue till I fixed the config file. Since then now more problems. ignore npm if it throws any error.


#38

This is the entire config file
image
still no luck ,
can you share your config file please , it will help out a lot ,

thanks


#39

core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote “upstream”]
url = https://github.com/frappe/erpnext
fetch = +refs/heads/:refs/remotes/upstream/
[branch “master”]
remote = upstream
merge = refs/heads/master
[remote “origin”]
fetch = refs/heads/:refs/remotes/origin/
[branch “staging”]
remote = upstream
merge = refs/heads/staging

Installed Apps
ERPNext: v11.0.3-beta.24 () (staging)
Frappe Framework: v11.0.3-beta.29 () (staging)

Just realized that for some reason the * go missing in the code. So heres the picture of the code that should be there.

image


Migrate from v10 to v11, what do i miss?
#40

FWIW this may help to compare Switch branches in V11 [ cannot import name Database issue]


#41

I followed your procedure, not able to set erpnext to staging from master.


#42

it’s very difficult for the layperson to manage this… I’m sticking with Version 10 until a proper upgrade path exists.


Bench Update failing on Yarn install
#43

you should wait till the v11 actually comes to master. however you can try it on a test instance. and by instance I don’t mean a different server altogether. It can either be a different frappe-something folder (its called a bench instance) or on a different pc


#44

If you face yarn permission error run the below command

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

it solved my issue.


Problem upgrading from V10 to V11
Bench update v11 fails yarn issue