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

[OSM] Failed to install/reinstall OpenStreetMap on iiab 7.2 version via ./runrole #3064

Closed
boholder opened this issue Dec 11, 2021 · 14 comments
Assignees
Milestone

Comments

@boholder
Copy link

Expected behavior and actual behavior:

After installed iiab (the "large(? that allows OSM to be installed)" install option), go to box.lan/admin -> Install Content -> Get Map Regions or Get Map Addons, there are only "MAPS NOT INSTALLED OR NOT ENABLED" text and no map select check box on the left side.

Then I found Configuration -> Services Enabled has an enable config for OSM, so I checked it on and restart the box via admin panel.

But still I can't access OSM after reboot, so I assumed that the OSM installation is failed. I searched the method that reinstall OSM, and found issue #2370 : ./runrole --reinstall osm-vector-maps.

Running ./runrole --reinstall osm-vector-maps will output

ERROR: /etc/iiab/iiab_state.yml has no line(s) that begin with 'osm_vector_maps_'
Try again without the '--reinstall' flag?

Running ./runrole osm-vector-maps will output

Now... maybe my real question is: is there any other way to reinstall the OSM alone?

BTW, my network isn't stable and run ./iiab-install --reinstall will output some network-related errors (see here), so another trickier possibility is that some files is crushed or even not exist in right position.

Big thank to hardworking maintainers.

IIAB version, OS version, hardware details:

IIAB: 7.2, Debian 11 amd64 (bullseye) (in virtualbox), host is Windows10

Please run the iiab-diagnostics command, to generate a URL summarizing your IIAB configuration, for volunteers seeking to help you: (Include that short URL here, Thanks!)

https://pastebin.com/Yqf4PxAL

@holta holta added the question label Dec 11, 2021
@holta holta added this to the 7.2 milestone Dec 11, 2021
@holta
Copy link
Member

holta commented Dec 11, 2021

Thanks @boholder for the report!

@georgejhunt do you have time to look into this today or in coming days possibly?

@holta
Copy link
Member

holta commented Dec 11, 2021

  1. @boholder can you please repost the output of iiab-diagnostics to a new pastebin URL?

    The link you have provided (https://pastebin.com/Yqf4PxAL) does not work.

  2. @boholder the ./runrole command should always be run from the directory /opt/iiab/iiab

    (Your screenshot makes it appear as if you're running ./runrole from an incorrect directory.)

@boholder
Copy link
Author

If you need me to provide more informations, feel free to mention me. The outputs of the OSM installation script shows that maybe I haven't installed the OSM correctly so I don't know why it is a potential admin console issue.

@holta
Copy link
Member

holta commented Dec 11, 2021

@boholder as a side comment (and general FYI for everyone!) please use the new http://FAQ.IIAB.IO going forward.

It is now hosted here:
https://wiki.iiab.io/go/FAQ

@boholder
Copy link
Author

boholder commented Dec 11, 2021

  1. @boholder can you please repost the output of iiab-diagnostics to a new pastebin URL?

http://sprunge.us/Uvv2G9

2. @boholder the `./runrole` command should always be run from the directory `/opt/iiab/iiab`
   (Your screenshot makes it appear as if you're running `./runrole` from an incorrect directory.)

Rerun in /opt/iiab/iiab works: ./runrole --reinstall osm-vector-maps outputs same message, but without --reinstall flag, it pops up a proxy error (urlopen error [Errno 113] No route to host), which shows that maybe I should not bother you further and keep fighting with my proxy settings.

Thanks for the information!

@holta
Copy link
Member

holta commented Dec 11, 2021

Thanks @boholder for http://sprunge.us/Uvv2G9?en

Please also consider a completely fresh install of the latest pre-release of IIAB 7.2 (as your original install appears to have been about 3 months ago, in September) if you can?

Thanks for reporting back what you discover!

@boholder
Copy link
Author

The OSM works well after performing installation of pre-release of IIAB 7.2 (via one-line install script). 😄

@holta
Copy link
Member

holta commented Dec 11, 2021

The OSM works well after performing installation of pre-release of IIAB 7.2 (via one-line install script). smile

Thanks @boholder for your reports!

PS do you happen to have a Raspberry Pi available?

If so, you can also try a much faster way to install IIAB — that also works well for those wanting to avoid the Command-Line: https://github.com/iiab/iiab/wiki/Raspberry-Pi-Images:-Summary

@boholder

This comment has been minimized.

@tim-moody
Copy link
Contributor

For me who using virtual machine to run iiab, my iiab guest os can't access the Internet due to wrong proxy setting, but I can download files in host os and copy them onto iiab guest os

how were you able to install iiab without an internet connection?

also we don't usually run scripts out of the ansible repo. they could contain variables that only get substituted during installation

@boholder

This comment was marked as outdated.

@tim-moody
Copy link
Contributor

My concern is not disrespect. I appreciate your enthusiasm and interest in fiddling with IIAB. My concern is that your tutorial contains misinformation based on reverse engineering and an assumption that Admin Console runs scripts from /opt/iiab/iiab-admin-console/roles/cmdsrv/files. It doesn't. These are also not published scripts so they could get changed at any time. So while this worked for you it might not work for others.

@boholder
Copy link
Author

My concern is that your tutorial contains misinformation based on reverse engineering and an assumption that Admin Console runs scripts from /opt/iiab/iiab-admin-console/roles/cmdsrv/files. It doesn't. These are also not published scripts so they could get changed at any time. So while this worked for you it might not work for others.

You are right, I broke the encapsulation. I've hidden that comment. Thank you for pointing out that.

@holta
Copy link
Member

holta commented Dec 14, 2021

@boholder here's an IIAB reference doc that I'll try to update (with others' help) in coming weeks:

https://github.com/iiab/iiab/wiki/IIAB-Maps

It's about a year-old so not everything is gospel truth as the sands of time pass — but just FYI, as yes looking under the hood is sometimes necessary — e.g. if this general topic of helping communities customize the offline OpenStreetMap "packs" they most need...is of interest to you!

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

4 participants