I have tried all possible solutions related to this topics, but unfortunately, I cannot find the solution in my case. most of all the services are Active and running well, I executed the following commands to check,
sudo service mariadb status
sudo service mysql status
sudo service nginx status
redis-cli ping
No error in response to all the above commands and shows running in green.
I reinstalled the Nginx server using following commands
nginx removed and reinstalled I can access other sides.
tried bench commands to refresh using the following command
bench migrate
bench --site all clear-cache
sudo supervisorctl reload
sudo service nginx restart
all above result was normal and no error.
additionally, checked the database name+pwd in the site .config file which is fine to access the database from the command prompt it returns SQL Queries results perfectly.
but still getting the same error: Internal Server Error.
seems like everything is working well but the website is giving this error. I cannot understand the reason not sure if the files get corrupted while restarting the services or what else to do? How can I resolve this error please?
It may help to say the operating environment, versions of Frappe and any apps, and whether this is a new installation or one that was working and the problem arose after some changes.
Now when trying to migrate the site itβs getting stuck in the DB connection. shows βConnected to site DBβ but not moving on, after long waiting time, I broke the process and βbench migrateβ is not finishing. seems like DB connection problem but not sure
I would suggest that whenever this error occurs, check the following list.
If restoring backup, ensure all the apps are installed and the site_config file covers all the settings/json/keys from the source.
This error may appear when Nginx Configuration is not correct, make sure nginx entries are correct in β/etc/nginx/conf.d/{YourSite.config}β file to ensure everything is fine run this command and nginx shouldnβt return any error. βsudo service nginx restartβ
Ensure database connection and database name in config file for the site. βbench --site {yousite} mariadbβ
Migrate/build your site βbench --site {yoursite} migrateβ and βbench buildβ
check log files βbench logsβ
Build and migrate the site. βbench buildβ or βbench migrateβ
@ashaseeb
Today I had power failure . After that I am getting " Internal Server Error "
We are using ERPNEXT v 12.7 , On Virtual Box .
I have read the detailed procedure given by you .
I am weak in executing these commands for first time . Is it possible to take remote and see once .
I am using Oracle VirtualBox 5.x in that ubuntu 18.04 ,
This version installed in year 2021 , I have downloaded the ERPNEXTprocuction.ova file , this file was found on ERPNEXT site link . Is this ova file having restrictions , I want to know .
Now we want to upgrade to version 15 . as this version 12 is not having email and whatsapp message , lot of features .
Pls adv
Thanks and Regards
Nagaraja
Before trying to upgrade this installation, if possible clone the VM and operate on the close so that the original remains. If things go badly you will be able to start over with another clone.
Trying to restore a backup to a VM created from a .ova of a newer version is not likely to succeed. You will have to go through the steps of upgrading Ubuntu , the dependencies and then switch to versions 13,14 then 15 in turn.