Closed phgupta closed 7 months ago
I fixed the issue by updating the install_requires
variable in setup.py with the one in buildstockbatch v0.21.
There are a lot of things broken in the AWS batch workflow right now. We're working on it in #345 as we have time.
We got the workflow working (although it's still very beta) in #345. It has been merged down to develop. Go ahead and give that a go.
Describe the bug I recently downloaded the latest version of buildstockbatch (v2023.01.0) and resstock (v3.0) and I'm having trouble running a sample simulation on AWS.
The simulation always errors out at
fs.put(...)
line inaws.py
in AWS.To Reproduce
sampler: type: precomputed args: sample_file: precomputed_files/buildstock_10.csv
workflow_generator: type: residential_hpxml args: build_existing_model: simulation_control_run_period_calendar_year: 2010 simulation_output_report: timeseries_frequency: hourly
upgrades:
aws:
The job_identifier should be unique, start with alpha, not include dashes, and limited to 10 chars or data loss can occur
job_identifier: test_proj s3: bucket: xyz prefix: demo/example2 emr: worker_instance_count: 1 region: us-west-2 use_spot: false batch_array_size: 2
To receive email updates on job progress accept the request to receive emails that will be sent from Amazon
notifications_email: abc@xyz.com
postprocessing: aws: region_name: 'us-west-2' s3: bucket: xyz prefix: demo/example2 athena: glue_service_role: service-role/AWSGlueServiceRole-default database_name: testing max_crawling_time: 300 #time to wait for the crawler to complete before aborting it
2023-03-27T18:38:17.601-04:00 | INFO:2023-03-27 18:38:17:__main__:Archiving simulation outputs -- | -- | 2023-03-27T18:38:17.604-04:00 | DEBUG:2023-03-27 18:38:17:__main__:Clearing out simulation directory | 2023-03-27T18:38:17.605-04:00 | DEBUG:2023-03-27 18:38:17:__main__:sim_dir: /var/simdata/openstudio | 2023-03-27T18:38:17.605-04:00 | DEBUG:2023-03-27 18:38:17:__main__:asset_dirs: ['resources', 'measures', 'weather', 'lib'] | 2023-03-27T18:38:17.606-04:00 | DEBUG:2023-03-27 18:38:17:__main__:s3fs version: 2023.3.0 | 2023-03-27T18:38:17.606-04:00 | DEBUG:2023-03-27 18:38:17:__main__:simulation_output_tar_filename: /var/simdata/simulation_outputs.tar.gz | 2023-03-27T18:38:17.606-04:00 | DEBUG:2023-03-27 18:38:17:__main__:bucket: eshu-icf2 | 2023-03-27T18:38:17.606-04:00 | DEBUG:2023-03-27 18:38:17:__main__:prefix: demo/example2 | 2023-03-27T18:38:17.606-04:00 | DEBUG:2023-03-27 18:38:17:__main__:job_id: 0 | 2023-03-27T18:38:18.476-04:00 | /usr/local/lib/python3.8/site-packages/botocore/utils.py:1720: FutureWarning: The S3RegionRedirector class has been deprecated for a new internal replacement. A future version of botocore may remove this class. | 2023-03-27T18:38:18.476-04:00 | warnings.warn( | 2023-03-27T18:38:18.476-04:00 | Traceback (most recent call last): | 2023-03-27T18:38:18.476-04:00 | File "/usr/local/lib/python3.8/site-packages/s3fs/core.py", line 112, in _error_wrapper | 2023-03-27T18:38:18.476-04:00 | return await func(*args, **kwargs) | 2023-03-27T18:38:18.476-04:00 | File "/usr/local/lib/python3.8/site-packages/aiobotocore/client.py", line 358, in _make_api_call | 2023-03-27T18:38:18.476-04:00 | raise error_class(parsed_response, operation_name) | 2023-03-27T18:38:18.476-04:00 | botocore.exceptions.ClientError: An error occurred (AllAccessDisabled) when calling the PutObject operation: All access to this object has been disabled | 2023-03-27T18:38:18.476-04:00 | The above exception was the direct cause of the following exception: | 2023-03-27T18:38:18.476-04:00 | Traceback (most recent call last): | 2023-03-27T18:38:18.476-04:00 | File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main | 2023-03-27T18:38:18.476-04:00 | return _run_code(code, main_globals, None, | 2023-03-27T18:38:18.476-04:00 | File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code | 2023-03-27T18:38:18.476-04:00 | exec(code, run_globals) | 2023-03-27T18:38:18.476-04:00 | File "/usr/local/lib/python3.8/site-packages/buildstockbatch/aws/aws.py", line 2207, in