This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

error Open failed osmosischange.osc

0

How about, because I get the following error, followed the instructions but I can not continue

/srv/nominatim/Nominatim/build$ ./utils/update.php --import-osmosis-all Currently at sequence 2617 (18/05/2020 18:04:47) - 1 indexed '/home/ubuntu3/.local/bin/pyosmium-get-changes' --server 'https://download.geofabrik.de/north-america/mexico-updates' --outfile '/srv/nominatim/Nominatim/build/osmosischange.osc' --size 30 '--start-id' 2617 Traceback (most recent call last): File "/home/ubuntu3/.local/bin/pyosmium-get-changes", line 257, in <module> exit(main(sys.argv[1:])) File "/home/ubuntu3/.local/bin/pyosmium-get-changes", line 237, in main outhandler = WriteHandler(options.outfile) RuntimeError: Open failed for '/srv/nominatim/Nominatim/build/osmosischange.osc': Permission denied

asked 21 May '20, 17:41

marianightcrawler's gravatar image

marianightcr...
11111
accept rate: 0%


One Answer:

0

The script should be run as user 'nominatim'. The error says /home/ubuntu3/.local/bin/pyosmium-get-changes so I think you installed and ran pyosmium as user ubuntu3.

The documentation http://nominatim.org/release-docs/latest/admin/Import-and-Update/#updates should be improved. "same user who will later run the updates" isn't clear enough in that context.

answered 21 May '20, 19:06

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

Source code available on GitHub .