[INSTALL PROBLEM]: Debian 8 - fresh install Frappe and ERPNext 7

Hi,

I install a fresh new Debian 8, and following this instruction below to install develop version.

This couldn’t complete the installation, as i found nothing under “/usr/local/frappe/bench-repo”

More detail is attached below,
Could you please advice how to install v7 on Debian 8?

Thanks a lot.

frappe@blue:~$ sudo python install.py --develop
Hit http://security.debian.org jessie/updates InRelease
Hit http://security.debian.org jessie/updates/main Sources
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://security.debian.org jessie/updates/main Translation-en                                         
Ign http://httpredir.debian.org jessie InRelease                                                          
Hit http://httpredir.debian.org jessie-updates InRelease
Hit http://httpredir.debian.org jessie Release.gpg
Hit http://httpredir.debian.org jessie-updates/main Sources
Get:1 http://httpredir.debian.org jessie-updates/main amd64 Packages/DiffIndex [5,440 B]
Get:2 http://httpredir.debian.org jessie-updates/main Translation-en/DiffIndex [2,704 B]
Hit http://httpredir.debian.org jessie Release                    
Hit http://httpredir.debian.org jessie/main Sources
Hit http://httpredir.debian.org jessie/main amd64 Packages
Hit http://httpredir.debian.org jessie/main Translation-en
Fetched 8,144 B in 4s (2,008 B/s)        
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
git is already the newest version.
libffi-dev is already the newest version.
libssl-dev is already the newest version.
python-dev is already the newest version.
python-setuptools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): ansible==2.0.2.0 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Requirement already satisfied (use --upgrade to upgrade): jinja2 in /usr/local/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Requirement already satisfied (use --upgrade to upgrade): PyYAML in /usr/local/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.6 in /usr/local/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Requirement already satisfied (use --upgrade to upgrade): paramiko in /usr/local/lib/python2.7/dist-packages (from ansible==2.0.2.0)
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe in /usr/local/lib/python2.7/dist-packages (from jinja2->ansible==2.0.2.0)
Requirement already satisfied (use --upgrade to upgrade): ecdsa<2.0,>=0.11 in /usr/local/lib/python2.7/dist-packages (from paramiko->ansible==2.0.2.0)

PLAY [localhost] ***************************************************************

TASK [setup] *******************************************************************
ok: [localhost]

TASK [Create user] *************************************************************
ok: [localhost]

TASK [Set home folder perms] ***************************************************
skipping: [localhost]

TASK [Set home folder perms] ***************************************************
skipping: [localhost]

TASK [Set /tmp/.bench folder perms] ********************************************
skipping: [localhost]

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=0   

Please enter mysql root password: 
Re-enter mysql root password: 
Please enter Administrator password: 
Re-enter Administrator password: 

PLAY [localhost] ***************************************************************

TASK [setup] *******************************************************************
ok: [localhost]

PLAY [localhost] ***************************************************************

TASK [setup] *******************************************************************
ok: [localhost]

TASK [install prequisites] *****************************************************
skipping: [localhost] => (item=cmake) 
skipping: [localhost] => (item=redis) 
skipping: [localhost] => (item=mariadb) 
skipping: [localhost] => (item=nodejs) 

TASK [cask installs] ***********************************************************
skipping: [localhost] => (item=wkhtmltopdf) 

TASK [include] *****************************************************************
skipping: [localhost]

TASK [include] *****************************************************************
skipping: [localhost]

TASK [include] *****************************************************************
skipping: [localhost]

PLAY [localhost] ***************************************************************

TASK [setup] *******************************************************************
ok: [localhost]

TASK [install prequisites] *****************************************************
skipping: [localhost] => (item=[]) 

TASK [install pillow prerequisites for Ubuntu < 14.04] *************************
skipping: [localhost] => (item=[]) 

TASK [install pillow prerequisites for Ubuntu >= 14.04] ************************
skipping: [localhost] => (item=[]) 

TASK [include] *****************************************************************
skipping: [localhost]

TASK [include] *****************************************************************
skipping: [localhost]

TASK [include] *****************************************************************
skipping: [localhost]

TASK [debug] *******************************************************************
skipping: [localhost]

TASK [include] *****************************************************************
skipping: [localhost]

TASK [include] *****************************************************************
skipping: [localhost]

PLAY [localhost] ***************************************************************

TASK [setup] *******************************************************************
ok: [localhost]

TASK [development tools package] ***********************************************
skipping: [localhost]

TASK [install prequisites] *****************************************************
skipping: [localhost] => (item=[]) 

TASK [include] *****************************************************************
skipping: [localhost]

TASK [include] *****************************************************************
skipping: [localhost]

TASK [include] *****************************************************************
skipping: [localhost]

TASK [include] *****************************************************************
skipping: [localhost]

