我已经按照本教程在 Ubuntu 22.04 上从 Github 安装了最新版本的 Wilma。不幸的是,当我尝试使用
sudo npm start
启动服务器时,服务器不想出现。以下内容显示约两分钟,然后中止:
> [email protected] start
> node ./bin/www
(node:10576) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
我似乎无法在任何可以检查任何问题的地方找到日志文件。谁能告诉我在哪里可以找到日志文件或者如何尝试解决我的问题?
我已经包含了下面的软件版本,以防有所帮助。
Ubuntu: 22.04
NPM: {
'fiware-pep-proxy': '8.3.0',
npm: '8.5.1',
node: '12.22.9',
v8: '7.8.279.23-node.56',
uv: '1.43.0',
zlib: '1.2.11',
brotli: '1.0.9',
ares: '1.18.1',
modules: '72',
nghttp2: '1.43.0',
napi: '8',
llhttp: '2.1.6',
http_parser: '2.9.4',
openssl: '1.1.1m',
cldr: '40.0',
icu: '70.1',
tz: '2024a',
unicode: '14.0'
}
使用
DEBUG=* node ./bin/www
我能够看到服务器抛出了错误消息 SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:331:
。
根据此Github问题,这是一个通用协议不匹配错误。原因是在我的 config.js 中,当 SSL=true 时,IdM 地址的端口仍设置为 3000。将端口更改为 443 后,服务器启动顺利。