let abra app errors show errors that docker stack ps --no-trunc does #339

Closed
opened 2022-08-09 08:27:25 +00:00 by yksflip · 2 comments
Owner

abra app ps/errors/logs are already super helpful when debugging new recipes. The only time I break out of abra-flow is when some entrypoint/secret/config stuff is wrong, which mostly reveals by looking into docker stack ps --no-trunc. Not sure whats the difference to abra app ps. It's not a very high priority thing for me, but could be useful!

this would be a recent example me failing on go templating with onlyoffice :D

➜ abra app errors onlyoffice.dev.local-it.cloud
WARN[0001] app is not up, something seems wrong
➜ abra app logs onlyoffice.dev.local-it.cloud app
[empty]
➜ abra app ps onlyoffice.dev.local-it.cloud
+--------------+----------------+---------------+------------------------+---------+-----------------------------------------------------+
| SERVICE NAME |     IMAGE      |    CREATED    |         STATUS         |  STATE  |                        PORTS                        |
+--------------+----------------+---------------+------------------------+---------+-----------------------------------------------------+
| db           | postgres:9.5   | 6 minutes ago | Up 6 minutes (healthy) | running | 5432/tcp                                            |
| rabbitmq     | rabbitmq:3.9.5 | 6 minutes ago | Up 6 minutes (healthy) | running | 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp |
+--------------+----------------+---------------+------------------------+---------+-----------------------------------------------------+


➜ docker stack ps --no-trunc onlyoffice_dev_local-it_cloud
[...]
app:
    "starting container failed: unable to get config from config store: failed to expand templated config njigze3bc5kzcqy1x28jnxptm: template: expansion:5: function "DB_TYPE" not defined"

`abra app ps/errors/logs` are already super helpful when debugging new recipes. The only time I break out of *abra-flow* is when some entrypoint/secret/config stuff is wrong, which mostly reveals by looking into `docker stack ps --no-trunc`. Not sure whats the difference to `abra app ps`. It's not a very high priority thing for me, but could be useful! this would be a recent example me failing on go templating with onlyoffice :D ``` ➜ abra app errors onlyoffice.dev.local-it.cloud WARN[0001] app is not up, something seems wrong ➜ abra app logs onlyoffice.dev.local-it.cloud app [empty] ➜ abra app ps onlyoffice.dev.local-it.cloud +--------------+----------------+---------------+------------------------+---------+-----------------------------------------------------+ | SERVICE NAME | IMAGE | CREATED | STATUS | STATE | PORTS | +--------------+----------------+---------------+------------------------+---------+-----------------------------------------------------+ | db | postgres:9.5 | 6 minutes ago | Up 6 minutes (healthy) | running | 5432/tcp | | rabbitmq | rabbitmq:3.9.5 | 6 minutes ago | Up 6 minutes (healthy) | running | 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp | +--------------+----------------+---------------+------------------------+---------+-----------------------------------------------------+ ➜ docker stack ps --no-trunc onlyoffice_dev_local-it_cloud [...] app: "starting container failed: unable to get config from config store: failed to expand templated config njigze3bc5kzcqy1x28jnxptm: template: expansion:5: function "DB_TYPE" not defined" ```
yksflip added the
enhancement
abra
labels 2022-08-09 08:27:25 +00:00
Owner

thanks for raising @yksflip! this is also the only time i'm breaking out of abra use and i'd like to fix that :) very close to not having the docker cli installed on my machine 🙃 need to figure out how to get that --no-trunc output visible alright. perhaps showing both in ps and errors output...

thanks for raising @yksflip! this is also the only time i'm breaking out of `abra` use and i'd like to fix that :) very close to not having the docker cli installed on my machine 🙃 need to figure out how to get that `--no-trunc` output visible alright. perhaps showing both in `ps` and `errors` output...
decentral1se added this to the (deleted) project 2022-08-09 13:22:18 +00:00
Owner

Converging on #501.

Converging on https://git.coopcloud.tech/coop-cloud/organising/issues/501.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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/organising#339
No description provided.