I was trying to set this up on an Ubuntu EC2 instance and everything worked just fine. However, when I go onto my public IP on port 80, it shows the error "No module named 'erpnext' " along with a bunch of traceback error calls. I am running python 3.10.6 and also tried using bench setup requirements to upgrade any dependencies but it does not seem to work. Could you help with this?
@sinupeniel Did you start the bench before doing this? If not then - cd to frapp-bench and then run the command bench start. This should setup a redis server and other dependencies. Do not close this terminal. Open a new terminal and then run the bench new-site test1.loc.
If you’re running the commands as root user then you can skip adding sudo. But remember at some point you will need to switch to the non-root user to avoid permission issues when you get to the part of installing Frappe apps.
The command is with dash
You can use apt for installing packages but there are some packages you need to install with pip3 and these are Frappe-specific packages
Yes and this is VERY IMPORTANT to avoid permission issues. The frappe user here refers to a non-root user with sudo permissions. As soon as actual frappe app installation starts, you abandon sudo altogether.
Lastly, you can use the no-interactive script mentioned in my earlier reply to install the app if you’re facing challenges with the manual method. You can install development or production with the script with minimal inputs.
This error is pretty new but it appears to be harmless at this point as a few have reported no adverse effect to ignoring the error and continuing with the installation. However, if you wish to avoid this error in future install, run the following command just before creating your site and installing ERPNext in the site:
sudo sed -i '/port 6379/a port 11000' /etc/redis/redis.conf
sudo service redis-server restart
This will add the required port to your Redis Server config. Once your site installation is complete and ERPNext is installed, run this command to remove it as it doesn’t seem to be needed afterwards and can even throw errors when installing other apps:
sudo sed -i '/port 11000/d' /etc/redis/redis.conf
sudo service redis-server restart
Hope this helps.
NB: You can use the auto install script mentioned above if you’re having difficulties with manual installation as the script also handles this error as well as helping you install ERPNext with minimal effort.
after successful installation I found the Nginx server is stopping and resuming randomly, and when it stops I use $bench setup nginx, and it starts working okay,
while I can’t access it, when I see the status of the services, I found everything working okay $sudo supervisorctl
Hi I am trying to install erpnext 14 on ubuntu in azure Vm and having some issues while creating a new site can anyone please help me with this reach out to me 9182466041
@shashank_shirke , you are one of the awesomest guy i’ve met here. thanks for sharing this. I’m a python guy who is starting to love the erpnext and your steps are a big help for me.