Usr ports updating permission denied

Rated 4.34/5 based on 927 customer reviews

Hence for most commands i have to use sudo and it’s been fine so far. I have many test servers running on GCP and they are all restricted to the username you get from your google account. The only way to really have a successful ERPNext system on Google Cloud Platform (GCP) is to install it with the following extra command line switch: No, your choice - just be sure to use --user switch in either case!BKM creates the user account explicitly - search for adduser here [Tutorial] Step by Step for making a ERPNext and Webmin combo VPS server or alternatively the standard install creates the account - you can dig into the actual install script here or on your local say here /home/frappe/edit: the one caveat is not to install as root user - On every GCP server I have running right now, the default user is the beginning of your email address linked to the Google cloud account.For example [email protected]:/home/frappe/frappe-bench$ bench update Traceback (most recent call last): File “/usr/local/bin/bench”, line 11, in load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)() File “/home/frappe/.bench/bench/”, line 40, in cli bench_command() File “/usr/local/lib/python2.7/dist-packages/click/”, line 722, in call return self.main(*args, **kwargs) File “/usr/local/lib/python2.7/dist-packages/click/”, line 697, in main rv = self.invoke(ctx) File “/usr/local/lib/python2.7/dist-packages/click/”, line 1063, in invoke Command.invoke(self, ctx) File “/usr/local/lib/python2.7/dist-packages/click/”, line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File “/usr/local/lib/python2.7/dist-packages/click/”, line 535, in invoke return callback(*args, **kwargs) File “/home/frappe/.bench/bench/commands/”, line 31, in bench_command setup_logging(bench_path=bench_path) File “/home/frappe/.bench/bench/”, line 293, in setup_logging hdlr = logging.File Handler(log_file) File “/usr/lib/python2.7/logging/”, line 913, in init Stream Handler.init(self, self._open()) File “/usr/lib/python2.7/logging/”, line 943, in _open stream = open(Filename, self.mode) IOError: [Errno 13] Permission denied: ‘/home/frappe/frappe-bench/logs/bench.log’ [email protected]:/home/frappe/frappe-bench$ [email protected]:/home/frappe/frappe-bench$ sudo bench update INFO:bench.utils:updating bench INFO:bench.utils:git pull Already up-to-date.Hope this helps to clarify the use of the switch and why it is important on Google Cloud PLatform.BKM I am self-taught on ERPNext setup and i am not much of a coder so I’ve hit several brick-walls in the past when setting up ERPNext on GCP so don’t mind me taking the easiest route by following the script line for line.INFO:bench.utils:./env/bin/pip install Pillow Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages Requirement already satisfied: olefile in ./env/lib/python2.7/site-packages (from Pillow) You are using pip version 9.0.3, however version 10.0.1 is available.

All you have to do is use the default user account that Google assigned to your server in your --user switch.

The way bench is designed, it wants the user owning ghe account to be the one executing commands.

So you are logged into the server as user “felix” and you are attempting to run bench commands that are owned by “frappe.” GCP only lets you log in as your default user, so you can never really own the “frappe” account.

Command Failed Error: git pull You should have no need for sudo on any bench commands.

The convention is that user account (for eg frappe) has sudo privileges.

Leave a Reply