How to install erpnext version 12 on ubuntu 18.04

I had done easy install. There is no frappe user directory. So I am doing this from /home/frappe/site/erpnext

Thus the error.

I checked with a find command…there is no frappe-bench directory at all in my system. There is a frappe directory, though. Running bench update command from that directory produces the same error.

Unless you specified otherwise, frappe-bench is the default bench directory name for either Easy or Manual Install. One runs the bench command set from that directory.

Assuming you specified a frappe user account (as you say you did), that user account lives here /home/frappe. With a typical bench install, the frappe-bench is a subdirectory of that user account, hence the path to the bench is /home/frappe/frappe-bench.

When the install completes, the two apps erpnext and frappe live here
/home/frappe/frappe-bench/apps/erpnext and /home/frappe/frappe-bench/apps/frappe. Once you create a website - say site1.local, that you will find here /home/frappe/frappe-bench/sites/site1.local

2 Likes

Please advice, Is that package exist for Ubuntu 18.04?

running,

apt install pyhton3-setuptools

results in,

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package pyhton3-setuptools

Thanks

Might it be: python3-setuptools ?

Sorry, I can’t get you.

yes, this package doesn’t install unless it is available in such repository to be added first

Try changing phyton3 to python3, it could be a typographical error.

Ok thanks I got it,
I just copy that command from such guide

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

1 Like

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

8 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