Closed frodrigo closed 2 years ago
Will it be made available again?
My current workaround is to comment it out in docker-compose.yml
# - type: bind
# source: ./osmose-menu.sql
# target: /osmose-menu.sql
The causes an error on the web map in the left part "TypeError: Failed to fetch" which is probably related.
When trying to fetching the CSV (after successfully posting to send-update) like this:
curl --request POST --form source='import-ethiopia' --form code='dev' --form content=@wiki.xml http://localhost:20009/control/send-update -v
(wiki.xml from https://wiki.openstreetmap.org/wiki/Osmose, sources + sources_password manually created in the database)
I am getting an error which might be related to the menu.
My items table looks like this -- I have no clue what to put into the menu
column
docker$ docker-compose exec api sh
# python menu_update.py
seems to help with the menu column, but the error on fetching the CSV pretty much stays the same
Using the test docker compose fille should accepts any upload.
When using no configured menu you can see any item by adding to url useDevItem=all or using advenced filters.
Note the API framework is currently be changed, and only a part is currently migrated. I hope the docker setup is still valid. I will recheck.
Le mar. 16 août 2022, 20:41, Alexander Menk @.***> a écrit :
docker$ docker-compose exec api sh
python menu_update.py
seems to help
— Reply to this email directly, view it on GitHub https://github.com/osm-fr/osmose-frontend/issues/395#issuecomment-1217010994, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANT5DWONANI7NLYINZZRTDVZPOHFANCNFSM56S3MHLQ . You are receiving this because you authored the thread.Message ID: @.***>
@jocelynj the export dir was named dump
. So rename it export
(as in apache config and cron script). But it sill not working. Can you look at it, please.
The directory does not have the good name. But also the cron exporting the dump probably not working.
The issue was caused by the switch from wsgi to Proxy in apache config.
I've fixed it by telling apache to not use the proxy for /export directory:
ProxyPassMatch ^/export !
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
The menu dump is no more available http://osmose.openstreetmap.fr/export/osmose-menu.sql.bz2
Used by docker.