TASK [include] *****************************************************************
skipping: [localhost]

PLAY RECAP *********************************************************************
localhost                  : ok=4    changed=0    unreachable=0    failed=0   

frappe@blue:~$ 

@bzero Frappe has installed successfully on your system.

To start erpnext, from console execute

cd frappe-bench
bench start

thanks @saurabh6790
there is no frappe-bench folder, as well as the command “bench”

it’s still not been installed i think.

@bzero Sorry it’s my flaw, try with

su frappe
cd frappe-bench
bench start

i am already with frappe user,
and there is no frappe-bench folder

as result, couldn’t start bench :frowning:

could anyone help me on this?

Does Debian 8 support currently?

I’m having a similar problem. The installer script ( at https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py), doesn’t install frappe-bench for some reason.

I make it to the following :
`TASK [Create new site] *********************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OSError: [Errno 2] No such file or directory: ‘/home/frappe/frappe-bench’
fatal: [localhost]: FAILED! => {“changed”: false, “failed”: true, “module_stderr”: “Traceback (most recent call last):\n File "/tmp/ansible-tmp-1469838910.62-248284724070921/command", line 2433, in \n main()\n File "/tmp/ansible-tmp-1469838910.62-248284724070921/command", line 187, in main\n os.chdir(chdir)\nOSError: [Errno 2] No such file or directory: ‘/home/frappe/frappe-bench’\n”, “module_stdout”: “”, “msg”: “MODULE FAILURE”, “parsed”: false}

and it fails because there is no frappe-bench installed.

I had the same issue, but ensure nginx service has started first.

Nginx is installed and running, so this has nothing to do with nginx, I believe the problem is that frappe isn’t being installed using the install script. the OP is using the development flag and I was using the production flag. Neither installed the necessary frappe-bench on the system.

Is it assumed that ubuntu is the same as debian for install purposes? and then somehow debian is skipped when it isn’t?

I am the farthest thing from an ansible expert, but poking through the scripts, I see this :

  - debug:
      var: run_travis

  # setup frappe-bench
  - include: includes/setup_bench.yml
    when: not run_travis 

in this file : https://raw.githubusercontent.com/frappe/bench/master/playbooks/develop/ubuntu.yml

is this a potential issue? just trying to help.

@iadr3805 @bzero

Hey, we’re actually working on Debian support and plan to release is this week!. But we haven’t tested it enough, but if you want to give it a go just run these commands on a fresh system (Use the user option only if you’re running this as root):

https://raw.githubusercontent.com/vjFaLk/bench/debian-installer/playbooks/install.py
python install.py --production --user frappe

I’ve tested it a couple of times on Debian 8 (Digital Ocean Droplet), however, if you’re having issues please let me know. I cannot give you any guarantee that will work perfectly as of yet

Awesome, thanks for the update - i’ll give it a run later in the day and report back with results.

Thanks!

Looks like your installer pulls the master git repo instead of the branch you have for the debian testing?

Once I grabbed this : GitHub - vjFaLk/bench at debian-installer and cloned it into /tmp/.bench (and removed the clone step from install.py) it worked.

also, got a fail when it tried to set the mysql password, as there was already a root password installed (set when i installed the package), so i removed the root password, and it made it past that.

setup is still chugging alone, i’ll update if with results…

failed here: TASK [init bench] ************************************************************** - Pastebin.com

@ericmoon

Ah really sorry about that, when I put the message it was directed to my repo, I then later changed it so it could be merged into master, but it hasn’t been yet!

You can instead run the below, and that should work out fine

https://raw.githubusercontent.com/vjFaLk/bench/debian-installer/playbooks/install.py
python install.py --production --user frappe --bench-branch debian-installer --repo-url https://github.com/vjFaLk/bench

Again, sorry for the trouble.

@vjFaLk

no worries… trying again.

Hung the first time I retried at [create site].

Next time I tried it, made it all the way through and I’m up and running. :grin:

Thanks for the help

1 Like

Hey @vjFaLk

Thanks for the script! it should really be merged with master. Anyways I just ran it on a fresh deb 8 install and go the following errors: $ wget https://raw.githubusercontent.com/vjFaLk/bench/debian-installer/playbooks - Pastebin.com figured this info would help with debugging! Thank you and if there is anything I can do to help please let me know

Same error as DrTrills, …“cannot lock /etc/passwd”…
Fresh install of debian 8. Also, in debian 8, nginx is not installed by default and this script does not install it, I had to run “apt-get install nginx” manually.

@Chris_Nuss @DrTrills Thanks for the info, but I’m unable to reproduce this. Can I know what you guys are installing on? Digital Ocean VPS? Local VM? I’m using a Debian 8.5 x64 Digital Ocean Droplet and it’s working fine at that step.