Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No logging when running rock. #37

Closed
dstathis opened this issue Apr 25, 2023 · 2 comments · Fixed by canonical/rockcraft#243
Closed

No logging when running rock. #37

dstathis opened this issue Apr 25, 2023 · 2 comments · Fixed by canonical/rockcraft#243

Comments

@dstathis
Copy link
Contributor

dstathis commented Apr 25, 2023

Bug Description

When run with the container image from ghcr, I only see the pebble logs but not the actual application logs.

To Reproduce

docker run -p 8080:8080 --mount type=bind,source="$(pwd)"/cos-alerter.yaml,target=/etc/cos-alerter.yaml,readonly ghcr.io/canonical/cos-alerter:latest

Environment

$ docker --version
Docker version 20.10.17, build 100c70180f

Relevant log output

$ docker run -p 8080:8080 --mount type=bind,source="$(pwd)"/cos-alerter.yaml,target=/etc/cos-alerter.yaml,readonly ghcr.io/canonical/cos-alerter:latest
2023-04-25T11:09:28.020Z [pebble] Started daemon.
2023-04-25T11:09:28.027Z [pebble] POST /v1/services 6.652236ms 202
2023-04-25T11:09:28.028Z [pebble] Started default services with change 1.
2023-04-25T11:09:28.033Z [pebble] Service "cos-alerter" starting: /usr/bin/cos-alerter
^C2023-04-25T11:12:43.630Z [pebble] Exiting on interrupt signal.
2023-04-25T11:12:43.639Z [pebble] Stopping all running services.
2023-04-25T11:12:43.677Z [pebble] Service "cos-alerter" stopped

Additional context

No response

@dstathis dstathis added the bug label Apr 25, 2023
@simskij
Copy link
Member

simskij commented Apr 29, 2023

This issue will be solved by canonical/rockcraft#243

@dstathis
Copy link
Contributor Author

dstathis commented Jul 3, 2023

Solved by the issue mentioned above.

@dstathis dstathis closed this as completed Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants