Project

General

Profile

Bug #24438

make-dist on arm64 fails due to nodeenv for the dashboard

Added by Paul Emmerich almost 6 years ago. Updated almost 3 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
Build, CI, Dependencies & Tools
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

It fails when trying to download node/npm binaries

 * Install prebuilt node (8.10.0) .
Traceback (most recent call last):
  File "/tmp/tmp.5XyTKVfpuM/bin/nodeenv", line 11, in <module>
    sys.exit(main())
  File "/tmp/tmp.5XyTKVfpuM/local/lib/python2.7/site-packages/nodeenv.py", line 1072, in main
    create_environment(env_dir, opt)
  File "/tmp/tmp.5XyTKVfpuM/local/lib/python2.7/site-packages/nodeenv.py", line 901, in create_environment
    install_node(env_dir, src_dir, opt)
  File "/tmp/tmp.5XyTKVfpuM/local/lib/python2.7/site-packages/nodeenv.py", line 693, in install_node
    download_node_src(node_url, src_dir, opt, prefix)
  File "/tmp/tmp.5XyTKVfpuM/local/lib/python2.7/site-packages/nodeenv.py", line 542, in download_node_src
    dl_contents = io.BytesIO(urlopen(node_url).read())
  File "/tmp/tmp.5XyTKVfpuM/local/lib/python2.7/site-packages/nodeenv.py", line 565, in urlopen
    return urllib2.urlopen(req)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

it tries to download from https://nodejs.org/dist/v8.10.0/node-v8.10.0-linux-armv64.tar.gz but it should download from https://nodejs.org/dist/v8.10.0/node-v8.10.0-linux-arm64.tar.gz

Root cause is a bug is in nodeenv: https://github.com/ekalinin/nodeenv/issues/209 which is already fixed there, it's just not yet in pip.

History

#1 Updated by Nathan Cutler almost 6 years ago

  • Project changed from devops to mgr

#2 Updated by Sebastian Wagner over 4 years ago

  • Category set to 160

#3 Updated by Sebastian Wagner over 4 years ago

Got a similar trackback on x86:

https://jenkins.ceph.com/job/ceph-pull-requests/36623/consoleFull

.Traceback (most recent call last):
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/build/src/pybind/mgr/dashboard/node-env/bin/nodeenv", line 8, in <module>
    sys.exit(main())
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/build/src/pybind/mgr/dashboard/node-env/local/lib/python2.7/site-packages/nodeenv.py", line 1076, in main
    create_environment(env_dir, opt)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/build/src/pybind/mgr/dashboard/node-env/local/lib/python2.7/site-packages/nodeenv.py", line 905, in create_environment
    install_node(env_dir, src_dir, opt)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/build/src/pybind/mgr/dashboard/node-env/local/lib/python2.7/site-packages/nodeenv.py", line 692, in install_node
    download_node_src(node_url, src_dir, opt, prefix)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/build/src/pybind/mgr/dashboard/node-env/local/lib/python2.7/site-packages/nodeenv.py", line 549, in download_node_src
    member_list = tarfile_obj.getmembers()
  File "/usr/lib/python2.7/tarfile.py", line 1836, in getmembers
    self._load()        # all members, we first have to
  File "/usr/lib/python2.7/tarfile.py", line 2417, in _load
    tarinfo = self.next()
  File "/usr/lib/python2.7/tarfile.py", line 2348, in next
    self.fileobj.seek(self.offset - 1)
  File "/usr/lib/python2.7/gzip.py", line 443, in seek
    self.read(1024)
  File "/usr/lib/python2.7/gzip.py", line 268, in read
    self._read(readsize)
  File "/usr/lib/python2.7/gzip.py", line 315, in _read
    self._read_eof()
  File "/usr/lib/python2.7/gzip.py", line 354, in _read_eof
    hex(self.crc)))
IOError: CRC check failed 0x79f1dfc != 0x9bd865eaL
src/pybind/mgr/dashboard/CMakeFiles/mgr-dashboard-nodeenv.dir/build.make:60: recipe for target 'src/pybind/mgr/dashboard/node-env/bin/npm' failed
make[3]: *** [src/pybind/mgr/dashboard/node-env/bin/npm] Error 1
CMakeFiles/Makefile2:4651: recipe for target 'src/pybind/mgr/dashboard/CMakeFiles/mgr-dashboard-nodeenv.dir/all' failed
make[2]: *** [src/pybind/mgr/dashboard/CMakeFiles/mgr-dashboard-nodeenv.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....

Seems to be totally random.

#4 Updated by Ernesto Puerta about 3 years ago

  • Status changed from New to Can't reproduce

Closing as we haven't had further reports of this one. Please re-open otherwise.

#5 Updated by Ernesto Puerta almost 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 160 to Build, CI, Dependencies & Tools

Also available in: Atom PDF