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

Osmosis permission denied

1

Hello friends, good afternoon

I want to configure osmosis to get updates, but shows error:

./utils/update.php --import-osmosis-all --no-npi
WARNING: resetting cache memory to 686
sh: 1: /home/ubuntu/osmosis: Permission denied
Error: 126. Re-trying: /home/ubuntu/osmosis -q --read-replication-lag workingDirectory=/home/ubuntu/Nominatim/settings in 900 secs
  1. I did download the latest osmosis, put in <home>/osmosis
  2. Change CONST_Osmosis_Binary on settings.php and point to <home>/osmosis
  3. Change replication params
  4. Execute ./utils/setup.php --osmosis-init
  5. Execute ./utils/setup.php --create-functions --enable-diff-updates

When I try to execute ./utils/update.php --import-osmosis-all --no-npi then shows error.

asked 19 Nov '15, 18:49

jeancz's gravatar image

jeancz
47337
accept rate: 33%

1

Does it work after executing chmod +x /home/ubuntu/osmosis? I.e. is the execution mode bit set?

(19 Nov '15, 19:11) scai ♦

I try change permission for all files, bus does not work. :(

(19 Nov '15, 19:24) jeancz

One Answer:

4

I think the binary that you need to configure is /home/ubuntu/osmosis/bin/osmosis - try it by entering this full path on the command line before, you should be greeted by an extensive help message. And if you've installed osmosis from zip and not from tar.gz, you will need the chmod a+x /home/ubuntu/osmosis/bin/osmosis too.

answered 19 Nov '15, 20:05

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

1

Works fine. Thats it. Thanks Frederik.

(20 Nov '15, 14:53) jeancz

Source code available on GitHub .