hey, I want to say i tried your script and it is working great, after i failed with the regis port 11000 and 6379 error, and couldn’t fix it despite searching and trying… your script works!
I have 3 questions:
1- SSL/Let’s Encrypt. If I have a Asus router which because of my dynamic IP address, and uses a DDNS such as username.asuscomm.com , will SSL works if it redirects to a private IP 192.168.1.222 through router port forward using port 80? If yes, what should i write in the email and site?
2- Can you let us how we can add through your script the automate install of selective apps: HMRS, HEALTH, POSAWESOME,EDUCATION,PAYMENTS? or you can allow us to install for example 0 disable, 1 enable, etc…
3- during the process, is a username frappe created for bench? or ERPnext/bench commands should be executed with the custom username of ubuntu created before running the script?
I think your script is marvelous! thanks for your time!
Hello, I have a question how do i use your script to create the SSL later on (after its was finish) ?
Because i have a client where i need to start development but i don’t have access to the domain name !
Thanks you for script, it’s a time saver !
The easiest way i can tell you is to try to setup SSL when using the script to install even though you don’t have the domain pointed yet. Sure it will fail but the necessary packages for SSL activation would have been installed. Once you have the domain name set up and resolving to the server, all you need do is login to the server via ssh and run
sudo certbot --nginx
and follow the on-screen instructions to attempt the SSL activation. if your domain is resolving to the server then the SSL installation should be successful this time.
@girumtibebu That’s work in progress. trying to develop a bench manager for deploying ERPNext to remote VPS. Still very much in the early stages of development so i don’t recommend trying it out yet.
That’s great!. I was planning to automate the deployment and maintainance of installations too much like bench manager.
Do you think setting up frappe cloud just to manage a couple of erpnext sites is an over kill? currently we use two erpnext sites internally for two of our compaines. but maintaining takes time going to cli everytime.
Yes it is. There’s a kernel update on Ubuntu 22.04 that always shows up at the point of installing bench which requires a system reboot which will effectively truncate the install process. so best to get that out of the way by updating and rebooting before initiating the install process.
Newer kernel available
│
│ The currently running kernel version is 5.15.0-82-generic which is not
│ the expected kernel version 5.15.0-87-generic.
│
│ Restarting the system to load the new kernel will not be handled
│ automatically, so you should consider rebooting.
ERROR: There was a problem while creating frappe-bench
Do you want to rollback these changes? [y/N]: y
INFO: Rolling back Bench “frappe-bench”
Bench installation complete!
And the second error which occured while frappe was being installed seems to have been as a result of the first error. pip is a mandatory dependency package used by frappe.
To repeat the steps, go to your frappe bench directory, and drop the created site. use --force flag to ensure the site is completely removed. next return to your home directory and delete the frappe bench directory created. re-run the script afterwards and it will skim through all dependency and package installation and re-initiate bench installation. if there are no network interruptions then it will install successfully.
There was failure, but as it give a number of tries (around 4) and for these two instances it was able to download the reuired packeges before all tries were exhausted.
As I roll backed, as per following:
because frappe bench was not installed, so there was not scope of site creation.
so I need to execute script again.
02:14:52 watch.1 | Please update your node version to 18
02:14:52 watch.1 |
02:14:59 watch.1 | yarn run v1.22.19
02:15:01 watch.1 | error frappe-framework@: The engine “node” is incompati
ble with this module. Expected version “>=18”. Got “12.22.9”
02:15:01 watch.1 | error Commands cannot run with an incompatible environm
Thanks for the awesome installation script. Fantastic work!
I’m installing ERPNext 15 in LXD on Ubuntu 22.04. All went well until I had to answer the following question:
Would you like to continue with production install? (yes/no)
Response: y
bash: erpnext_install.sh: line 375: syntax error near unexpected token `&&'
bash: erpnext_install.sh: line 375: ` && \'
Then the script stops. I re-run it today, but it stops at the same point. Even if I do the steps mentioned at “Note” on the GitHub page.
@ste_885932BDX This is a known bug that has been fixed. Please run git pull in the repo home directory to pull the latest commit and try again. If the script has already created the site, please go to the frappe-bench directory and run bench drop-site [your-site-name] and then go to your user’s home directory and remove the frappe-bench directory by running sudo rm -r frappe-bench. You can then re-run the script once you’ve pulled the latest commit.
Ensure you use exactly the same DB password you supplied the first time if you re-run the script on the same machine without resetting the OS otherwise mariadb will return permission error as it has already been initialized.
@flexy2ky Thanks for the quick reply. It worked as you described.
ERPNext 15 is installed and the Login page loads, but without any CSS or JS files loaded, as they all end with a 404 not found error. I could see the files, they do exist. Though, I guess that has to do with some nginx settings in frappe bench. I’ll take a look into this later.