[v12] Null module names on Desk

I guess it have something about bench update

I did bench clear-cache on /frappe/frappe-bench, checked the swap file, with free -m, and trying to bench update again.

Aparentely, I’m stuck again on Built css/frappe-web.css

running $bench version gives the following-

erpnext 11.1.48
frappe 12.0.0

Looks like $bench update is only updating frappe and not the apps (erpnext in this case).

1 Like

maybe reinstall erpnext?

That’s the last resort but I’m not sure if that’s a good idea with a production system.

Yeah, erpnext should also be on v12 for the module names to show up.

1 Like

How to do that? I thought $bench update will take care of updating both frappe and erpnext. Is it because the branch master has been deprecated? I installed erpnext from the master branch when setting up the whole system.

the problem was that erpnext won’t upgrade to the version 12, only frappe was update.
To upgrade erpnext to version 12 i follow this steps.

  1. first go to: cd / home/frappe/frappe-bench/apps/frappe
    and run:
    git config remote.upstream.fetch “+refs/heads/:refs/remotes/upstream/
    git fetch upstream
  2. cd / home/frappe/frappe-bench/apps/erpnext
    and run:
    git config remote.upstream.fetch “+refs/heads/:refs/remotes/upstream/
    git fetch upstream
  3. After this go to
    cd / home/frappe/frappe-bench/
    bench switch-to-branch version-12 --upgrade
    bench update --patch
4 Likes

I copy pasted your code, but get
fatal: Invalid refspec ‘“+refs/heads/:refs”’

I am assuming because +ref or :ref should be replaced with something. What I’m not sure what.

Any help? Thanks!

That pasting/preformatting problem will ruin lots of systems guys!

Just check the few initial lines when you update. The correct code sythax is written there. While posting here, some characters get either truncated or changed so the command you run do not work and some functions do not return any error message leaving you to think you have successfully ran the code.

I think it doesn’t have version-12 for frappe.

I do switch to develop first and switch to version-12 after and it’s working

here is correct syntax

1 Like

Also note that bench update --patch fails if erpnext is on wrong branch.

For me, what made all the difference was to stash changes in the erpnext folder (frappe-bench/apps/erpnext), I actually made no changes, but well, that was it. so try:

git config --global user.email ="your email"

then

git config --global user.name ="your email or name"

then

``git stash```

then

bench switch-to-branch version-12 --upgrade

all goes well, then

bench update --patch works.

3 Likes

didn’t Work
/home/frappe/frappe-bench# bench update --patch
master branch is renamed to version-11 and develop to version-12. Please switch to new branches to get future updates.

To switch to version 11, run the following commands: bench switch-to-branch version-11

keep getting this again and again

1 Like

This WORKS LIKE A CHARM!!! Thank you…!!! :laughing::heart_eyes:

It WORKS! Thanksssss

Thanks, great to know you have a clean run. Nice!

Please post the error you are getting if this is still on, so we can help.

Thanks Noetico. Your approach solved my problem

No problem, glad you beat the scare… we’ve all been there, least we can do for each other.