Frappe has no password!

I’m using Ubuntu 16 on VM

I did Easy Install depending on GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps

for this command :: sudo python install.py --production

I try to to install frappe production to use bench because I can not get response with this commands

bench new-app [name of the app]

the error is

OSError: [Errno 2] No such file or directory: ‘./sites’

So, I found from searching in your forum the main problem is that I didn’t install production via this command

sudo python install.py --production

the problem happened when I inserted this command, the terminal asked from me to write a password for frappe

I wrote my user’s linux password, frappe password (which is frappe) but nothing change … I also wrote the mariaDB password!! but the same result I got … always the password incorrect!

update and good news!!

I found my mistake, my mistake is I was opening (frappe-bench) folder in the terminal then write this code

sudo -i -u frappe

the right way is to write the code above first. then open that folder. then write this code

bench new-app [name of the app]

it works!

but still I have a problem with the password of frappe

You need to
su - root
then after typing root password
passwd frappe
then set the password for frappe user

2 Likes

it works … thank you

allow me to ask you another question

I try to open atom text editor by typing

sudo mate apps/ [name of the app] /

but this is what terminal said

frappe is not in the sudoers file. This incident will be reported.

even when I write the command without “sudo” terminal putting this

No command ‘mate’ found, did you mean:
Command ‘late’ from package ‘late’ (universe)
Command ‘kate’ from package ‘kate’ (universe)
Command ‘mat’ from package ‘mat’ (universe)
Command ‘yate’ from package ‘yate’ (universe)
Command ‘matc’ from package ‘elmer’ (universe)
Command ‘tmate’ from package ‘tmate’ (universe)
Command ‘mute’ from package ‘aumix-common’ (universe)
Command ‘make’ from package ‘make-guile’ (universe)
Command ‘make’ from package ‘make’ (main)
Command ‘mame’ from package ‘mame’ (multiverse)
Command ‘date’ from package ‘coreutils’ (main)
mate: command not found

thank you very much!