Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
0

Datapoint failure running every sample project in PAT on Kubernete Cluster on AWS

asked 2022-07-06 02:41:29 -0600

updated 2023-06-07 09:40:07 -0600

I am trying to run some of the PAT 3.4 sample projects on a Kubernete cluster on AWS. I have deployed the cluster and installed the Helm chart according to the instructions here. Everything seems to be working when I run kubectl get pods

NAME                                                       READY   STATUS    RESTARTS   AGE
db-65f4c9ccf6-2928g                                        1/1     Running   0          3m
openstudio-server-nfs-server-provisioner-7784b767d-777qs   1/1     Running   0          3m
redis-5ffc4f5d9f-vk4pv                                     1/1     Running   0          3m
rserve-6f7545dfb7-p59tw                                    1/1     Running   0          3m
web-5fcf97d7b5-xqzvm                                       1/1     Running   0          3m
web-background-75689b764f-wm5n7                            1/1     Running   0          3m
worker-659779bcdb-7zfqf                                    1/1     Running   0          3m
worker-659779bcdb-tnzvp                                    1/1     Running   0          2m45s

I can connect to the server in the PAT application, but when I run the algorithmic analysis each datapoint fails with the error datapoint failure. This is an extract of a datapoint log

07:32:01.115794 INFO] Creating Workflow Manager instance
[07:32:01.115835 INFO] Directory is /mnt/openstudio/analysis_a8dd7547-6018-46ee-b137-e7f6133116f5/data_point_295390e1-1aed-4689-981e-694042a782c7
[07:32:01.115898 INFO] Opening run.log file '/mnt/openstudio/analysis_a8dd7547-6018-46ee-b137-e7f6133116f5/data_point_295390e1-1aed-4689-981e-694042a782c7/run/run.log'
[07:32:01.117454 INFO] Running workflow using cmd /usr/local/bin/openstudio  run --workflow '/mnt/openstudio/analysis_a8dd7547-6018-46ee-b137-e7f6133116f5/data_point_295390e1-1aed-4689-981e-694042a782c7/data_point.osw'  and writing log to /mnt/openstudio/analysis_a8dd7547-6018-46ee-b137-e7f6133116f5/data_point_295390e1-1aed-4689-981e-694042a782c7/oscli_simulation.log
[07:32:10.068773 ERROR] Workflow /mnt/openstudio/analysis_a8dd7547-6018-46ee-b137-e7f6133116f5/data_point_295390e1-1aed-4689-981e-694042a782c7/data_point.osw failed with error Oscli returned error code 1
[07:32:10.068841 WARN] UrbanOpt simulation output:  does not exist
[07:32:10.068858 WARN] UrbanOpt process output:  does not exist
[07:32:10.068933 INFO] Oscli output: [07:32:09.978669 ERROR] undefined method `create_prototype_building' for #<OpenStudio::Model::Model:0x00005648c0e8f670>
    /mnt/openstudio/analysis_a8dd7547-6018-46ee-b137-e7f6133116f5/measures/2c6d68ea-2acb-4774-85ab-d77de08d77bd/measure.rb:148:in `run'
    :/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/util/measure.rb:517:in `apply_measure'
    :/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/util/measure.rb:114:in `block in apply_measures'
    :/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/util/measure.rb:67:in `each_index'
    :/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/util/measure.rb:67:in `apply_measures'
    :/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/jobs/run_os_measures.rb:70:in `perform'
    :/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/run.rb:291:in `step'
    :/ruby/2.7.0/gems/openstudio-workflow-2.3.1/lib/openstudio/workflow/run.rb:233:in `run'
    :/openstudio_cli.rb:1173:in `execute'
    :/openstudio_cli.rb:803:in `execute'
    :/openstudio_cli.rb:1972:in `<main>'
    eval:188:in `eval'
    eval:188:in `require_embedded_absolute'
    eval:173:in `block in require_embedded'
    eval:167:in `each'
    eval:167:in `require_embedded'
    eval:126:in `require'
    eval:3:in `<main>'

I am not a docker expert, let alone a kubernete one, but when I login in the actual EC2 instances for the worker nodes I would expect to find this file /usr/local/bin/openstudio, but it does not exist.

Any suggestion?

edit retag flag offensive close merge delete

Comments

1

undefined method 'create_prototype_building' for #<OpenStudio::Model::Model:0x00005648c0e8f670>I don't know what you're doing exactly, but this error suggests that openstudio-standards either isn't being found or is the wrong version. See https://github.com/NREL/openstudio-st... for example.

shorowit's avatar shorowit  ( 2022-07-06 10:13:54 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-07-06 12:51:49 -0600

The PAT/sample_project files have not been updated in quite some time, so i think the errors you are getting is that they have not been updated with the latest measures.

I'd suggest trying to update the measures to use the ones in the gems, such as https://github.com/NREL/openstudio-co...

or

try the test files for the Server. These are not PAT.json, but are OSA.jsons that can be submitted using the meta_cli:

https://github.com/NREL/OpenStudio-se...

edit flag offensive delete link more

Comments

Thanks @BrianLBall, FInally managed to get back to this. I have never used the meta_cli. Is there an example workflow? My understanding is that, as of today, the best approach would be to follow the documentation of UrbanOpt to get started. Is this correct?

MapMortar's avatar MapMortar  ( 2022-07-12 02:02:01 -0600 )edit

these notebooks have examples that use the meta_cli. they are in active development right now

BrianLBall's avatar BrianLBall  ( 2022-07-12 07:45:24 -0600 )edit

The most recent prototype measure is in the model articulation repo and on BCL.

David Goldwasser's avatar David Goldwasser  ( 2022-07-13 10:13:45 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2022-07-06 02:41:29 -0600

Seen: 186 times

Last updated: Jul 06 '22