WebUI Error (multiple versions)

96 views
Skip to first unread message

VG

unread,
Oct 12, 2023, 3:18:20 PM10/12/23
to OpenQuake Users
Hi, I have been having issues with the installation/use of the webui. I have installed the latest 3.17.2 version and get the below error when opening webui and cannot run any demos. I have also tried using versions 3.17.0, 3.17.1, and 3.11 but get similar errors. Version 3.16.6 worked however it doesn't contain the Canada SHM6 data and I don't know how to import the data into this version.

Please note I have no experience with python and am running on Windows.

Appreciate any help on this. Thanks.

ERROR Internal Server Error: /v1/calc/list
Traceback (most recent call last):
  File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
    response = get_response(request)
  File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\django\views\decorators\http.py", line 40, in inner
    return func(request, *args, **kwargs)
  File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\openquake\server\views.py", line 110, in wrap
    response = func(request, *args, **kwargs)
  File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\openquake\server\views.py", line 401, in calc_list
    calc_data = logs.dbcmd('get_calcs', request.GET,
  File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\openquake\commonlib\logs.py", line 73, in dbcmd
    return res.get()
  File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\openquake\baselib\parallel.py", line 392, in get
    raise etype(msg)
AttributeError:
  File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\openquake\baselib\parallel.py", line 415, in new
    val = func(*args)
  File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\openquake\server\db\actions.py", line 595, in get_calcs
    return [(job.id, job.user_name, job.status, job.calculation_mode,
  File "C:\Program Files\OpenQuake Engine\python3\lib\site-packages\openquake\server\db\actions.py", line 597, in <listcomp>
    job.hazard_calculation_id, job.size_mb, job.host)
AttributeError: 'Row' object has no attribute 'size_mb'
ERROR "GET /v1/calc/list HTTP/1.1" 500 89181

 Please consider the environment before printing this email

This email and its attachments contain confidential information from sender, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient is prohibited.

Peter Pažák

unread,
Oct 17, 2023, 3:50:52 PM10/17/23
to OpenQuake Users
Hi, this is most probably caused by files you have in the oqdata folder, which are from an older OQ version.
If you rename "oqdata" in your user folder to say "oqdata_old" (while all OQ consoles are shut down), and then run webui,
it should create new directory with empty db.sqlite3 file, which then hopefully won't complain about any errors.
(To access your older calculations however you would need to use the compatible older version and again exchange the oqdata folders...)

Peter

Dátum: štvrtok 12. októbra 2023, čas: 21:18:20 UTC+2, odosielateľ: VG
Reply all
Reply to author
Forward
0 new messages