Ted Lin created AMBARI-25937:
--------------------------------

             Summary: .dev-support/docker/centos7/build-containers.sh failed
                 Key: AMBARI-25937
                 URL: https://issues.apache.org/jira/browse/AMBARI-25937
             Project: Ambari
          Issue Type: Bug
          Components: build
            Reporter: Ted Lin


According to README.md:

1.
{code:java}
./build-image.sh{code}
 
{code:java}
Removing intermediate container 92474ddfda27
 ---> b70481fab837
Step 5/7 : RUN /bin/sed -i 's,#   StrictHostKeyChecking 
ask,StrictHostKeyChecking no,g' /etc/ssh/ssh_config
 ---> Running in 07c0f7a7b489
Removing intermediate container 07c0f7a7b489
 ---> 3c093c0e0252
Step 6/7 : RUN ssh-keygen -f "/root/.ssh/id_rsa" -N ""
 ---> Running in 2febcef461e7
Generating public/private rsa key pair.
Created directory '/root/.ssh'.
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:jj5w6LJIFOInAMw770RZ0DRQmFN5RmIh9GoSl3wJFJA root@2febcef461e7
The key's randomart image is:
+---[RSA 2048]----+
|+.=O@O+.         |
|.E.+*++o         |
|oo.+++o          |
|+o+oo            |
| =++ .  S        |
|. =oo .o         |
| .o. o. .        |
|.......          |
|. .o  ..         |
+----[SHA256]-----+
Removing intermediate container 2febcef461e7
 ---> f8ad018e5a79
Step 7/7 : EXPOSE 1-65535
 ---> Running in e0458229ef34
Removing intermediate container e0458229ef34
 ---> 2669f04b2e3c
Successfully built 2669f04b2e3c
Successfully tagged ambari/develop:trunk-centos-7
 
{code}
2.
{code:java}
./build-containers.sh{code}
{code:java}
[WARNING] npm WARN deprecated [email protected]: We don't recommend using Bower for 
new projects. Please consider Yarn and Webpack or Parcel. You can read how to 
migrate legacy project here: 
https://bower.io/blog/2017/how-to-migrate-away-from-bower/
[ERROR] npm notice 
[ERROR] npm notice New major version of npm available! 8.19.2 -> 9.6.6
[ERROR] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.6>
[ERROR] npm notice Run `npm install -g [email protected]` to update!
[ERROR] npm notice 
[ERROR] npm ERR! code 1
[ERROR] npm ERR! path 
/opt/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/phantomjs
[ERROR] npm ERR! command failed
[ERROR] npm ERR! command sh -c -- node install.js
[ERROR] npm ERR! PhantomJS not found on PATH
[ERROR] npm ERR! Phantom installation failed TypeError [ERR_INVALID_ARG_TYPE]: 
The "path" argument must be of type string. Received undefined
[ERROR] npm ERR!     at new NodeError (node:internal/errors:387:5)
[ERROR] npm ERR!     at validateString (node:internal/validators:162:11)
[ERROR] npm ERR!     at Object.join (node:path:1172:7)
[ERROR] npm ERR!     at findSuitableTempDirectory 
(/opt/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/phantomjs/install.js:127:30)
[ERROR] npm ERR!     at 
/opt/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/phantomjs/install.js:476:19
[ERROR] npm ERR!     at nextTickCallback 
(/opt/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/kew/kew.js:47:28)
[ERROR] npm ERR!     at processTicksAndRejections 
(node:internal/process/task_queues:78:11) {
[ERROR] npm ERR!   code: 'ERR_INVALID_ARG_TYPE'
[ERROR] npm ERR! } TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must 
be of type string. Received undefined
[ERROR] npm ERR!     at new NodeError (node:internal/errors:387:5)
[ERROR] npm ERR!     at validateString (node:internal/validators:162:11)
[ERROR] npm ERR!     at Object.join (node:path:1172:7)
[ERROR] npm ERR!     at findSuitableTempDirectory 
(/opt/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/phantomjs/install.js:127:30)
[ERROR] npm ERR!     at 
/opt/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/phantomjs/install.js:476:19
[ERROR] npm ERR!     at nextTickCallback 
(/opt/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/kew/kew.js:47:28)
[ERROR] npm ERR!     at processTicksAndRejections 
(node:internal/process/task_queues:78:11)
[ERROR] 
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR!     /root/.npm/_logs/2023-05-15T08_15_32_224Z-debug-0.log
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Ambari Main 3.0.0.0-SNAPSHOT:
[INFO] 
[INFO] Ambari Main ........................................ SUCCESS [32:06 min]
[INFO] Apache Ambari Project POM .......................... SUCCESS [  0.145 s]
[INFO] Ambari Web ......................................... SUCCESS [05:52 min]
[INFO] Ambari Views ....................................... SUCCESS [03:55 min]
[INFO] Ambari Admin View .................................. FAILURE [01:11 min]
[INFO] ambari-utility ..................................... SKIPPED
[INFO] Ambari Server SPI .................................. SKIPPED
[INFO] Ambari Service Advisor ............................. SKIPPED
[INFO] Ambari Server ...................................... SKIPPED
[INFO] Ambari Functional Tests ............................ SKIPPED
[INFO] Ambari Agent ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  45:20 min
[INFO] Finished at: 2023-05-15T08:16:24Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
com.github.eirslett:frontend-maven-plugin:1.3:npm (npm install) on project 
ambari-admin: Failed to run task: 'npm install --unsafe-perm' failed. (error 
code 1) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :ambari-admin
ambari-rpm-build{code}
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to