Skip to content

Improve user feedback when directories are missing #314

@SiboVG

Description

@SiboVG

I had trouble getting my storage and config manager to start, getting the following message from cgse core status:

Status of the core services...                                                                                                                                                                                 
Notification Hub:                                                                                                                                                                                              
    Status: ok                                                                                                                                                                                                 
    Collector port: 6125                                                                                                                                                                                       
    Publisher port: 6126                                                                                                                                                                                       
    Requests port: 6167                                                                                                                                                                                        
    Statistics:                                                                                                                                                                                                
        Events received: 0                                                                                                                                                                                     
        Events published: 0                                                                                                                                                                                    
        Time of last message: 01 Jan 1970 01:00:00                                                                                                                                                             
Registry Service:                                                                                                                                                                                              
    Status: ok                                                                                                                                                                                                 
    Requests port: 4242                                                                                                                                                                                        
    Notifications port: 4243                                                                                                                                                                                   
    Heartbeat port: 4244                                                                                                                                                                                       
    Registrations: (pm_cs, passing), (nh_cs, passing), (log_cs, passing)                                                                                                                                       
Log Manager:                                                                                                                                                                                                   
    Status: active                                                                                                                                                                                             
    Logging port: 6105                                                                                                                                                                                         
    Commanding port: 6106                                                                                                                                                                                      
    Level (file): DEBUG                                                                                                                                                                                        
    Level (stdout): INFO                                                                                                                                                                                       
    Log file location: /Users/sibo/Desktop/CubeSpec/Software/TVAC_Testing/data/CUBESPEC/log/general.log                                                                                                        
Process Manager:                                                                                                                                                                                               
    Status: active                                                                                                                                                                                             
    Hostname: 192.168.0.25                                                                                                                                                                                     
    Monitoring port: 6121                                                                                                                                                                                      
    Commanding port: 6120                                                                                                                                                                                      
    Service port: 6122                                                                                                                                                                                         
Storage Manager Status: not active (Proxy is not connected when entering the context.)                                                                                                                         
Configuration Manager Status: not active (Proxy is not connected when entering the context.)   

Note that last 2 lines, just stating "Proxy is not connected when entering the context.". It turned out that have the correct directories that I defined in my env vars for CUBESPEC_CONF_DATA_LOCATION, CUBESPEC_LOG_FILE_LOCATION, and CUBESPEC_DATA_STORAGE_LOCATION. It would be nice for cgse to check the existence of these directories and give better feedback to the user if the directories are not correctly set up.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions