Error on centos 7

TASK [move /tmp/.bench if it exists] *************************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: [“cp”, “-R”, “/tmp/.bench”, “/home/root/.bench”], “delta”: “0:00:00.003325”, “end”: “2017-09-29 14:33:35.269744”, “failed”: true, “msg”: “non-zero return code”, “rc”: 1, “start”: “2017-09-29 14:33:35.266419”, “stderr”: “cp: cannot create directory ‘/home/root/.bench’: No such file or directory”, “stderr_lines”: [“cp: cannot create directory ‘/home/root/.bench’: No such file or directory”], “stdout”: “”, “stdout_lines”: []}
to retry, use: --limit @/tmp/.bench/playbooks/production/install.retry

cant find any solution i use
run as root
python --production --user frappe

/home/root implies you are running this as root.
Rather run as user frappe

its still same if i run with user frappe

This implies a path/permissions error.
If run as frappe, it will most likely create /home/frappe/frappe-bench… etc.

The user frappe needs to be in sudo group during install.

i already adduser -aG wheel frappe

and still error

i think i solve by creating dir /home/root and chown that folder to frappe :frowning: maybe dev will fix the folder issue

@wellart - although it is working, it should not be in /home/root. It should be in /home/frappe if it was run/created as user frappe. You might have problems when you run updates etc on this installation. I recommend redoing it as frappe from scratch

yeah i will fresh install the server and start from begining,
the process is
add user frappe add sudo and login on frappe user and install from there? CMIIW

1 Like

That is probably better.

@clarkej also pointed out this Error while installing on centos 7 x64 OPENVZ VPS - #2 by clarkej which might help