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 Report] Some scanned files give ParseDateStringAsTime Error but no other information #731

Closed
sprayidle opened this issue Aug 13, 2020 · 2 comments · Fixed by #836
Closed
Labels
bug Something isn't working
Milestone

Comments

@sprayidle
Copy link

During scanning I get the following error on 13 files:
ParseDateStringAsTime failed: dateString <>

There is no other information given so I cannot find the files giving the error.

Can you make the error give the file path so I can check the files or remove them?

Stash Version: v0.2.1-53-g634b892

@sprayidle sprayidle added the help wanted Extra attention is needed label Aug 13, 2020
@AdultFunStuff
Copy link

I am encountering the same problem in 0.3.0, and I believe it is preventing me from moving away from md5 hashing in favor of oshash.

On every scan, the following entries are logged:

time="2020-09-13T20:07:59-03:00" level=info msg="Starting scan of 1107 files. 1 New files found"
time="2020-09-13T20:08:01-03:00" level=error msg="ParseDateStringAsTime failed: dateString <>"
time="2020-09-13T20:08:02-03:00" level=info msg="Finished scan"
time="2020-09-13T20:08:02-03:00" level=info msg="Finished gallery association"

The '1 New files found' entry reappears on each scan.
Running version 0.3.0.
The "Set name, date, details from metadata (if present)" option (disabled or enabled) does not change this outcome.

Attempting to set generated file naming hash to oshash gives the error "GraphQL error: some oshash values are missing on scenes. Run Scan to populate" which will not go away, presumably because of the lingering 1 "new" file.

Even with log verbosity set to Debug or Trace, the logs do not indicate which file or path is new and causing the date parsing failure

@WithoutPants WithoutPants added bug Something isn't working and removed help wanted Extra attention is needed labels Oct 9, 2020
@WithoutPants WithoutPants added this to the Version 0.4.0 milestone Oct 9, 2020
@WithoutPants
Copy link
Collaborator

So sorry for being so late to address this. This error looked like a warning that shows up periodically, but does not prevent scanning. Once I knew what to look for, I discovered five of these instances in my own library (of over 23k files). A PR will be going up shortly to address this.

@AdultFunStuff this error should be unrelated to your issue. The presence of new files during scanning should not prevent moving to OSHash. Please raise another issue if you still have this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants