Install erpnext specific version

Hi,

i have some problem with my server, and i need to reinstall erpnext (v4), how can i get the old version of erpnext instead of the latest version?

thanks

@rizki182 use bench switch-to-v4

@rizki182 do it with caution!

@max_morais_dmm thanks for the response, i’ve tried your suggestion and when i execute bench start i get this message and stop working

1:01:16 socketio.1 |
11:01:16 socketio.1 | module.js:340
11:01:16 socketio.1 | throw err;
11:01:16 socketio.1 | ^
11:01:16 socketio.1 | Error: Cannot find module ‘/home/erp-administrator/frappe-bench/apps/frappe/socketio.js’
11:01:16 socketio.1 | at Function.Module._resolveFilename (module.js:338:15)
11:01:16 socketio.1 | at Function.Module._load (module.js:280:25)
11:01:16 socketio.1 | at Function.Module.runMain (module.js:497:10)
11:01:16 socketio.1 | at startup (node.js:119:16)
11:01:16 socketio.1 | at node.js:902:3
11:01:16 system | socketio.1 stopped (rc=8)
11:01:16 system | sending SIGTERM to workerbeat.1 (pid 26944)
11:01:16 system | sending SIGTERM to worker.1 (pid 26955)
11:01:16 system | sending SIGTERM to web.1 (pid 26950)
11:01:16 system | sending SIGTERM to redis_async_broker.1 (pid 26954)
11:01:16 system | sending SIGTERM to redis_cache.1 (pid 26952)
11:01:16 redis_cache.1 | [26957 | signal handler] (1446609676) Received SIGTERM, scheduling shutdown…
11:01:16 redis_cache.1 | [26957] 04 Nov 11:01:16.802 # User requested shutdown…
11:01:16 redis_cache.1 | [26957] 04 Nov 11:01:16.802 # Redis is now ready to exit, bye bye…
11:01:16 system | redis_cache.1 stopped (rc=-15)
11:01:16 system | web.1 stopped (rc=-15)
11:01:16 redis_async_broker.1 | [26964 | signal handler] (1446609676) Received SIGTERM, scheduling shutdown…
11:01:16 system | workerbeat.1 stopped (rc=-15)
11:01:16 system | worker.1 stopped (rc=-15)
11:01:16 redis_async_broker.1 | [26964] 04 Nov 11:01:16.892 # User requested shutdown…
11:01:16 redis_async_broker.1 | [26964] 04 Nov 11:01:16.892 # Redis is now ready to exit, bye bye…
11:01:16 system | redis_async_broker.1 stopped (rc=-15)

@rizki182 you need regenerate the procfile use

bench setup procfile

@max_morais_dmm i’ve tried bench setup procfile and nothing happen,i tired bench start again and get another message

12:11:19 system | worker.1 started (pid=27449)
12:11:19 system | workerbeat.1 started (pid=27450)
12:11:19 system | web.1 started (pid=27455)
12:11:19 web.1 | /bin/sh: 1: ./env/bin/frappe: not found
12:11:19 system | web.1 stopped (rc=127)
12:11:19 system | sending SIGTERM to worker.1 (pid 27449)
12:11:19 system | sending SIGTERM to workerbeat.1 (pid 27450)
12:11:19 system | workerbeat.1 stopped (rc=-15)
12:11:19 system | worker.1 stopped (rc=-15)

@rizki182, you need a manual fix for this case!

In the Procfile, in frappe-bench dir, in the line starting by “web:” replace the frappe --serve to bench serve

@rizki182 maybe you should try changing bench’s branch:

cd bench-repo && git checkout v5.x.x

Then try installing v4.

@anand how do i do that? i still got the latest version