[Important] Bench version 2 - see this before you run bench update

Use root. You won’t need to fix permissions.

One level outside of frappe-bench folder:

[root@newmatik frappe]# pwd
/home/frappe

The error:

[root@newmatik frappe]# sudo pip uninstall bench
You are using pip version 7.0.3, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Cannot uninstall requirement bench, not installed

Then run the install command instead

Looks like you are using MacOSx terminal. You need to google this
Pip error locale.setlocale(locale.LC_ALL, '')

Ran this command and now updating frappe bench from frappe user at the end I get

...
Wrote ./assets/css/desk.min.css - 257k
Wrote ./assets/css/module.min.css - 2k
[sudo] password for frappe:
Sorry, user frappe is not allowed to execute '/bin/supervisorctl restart frappe-bench-processes:' as root on newmatik.com.
unix:///var/tmp/supervisor.sock no such file

Run from root
bench setup sudoers frappe

[edited]

so you want me to run bench setup sudoers from root user in the frappe-bench folder. This throws the following error which I solved by running bench setup sudoers root

[root@newmatik ~]# cd /home/frappe/frappe-bench/
[root@newmatik frappe-bench]# bench setup sudoers
Usage: bench setup sudoers [OPTIONS] USER
Error: Missing argument “user”.None

This on the other hand will then throw the error message frappe is not in the sudoers file. This incident will be reported. while doing bench update from frappe user so instead I again ran from root: bench setup sudoers root and then bench update from frappe user.

Now that works.

does every customer have their own separate database or things have been changed for SaaS version to have all the customers data into a single database ??

as before, each site has a separate database. It hasn’t changed.

@anand Does this mean the current bench now supports multiple benches on the same server?

Regards,

Yes! It does.

Wow! Awesome!!!

Regards,

Thanks for the confirmation anand.

As we are also put all of our customers into a single machine. Would you please help us with the configuration details of the server so that we can put all of our customers into a single machine just like you.

RAM :
Hard Disk / SSD :
CPU :

Thanks :smile:

@sdqadeer44 If you have thousands of customers like us, I would recommend going for the most powerful server you can afford with a lot of memory. If it doesn’t perform, put new customers in a separate server. And, hope you have a Sys Admin on your team!

If you have specific questions to ask, please post them on a separate thread.

Hi Mr.anand
would you please help me…
Error coiming when bench start position

Thanking you…

@Dhilip

You seem to be using production setup. You should not be using bench start. Else shift to development setup using: Stopping Production and starting Development · frappe/bench Wiki · GitHub

Ya Thank You very much Mr.Anand…

Hi Mr.Anand,
I need your help…
http://localhost:8000 its work on only ubuntu browser…

But not working in our window server…

How to work in our windows browser?
would u please help me sir…

Thanking you,

@Dhilip You should use IP address of your virtual machine, not localhost

K Jiiii and thank you very much…