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

reproduce FLINT.Cloud apis #1

Merged
merged 2 commits into from Apr 10, 2022
Merged

reproduce FLINT.Cloud apis #1

merged 2 commits into from Apr 10, 2022

Conversation

radistoubalidis
Copy link
Owner

@radistoubalidis radistoubalidis commented Apr 8, 2022

Pull Request Template

Description

My try to reproduce the FLINT.Cloud rest APIs

Issues

  • I'm not able to run the simulation (/dynamic endpoint) Getting these error message:
rest_api_gcbm-gcbm-1  | <2022-04-08 10:16:10.550621> (fatal) - main(303) - /usr/local/src/flint/Source/moja.modules.gdal/src/rasterreadergdal.cpp(72): Throw in function virtual moja::DynamicObject moja::modules::gdal::MetaDataRasterReaderGDAL::readMetaData() const

rest_api_gcbm-gcbm-1  | Dynamic exception type: boost::wrapexcept<moja::datarepository::FileNotFoundException>

rest_api_gcbm-gcbm-1  | std::exception::what: std::exception

rest_api_gcbm-gcbm-1  | [moja::datarepository::tag_filename*] = /app/input/run9/disturbances_2012_moja.json

rest_api_gcbm-gcbm-1  | ERROR:root:None
  • I believe that something went wrong when I changes the paths of the files in the request when I set it up on my machine
  • I checked after the /upload request and the list of files uploaded on local/input/<simulation_title> directory where only the config and input_database directories with the layers one missing, so that's why we get the error , but I've not been able to fix this.

@Namyalg
Copy link

Namyalg commented Apr 8, 2022

Hey @radistoubalidis ,
Im assuming you have used either the cURL instructions or the Postman collection provided
The files are uploaded as expected to the docker container, you can check the contents of the container by

docker exec -it name-of-container bash

There is an issue presently with the /gcbm/dynamic endpoint, it does not run as expected.

@radistoubalidis
Copy link
Owner Author

Hey @radistoubalidis , Im assuming you have used either the cURL instructions or the Postman collection provided The files are uploaded as expected to the docker container, you can check the contents of the container by

docker exec -it name-of-container bash

There is an issue presently with the /gcbm/dynamic endpoint, it does not run as expected.

Hey @Namyalg I managed to run the /dynamic endpoint but the output.zip directories are empty , also got this message on the console
rest_api_gcbm-gcbm-1 | <2022-04-10 11:18:23.325398> (fatal) - startup(1403) - Exception caught at LocalDomain level, exiting. | Library: moja.modules.cbm | Module: CBMDisturbanceListener | Details: Bad cast exception

@radistoubalidis radistoubalidis merged commit 3765331 into master Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants