Update causes "Internal Server Error"

Hello,

I am running a single ERPNext instance following this guide: https://github.com/frappe/frappe_docker/blob/main/docs/single-server-example.md

FRAPPE_VERSION: 13.30.0
ERPNEXT_VERSION: 13.31.0

This is working fine right now and we have just added some basic data to investigate in the system at all.

The whole setup is exposed to the internet via a Hetzner CLoud Server with a Docker Setup (version 20.10.16).

I have tried several times now to update the instance by changing environment variables (basically ERPNEXT and FRAPPE versions) and running the compose commands to build the yaml file and starting the docker instance as indicated in the guide mentioned above.

Both commands run quickly and without errors. Once I open ERPNext it only shows “Internal Server Error” in the browser. I have tried restarting and cache deleting but this did not help.

Luckily I just can change back to the initla ERPNEXT adn FRAPPE versions and ERPNext is running fine then.

Is there anything I miss during my update process that causes the “Internal Server Error”-message?

Thanks for sharing some ideas and insights.

Have a great day,
Oliver

are you just changing the version tags and updating?
that will only update the application code. You need to migrate the sites using bench --site {sitename} migrate. This will migrate your sites. Only thing with this is you won’t be able to go back to old version after migration. only way to go back is restore a backup taken before update.

I recommend:

  • backup db, files, site_config.
  • clone the setup and migrate the clone first. Patches failing might lock you.
  • if migration is successful on clone, migrate on production.
  • Don’t migrate if it fails, report issue.
1 Like

I indeed just updated the version tags and was not aware I have to migrate. It worked so far and I thank you so much for your help here, Revant.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.