wellart
November 21, 2017, 12:05pm
1
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
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
run as root
python install.py --production --user frappe
trentmu
November 21, 2017, 2:30pm
2
/home/root implies you are running this as root.
Rather run as user frappe
wellart
November 21, 2017, 3:54pm
3
its still same if i run with user frappe
trentmu
November 21, 2017, 4:58pm
4
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.
wellart
November 22, 2017, 6:19am
6
i already adduser -aG wheel frappe
and still error
wellart
November 22, 2017, 6:28am
7
i think i solve by creating dir /home/root and chown that folder to frappe maybe dev will fix the folder issue
trentmu
November 22, 2017, 7:15am
8
@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
wellart
November 22, 2017, 7:22am
9
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
trentmu
November 22, 2017, 7:33am
10