flexcomng / erpnext_quick_install

Unattended install script for ERPNext Versions, 13, 14 and 15
MIT License
165 stars 127 forks source link

Installer exits after entering Administrator password #20

Closed noetico closed 3 months ago

noetico commented 4 months ago

I've just come across this fine script. I noticed an issue trying to use this in Ubuntu and Debian; at the point where you insert the admin user passwords; the script causes Putty to exit immediately with no warnings. There are no error messages but it happens after you enter the site name and admin password.

Rebaz-balisani commented 4 months ago

i have the same issue and i have informed them on discus session. I have the same issue on contabo vps and local vmware as well

flexcomng commented 4 months ago

I am unable to replicate this issue as i have tested on ubuntu 22.04 and 24.04 installing version 15. So it would help if you could share the exact error you're getting by sharing your OS version and the ERPNext version you're trying to install. Because the script is a bash script, it tends to teminate the terminal connection if there's an error so if you use clients like putty or vscode to connect this might lead to session termination.

To be able to see the error, please ssh using terminal if you're using Mac or Linux systems or command prompt if you're using windows. If the connection terminates during install, you will still be able to see the last outputs before the session termination. Kindly therefore share the error you see and i'll use it to troubleshoot the issue you might be encountering.

Rebaz-balisani commented 4 months ago

if you have time, i can share my screen via Anydesk, here is my email: rebaz.balisani@gmail.com, i can share my vps as well

1.Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-25-generic x86_64) 2.ERPNext v 15 3.There is no opportunity to see the error msg from the ssh(terminal) because it immediately gets closed

ManuelPipe commented 4 months ago

same issue:

Now setting up your site. This might take a few minutes. Please wait... chmod: cannot access '/home/root': No such file or directory An error occurred on line 367 with exit status 0

flexcomng commented 4 months ago

Now setting up your site. This might take a few minutes. Please wait...chmod: cannot access '/home/root': No such file or directory

This suggests that you're running the script either as root or with elevated privilges hence the script is trying to install bench/site in the root user's directory. Please run the script as a non-root user and do not run the script using sudo.

Rebaz-balisani commented 3 months ago

Hi @flexcomng , thanks for your spirit of support and sharing (in my case it was always exiting after i was adding ADMIN password after I add a user as below, then the installation went smoothly and successfully)

Plese add below code to your README page after "sudo apt update && sudo apt -y upgrade" as it will be helping dozens of new learners.

  1. sudo su root
  2. sudo adduser frappeuser Full Name []: frappeuser Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y]
  3. usermod -aG sudo frappeuser
  4. su frappeuser
  5. cd /home/frappeuser
flexcomng commented 3 months ago

Done! thanks