Hi:
Good news, I just successfully install the admin console, and now I can see all the things !
There are two things I just learned and want to share:
- Debian 11 stable works fine. However, there are some error could happen on Ubuntu 20 and 22 LTS.
- I installed the wrong version of nodejs. After the update, if ZITI shows error message while installation. Delete .ziti folder and reinstall ZITI from beginning can solve it .
Moreover, I still have some questions:
- How long time ZITI Console can run in the browser? If I do not touch my machine over night, is it going to time-out?
- If I want the ZITI system or Console run for a long time, and I do not need to worry about time-out issue, what should I do?
- While the Console install, there are still some error message. Even I can run the Console now, I still want to know the reason for the errors and are they serious problem? The message as following:
klabzhao@klabzhao:~$ source ${HOME}/.ziti/quickstart/newfolder/newfolder.env
bash: /home/klabzhao/.ziti/quickstart/newfolder/newfolder.env: No such file or directory
klabzhao@klabzhao:~$ git clone GitHub - openziti/ziti-console “${ZITI_HOME}/ziti-console”
Cloning into ‘/home/klabzhao/.ziti/quickstart/klabzhao/ziti-console’…
remote: Enumerating objects: 1709, done.
remote: Counting objects: 100% (116/116), done.
remote: Compressing objects: 100% (72/72), done.
remote: Total 1709 (delta 60), reused 72 (delta 37), pack-reused 1593
Receiving objects: 100% (1709/1709), 13.28 MiB | 5.37 MiB/s, done.
Resolving deltas: 100% (1134/1134), done.
klabzhao@klabzhao:~$ npm version
{
npm: ‘8.19.3’,
node: ‘18.13.0’,
v8: ‘10.2.154.23-node.21’,
uv: ‘1.44.2’,
zlib: ‘1.2.13’,
brotli: ‘1.0.9’,
ares: ‘1.18.1’,
modules: ‘108’,
nghttp2: ‘1.51.0’,
napi: ‘8’,
llhttp: ‘6.0.10’,
uvwasi: ‘0.0.13’,
openssl: ‘3.0.7+quic’,
cldr: ‘42.0’,
icu: ‘72.1’,
tz: ‘2022f’,
unicode: ‘15.0’,
ngtcp2: ‘0.8.1’,
nghttp3: ‘0.7.0’
}
klabzhao@klabzhao:~$ cd “${ZITI_HOME}/ziti-console”
klabzhao@klabzhao:~/.ziti/quickstart/klabzhao/ziti-console$ npm install
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See There’s Math.random(), and then there’s Math.random() · V8 for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see Request’s Past, Present and Future · Issue #3142 · request/request · GitHub
added 143 packages, and audited 373 packages in 4s
22 packages are looking for funding
run npm fund
for details
found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 8.19.3 → 9.4.0
npm notice Changelog: Release v9.4.0 · npm/cli · GitHub
npm notice Run npm install -g npm@9.4.0 to update!
npm notice
klabzhao@klabzhao:~/.ziti/quickstart/klabzhao/ziti-console$ ln -s “${ZITI_PKI}/${ZITI_EDGE_CONTROLLER_HOSTNAME}-intermediate/certs/${ZITI_EDGE_CONTROLLER_HOSTNAME}-server.chain.pem” “${ZITI_HOME}/ziti-console/server.chain.pem”
ln -s “${ZITI_PKI}/${ZITI_EDGE_CONTROLLER_HOSTNAME}-intermediate/keys/${ZITI_EDGE_CONTROLLER_HOSTNAME}-server.key” “${ZITI_HOME}/ziti-console/server.key”
klabzhao@klabzhao:~/.ziti/quickstart/klabzhao/ziti-console$ createZacSystemdFile
sudo cp “${ZITI_HOME}/ziti-console.service” /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable --now ziti-console
ziti-console systemd file written to: /home/klabzhao/.ziti/quickstart/klabzhao/ziti-console.service
[sudo] password for klabzhao:
klabzhao@klabzhao:~/.ziti/quickstart/klabzhao/ziti-console$ node “${ZITI_HOME}/ziti-console/server.js”
Initializing TLS
TLS initialized on port: 8443
Ziti Server running on port 1408
TLS initialized on port: 8443
node:events:491
throw er; // Unhandled ‘error’ event
^
Error: listen EADDRINUSE: address already in use :::1408
at Server.setupListenHandle [as _listen2] (node:net:1733:16)
at listenInCluster (node:net:1781:12)
at Server.listen (node:net:1869:7)
at Function.listen (/home/klabzhao/.ziti/quickstart/klabzhao/ziti-console/node_modules/express/lib/application.js:635:24)
at file:///home/klabzhao/.ziti/quickstart/klabzhao/ziti-console/server.js:1453:5
Emitted ‘error’ event on Server instance at:
at emitErrorNT (node:net:1760:8)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: ‘EADDRINUSE’,
errno: -98,
syscall: ‘listen’,
address: ‘::’,
port: 1408
}
Node.js v18.13.0
bash: Initializing: command not found
bash: TLS: command not found
bash: Ziti: command not found
klabzhao@klabzhao:~/.ziti/quickstart/klabzhao/ziti-console$ sudo systemctl status ziti-console --lines=0 --no-pager
● ziti-console.service - Ziti-Console
Loaded: loaded (/etc/systemd/system/ziti-console.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2023-02-01 11:42:05 PST; 35s ago
Main PID: 2424847 (node)
Tasks: 11 (limit: 18693)
Memory: 27.8M
CPU: 376ms
CGroup: /system.slice/ziti-console.service
└─2424847 /usr/local/bin/node /home/klabzhao/.ziti/quickstart/klabzhao/ziti-console/server.js
klabzhao@klabzhao:~/.ziti/quickstart/klabzhao/ziti-console$ sudo ss -lntp | grep node
LISTEN 0 511 *:8443 : users:((“node”,pid=2424847,fd=19))
LISTEN 0 511 *:1408 : users:((“node”,pid=2424847,fd=18))
klabzhao@klabzhao:~/.ziti/quickstart/klabzhao/ziti-console$