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

Map is not working just after running freshly build of a VM #15

Open
3 tasks
mzylowski opened this issue Jul 16, 2023 · 0 comments
Open
3 tasks

Map is not working just after running freshly build of a VM #15

mzylowski opened this issue Jul 16, 2023 · 0 comments

Comments

@mzylowski
Copy link
Member

After running a fresh instance of VM build by packer map v3 is not working. After click on map in php error log I see many:

[Sat Jul 15 19:23:40.997640 2023] [php:notice] [pid 779] [client 192.168.56.1:49466] Division by zero, referer: http://local.opencaching.pl/MainMap/embeded

Exception is thrown from here: https://github.com/opencaching/okapi/blob/master/okapi/services/caches/map/TileTree.php#L307-L312

And due to some reasons is not correctly handled by code here:
https://github.com/opencaching/okapi/blob/master/okapi/services/caches/map/TileTree.php#L279-L284

This leads to errors on client side:
image

For 9.0-beta release I just started builded VM, changed all lat and lon that was == 0, left the VM for 1h and OKAPI finished building of tiles tree.
I don't think this is an option for next releases. We can:

  • deliver VM without OKAPI tiles tree generated (I believe this is what Adjust shrink and prepare script #9 will happen after anyway. Previous version of VM's also was delivered without those OKAPI data?)
  • improvements about OKAPI?
  • trigger somehow tiles tree rebuilding from ansible/packer run and deliver VM with already prepared tiles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant