我遵循本教程,在我的Ubuntu20.0.4LTS操作系统上安装ERPNext。
我成功地遵循了所有的指令,但是,当我运行bench start
时,系统无法启动。
以下是控制台输出:
WARN: bench is installed in editable mode!
This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`
10:26:19 system | redis_cache.1 started (pid=11096)
10:26:19 system | redis_queue.1 started (pid=11097)
10:26:19 system | redis_socketio.1 started (pid=11095)
10:26:19 redis_socketio.1 | 11105:C 24 May 2022 10:26:19.200 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10:26:19 system | socketio.1 started (pid=11100)
10:26:19 redis_queue.1 | 11106:C 24 May 2022 10:26:19.205 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10:26:19 system | web.1 started (pid=11098)
10:26:19 redis_queue.1 | 11106:C 24 May 2022 10:26:19.208 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=11106, just started
10:26:19 redis_queue.1 | 11106:C 24 May 2022 10:26:19.208 # Configuration loaded
10:26:19 redis_queue.1 | 11106:M 24 May 2022 10:26:19.209 * Increased maximum number of open files to 10032 (it was originally set to 1024).
10:26:19 redis_queue.1 | 11106:M 24 May 2022 10:26:19.217 * Running mode=standalone, port=11000.
10:26:19 redis_cache.1 | 11103:C 24 May 2022 10:26:19.223 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10:26:19 redis_cache.1 | 11103:C 24 May 2022 10:26:19.224 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=11103, just started
10:26:19 redis_cache.1 | 11103:C 24 May 2022 10:26:19.224 # Configuration loaded
10:26:19 redis_cache.1 | 11103:M 24 May 2022 10:26:19.225 * Increased maximum number of open files to 10032 (it was originally set to 1024).
10:26:19 system | watch.1 started (pid=11099)
10:26:19 redis_socketio.1 | 11105:C 24 May 2022 10:26:19.229 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=11105, just started
10:26:19 redis_socketio.1 | 11105:C 24 May 2022 10:26:19.229 # Configuration loaded
10:26:19 redis_socketio.1 | 11105:M 24 May 2022 10:26:19.230 * Increased maximum number of open files to 10032 (it was originally set to 1024).
10:26:19 redis_socketio.1 | 11105:M 24 May 2022 10:26:19.231 * Running mode=standalone, port=12000.
10:26:19 system | worker_short.1 started (pid=11113)
10:26:19 system | schedule.1 started (pid=11115)
10:26:19 redis_cache.1 | 11103:M 24 May 2022 10:26:19.243 * Running mode=standalone, port=13000.
10:26:19 redis_cache.1 | 11103:M 24 May 2022 10:26:19.244 # Server initialized
10:26:19 redis_cache.1 | 11103:M 24 May 2022 10:26:19.244 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
10:26:19 redis_cache.1 | 11103:M 24 May 2022 10:26:19.244 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
10:26:19 redis_cache.1 | 11103:M 24 May 2022 10:26:19.244 * Ready to accept connections
10:26:19 redis_queue.1 | 11106:M 24 May 2022 10:26:19.247 # Server initialized
10:26:19 redis_queue.1 | 11106:M 24 May 2022 10:26:19.248 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
10:26:19 redis_queue.1 | 11106:M 24 May 2022 10:26:19.248 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
10:26:19 redis_queue.1 | 11106:M 24 May 2022 10:26:19.248 * Ready to accept connections
10:26:19 redis_socketio.1 | 11105:M 24 May 2022 10:26:19.248 # Server initialized
10:26:19 redis_socketio.1 | 11105:M 24 May 2022 10:26:19.248 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
10:26:19 redis_socketio.1 | 11105:M 24 May 2022 10:26:19.249 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
10:26:19 redis_socketio.1 | 11105:M 24 May 2022 10:26:19.249 * Ready to accept connections
10:26:19 system | worker_long.1 started (pid=11118)
10:26:19 system | worker_default.1 started (pid=11124)
10:26:21 socketio.1 | listening on *: 9000
10:26:23 schedule.1 | WARN: bench is installed in editable mode!
10:26:23 schedule.1 |
10:26:23 schedule.1 | This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`
10:26:23 schedule.1 |
10:26:23 web.1 | WARN: bench is installed in editable mode!
10:26:23 web.1 |
10:26:23 web.1 | This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`
10:26:23 web.1 |
10:26:23 watch.1 | WARN: bench is installed in editable mode!
10:26:23 watch.1 |
10:26:23 watch.1 | This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`
10:26:23 watch.1 |
10:26:26 watch.1 |
10:26:26 web.1 | * Running on all addresses.
10:26:26 web.1 | WARNING: This is a development server. Do not use it in a production deployment.
10:26:26 web.1 | * Running on http://[PUBLIC_IP_ADDRESS]:8000/ (Press CTRL+C to quit)
10:26:26 web.1 | * Restarting with stat
10:26:27 web.1 | * Debugger is active!
10:26:27 web.1 | * Debugger PIN: 214-927-934
10:26:28 watch.1 | yarn run v1.22.18
10:26:28 watch.1 | $ node esbuild --watch --live-reload
10:26:30 watch.1 | clean: postcss.plugin was deprecated. Migration guide:
10:26:30 watch.1 | https://evilmartians.com/chronicles/postcss-8-plugin-migration
10:26:35 system | worker_short.1 stopped (rc=1)
10:26:35 system | sending SIGTERM to redis_cache.1 (pid 11096)
10:26:35 system | sending SIGTERM to redis_socketio.1 (pid 11095)
10:26:35 system | sending SIGTERM to redis_queue.1 (pid 11097)
10:26:35 system | sending SIGTERM to web.1 (pid 11098)
10:26:35 system | sending SIGTERM to socketio.1 (pid 11100)
10:26:35 system | sending SIGTERM to watch.1 (pid 11099)
10:26:35 system | sending SIGTERM to schedule.1 (pid 11115)
10:26:35 system | sending SIGTERM to worker_long.1 (pid 11118)
10:26:35 system | sending SIGTERM to worker_default.1 (pid 11124)
10:26:35 redis_cache.1 | 11103:signal-handler (1653387995) Received SIGTERM scheduling shutdown...
10:26:35 redis_cache.1 | 11103:M 24 May 2022 10:26:35.885 # User requested shutdown...
10:26:35 redis_cache.1 | 11103:M 24 May 2022 10:26:35.885 * Removing the pid file.
10:26:35 redis_cache.1 | 11103:M 24 May 2022 10:26:35.885 # Redis is now ready to exit, bye bye...
10:26:35 system | redis_queue.1 stopped (rc=-15)
10:26:35 system | worker_default.1 stopped (rc=-15)
10:26:35 system | redis_socketio.1 stopped (rc=-15)
10:26:35 system | redis_cache.1 stopped (rc=-15)
10:26:35 system | socketio.1 stopped (rc=-15)
10:26:35 system | schedule.1 stopped (rc=-15)
10:26:36 system | web.1 stopped (rc=-15)
10:26:36 system | watch.1 stopped (rc=-15)
是什么导致了这个问题,我该如何解决呢?
发布于 2022-05-29 20:20:19
似乎它们是在最新版本的工作台安装程序中出现的错误,在某些VPS中发生了这种情况。
sudo vim /etc/sysctl.conf
fs.inotify.max_user_watches=524288 vm.overcommit_memory =1
检查:
sudo sysctl -p
看起来应该是这样的:
fs.file-max = 65535
vm.swappiness = 10
fs.inotify.max_user_watches = 524288
记得重新开始。
https://stackoverflow.com/questions/72361449
复制相似问题