Hello everyone, I come from China
I want to use OSM
My system is Ubuntu 24.04
I used it Manually building a tile server (Ubuntu 22.04) – Switch2OSM
This tutorial
But the visit http://localhost/hot/0/0/0.png
Received a 404 Not count error
Please help me
Without looking at the logs on your server, it is unlikely that anyone will be able to help.
Did any error messages occur earlier? Which parts of the tutorial worked OK?
Also, there is an Ubuntu 24.04 tutorial on the same site if you want to follow that. There are some slight differences between the two.
What logs do you want to see?
How can I contact you? Do you have WeChat?
2024-12-22T14:39:05.217350+08:00 pc systemd[1]: Stopping apache2.service - The Apache HTTP Server…
2024-12-22T14:39:05.232409+08:00 pc apachectl[4636]: [Sun Dec 22 14:39:05.232181 2024] [tile:warn] [pid 4636:tid 134052744587136] Could not deead
2024-12-22T14:39:05.232476+08:00 pc apachectl[4636]: [Sun Dec 22 14:39:05.232245 2024] [tile:notice] [pid 4636:tid 134052744587136] Loading tiiles with extension .png and mime type image/png
2024-12-22T14:39:05.232494+08:00 pc apachectl[4636]: AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, e
2024-12-22T14:39:05.258593+08:00 pc systemd[1]: apache2.service: Deactivated successfully.
2024-12-22T14:39:05.258856+08:00 pc systemd[1]: Stopped apache2.service - The Apache HTTP Server.
2024-12-22T14:39:05.272405+08:00 pc systemd[1]: Starting apache2.service - The Apache HTTP Server…
2024-12-22T14:39:05.287342+08:00 pc apachectl[4642]: [Sun Dec 22 14:39:05.287095 2024] [tile:warn] [pid 4642:tid 126669323106176] Could not deead
2024-12-22T14:39:05.287394+08:00 pc apachectl[4642]: [Sun Dec 22 14:39:05.287137 2024] [tile:notice] [pid 4642:tid 126669323106176] Loading tiiles with extension .png and mime type image/png
2024-12-22T14:39:05.287423+08:00 pc apachectl[4642]: AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, e
2024-12-22T14:39:05.294248+08:00 pc systemd[1]: Started apache2.service - The Apache HTTP Server.
2024-12-22T14:39:50.113523+08:00 pc renderd[1339]: Data is available now on 1 fds
2024-12-22T14:39:50.113691+08:00 pc renderd[1339]: Got incoming connection, fd 7, number 0, total conns 1, total slots 1
2024-12-22T14:39:50.113729+08:00 pc renderd[1339]: ** (process:1339): ERROR **: 14:39:50.113: Received request for map layer ‘s2o’ which faile
2024-12-22T14:39:50.113778+08:00 pc renderd[1339]: Data is available now on 1 fds
2024-12-22T14:39:50.113811+08:00 pc renderd[1339]: Got incoming request with protocol version 2
2024-12-22T14:39:50.113856+08:00 pc renderd[1339]: Got command RenderPrio fd(7) xml(s2o), z(0), x(0), y(0), mime(image/png), options()
2024-12-22T14:39:50.113911+08:00 pc renderd[1339]: Sending message NotDone to 7
2024-12-22T14:39:50.113948+08:00 pc renderd[1339]: Sending render cmd(4 s2o 0/0/0) with protocol version 2 to fd 7
2024-12-22T14:39:50.113990+08:00 pc renderd[1339]: Data is available now on 1 fds
2024-12-22T14:39:50.114027+08:00 pc renderd[1339]: Failed to read cmd on fd 7
2024-12-22T14:39:50.114075+08:00 pc renderd[1339]: Connection 0, fd 7 closed, now 0 left, total slots 1
2024-12-22T14:40:05.029589+08:00 pc systemd[1]: Starting sysstat-collect.service - system activity accounting tool…
2024-12-22T14:40:05.033658+08:00 pc systemd[1]: sysstat-collect.service: Deactivated successfully.
2024-12-22T14:40:05.033871+08:00 pc systemd[1]: Finished sysstat-collect.service - system activity accounting tool.
From the log info above we can see that:
- Apache is running
- mod_tile is installed and is getting requests
- The map layer ‘s2o’ failed to load
Somewhere above that in the logs will be the actual error. You can cause the actual error to appear in the logs again by doing sudo /etc/init.d/apache2 restart
. Once we see that we’ll likely know what has gone wrong.
One thing that it might be related to is that the OSM Carto map style is changing the way that it is using osm2pgsql
. That’s why the documentation now says git switch --detach v5.9.0
among the commands to get the OSM Carto code. However, I am guessing here, and it might be something else, perhaps even something that has changed in Ubuntu 24.04 itself.
@galaxyzzzz
Please use three backticks for code
`
shows up like
Some code
This helps to make it better readable in future