Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Bug] Widget in docker version cannot display the correct storage capacity of the mounted hard drive #1581

Closed
3 tasks done
cugfzx opened this issue Jun 7, 2023 · 1 comment

Comments

@cugfzx
Copy link

cugfzx commented Jun 7, 2023

Description

I mounted a a large capacity hard drive on /app and set the storage capacity of the /app folder in the configuration file, but still displayed the storage usage of the root directory.
image
image

Steps to reproduce

1.Mount a hard drive on /app
2.Set widgets. yaml to the following content:

  • resources:
    cpu: true
    memory: true
    disk: /app
    3.Open the homepage webpage and you will find that the widget in the upper left corner still displays the capacity usage of the root directory

homepage version

v0.6.20

Installation method

Docker

Configuration

---
# For configuration options and examples, please see:
# https://gethomepage.dev/en/configs/widgets

- resources:
    cpu: true
    memory: true
    disk: /app

	
- search:
    provider: duckduckgo
    target: _blank

Container Logs

No response

Browser Logs

No response

Troubleshooting

n/a

Other

No response

Before submitting, I have made sure to

@cugfzx cugfzx added bug Something isn't working unconfirmed labels Jun 7, 2023
@ennvita
Copy link

ennvita commented Jun 7, 2023

Did you bind your /app (on host) to a folder in the container? It looks like it's reading the /app in the container not on the host. Try adding the volume bind. /app:/drive to your docker run command or your docker-compose.yml and change your resources to look like this disk: /drive

IIRC this should solve your problem

@shamoon shamoon added cant reproduce and removed bug Something isn't working unconfirmed labels Jun 7, 2023
@gethomepage gethomepage locked and limited conversation to collaborators Jun 7, 2023
@shamoon shamoon converted this issue into discussion #1582 Jun 7, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants