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

PBF Permissions Failed Activating AOI Bundle #22

Open
bendewey opened this issue Feb 22, 2021 · 0 comments
Open

PBF Permissions Failed Activating AOI Bundle #22

bendewey opened this issue Feb 22, 2021 · 0 comments

Comments

@bendewey
Copy link

bendewey commented Feb 22, 2021

After performing the POSM cloud deployment i was unable to see any changeset even after loading the AOI and it appearing in the admin. Clicking on the AOI PBF file in the admin gave a 403 error. Trying to run the posm_deploy_full.sh in the terminal I found the following error accessing the PDF.

==> /opt/admin/posm-admin/scripts//osm_api-db-populate.sh: Populating API DB and setting sequences.
      aoi dir: /opt/data/aoi/valparaiso

Feb 22, 2021 3:36:50 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.46
Feb 22, 2021 3:36:50 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Feb 22, 2021 3:36:50 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Feb 22, 2021 3:36:50 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Feb 22, 2021 3:36:50 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
SEVERE: Thread for task 1-read-pbf-fast failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to read PBF file /opt/data/aoi/valparaiso/osm/overpass.osm.pbf.
	at org.openstreetmap.osmosis.pbf2.v0_6.PbfReader$1.get(PbfReader.java:50)
	at org.openstreetmap.osmosis.pbf2.v0_6.PbfReader$1.get(PbfReader.java:40)
	at org.openstreetmap.osmosis.pbf2.v0_6.PbfReader.run(PbfReader.java:82)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.FileNotFoundException: /opt/data/aoi/valparaiso/osm/overpass.osm.pbf (Permission denied)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:195)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at org.openstreetmap.osmosis.pbf2.v0_6.PbfReader$1.get(PbfReader.java:48)
	... 3 more

I was able to work around the issue by adding a chmod 777 $2/osm/overpass.osm/pdf to the hotexport-move.sh script. Then after running posm_deploy_full.sh again all the changesets were loaded, and the PBF was able to be downloaded from the admin. I'm happy to create a pull request for this work around or a better one that doesn't hardcode the overpass name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant