Try ERPNext Buy Support Partners Foundation

How to install erpnext version 12 on ubuntu 18.04

It stuck at here

PLAY [setup bench and dev environment] ****************************************************************************

TASK [Gathering Facts] ********************************************************************************************
task path: /tmp/.bench/playbooks/site.yml:40

The setps from 1 to 7 done

when i enter the command i am getting an error. bellow is the screenshot uploaded. Any input on this would be highly appreciated

Thanks

1 Like

Show me the screenshot of command. Also, let me know if this installed for fresh machine. Its always recommend to install on fresh machine.

I am facing the exact same problem. I installed it on a fresh machine

1 Like

Hi Tufan,
i followed all the step, which is mention below.

  1. I have installed fresh Ubuntu 18.0.4LTS
  2. Ran the command apt-get update
  3. Ran the command apt-get upgrade
  4. Rebooted server
  5. apt-get install python3-setuptools python3-minimal redis-server build-essential
  6. created user erpnext

sudo adduser erpnext (Adding a new user erpnext)
usermod -aG sudo erpnext (giving proper permission)
su erpnext (login as erpnext user)

  1. Download the installation script by running below command:
    wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
  2. Then install the erpnext by using this command (it will take nearly 45 minits to run in 4GB virtualbox image, below command install all the requisite for erpnext (example nginx, mariadb etc ):sudo -H python3 install.py --production --site localhost --user erpnext --mysql-root-password your_password --admin-password your_password --bench-name your_bench_name
  3. This will install the ERPNEXT. After this I have updated the bench by running below command:

cd erp_bench/
bench update

  1. I have accessed the application using the link http://localhost (It worked me from the port 80)

and after that

now i am facing the login error below is the screenshot attached kindly help me

Thanks in advance

Can you copy the text?

Hi Tufan,
here is text

:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)
website.js:161 Traceback (most recent call last):
File “/home/erpnext/your_bench_name/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/erpnext/your_bench_name/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/erpnext/your_bench_name/apps/frappe/frappe/handler.py”, line 61, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/erpnext/your_bench_name/apps/frappe/frappe/init.py”, line 1038, in call
return fn(*args, **newargs)
File “/home/erpnext/your_bench_name/apps/frappe/frappe/core/doctype/user/user.py”, line 766, in sign_up
user.insert()
File “/home/erpnext/your_bench_name/apps/frappe/frappe/model/document.py”, line 259, in insert
self.run_post_save_methods()
File “/home/erpnext/your_bench_name/apps/frappe/frappe/model/document.py”, line 919, in run_post_save_methods
self.run_method(“on_update”)
File “/home/erpnext/your_bench_name/apps/frappe/frappe/model/document.py”, line 787, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/erpnext/your_bench_name/apps/frappe/frappe/model/document.py”, line 1058, in composer
return composed(self, method, *args, **kwargs)
File “/home/erpnext/your_bench_name/apps/frappe/frappe/model/document.py”, line 1041, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/erpnext/your_bench_name/apps/frappe/frappe/model/document.py”, line 781, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/erpnext/your_bench_name/apps/frappe/frappe/core/doctype/user/user.py”, line 96, in on_update
self.send_password_notification(self.__new_password)
File “/home/erpnext/your_bench_name/apps/frappe/frappe/core/doctype/user/user.py”, line 200, in send_password_notification
self.send_welcome_mail_to_user()
File “/home/erpnext/your_bench_name/apps/frappe/frappe/core/doctype/user/user.py”, line 266, in send_welcome_mail_to_user
site_url=get_url(),
File “/home/erpnext/your_bench_name/apps/frappe/frappe/core/doctype/user/user.py”, line 292, in send_login_mail
delayed=(not now) if now!=None else self.flags.delay_emails, retry=3)
File “/home/erpnext/your_bench_name/apps/frappe/frappe/init.py”, line 472, in sendmail
inline_images=inline_images, header=header, print_letterhead=print_letterhead)
File “/home/erpnext/your_bench_name/apps/frappe/frappe/email/queue.py”, line 70, in send
sender = email_account.default_sender
AttributeError: ‘NoneType’ object has no attribute ‘default_sender’

Thanks in advance

Regarding this issue, we are expecting such a break after a backup is restored. Generally the secret key needs to be imported from the old system to the new. This should be about a recent update/feature on the code. Search Github for the breaking files and check if there are recent commits on it. If there is, revert the change in your files and try to run once again. If you are successful, contact the developer who hasn’t even bothered to test.

Hello, where we have a “Official Manual” to Install ERPNext Release v12.1.0 or newer with Ubuntu 18.04.3 or Debian 10 Buster?

I have tried any “Unofficial Manuals” but nothing works.

https://erpnext.org/get-started
This ERPNext-Production.ova works with the old Ubuntu 16.04:
The Production Image Stable build for Production use (Master Branch)
(approx 1.5GB).

Greetz

jannis

######################################################

UPD: 2019-11-15 - ERPNext manual install on Debian Buster 10.x

https://murgatroyd.za.net/?p=764

try this

use the easy method

1 Like

How to install erpnext version 12 on ubuntu 18.04 with great success

Please follow and use the commands below:

  1. Install fresh Ubuntu 18.0.4LTS

  2. Ran the command

    sudo apt-get update

  3. Ran the command

    sudo apt-get upgrade

  4. Reboot server

    sudo reboot

  5. Ran the command

    sudo apt-get install python3-setuptools python3-minimal redis-server build-essential

  6. create the user erpnext

    sudo adduser erpnext (Adding a new user erpnext)
    sudo usermod -aG sudo erpnext (giving proper permission)
    su erpnext (login as erpnext user)

  7. Download the installation script by running the command below:

    sudo wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py

  8. Then install the erpnext by using the command below. This command will install all the requisites for erpnext for example nginx, mariadb etc:

      sudo -H python3 install.py --production --site localhost --user erpnext --mysql-root-password 
     your_password --admin-password your_password --bench-name your_bench_name
    

e.g

   sudo -H python3 install.py --production --site localhost --user erpnext --mysql-root-password 
   frappe --admin-password admin --bench-name frappe-bench

This will install the ERPNEXT

  1. Run the following command in shell:

    export LC_ALL=C.UTF-8
    
  2. . Finally update the bench by running commands below:

    cd

    cd frappe-bench/
    bench update

  3. Accessed the application using the link below:

    http://localhost:80
    or http:server_address:80
    e.g
    http://192.168.20.41:80

7 Likes

Here is the easy installation bash script.

source://github.com/bajpangosh/ERPNext-Easy-Install-Script

Installation & Usage

(1St Step) Login to ssh console (root)

run below script. it’ll ask a username just add “erpnextuser”

Use only on Ubuntu-18.04.

wget -qO erpnext run.kloudboy.com/erpnext && sudo bash erpnext

In DigitalOcean 1GB Droplet installation time take 15 to 20 minutes, and some Yellow warnings never mind. just leave it.

Final Bench + Frappe + ERPNext has been successfully installed!

Update the Bench by running commands below:

login to user account

su - username

cd username/

bench update

I used this twice but I’m still confused which part needs admin access… lol
btw, i was able to access localhost without issue…

I think, the confusion lies in using UNIX commands.

Does anyone receive the below messages during installation?

Above image is after this command:
7. sudo -H python3 install.py --production --site localhost --user erpnext --mysql-root-password your_password --admin-password your_password --bench-name your_bench_name


i am getting this error please help @clarkej @rmeyer @ekabyte

Doesn’t look like an error, only warnings.

no other action able to see for a long time @rmeyer

@ekabyte @nmami @clarkej @yasserelbana
I use VPS ubuntu 18.04 and 16.04 i still get the error any solution please Help.

[WARNING]: Could not find aptitude. Using apt-get instead
Traceback (most recent call last):
File “install.py”, line 437, in
install_bench(args)
File “install.py”, line 241, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 362, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’), stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python3.5/subprocess.py”, line 581, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-vvvv’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2

This post was flagged by the community and is temporarily hidden.