OSM website clone: error while saving my editions
Sim Tov
smntov at gmail.com
Wed Jul 7 11:55:59 UTC 2021
Hello,
I'm not sure it is the proper mailing list to ask my questions, so if I'm
wrong here - please route me to the proper place.
On my small Debian9 VM (RAM: 2GB, Disk: 20GB, 1 vCPU) I have installed the
OSM website:
https://github.com/openstreetmap/openstreetmap-website.git
using Docker based approach:
https://github.com/openstreetmap/openstreetmap-website/blob/master/DOCKER.md
Later I extracted a small map into a .osm.pbf file using this tool:
https://protomaps.com/extracts
And then, as per instructions above, I populated the DB:
sudo docker-compose run --rm web osmosis \
-verbose \
--read-pbf data.osm.pbf \
--log-progress \
--write-apidb \
host="db" \
database="openstreetmap" \
user="openstreetmap" \
validateSchemaVersion="no"
Everything went OK and I could access my OSM instance, but - I saw the
whole world map, instead of my small part that I have extracted and
populated. Since my VM is not capable to host the whole map - I assume it's
just the main OSM map and my instance functions as a proxy to it. So all
changes I made - will go to the main OSM map and not my local map which is
not what I want.
1. Why is it so and what should I do to actually get only my area of
interest displayed in my instance?
Then I went on and added a new user, activated it, assigned it
"Administrator" role and added OAuth Consumer Keys and restarted the "web
container", as per this instructions:
https://github.com/openstreetmap/openstreetmap-website/blob/master/CONFIGURE.md
After all this I was able to login with the new user and start editing. I
added a test point and tried to save it. I was asked to "Allow the client
application to: modify the map" - I clicked "Grant Access" (see attachment).
However I got an error response (see attachments):
Routing Error
No route matches [GET] "/land.html"
Rails.root: /app
So my second question is:
2. Why do I get error and how can I fix it?
3. Is there a way in the web site settings to show my map only to logged in
users and not to everybody?
Thank you in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210707/9fdf1ab9/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2021-07-07 14-18-44.png
Type: image/png
Size: 109572 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210707/9fdf1ab9/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2021-07-07 14-19-54.png
Type: image/png
Size: 80630 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210707/9fdf1ab9/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2021-07-07 14-19-36.png
Type: image/png
Size: 74195 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210707/9fdf1ab9/attachment-0005.png>
More information about the rails-dev
mailing list