Giter Site home page Giter Site logo

Comments (5)

artonge avatar artonge commented on May 30, 2024 1

I saw this error on every job execution because the job failed at the same point every time, right?

Good point. Here is a fix nextcloud/server#42198

from photos.

artonge avatar artonge commented on May 30, 2024

Thanks for the report @MichaIng

  1. It indeed looks like an invalid timestamp. I think we should wrap the line in a try/catch to handle timestamps incompatible with 32 bits. Would you have time to create a PR for that?
  2. The metadata generation is expected to be done only once, as you said. We do have a background job to generate the metadata for existing files. It is expected to stop once all files have been handled. Maybe it is badly configured: https://github.com/nextcloud/server/blob/a0ff998/core/BackgroundJobs/GenerateMetadataJob.php

from photos.

artonge avatar artonge commented on May 30, 2024

Reading the code again, I doubt that we can truly support 32 bit. Currently, the code expects an int, so any incompatible value will cause an issue. How do we handle incompatible mtime in our files code? @come-nc maybe?

from photos.

come-nc avatar come-nc commented on May 30, 2024

Reading the code again, I doubt that we can truly support 32 bit. Currently, the code expects an int, so any incompatible value will cause an issue. How do we handle incompatible mtime in our files code? @come-nc maybe?

You have to catch the error and log in this case, you cannot do much more if the timestamp does not fit in an int. But for original date this should not happen until 2038.

I am not sure we handle that correctly in all places, but incorrect mtimes are rare, usually mtime is set by Nextcloud itself.

For calendar, we officially do not support events past 2038 on 32bits.

from photos.

MichaIng avatar MichaIng commented on May 30, 2024

It indeed looks like an invalid timestamp

It is 0000:00:00 00:00:00 on all affected files, or all tools fail to interpret it, including exiftool and show 0000:00:00 00:00:00 instead. If 2038 is too far after 1970, then year 0 indeed is a little too far before 😄.

The metadata generation is expected to be done only once, as you said.

I saw this error on every job execution because the job failed at the same point every time, right?

from photos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.