TASK [insights : run r.js optimizer]报错感觉不是网络问题,会是什么出错了?


#1

TASK [insights : run r.js optimizer] *******************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “. /edx/app/insights/nodeenvs/insights/bin/activate && /edx/app/insights/edx_analytics_dashboard/node_modules/.bin/r.js -o build.js”, “delta”: “0:00:01.993468”, “end”: “2017-03-03 04:09:34.513991”, “failed”: true, “rc”: 1, “start”: “2017-03-03 04:09:32.520523”, “stderr”: “”, “stdout”: “\nTracing dependencies for: js/common\nError: ENOENT: no such file or directory, open ‘/edx/app/insights/edx_analytics_dashboard/analytics_dashboard/static/dist/bower_components/cldr-data/supplemental/likelySubtags.json’\nIn module tree:\n js/common\n load/init-page\n load/init-tracking\n views/tracking-view\n utils/utils\n utils/globalization\n json\n\nError: Error: ENOENT: no such file or directory, open ‘/edx/app/insights/edx_analytics_dashboard/analytics_dashboard/static/dist/bower_components/cldr-data/supplemental/likelySubtags.json’\nIn module tree:\n js/common\n load/init-page\n load/init-tracking\n views/tracking-view\n utils/utils\n utils/globalization\n json\n\n at Error (native)”, “stdout_lines”: ["", “Tracing dependencies for: js/common”, “Error: ENOENT: no such file or directory, open ‘/edx/app/insights/edx_analytics_dashboard/analytics_dashboard/static/dist/bower_components/cldr-data/supplemental/likelySubtags.json’”, “In module tree:”, " js/common", " load/init-page", " load/init-tracking", " views/tracking-view", " utils/utils", " utils/globalization", " json", “”, “Error: Error: ENOENT: no such file or directory, open ‘/edx/app/insights/edx_analytics_dashboard/analytics_dashboard/static/dist/bower_components/cldr-data/supplemental/likelySubtags.json’”, “In module tree:”, " js/common", " load/init-page", " load/init-tracking", " views/tracking-view", " utils/utils", " utils/globalization", " json", “”, " at Error (native)"], “warnings”: []}
to retry, use: --limit @/var/tmp/configuration/playbooks/edx_sandbox.retry

错误信息如上,求大神解答,安装环境是在VMware 12上,Ubuntu16.04server


#2

内存多大??


#3

给虚拟机分配的3g内存,如果是这个问题我就从新搞一个虚拟机


#4

建议你执行

free -m
差看内存占用
提高虚拟机内存到4G
再打开4G的swap
参考我的
http://community.edustack.org/t/edx/424
提高Swap利用率可以减少这种内存不足的情况


#5

问题不是这个

"Error: ENOENT: no such file or directory, open '/edx/app/insights/edx_analytics_dashboard/analytics_dashboard/static/dist/bower_components/cldr-data/supplemental/likelySubtags.json'"

吗?有个文件找不到。


#6

网的原因 没有把文件拉取完,翻墙或者多部执行安装


#7

一般都是在上一步安装nodeenv没有成功,如果没有翻墙的话建议查看ansible脚本的内容拥抱命令继续安装,多试几次有时就好了,这个真的很看运气。如果翻墙的话就把insights的playbook从新执行一遍。