Skip to main content
ArcBlock Community

仪表盘在线升级1.16.21节点问题

null
Support
qa

image.png

3 replies

null2 years ago

而且第二个步骤失败了,后面的流程还能继续走吗

null2 years ago(edited)

本地执行, 看报错应该是还要交换内存了 2EFD6583.png

javascriptCopy
[root@10-53-81-85 ~]# npm install -g @blocklet/cli
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in c                                 ertain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in c                                 ertain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm ERR! code ENOMEM
npm ERR! syscall spawn
npm ERR! errno -12
npm ERR! spawn ENOMEM
null2 years ago(edited)

百度一下,创建交换内存后可以了, 不过这种环境要求会不会越界了

javascriptCopy
-- 创建一个4g的swapfile
fallocate -l 4G /swapfile
-- 确保只有root才能访问swapfile
chmod 600 /swapfile
-- 把swapfile格式化为交换空间,并为之分配相应的控制信息
mkswap /swapfile
-- 启用交换空间
swapon /swapfile
-- 系统重启后也能保留着swapfile
echo "/swapfile noce swap sw 0 0" | sudo tee -a /etc/fstab
Reply