Giter Club home page Giter Club logo

Comments (6)

lonvia avatar lonvia commented on May 10, 2024

This error is not related to Nominatim. Your postgres DB is corrupted, might be due to a crash or due to a disc fault.

from nominatim.

arminus avatar arminus commented on May 10, 2024

I renamed the existing nominatim database in postgres to nominatim_old before trying to load again. So the DB was created new by the import. The old DB still works when I rename it back, so I wonder ...

from nominatim.

lonvia avatar lonvia commented on May 10, 2024

Well, yes, I would expect it to still work. If the newly created DB hit a bad sector on your disc, then this won't have any effect on the old DB.

If you don't want to overwrite the old DB you can also make the new import in a DB with a different name. Simply add @define('CONST_Database_DSN', 'pgsql://@/whatevername'); to your local.php settings. But renaming works just as well.

from nominatim.

arminus avatar arminus commented on May 10, 2024

Thanks.

Actually, I think the I/O error was a memory issue. I increased PGs shared memory a bit, now it seems to import fine.

from nominatim.

arminus avatar arminus commented on May 10, 2024

Yes it was a memory issue, 2GB shared memory for PG wasn't enough, the rebuild worked with 4GB now.

from nominatim.

lonvia avatar lonvia commented on May 10, 2024

Glad it worked. But I'm a bit surprised that insufficient memory should result in an IO error. It would probably be wise to test both your RAM and disc for hardware errors nonetheless, just to avoid nasty surprises later.

from nominatim.

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.