Try ERPNext Buy Support Partners Foundation

Easiest Installation (LXC)

I may have found the easiest installation method for development and testing. You can try it on your existing infrastructure, on your laptop or on a brand new server. Most probably it won’t broke anything on your server.

snap install lxd
lxd init
lxc launch ubuntu:18.04 frappe-dev
lxc exec frappe-dev – /bin/bash

–Now you are in the container. Just follow the easy steps with one more step
sudo apt-get install python3-minimal build-essential python3-setuptools
sudo mkdir -p /run/dbus
sudo dbus-daemon --system
python3 --develop --version 12 --user=frappe

That’s it. Cheers.


I had an error within the this step:
become-user=frappe or localectl throws “Connection timed out” error.
So I’ve issued these commands.
sudo mkdir -p /run/dbus
sudo dbus-daemon --system

I believe that Win10 WSL also use this kind of technology. So above commands also fixes some problems in the WSL. Ref: Solution for error locale : Check current locale on wsl ubuntu windows

1 Like

Hello @TurkerTunali,
Thanks for the tuto but i almost find the same issue during the setup of first company
‘SETUP FAILED Could not start up: Error in setup’

Hi @Insightlab ,
You should create an github issue with the detailed logs. Without logs developers can’t help.

Did you look it up in the forum ? [solved] "Setup failed: Could not start up: Error in setup"

Hi @TurkerTunali, Thanks for your support
The Forum helps me to solve the issue after many retry retry retry … retry

That’s how winning is done :slight_smile:

What does this command do? Do you issue it before running the install script?

I should be more clear. You are right.
This script installs lxc which is a container technology like docker.
Then installs ubuntu18 and ERPNext in that container.
Your local configuration won’t be affected most probably because installation is on the virtual server.
It may come handy when you must use Easy Script and you have trouble on local computer.

Sorry - I should have been more succinct. The dbus command - I tried looking it up on internet - and it seems to be related to communication between programs. Does it resolve the error of become-user=frappe? I read on erpnext forum to use --container flag with script or create a user within lxd container called frappe and then run install script. Just wondering how you resolved the become-user error. Thanks.

I don’t think if it resolves become-user problem. My problem was localectl throwing “Connection timed out” error.
I think become-user problem is a generic one. You may get more info about the error by adding --verbose flag. That way you can get exact command which is failing and you may search better.

Today I also get an Request Timeout error in the setup wizard. I set http timeout as 6000 as suggested here Setup Wizard Request Timeout Then I’ve reverted back to 120.