Try ERPNext Buy Support Partners Foundation

500 Internal Server Error on Login Page after Migrating ERPNEXT Data from Old server

Installed fresh Bitnami ERPNEXT ver. 12 image on AWS server t3a.medium instance.
After Installation completion OK.
used code
“sudo bench restore /home/bitnami/filename.sql” to restore Old data…No errors on restoration…
copied Public and Private files using Filezilla FTP.

On visiting site via. IP. Welcome page is visible…
On pressing LOGIN…getting Internal server error 500…

Bitnami community suggested extra steps are needed to migrate data. Below error from debug-error-apache

[Sun Aug 23 12:56:55.051637 2020] [wsgi:error] [pid 4142] [remote 103.218.168.10:62308] File “/opt/bitnami/python/lib/python3.7/importlib/init.py”, line 127, in import_module
[Sun Aug 23 12:56:55.051641 2020] [wsgi:error] [pid 4142] [remote 103.218.168.10:62308] return _bootstrap._gcd_import(name[level:], package, level)
[Sun Aug 23 12:56:55.051647 2020] [wsgi:error] [pid 4142] [remote 103.218.168.10:62308] File “”, line 1006, in _gcd_import
[Sun Aug 23 12:56:55.051658 2020] [wsgi:error] [pid 4142] [remote 103.218.168.10:62308] File “”, line 983, in _find_and_load
[Sun Aug 23 12:56:55.051665 2020] [wsgi:error] [pid 4142] [remote 103.218.168.10:62308] File “”, line 965, in _find_and_load_unlocked
[Sun Aug 23 12:56:55.051678 2020] [wsgi:error] [pid 4142] [remote 103.218.168.10:62308] ModuleNotFoundError: No module named ‘erpnext_support’

please help.

Try bench migrate

1 Like

@sanjay thanks… Following chain of commands resulted in smooth migration…

sudo bench update
sudo bench restore [Path & sql filename]
#after completion
sudo bench migrate
got error
`Could not find app “erpnext_support”
Run the below command multiple times for all errors and app references. thanks to @rmehta for this code.

sudo bench --site [sitename] remove-from-installed-apps [app reference]

Completed migrate…

Website login screen OK…

ERROR
ERROR 503: Your system is being updated. Please refresh again after a few moments

#edit common_site_config.json
sudo nano /frappe-bench/sites/common_site_config.json
#find “maintenance_mode”
Change value = 0

save file…
restart all services…