apisix-dashboard: bug: apisix-dashboard v2.5 make build failed on Huawei Kunpeng system

Issue description

Environment

  • apisix version (cmd: apisix version): v2.4
  • OS (cmd: uname -a): Linux localhost.localdomain 4.19.90-17.ky10.aarch64 apache/apisix#1 SMP Sun Jun 28 14:27:40 CST 2020 aarch64 aarch64 aarch64 GNU/Linux
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V): openresty/1.19.3.1
  • etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to get the info from server-info API): v3.4.13
  • apisix-dashboard version, if have: v2.5
  • luarocks version, if the issue is about installation (cmd: luarocks --version): v3.6.0

Minimal test code / Steps to reproduce the issue

  1. apisix源码构建后正常启动./bin/apisix start
  2. 在apisix-dashboard内执行make build时报错了,如下图 image image

What’s the actual result? (including assertion message & call stack if applicable)

What’s the expected result?

这个是因为鲲鹏系统的差异性导致最后构建失败的吗? 请求帮助,谢谢

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (12 by maintainers)

Most upvoted comments

@imjoey The lower version of nodejs is helpful,but at the last of make build, a new error occurs as follows: image It seems that some packages are incompatible with nodejs of 10.11.0 version. The APISIX Dashboard version is 2.6+ Looking forward to the solution.

@Molio-tan Very glad to see it works. Regarding to the new error, an intuitive solution is to install the new 10.13.0-armv8 from official alternatively. In practice, minor version upgrade will not bring any incompatibility, so I guess this newer version will also work along with Kylin V10.

Looking forward to your feedback. Thanks.

@imjoey Thank you for your help. After many times to download different versions of nodejs, I find the suitable version is v10.24.0.

wget https://nodejs.org/download/release/v10.24.0/node-v10.24.0-linux-arm64.tar.xz
tar -xf node-v10.24.0-linux-arm64.tar.xz
ln -s /opt/node-v10.24.0-linux-arm64/bin/node /usr/local/bin/
ln -s /opt/node-v10.24.0-linux-arm64/bin/npm /usr/local/bin/

At last, make build will work properly. Thank you all.

I’ve already debugged with @Molio-tan personally, now I put the debug progress here with @Molio-tan’s permission.

  1. Simply run yarn install --verbose under ./web directory image

  2. At the same time, see the output from /var/log/message: image

  3. Use coredumpctl info 16027 to see detailed coredump info image

Actually, we could find a similar issue https://github.com/nodejs/help/issues/3202, which shows us that nodejs-v14&v15 is not compatible with Redhat8-aarch64 while nodejs-v12 is OK, and nodejs-v14&15 works well with ubuntu20.04-aarch64. From the snapshot in step 2, we could the reason for the crash is about nodejs itself.

Moreover, from the yum repository provided by Kylin, the default version of nodejs in kylin-v10 is nodejs-10.11.0, see the rpm package here http://archive.kylinos.cn/yum/v10/pks/aarch64/os/Packages/n/nodejs-10.11.0-1.ky10.aarch64.rpm .

In conclusion, IMHO, the root cause is about the incompatibility between nodejs version and Operating System.

So @Molio-tan will then downgrade the nodejs to 10.11.0 to recheck if the problem still exists and then post your result back here, Thank you very much.

Thanks for reporting the problem, I’ll try to reproduce it when I have time and I’ll update here with any progress

Thank you anyway.I can’t wait for the solution.