better logs #39

Open
opened 2023-12-30 22:00:21 +00:00 by trav · 2 comments
Owner

nextcloud own logs need to send to container logs

tail -n10 data/nextcloud.log | jq

WRT debugging nextcloud.vrec.coop not coming up on 2023-12-30

nextcloud own logs need to send to container logs `tail -n10 data/nextcloud.log | jq` WRT debugging nextcloud.vrec.coop not coming up on 2023-12-30
Owner

Does abra app run <domain> app bash -c "tail -n10 data/nextcloud.log | jq" not work?

Could be a abra.sh script also, for convenience.

Not sure how to get those app logs into the container logs tbh.

Does `abra app run <domain> app bash -c "tail -n10 data/nextcloud.log | jq"` not work? Could be a `abra.sh` script also, for convenience. Not sure how to get those app logs into the container logs tbh.
Owner

Not sure how to get those app logs into the container logs tbh.

Telling nextcloud to log to stdout is one way, although that might break the log viewer that is (for some reason) included in Nextcloud UI.

It generally seems a bit wacky to have log files building up in a data volume, but maybe Nextcloud is enough of a special case to justify it.

Does abra app run <domain> app bash -c "tail -n10 data/nextcloud.log | jq" not work?

Moving jq outside the "" works (no jq in Nextcloud container), but it's not very discoverable. abra.sh command could help perhaps, yes.

> Not sure how to get those app logs into the container logs tbh. Telling nextcloud to log to stdout is one way, although that might break the log viewer that is (for some reason) included in Nextcloud UI. It generally seems a bit wacky to have log files building up in a data volume, but maybe Nextcloud is enough of a special case to justify it. > Does `abra app run <domain> app bash -c "tail -n10 data/nextcloud.log | jq"` not work? Moving `jq` outside the `""` works (no `jq` in Nextcloud container), but it's not very discoverable. `abra.sh` command could help perhaps, yes.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/nextcloud#39
No description provided.