noobaa / noobaa-core

High-performance S3 application gateway to any backend - file / s3-compatible / multi-clouds / caching / replication ...
https://www.noobaa.io
Apache License 2.0
272 stars 80 forks source link

Unhandled rejection Error: ENOENT: no such file or directory, stat '/data/noobaa_supervisor.conf' #5941

Closed guymguym closed 1 year ago

guymguym commented 4 years ago

Environment info

Actual behavior

  1. This error in the title appears in the logs on webserver restart right after loading certificates from file, although I didn't see it causing any problems yet:
    
    Mar-11 15:40:29.480 [BGWorkers/33]    [L0] core.server.bg_services.server_monitor:: _verify_ssl_certs: SSL certificates changed, restarting relevant services
    Mar-11 15:40:29.581 [BGWorkers/33]    [L0] core.util.os_utils:: restart_services: restarting noobaa services: webserver, s3rver
    Mar-11 15:40:29.582 [BGWorkers/33]    [L0] core.util.promise_utils:: spawn: supervisorctl restart webserver s3rver { detached: true } false
    2020-03-11 15:40:29,666 INFO waiting for webserver to stop
    2020-03-11 15:40:29,683 INFO stopped: webserver (terminated by SIGKILL)
    2020-03-11 15:40:29,685 INFO waiting for s3rver to stop

...

Mar-11 15:40:31.842 [WebServer/337] [LOG] CONSOLE:: init_rand_seed: seeding with 32 bytes OpenSSL 1.1.1c 28 May 2019 seeding randomness Mar-11 15:40:31.842 [WebServer/337] [LOG] CONSOLE:: init_rand_seed: done Mar-11 15:40:31.848 [WebServer/337] [WARN] CONSOLE:: Error on reading supervisor file { [Error: ENOENT: no such file or directory, stat '/data/noobaa_supervisor.conf'] cause: { Error: ENOENT: no such file or directory, stat '/data/noobaa_supervisor.conf' errno: -2, code: 'ENOENT', syscall: 'stat', path: '/data/noobaa_supervisor.conf' }, isOperational: true, errno: -2, code: 'ENOENT', syscall: 'stat', path: '/data/noobaa_supervisor.conf' } Mar-11 15:40:31.848 [WebServer/337] [WARN] CONSOLE:: Error on reading supervisor file { [Error: ENOENT: no such file or directory, stat '/data/noobaa_supervisor.conf'] cause: { Error: ENOENT: no such file or directory, stat '/data/noobaa_supervisor.conf' errno: -2, code: 'ENOENT', syscall: 'stat', path: '/data/noobaa_supervisor.conf' }, isOperational: true, errno: -2, code: 'ENOENT', syscall: 'stat', path: '/data/noobaa_supervisor.conf' } Mar-11 15:40:31.850 [WebServer/337] [WARN] CONSOLE:: Unhandled rejection Error: ENOENT: no such file or directory, stat '/data/noobaa_supervisor.conf' Mar-11 15:40:31.850 [WebServer/337] [WARN] CONSOLE:: Unhandled rejection Error: ENOENT: no such file or directory, stat '/data/noobaa_supervisor.conf' Mar-11 15:40:31.863 [WebServer/337] [L0] core.util.mongo_client:: _init_collection: created collection clusters Mar-11 15:40:31.867 [WebServer/337] [L0] core.util.mongo_client:: _init_collection: created collection systems Mar-11 15:40:31.867 [WebServer/337] [L0] core.util.mongo_client:: _init_collection: created collection namespace_resources Mar-11 15:40:31.869 [WebServer/337] [L0] core.util.mongo_client:: _init_collection: created collection roles Mar-11 15:40:31.869 [WebServer/337] [L0] core.util.mongo_client:: _init_collection: created collection accounts Mar-11 15:40:31.869 [WebServer/337] [L0] core.util.mongo_client:: _init_collection: created collection buckets Mar-11 15:40:31.872 [WebServer/337] [L0] core.util.mongo_client:: _init_collection: created collection tieringpolicies Mar-11 15:40:31.872 [WebServer/337] [L0] core.util.mongo_client:: _init_collection: created collection tiers Mar-11 15:40:31.872 [WebServer/337] [L0] core.util.mongo_client:: _init_collection: created collection agent_configs Mar-11 15:40:31.873 [WebServer/337] [L0] core.util.ssl_utils:: Using mounted certificates



### Expected behavior
1. Shouldn't have errors on clean startup

### Steps to reproduce
1. Restart webserver

### More information - Screenshots / Logs / Other output
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.