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

Parse error on windows env? #73

Closed
wolfdate25 opened this issue Jun 10, 2023 · 10 comments
Closed

Parse error on windows env? #73

wolfdate25 opened this issue Jun 10, 2023 · 10 comments
Assignees
Labels
bug Windows This issue is directly related with Windows environment

Comments

@wolfdate25
Copy link

wolfdate25 commented Jun 10, 2023

Describe the bug
I got error with windows enviroment
image
image

The tools working with native commands.
With pySMART wrapper, I got upper image errors.

Environmental setup:

  • smartctl 7.3 2022-02-28 r5338 [x86_64-w64-mingw32-w11-b22621] (sf-7.3-1)
  • Py-SMART version v1.2.5
  • windows 11
  • AMD RAID
@ralequi
Copy link
Collaborator

ralequi commented Jun 13, 2023

On a first look, It seems to be a charset issue

Please, provide the following outputs:

  • smartctl --scan-open
  • smartctl -d test /dev/sda

@ralequi ralequi added needs more info More info is required to continue Windows This issue is directly related with Windows environment labels Jun 13, 2023
@wolfdate25
Copy link
Author

smarttl --scan-open

/dev/sda -d nvme # /dev/sda, NVMe device
/dev/sdb -d nvme # /dev/sdb, NVMe device
/dev/sdc -d sat # /dev/sdc [SAT], ATA device
/dev/sdd -d scsi # /dev/sdd, SCSI device
/dev/sde -d scsi # /dev/sde, SCSI device

smartctl -d test /dev/sda

smartctl 7.3 2022-02-28 r5338 [x86_64-w64-mingw32-w11-b22621] (sf-7.3-1)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sda: Device of type 'nvme' [NVMe] detected
/dev/sda: Device of type 'nvme' [NVMe] opened

@ralequi
Copy link
Collaborator

ralequi commented Jun 23, 2023

Please, also include the output of

smartctl -d nvme /dev/sda

Since it is windows, I would prefer to upload the raw output instead of copy it (just in case is some strange issue with char coding)

For that, please, run smartctl -d nvme /dev/sda > out.txt and upload that file without any modification.

If you have any issue uploading the file, copying the text it's ok, but, if the issue is related with char-coding I wouldn't find anything.

Thank you in advance.

@wolfdate25
Copy link
Author

I'm using windows UTF-8 encoding.
Downloads.zip

@ralequi
Copy link
Collaborator

ralequi commented Jun 26, 2023

Hi,

I suppose the out3.txt is the result of smartctl -d nvme /dev/sda right?

smartctl 7.3 2022-02-28 r5338 [x86_64-w64-mingw32-w11-b22621] (sf-7.3-1)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

NVMe device successfully opened

Use 'smartctl -a' (or '-x') to print SMART (and more) information

There is no "real data" on there, could you please provide smartctl -d nvme --all /dev_sda ? (in a zip like before)

@wolfdate25
Copy link
Author

Yes, there is no valuable data there.
And here the result of smartctl -d nvme --all /dev/sda
out4.zip

@ralequi ralequi added bug and removed needs more info More info is required to continue labels Jul 4, 2023
@ralequi
Copy link
Collaborator

ralequi commented Jul 4, 2023

Sorry @wolfdate25 , I hadn't too much time for this.
Very strange scenario, look at this lines:

Total NVM Capacity:                 0
Unallocated NVM Capacity:           18,446,742,073,310,617,600 [18446 PB]
[...]
Number of Namespaces:               1
Namespace 1 Size/Capacity:          2,000,398,934,016 [2.00 TB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            a84397 0000677720

¿¿18446 PB?? There is something very strange with your drive and/or smarmatctl tool. In any case, time to handle this corner case....

@ralequi
Copy link
Collaborator

ralequi commented Jul 4, 2023

Will be "Fixed" on next release

@ralequi
Copy link
Collaborator

ralequi commented Jul 4, 2023

Try develop branch and confirm that everything works for you when you are able

Thanks for your contrib

@wolfdate25
Copy link
Author

It's late, but we're happy to report that it's been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Windows This issue is directly related with Windows environment
Projects
None yet
Development

No branches or pull requests

2 participants