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

Fix: log error when getting services from Docker server fails #3147

Merged
merged 1 commit into from Mar 20, 2024

Conversation

she11sh0cked
Copy link
Contributor

Proposed change

This PR addresses an issue where a server fails to retrieve services from Docker without raising an error, potentially causing confusion regarding server functionality. The fix adds an error log to provide clarity in such scenarios.

Type of change

  • New service widget
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation only
  • Other (please explain)

Checklist:

  • If applicable, I have added corresponding documentation changes.
  • If applicable, I have reviewed the feature and / or service widget guidelines.
  • I have checked that all code style checks pass using pre-commit hooks and linting checks.
  • If applicable, I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers.

Not raising an error when a server fails to get services from Docker
could lead to confusion when the server does not appear to be
functioning correctly. This commit adds an error log when a server
fails to get services from Docker.
@she11sh0cked
Copy link
Contributor Author

See the Discord discussion for details.

TLDR: My homepage failed to resolve any Docker services. After some debugging I found out that a silent error was thrown, because homepage couldn't access the secrets.

image
image

@shamoon shamoon enabled auto-merge (squash) March 20, 2024 14:25
Copy link
Collaborator

@shamoon shamoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats fine. I cant remember if there isnt logging there for a reason but seems reasonable thanks

@shamoon shamoon merged commit 556450c into gethomepage:main Mar 20, 2024
2 checks passed
@shamoon shamoon changed the title fix(logging): add error log when getting services from Docker server Fix: log error when getting services from Docker server fails Mar 20, 2024
@she11sh0cked she11sh0cked deleted the logging branch March 20, 2024 14:27
truecharts-admin added a commit to truecharts/charts that referenced this pull request Mar 24, 2024
…0.8.10@fc0d6e8 by renovate (#19733)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[ghcr.io/gethomepage/homepage](https://togithub.com/gethomepage/homepage)
| patch | `v0.8.9` -> `v0.8.10` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>gethomepage/homepage (ghcr.io/gethomepage/homepage)</summary>

###
[`v0.8.10`](https://togithub.com/gethomepage/homepage/releases/tag/v0.8.10)

[Compare
Source](https://togithub.com/gethomepage/homepage/compare/v0.8.9...v0.8.10)

#### What's Changed

- Fix: field parsing can fail with docker labels by
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3101
- Fix: Add alternative 'offline' status to EspHome widget by
[@&#8203;RoboMagus](https://togithub.com/RoboMagus) in
[gethomepage/homepage#3107
- Fix: log error when getting services from Docker server fails by
[@&#8203;she11sh0cked](https://togithub.com/she11sh0cked) in
[gethomepage/homepage#3147
- Fix: Glances cpu & info widgets information by
[@&#8203;sunnycloudy1337](https://togithub.com/sunnycloudy1337) and
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3164
- Enhancement: support Jackett widget with admin password by
[@&#8203;technowhizz](https://togithub.com/technowhizz) and
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3165
- Fix: correctly handle direct tab navigation with encoded chars by
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3172

#### New Contributors

- [@&#8203;she11sh0cked](https://togithub.com/she11sh0cked) made their
first contribution in
[gethomepage/homepage#3147
- [@&#8203;sunnycloudy1337](https://togithub.com/sunnycloudy1337) made
their first contribution in
[gethomepage/homepage#3164
- [@&#8203;technowhizz](https://togithub.com/technowhizz) made their
first contribution in
[gethomepage/homepage#3165

**Full Changelog**:
gethomepage/homepage@v0.8.9...v0.8.10

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
szinn pushed a commit to szinn/k8s-homelab that referenced this pull request Apr 6, 2024
…v0.8.10 ) (#3396)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[ghcr.io/gethomepage/homepage](https://togithub.com/gethomepage/homepage)
| patch | `v0.8.9` -> `v0.8.10` |

---

### Release Notes

<details>
<summary>gethomepage/homepage (ghcr.io/gethomepage/homepage)</summary>

###
[`v0.8.10`](https://togithub.com/gethomepage/homepage/releases/tag/v0.8.10)

[Compare
Source](https://togithub.com/gethomepage/homepage/compare/v0.8.9...v0.8.10)

#### What's Changed

- Fix: field parsing can fail with docker labels by
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3101
- Fix: Add alternative 'offline' status to EspHome widget by
[@&#8203;RoboMagus](https://togithub.com/RoboMagus) in
[gethomepage/homepage#3107
- Fix: log error when getting services from Docker server fails by
[@&#8203;she11sh0cked](https://togithub.com/she11sh0cked) in
[gethomepage/homepage#3147
- Fix: Glances cpu & info widgets information by
[@&#8203;sunnycloudy1337](https://togithub.com/sunnycloudy1337) and
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3164
- Enhancement: support Jackett widget with admin password by
[@&#8203;technowhizz](https://togithub.com/technowhizz) and
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3165
- Fix: correctly handle direct tab navigation with encoded chars by
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3172

#### New Contributors

- [@&#8203;she11sh0cked](https://togithub.com/she11sh0cked) made their
first contribution in
[gethomepage/homepage#3147
- [@&#8203;sunnycloudy1337](https://togithub.com/sunnycloudy1337) made
their first contribution in
[gethomepage/homepage#3164
- [@&#8203;technowhizz](https://togithub.com/technowhizz) made their
first contribution in
[gethomepage/homepage#3165

**Full Changelog**:
gethomepage/homepage@v0.8.9...v0.8.10

</details>

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yODAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI4MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Co-authored-by: repo-jeeves[bot] <106431701+repo-jeeves[bot]@users.noreply.github.com>
szinn pushed a commit to szinn/k8s-homelab that referenced this pull request Apr 6, 2024
…v0.8.10 ) (#3396)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[ghcr.io/gethomepage/homepage](https://togithub.com/gethomepage/homepage)
| patch | `v0.8.9` -> `v0.8.10` |

---

### Release Notes

<details>
<summary>gethomepage/homepage (ghcr.io/gethomepage/homepage)</summary>

###
[`v0.8.10`](https://togithub.com/gethomepage/homepage/releases/tag/v0.8.10)

[Compare
Source](https://togithub.com/gethomepage/homepage/compare/v0.8.9...v0.8.10)

#### What's Changed

- Fix: field parsing can fail with docker labels by
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3101
- Fix: Add alternative 'offline' status to EspHome widget by
[@&#8203;RoboMagus](https://togithub.com/RoboMagus) in
[gethomepage/homepage#3107
- Fix: log error when getting services from Docker server fails by
[@&#8203;she11sh0cked](https://togithub.com/she11sh0cked) in
[gethomepage/homepage#3147
- Fix: Glances cpu & info widgets information by
[@&#8203;sunnycloudy1337](https://togithub.com/sunnycloudy1337) and
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3164
- Enhancement: support Jackett widget with admin password by
[@&#8203;technowhizz](https://togithub.com/technowhizz) and
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3165
- Fix: correctly handle direct tab navigation with encoded chars by
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3172

#### New Contributors

- [@&#8203;she11sh0cked](https://togithub.com/she11sh0cked) made their
first contribution in
[gethomepage/homepage#3147
- [@&#8203;sunnycloudy1337](https://togithub.com/sunnycloudy1337) made
their first contribution in
[gethomepage/homepage#3164
- [@&#8203;technowhizz](https://togithub.com/technowhizz) made their
first contribution in
[gethomepage/homepage#3165

**Full Changelog**:
gethomepage/homepage@v0.8.9...v0.8.10

</details>

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yODAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI4MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Co-authored-by: repo-jeeves[bot] <106431701+repo-jeeves[bot]@users.noreply.github.com>
szinn pushed a commit to szinn/k8s-homelab that referenced this pull request Apr 6, 2024
…v0.8.10 ) (#3396)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[ghcr.io/gethomepage/homepage](https://togithub.com/gethomepage/homepage)
| patch | `v0.8.9` -> `v0.8.10` |

---

### Release Notes

<details>
<summary>gethomepage/homepage (ghcr.io/gethomepage/homepage)</summary>

###
[`v0.8.10`](https://togithub.com/gethomepage/homepage/releases/tag/v0.8.10)

[Compare
Source](https://togithub.com/gethomepage/homepage/compare/v0.8.9...v0.8.10)

#### What's Changed

- Fix: field parsing can fail with docker labels by
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3101
- Fix: Add alternative 'offline' status to EspHome widget by
[@&#8203;RoboMagus](https://togithub.com/RoboMagus) in
[gethomepage/homepage#3107
- Fix: log error when getting services from Docker server fails by
[@&#8203;she11sh0cked](https://togithub.com/she11sh0cked) in
[gethomepage/homepage#3147
- Fix: Glances cpu & info widgets information by
[@&#8203;sunnycloudy1337](https://togithub.com/sunnycloudy1337) and
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3164
- Enhancement: support Jackett widget with admin password by
[@&#8203;technowhizz](https://togithub.com/technowhizz) and
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3165
- Fix: correctly handle direct tab navigation with encoded chars by
[@&#8203;shamoon](https://togithub.com/shamoon) in
[gethomepage/homepage#3172

#### New Contributors

- [@&#8203;she11sh0cked](https://togithub.com/she11sh0cked) made their
first contribution in
[gethomepage/homepage#3147
- [@&#8203;sunnycloudy1337](https://togithub.com/sunnycloudy1337) made
their first contribution in
[gethomepage/homepage#3164
- [@&#8203;technowhizz](https://togithub.com/technowhizz) made their
first contribution in
[gethomepage/homepage#3165

**Full Changelog**:
gethomepage/homepage@v0.8.9...v0.8.10

</details>

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yODAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI4MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Co-authored-by: repo-jeeves[bot] <106431701+repo-jeeves[bot]@users.noreply.github.com>
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants