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
Postgres database update error by osm2pgsql #1571
Comments
|
It seems the map style you’re using is not fault tolerant enough to correctly deal with a tag „layer=2.75“ You need to fix your style file first before continuing. By the way, this kind of issue would probably be out of scope for this repository.
That’s not a good idea as it leads to loss of data. I really don’t recommend doing so to work around the issue in your style! |
|
What do you mean by non-fault tolerant style? If the field in the planet_osm_polygon table is an integer type, I understand that someone is doing something wrong along the way. Can you point a way for me to solve the problem? Where do you think the problem might be? Sorry, if the problem is outside the scope of the repository. Where do you suggest I can get help? Yours sincerely, |
|
Please try https://help.openstreetmap.org/ instead. |
|
Thank you. |

We have an error situation in the update process.
At certain times, the update process crashes and does not proceed. The error message in the file /var/log/tiles/osm2pgsql.log is shown below:
The message seems to indicate that a double value (2.75) is being written to the layer field of the planet_osm_polygon table, which is set to integer.
To work around this, we decreased the value of the maxInterval parameter in the configuration file /var/lib/mod_tile/.osmosis/configuration.txt
And we manually increment the sequenceNumber value of the /var/lib/mod_tile/.osmosis/state.txt file, so that it advances in the update. We believe there may be some information recorded wrong in the update files, which are available at https://planet.openstreetmap.org/replication/minute
However, this is impacting our environment as it requires a lot of technical intervention.
Our environment is Ubuntu 20.04 LTS. The osm2pgsql version is shown below:
osm2pgsql version 1.2.1 (64 bit id space)
Compiled using the following library versions:
Libosmium 2.15.4
Lua 5.2.4
We would appreciate if you can guide us on how to solve the problem.
Yours sincerely,
The text was updated successfully, but these errors were encountered: