Skip to content

[bug?] - container environment not detected / log file permissions issue #7

Description

@kquinsland

With the container images pushed, I have this working in a k8s cluster with one small issue.

On start up, this is all I see in the logs

╔══════════════════════════════════════╗                                                                                                                                                 
║  onWatch v2.10.0                     ║                                                                                                                                                 
╠══════════════════════════════════════╣                                                                                                                                                 
║  Providers: copilot                  ║                                                                                                                                                 
║  API:       github.com/copilot (β)   ║                                                                                                                                                 
║  Polling:   every 2m0s              ║                                                                                                                                                  
║  Dashboard: http://localhost:9211    ║                                                                                                                                                 
║  Database:  /data/onwatch.db         ║                                                                                                                                                 
║  Auth:      admin / ****            ║                                                                                                                                                  
╚══════════════════════════════════════╝                                                                                                                                                 
                                                                                                                                                                                         
Copilot Token:     <...>                                                                                                                                                     
                                                                                                                                                                                         
Error: failed to open log file for daemon: open /data/.onwatch.log: permission denied      

I am not precisely sure why this is happening but before I dive in / spend a ton of time running a few experiments, I wanted to ask if there was a way to explicitly disable logging to a file / log directly to std{out,err}.

Metadata

Metadata

Assignees

No one assigned

    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