Error in OpenQuake demos_14_12_11

60 views
Skip to first unread message

rongy

unread,
Apr 16, 2012, 4:44:08 PM4/16/12
to OpenQuake Users
Hi,

I am trying to run OpenQuake Demos_14_12_11. However, I encountered
the following error message:


rong@li368-249:/usr/openquake$ openquake --config_file=/usr/openquake/
rong/demos_14_12_11/simple_fault_demo_hazard/config.gem --
output_type=xml
Ignoring GMF_RANDOM_SEED in classical, it's meaningful only in
scenario, event_based
[2012-04-16 22:41:59,324 #157 li368-249.members.linode.com CRITICAL
MainProcess/4834 root] Calculation failed with exception: 'file '/usr/
openquake/rong/demos_14_12_11/simple_fault_demo_hazard/
source_model_logic_tree.xml': Element '{http://openquake.org/xmlns/
nrml/0.2}nrml': No matching global declaration available for the
validation root.'
Traceback (most recent call last):
File "/usr/bin/openquake", line 166, in <module>
log_level=args.log_level)
File "/usr/lib/pymodules/python2.7/openquake/engine.py", line 727,
in run_calculation
_launch_calculation(calc_proxy, sections)
File "/usr/lib/pymodules/python2.7/openquake/engine.py", line 799,
in _launch_calculation
calculator.pre_execute()
File "/usr/lib/pymodules/python2.7/openquake/calculators/hazard/
general.py", line 223, in pre_execute
gmpe_lt)
File "/usr/lib/pymodules/python2.7/openquake/input/logictree.py",
line 990, in __init__
basepath, source_model_logictree_path
File "/usr/lib/pymodules/python2.7/openquake/input/logictree.py",
line 606, in __init__
super(SourceModelLogicTree, self).__init__(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/openquake/input/logictree.py",
line 378, in __init__
raise ParsingError(self.filename, self.basepath, str(exc))
openquake.input.logictree.ParsingError: file '/usr/openquake/rong/
demos_14_12_11/simple_fault_demo_hazard/source_model_logic_tree.xml':
Element '{http://openquake.org/xmlns/nrml/0.2}nrml': No matching
global declaration available for the validation root.

Could someone please help?

Thanks,
Yufang

Marco Pagani

unread,
Apr 16, 2012, 5:58:50 PM4/16/12
to openqua...@googlegroups.com
Dear Yufang,
thank you for your email and apologises for the problem you found while running the demo.

Attached you find an updated version that replaces the one in /usr/openquake/rong/demos_14_12_11/simple_fault_demo_hazard/
.
You can uncompress the .zip archive attached in
/usr/openquake/rong/ enter in the 'updated_demo' folder and run it with the command openquake --config-file config.gem --log-level critical --output-type xml

It might be possible that some other demos might not work as well.
After an upgrade recently completed., we have few problems caused by changes in the xml format we use to specify input data  We're working on a testing protocol for releasing updated versions of OpenQuake on OATS that should prevent these inconveniences.

Don't hesitate to contact us for any further information you might need. Apologises again for the problem and thank you for your interest in OpenQuake.

Thank you and kind regards,
Marco


updated_demo.zip

Yufang Rong

unread,
Apr 17, 2012, 2:27:15 PM4/17/12
to openqua...@googlegroups.com
Thank you very much, Marco. It works now.
 
Yufang

armas

unread,
Apr 25, 2012, 6:01:34 PM4/25/12
to OpenQuake Users
Dear users,

I have just started using OQ and I have the same problem as Yufang.
I downloaded the zip file that Marco suggested but it does not work
either.
This is the error message:

armas@li93-240:/usr/openquake$ openquake --config_file=armas/
demos_14_12_11/PeerTestSet1Case5/config.gem --output_type=xml
Ignoring NUMBER_OF_SEISMICITY_HISTORIES in classical, it's meaningful
only in event_based
Ignoring GROUND_MOTION_CORRELATION in classical, it's meaningful only
in deterministic, event_based
Ignoring GMF_RANDOM_SEED in classical, it's meaningful only in
deterministic, event_based
Traceback (most recent call last):
File "/usr/bin/openquake", line 125, in <module>
job.run_job(FLAGS.config_file, FLAGS.output_type)
File "/usr/lib/pymodules/python2.7/openquake/job/__init__.py", line
69, in run_job
a_job = Job.from_file(job_file, output_type)
File "/usr/lib/pymodules/python2.7/openquake/job/__init__.py", line
362, in from_file
job_id = prepare_job(params).id
File "/usr/lib/pymodules/python2.7/django/db/transaction.py", line
299, in _commit_on_success
res = func(*args, **kw)
File "/usr/lib/pymodules/python2.7/openquake/job/__init__.py", line
305, in prepare_job
stats.delete_job_counters(job.id)
File "/usr/lib/pymodules/python2.7/openquake/utils/stats.py", line
98, in delete_job_counters
keys = conn.keys("oqs:%s*" % job)
File "/usr/lib/pymodules/python2.7/redis/client.py", line 568, in
keys
return self.execute_command('KEYS', pattern)
File "/usr/lib/pymodules/python2.7/redis/client.py", line 330, in
execute_command
**options
File "/usr/lib/pymodules/python2.7/redis/client.py", line 315, in
_execute_command
self.connection.send(command, self)
File "/usr/lib/pymodules/python2.7/redis/client.py", line 82, in
send
self.connect(redis_instance)
File "/usr/lib/pymodules/python2.7/redis/client.py", line 62, in
connect
raise ConnectionError(error_message)
redis.exceptions.ConnectionError: Error 111 connecting localhost:6379.
Connection refused.

I have tried with the other examples and the program produces the same
error.

Thanks for your time,

Armas

Ben

unread,
Apr 26, 2012, 4:55:37 AM4/26/12
to openqua...@googlegroups.com
Hi Armas, 

It seems that there was a system failure on that server. It has now been resolved. 
I apologies for the inconvenience, the demo you were trying to run should now work.
Cheers, 
Ben

--
Ben Wyss 
OpenQuake Community Manager
GEM Foundation
c/o Eucentre, Via Ferrata 1
27100 Pavia, Italy 
www.openquake.org

JuanCarlos Singaucho

unread,
Apr 26, 2012, 12:39:32 PM4/26/12
to openqua...@googlegroups.com
Dear Ben,

Thanks for your prompt response. I have been trying again but it does not work.

Kind regards,

Armas

Helen Crowley

unread,
Apr 26, 2012, 12:50:49 PM4/26/12
to openqua...@googlegroups.com
Dear Armas,

I believe the problem is that you are trying to use outdated demos. The demos in the folder: demos_20120418 should work with the current version of OpenQuake. Let us know how you get on.

We will soon be releasing a new version of OpenQuake (in the next two weeks), with a new set of extensive demos and we will also remove old demo folders (that don’t run with this version of OpenQuake) from the user accounts.  

Best wishes,
Helen



Da: JuanCarlos Singaucho <juans...@gmail.com>
Risposta: <openqua...@googlegroups.com>
Data: Thu, 26 Apr 2012 11:39:32 -0500
A: <openqua...@googlegroups.com>
Oggetto: Re: Error in OpenQuake demos_14_12_11


Dear Ben,

Thanks for your prompt response. I have been trying again but it does not work.

Kind regards,

Armas


El 26 de abril de 2012 03:55, Ben <b...@openquake.org> escribió:
Hi Armas, 

It seems that there was a system failure on that server. It has now been resolved. 
I apologies for the inconvenience, the demo you were trying to run should now work.
Cheers, 
Ben

--
Ben Wyss 
OpenQuake Community Manager
GEM Foundation
c/o Eucentre, Via Ferrata 1
27100 Pavia, Italy 
    stats.delete_job_counters(job.id <http://job.id> )
[2012-04-16 22:41:59,324 #157 li368-249.members.linode.com <http://li368-249.members.linode.com>  CRITICAL

Rong, Yufang

unread,
Apr 26, 2012, 1:32:12 PM4/26/12
to openqua...@googlegroups.com

Hi Helen,

 

Armas is testing PeerTestSet1Case5, which is not included in the updated demos: demos_20120418. So Armas was using the old demo files. All the cases included in demos_2012041 can work.

 

Thanks,

Yufang

Ben

unread,
Apr 27, 2012, 3:51:44 AM4/27/12
to openqua...@googlegroups.com, paul.h...@globalquakemodel.org
Hi there,
Armas, can you kindly provide me with the server IP address that you are using to run the PeerTestSet1Case5 demo?

Cheers, Ben

JuanCarlos Singaucho

unread,
Apr 27, 2012, 9:50:06 AM4/27/12
to openqua...@googlegroups.com
Hi Ben,
Sure, the IP address is 74.207.251.240. Thanks a lot.
Armas

Ben

unread,
Apr 27, 2012, 10:56:13 AM4/27/12
to openqua...@googlegroups.com
Hello again Armas, I have run the PeerTestSet1Case5 demo using your account demo file with this command:

time openquake --config_file=armas/demos_14_12_11/PeerTestSet1Case5/config.gem --output_type=xml

and it runs successfully.

Cheers, Ben 

Rong, Yufang

unread,
Apr 27, 2012, 11:03:03 AM4/27/12
to openqua...@googlegroups.com

Hello Ben,

I have been testing this too. I still got the error messages like this:

 

Ignoring NUMBER_OF_SEISMICITY_HISTORIES in classical, it's meaningful only in  event_based_bcr, event_based

Ignoring GROUND_MOTION_CORRELATION in classical, it's meaningful only in  event_based_bcr, scenario, event_based

Ignoring GMF_RANDOM_SEED in classical, it's meaningful only in  scenario, event_based

[2012-04-27 16:59:13,495 #334 li368-249.members.linode.com CRITICAL MainProcess/12765 root] Calculation failed with exception: 'file '/usr/openquake/rong/demos_14_12_11/PeerTestSet1Case5/source_model_logic_tree.xml': Element '{http://openquake.org/xmlns/nrml/0.2}nrml': No matching global declaration available for the validation root.'

Traceback (most recent call last):

  File "/usr/bin/openquake", line 166, in <module>

    log_level=args.log_level)

  File "/usr/lib/pymodules/python2.7/openquake/engine.py", line 727, in run_calculation

    _launch_calculation(calc_proxy, sections)

  File "/usr/lib/pymodules/python2.7/openquake/engine.py", line 799, in _launch_calculation

    calculator.pre_execute()

  File "/usr/lib/pymodules/python2.7/openquake/calculators/hazard/general.py", line 223, in pre_execute

    gmpe_lt)

  File "/usr/lib/pymodules/python2.7/openquake/input/logictree.py", line 990, in __init__

    basepath, source_model_logictree_path

  File "/usr/lib/pymodules/python2.7/openquake/input/logictree.py", line 606, in __init__

    super(SourceModelLogicTree, self).__init__(*args, **kwargs)

  File "/usr/lib/pymodules/python2.7/openquake/input/logictree.py", line 378, in __init__

    raise ParsingError(self.filename, self.basepath, str(exc))

openquake.input.logictree.ParsingError: file '/usr/openquake/rong/demos_14_12_11/PeerTestSet1Case5/source_model_logic_tree.xml': Element '{http://openquake.org/xmlns/nrml/0.2}nrml': No matching global declaration available for the validation root.

 

 

Thanks,

Yufang

From: openqua...@googlegroups.com [mailto:openqua...@googlegroups.com] On Behalf Of Ben
Sent: Friday, April 27, 2012 10:56 AM
To: openqua...@googlegroups.com
Subject: Re: Error in OpenQuake demos_14_12_11

 

Hello again Armas, I have run the PeerTestSet1Case5 demo using your account demo file with this command:

Rong, Yufang

unread,
Apr 27, 2012, 11:06:34 AM4/27/12
to openqua...@googlegroups.com

BTW, I am using the server with IP 96.126.111.249.

 

Thanks,

Yufang

 

 

 

 

 

 

 

 

 

 

From: openqua...@googlegroups.com [mailto:openqua...@googlegroups.com] On Behalf Of Ben
Sent: Friday, April 27, 2012 10:56 AM
To: openqua...@googlegroups.com
Subject: Re: Error in OpenQuake demos_14_12_11

 

Hello again Armas, I have run the PeerTestSet1Case5 demo using your account demo file with this command:

JuanCarlos Singaucho

unread,
Apr 27, 2012, 3:01:40 PM4/27/12
to openqua...@googlegroups.com
Hi Ben,

Thanks, yes I tried it and it works now. Just one question, Why do I have to write "time" before "openquake"? That command is not documented in the "OQ user's manual".
Regards,

Armas

Ben

unread,
Apr 30, 2012, 3:49:59 AM4/30/12
to openqua...@googlegroups.com
Hi Armas, 
Yes, I like to use the option 'time' so that the time taken for the computation is printed in the output.
Cheers, Ben 
Reply all
Reply to author
Forward
0 new messages