Open
Description
Environment info
- NooBaa Version: 5.17.5 But also all 5.17 and 5.18 version
- Platform: Docker Container
Actual behavior
- When calling the S3 bucket we get this error and our container crashes
noobaa-1 | Mar-28 15:20:48.760 [nsfs/7] [ERROR] CONSOLE:: PANIC: process uncaughtException TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
noobaa-1 | at Object.join (node:path:1203:7)
noobaa-1 | at new ConfigFS (/root/node_modules/noobaa-core/src/sdk/config_fs.js:38:39)
noobaa-1 | at new AccountSpaceFS (/root/node_modules/noobaa-core/src/sdk/accountspace_fs.js:49:26)
noobaa-1 | at new NsfsAccountSDK (/root/node_modules/noobaa-core/src/cmd/nsfs.js:228:28)
noobaa-1 | at init_request_sdk (/root/node_modules/noobaa-core/src/cmd/nsfs.js:365:35)
noobaa-1 | at Server.endpoint_request_handler (/root/node_modules/noobaa-core/src/endpoint/endpoint.js:286:9)
noobaa-1 | at Server.emit (node:events:519:28)
noobaa-1 | at Server.emit (node:domain:488:12)
noobaa-1 | at parserOnIncoming (node:_http_server:1140:12)
noobaa-1 | at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
Expected behavior
- Should respond with a no access message, like this
curl -k http://localhost:6001
<?xml version="1.0" encoding="UTF-8"?><Error><Code>AccessDenied</Code><Message>Access Denied</Message><Resource>/</Resource><RequestId>m8sxm30t-87aqce-twf</RequestId></Error>%
Steps to reproduce
- Build a docker file like this
FROM noobaa/noobaa-core:5.17.5
EXPOSE 6001
USER root
COPY ./resources/noobaa.sh /
RUN sed -i 's/force_md5_etag: false/force_md5_etag: true/' -- /root/node_modules/noobaa-core/src/cmd/nsfs.js
CMD ["/bin/bash", "noobaa.sh"]
This is the script copies into the container
#!/bin/bash
echo 'starting noobaa'
/usr/local/bin/node /root/node_modules/noobaa-core/src/cmd/nsfs.js /tmp --simple true --access_key=mykey --secret_key=mysecret --backend 'NFSv4'
Then Run
docker build -t nooba-local .
docker run --rm -p 6001:6001 nooba-local
#And check with a simple curl command
curl -k http://localhost:6001
More information - Screenshots / Logs / Other output
❯ docker run --rm -p 6001:6001 -p 6443:6443 nooba-local
starting noobaa
Error accrued while getting the data from /etc/noobaa.conf.d/config_dir_redirect: Error: ENOENT: no such file or directory, open '/etc/noobaa.conf.d/config_dir_redirect'
config.get_config_root - could not find custom config_root, will use the default config_root /etc/noobaa.conf.d
load_nsfs_nc_config.setting config.NSFS_NC_CONF_DIR /etc/noobaa.conf.d
config.load_nsfs_nc_config could not find config.json... skipping
Mar-28 15:24:14.025 [nsfs/7] [EVENT]{"timestamp":"2025-03-28T15:24:14.020Z","host":"d4f3dd7a01d7","event":{"code":"noobaa_gpfslib_missing","message":"Noobaa GPFS library file is missing","description":"Noobaa GPFS library file is missing","entity_type":"NODE","event_type":"STATE_CHANGE","scope":"NODE","severity":"ERROR","state":"DEGRADED","arguments":{},"pid":7}}
nsfs: setting up ... { fs_root: '/tmp', http_port: 6001, https_port: 6443, https_port_sts: -1, https_port_iam: -1, metrics_port: 7004, backend: 'NFSv4', forks: 0, access_key: SENSITIVE-bfeb78ddbd2f6b88, secret_key: SENSITIVE-7b6f7690ae2a5ecd, uid: 0, gid: 0, nsfs_config_root: undefined }
Mar-28 15:24:14.089 [nsfs/7] [L0] core.endpoint.endpoint:: endpoint: replacing old umask: 22 with new umask: 0
Mar-28 15:24:14.089 [nsfs/7] [L0] core.endpoint.endpoint:: Configured Virtual Hosts: []
Mar-28 15:24:14.090 [nsfs/7] [L0] core.endpoint.endpoint:: Configured Location Info: { region: '' }
Mar-28 15:24:14.091 [nsfs/7] [WARN] CONSOLE:: config.load_nsfs_nc_config could not find config.json... skipping
Mar-28 15:24:14.091 [nsfs/7] [LOG] CONSOLE:: read_rand_seed: reading 32 bytes from /dev/urandom ...
Mar-28 15:24:14.092 [nsfs/7] [LOG] CONSOLE:: read_rand_seed: got 32 bytes from /dev/urandom, total 32 ...
Mar-28 15:24:14.092 [nsfs/7] [LOG] CONSOLE:: read_rand_seed: closing fd ...
Mar-28 15:24:14.093 [nsfs/7] [LOG] CONSOLE:: init_rand_seed: seeding with 32 bytes
Mar-28 15:24:14.093 [nsfs/7] [LOG] CONSOLE:: init_rand_seed: done
Mar-28 15:24:14.113 [nsfs/7] [L0] core.util.ssl_utils:: SSL certificate loaded from dir /etc/s3-secret
Mar-28 15:24:14.116 [nsfs/7] [L0] core.util.ssl_utils:: SSL certificate not found in dir /etc/sts-secret
Mar-28 15:24:14.116 [nsfs/7] [WARN] core.util.ssl_utils:: Generating self-signed SSL certificate for STS
Mar-28 15:24:14.310 [nsfs/7] [WARN] core.util.ssl_utils:: Certificate folder /etc/sts-secret does not exist. New certificate won't be loaded.
Mar-28 15:24:14.311 [nsfs/7] [L0] core.endpoint.endpoint:: Starting S3 HTTP 6001
Mar-28 15:24:14.312 [nsfs/7] [L0] core.endpoint.endpoint:: Started S3 HTTP successfully
Mar-28 15:24:14.312 [nsfs/7] [L0] core.endpoint.endpoint:: Starting S3 HTTPS 6443
Mar-28 15:24:14.312 [nsfs/7] [L0] core.endpoint.endpoint:: Started S3 HTTPS successfully
Mar-28 15:24:14.312 [nsfs/7] [L0] core.endpoint.endpoint:: Starting metrics server 7004
Mar-28 15:24:14.313 [nsfs/7] [L0] core.server.analytic_services.prometheus_reporting:: Starting prometheus metrics server on HTTP port 7004
Mar-28 15:24:14.313 [nsfs/7] [L0] core.endpoint.endpoint:: Started metrics server successfully
Mar-28 15:24:14.313 [nsfs/7] [L0] core.util.background_scheduler:: Registering semaphore_monitor bg worker
Mar-28 15:24:14.313 [nsfs/7] [LOG] core.util.background_scheduler:: run_background_worker: INIT semaphore_monitor
Mar-28 15:24:14.313 [nsfs/7] [EVENT]{"timestamp":"2025-03-28T15:24:14.313Z","host":"d4f3dd7a01d7","event":{"code":"noobaa_started","message":"Noobaa started","description":"Noobaa started running","entity_type":"NODE","event_type":"STATE_CHANGE","scope":"NODE","severity":"INFO","state":"HEALTHY","pid":7}}
Mar-28 15:24:14.313 [nsfs/7] [L0] core.endpoint.endpoint:: Endpoint monitor started
Mar-28 15:24:14.313 [nsfs/7] [LOG] CONSOLE:: nsfs: listening on 'https://localhost:6443'
Mar-28 15:24:18.490 [nsfs/7] [ERROR] CONSOLE:: PANIC: process uncaughtException TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at Object.join (node:path:1203:7)
at new ConfigFS (/root/node_modules/noobaa-core/src/sdk/config_fs.js:38:39)
at new AccountSpaceFS (/root/node_modules/noobaa-core/src/sdk/accountspace_fs.js:49:26)
at new NsfsAccountSDK (/root/node_modules/noobaa-core/src/cmd/nsfs.js:228:28)
at init_request_sdk (/root/node_modules/noobaa-core/src/cmd/nsfs.js:365:35)
at Server.endpoint_request_handler (/root/node_modules/noobaa-core/src/endpoint/endpoint.js:286:9)
at Server.emit (node:events:519:28)
at Server.emit (node:domain:488:12)
at parserOnIncoming (node:_http_server:1140:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
Metadata
Metadata
Assignees
Labels
No labels