Bench start error how to fix?

frappe-bench/config/pids’: No such file or directory
17:10:57 system | redis_socketio.1 stopped (rc=1)
17:10:57 system | redis_queue.1 started (pid=14688)
17:10:57 redis_queue.1 | 14689:C 12 Oct 2019 17:10:57.020 # Can’t chdir to ‘/home/satish/frappe-bench/config/pids’: No such file or directory
17:10:57 system | redis_queue.1 stopped (rc=1)
17:10:57 system | worker_long.1 started (pid=14670)
17:10:57 system | schedule.1 started (pid=14675)
17:10:57 system | worker_short.1 started (pid=14693)
17:10:57 system | redis_cache.1 started (pid=14677)
17:10:57 redis_cache.1 | 14696:C 12 Oct 2019 17:10:57.035 # Can’t chdir to ‘/home/satish/frappe-bench/config/pids’: No such file or directory
17:10:57 system | redis_cache.1 stopped (rc=1)
17:10:57 system | socketio.1 started (pid=14692)
17:10:57 system | worker_default.1 started (pid=14695)
17:10:57 system | sending SIGTERM to worker_long.1 (pid 14670)
17:10:57 system | sending SIGTERM to watch.1 (pid 14676)
17:10:57 system | sending SIGTERM to web.1 (pid 14685)
17:10:57 system | sending SIGTERM to schedule.1 (pid 14675)
17:10:57 system | sending SIGTERM to worker_default.1 (pid 14695)
17:10:57 system | sending SIGTERM to socketio.1 (pid 14692)
17:10:57 system | sending SIGTERM to worker_short.1 (pid 14693)
17:10:57 system | socketio.1 stopped (rc=-15)
17:10:57 system | schedule.1 stopped (rc=-15)
17:10:57 system | web.1 stopped (rc=-15)
17:10:57 system | worker_long.1 stopped (rc=-15)
17:10:57 system | worker_default.1 stopped (rc=-15)
17:10:57 system | watch.1 stopped (rc=-15)
17:10:57 system | worker_short.1 stopped (rc=-15)

How about create a pids directory and see what happens?

In the frappe-bench (where you run bench start) do this:

mkdir config/pids

See also this How to switch development to production? - #8 by clarkej

i create one directory in same location but issue will be same

satish/frappe-bench/config/pids’: No such file or directory

The directory is empty i have check my local machine nothing is there

Also when i run migrate command is also through the error

pymysql.err.OperationalError: (1045, “Access denied for user ‘_d853e56f436b922f’@‘localhost’ (using password: YES)”)

You appear to have a permissions error - possibly from installing or updating as root user instead of as ERPNext user. To fix…(adjust the names to match YOUR setup)

sudo chown -r frappeUser:frappeGroup /home/satish/frappe-bench/*

#IF... this happens....
#ERROR 1045 (28000): Access denied for user '_d853e56f436b922f'@'localhost' (using password: YES)
MySQLpwd="YOUR_MYSQL_PASSWORD";
DBname=$(cat ~/frappe-bench/sites/site1.local/site_config.json | awk '/db_name/ {print $2}' | sed "s/\"//g" | sed "s/,//g")
DBpass=$(cat ~/frappe-bench/sites/site1.local/site_config.json | awk '/db_password/ {print $2}' | sed "s/\"//g")
#
mysql -uroot -p$MySQLpwd -Bse "GRANT ALL PRIVILEGES ON *.* TO '$DBname'@'localhost' IDENTIFIED BY '$DBpass' WITH GRANT OPTION;"
mysql -uroot -p$MySQLpwd -Bse "GRANT ALL PRIVILEGES ON *.* TO '$DBname'@'127.0.0.1' IDENTIFIED BY '$DBpass' WITH GRANT OPTION;"
#
mysql -uroot -p$MySQLpwd -Bse "set password for '$DBname'@'localhost' = password('$DBpass');"
mysql -uroot -p$MySQLpwd -Bse "set password for '$DBname'@'127.0.0.1' = password('$DBpass');"
1 Like

chown: invalid option – ‘r’
Try ‘chown --help’ for more information.

@satish_malkar

Bro… if you get an error like this, a simple search on google will give you an answer… with chown you have to use capital R … so command should be chown -R “then the folder path”

3 Likes