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

[BUG] no disk info display #1030

Open
Argon-D opened this issue Jun 18, 2023 · 7 comments
Open

[BUG] no disk info display #1030

Argon-D opened this issue Jun 18, 2023 · 7 comments
Labels

Comments

@Argon-D
Copy link

Argon-D commented Jun 18, 2023

What happened?

hello guys , I have thi situation :

https://ibb.co/cb5tn3t

Can't display the size of the drive on disk info windows. I've tried to reinstall "panel" with no luck

Is there a fix?

Thanks in advance!

Swizzin commit

last version

What OS are you using?

Ubuntu 22.04 (Jammy)

What architecture is your OS?

amd64

Relevant logs and output

Can't display the size of the drive on disk info windows. I've tried to reinstall "panel" with no luck
@Argon-D Argon-D added the bug label Jun 18, 2023
@liaralabs
Copy link
Member

One user recently reported that they had issues while they had a USB drive plugged into their system.

Conversely, consider checking the panel logs for more info or to see if any exceptions are being thrown:

journalctl -u panel

@Argon-D
Copy link
Author

Argon-D commented Jun 18, 2023

yes I have plugged usb adapter nvme driver

@liaralabs
Copy link
Member

Can you try unplugging it to see if the issue goes away? The panel may need to have some updates to help accommodate these circumstances, but it's not something I really have access to test and reproduce

@Argon-D
Copy link
Author

Argon-D commented Jun 18, 2023

OK let me try

@Argon-D
Copy link
Author

Argon-D commented Jun 18, 2023

Can't remove one usb driver atm ( I have actually 2 connected) , If I remove one, the bug still there

@flying-sausages
Copy link
Member

Can you post the picture into the comments here? The original link expired

@Jimmy062006
Copy link

Jimmy062006 commented Jul 28, 2023

The original image is missing so not sure if this is the same issue but I experienced this issue recently and found that if 1 single mount point is in accessible to the python panel it will error out and produce the below error.

image

image

Jul 28 12:10:09 plexapps python[33169]: return func(*args, **kwargs) Jul 28 12:10:09 plexapps python[33169]: File "/opt/swizzin/swizzin.py", line 350, in disk_free Jul 28 12:10:09 plexapps python[33169]: total, used, free, usage = disk_usage(mount) Jul 28 12:10:09 plexapps python[33169]: File "/opt/swizzin/core/util.py", line 236, in disk_usage Jul 28 12:10:09 plexapps python[33169]: total, used, free = shutil.disk_usage(location) Jul 28 12:10:09 plexapps python[33169]: File "/usr/lib/python3.9/shutil.py", line 1262, in disk_usage Jul 28 12:10:09 plexapps python[33169]: st = os.statvfs(path) Jul 28 12:10:09 plexapps python[33169]: PermissionError: [Errno 13] Permission denied: '/home/idontknow/Media'

Code needs to be edited to ignore mount when permission is denied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants