Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI][Docs] test-ubuntu-22.04-docs failed on installing Node.js #37120

Closed
kou opened this issue Aug 11, 2023 · 0 comments · Fixed by #37121
Closed

[CI][Docs] test-ubuntu-22.04-docs failed on installing Node.js #37120

kou opened this issue Aug 11, 2023 · 0 comments · Fixed by #37121

Comments

@kou
Copy link
Member

kou commented Aug 11, 2023

Describe the bug, including details regarding any error messages, version, and platform.

https://github.com/ursacomputing/crossbow/actions/runs/5815469472/job/15767078411#step:7:2635

#12 [ 6/16] RUN wget -q -O - https://deb.nodesource.com/setup_18.x | bash - &&     apt-get install -y nodejs &&     apt-get clean &&     rm -rf /var/lib/apt/lists/* &&     npm install -g yarn
#12 0.662 
#12 0.663 ## Installing the NodeSource Node.js 18.x repo...
#12 0.663 
#12 0.665 
#12 0.665 ## Populating apt-get cache...
#12 0.665 
#12 0.665 + apt-get update
#12 0.784 Get:1 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease [3626 B]
#12 0.792 Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
#12 0.833 Get:3 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
#12 0.883 Get:4 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ Packages [43.3 kB]
#12 1.055 Get:5 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [849 kB]
#12 1.078 Get:6 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
#12 1.135 Get:7 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
#12 1.193 Get:8 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
#12 7.627 Preparing to unpack .../nodejs_18.17.1-deb-1nodesource1_amd64.deb ...
#12 7.632 Unpacking nodejs (18.17.1-deb-1nodesource1) over (12.22.9~dfsg-1ubuntu3) ...
#12 9.893 dpkg: error processing archive /var/cache/apt/archives/nodejs_18.17.1-deb-1nodesource1_amd64.deb (--unpack):
#12 9.893  trying to overwrite '/usr/include/node/common.gypi', which is also in package libnode-dev 12.22.9~dfsg-1ubuntu3
#12 9.971 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
#12 9.984 Errors were encountered while processing:
#12 9.984  /var/cache/apt/archives/nodejs_18.17.1-deb-1nodesource1_amd64.deb
#12 9.998 E: Sub-process /usr/bin/dpkg returned an error code (1)
#12 ERROR: process "/bin/bash -o pipefail -c wget -q -O - [https://deb.nodesource.com/setup_${node}.x](https://deb.nodesource.com/setup_$%7Bnode%7D.x) | bash - &&     apt-get install -y nodejs &&     apt-get clean &&     rm -rf /var/lib/apt/lists/* &&     npm install -g yarn" did not complete successfully: exit code: 100
------
 > importing cache manifest from apache/arrow-dev:amd64-ubuntu-22.04-docs:
------
------
 > [ 6/16] RUN wget -q -O - https://deb.nodesource.com/setup_18.x | bash - &&     apt-get install -y nodejs &&     apt-get clean &&     rm -rf /var/lib/apt/lists/* &&     npm install -g yarn:
7.560 Removing node-which (2.0.2+~cs1.3.2-2) ...
7.598 (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 63250 files and directories currently installed.)
7.627 Preparing to unpack .../nodejs_18.17.1-deb-1nodesource1_amd64.deb ...
7.632 Unpacking nodejs (18.17.1-deb-1nodesource1) over (12.22.9~dfsg-1ubuntu3) ...
9.893 dpkg: error processing archive /var/cache/apt/archives/nodejs_18.17.1-deb-1nodesource1_amd64.deb (--unpack):
9.893  trying to overwrite '/usr/include/node/common.gypi', which is also in package libnode-dev 12.22.9~dfsg-1ubuntu3
9.971 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
9.984 Errors were encountered while processing:
9.984  /var/cache/apt/archives/nodejs_18.17.1-deb-1nodesource1_amd64.deb
9.998 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
linux-apt-docs.dockerfile:71
--------------------
  70 |     ARG node=16
  71 | >>> RUN wget -q -O - [https://deb.nodesource.com/setup_${node}.x](https://deb.nodesource.com/setup_$%7Bnode%7D.x) | bash - && \
  72 | >>>     apt-get install -y nodejs && \
  73 | >>>     apt-get clean && \
  74 | >>>     rm -rf /var/lib/apt/lists/* && \
  75 | >>>     npm install -g yarn
  76 |     
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c wget -q -O - [https://deb.nodesource.com/setup_${node}.x](https://deb.nodesource.com/setup_$%7Bnode%7D.x) | bash - &&     apt-get install -y nodejs &&     apt-get clean &&     rm -rf /var/lib/apt/lists/* &&     npm install -g yarn" did not complete successfully: exit code: 100
Service 'ubuntu-docs' failed to build : Build failed

This is related to GH-36988 that adds npm to ci/docker/ubuntu-22.04-cpp.dockerfile and it causes this error.

Component(s)

Continuous Integration, Documentation

@kou kou added the Type: bug label Aug 11, 2023
kou added a commit to kou/arrow that referenced this issue Aug 11, 2023
We want to use the specified Node.js and existing Node.js may be
conflicted.
kou added a commit that referenced this issue Aug 11, 2023
### Rationale for this change

We want to use the specified Node.js and existing Node.js may be conflicted.

### What changes are included in this PR?

We remove existing Node.js explicitly before we install the specified Node.js. 

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: #37120

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
@kou kou added this to the 14.0.0 milestone Aug 11, 2023
loicalleyne pushed a commit to loicalleyne/arrow that referenced this issue Nov 13, 2023
…7121)

### Rationale for this change

We want to use the specified Node.js and existing Node.js may be conflicted.

### What changes are included in this PR?

We remove existing Node.js explicitly before we install the specified Node.js. 

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: apache#37120

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant