Webui on OpenVMS V9.1-A (X86) No data displayed.

Discuss WebUI, a GUI and a RESTful API for remote OpenVMS management. Use this forum to review the app, report its issues, and share your ideas for new features.
Post Reply

Topic author
connersegh
Newbie
Posts: 3
Joined: Thu Jul 22, 2021 1:28 pm
Reputation: 0
Status: Offline

Webui on OpenVMS V9.1-A (X86) No data displayed.

Post by connersegh » Fri Mar 04, 2022 12:55 pm

(Post edited and revised 20220304 1643 EST)

I installed and configured WEBUI guided by https://vmssoftware.com/docs/webui-release-notes.pdf and https://www.youtube.com/watch?v=Yf00uFVcS1U and VSI-X86VMS-WEBUI-V0400-2-1-RELEASE-NOTES.PDF

I granted the webui_write and webui_read to users system and david.

I can connect to the gui with my browser.

Webui is not displaying any data except the incorrect date "29 October 2021 08:24" and the the name of the logged in user.

OpenVMS V9.1-A
$ product install *

1 - VSI X86VMS CIVETWEB V1.14-0C Layered Product
2 - VSI X86VMS LUA V5.3-5C Layered Product
3 - VSI X86VMS OPENSSH V8.8-1A Layered Product
4 - VSI X86VMS OPENSSH V8.6-1A Layered Product
5 - VSI X86VMS V91A_UPD V1.0 Patch (remedial update)
6 - VSI X86VMS WEBUI V4.0-2 Layered Product

I can read the api docs at http://lurch:8082/webui/docs/api.html

My .conf files:


$ sea *.conf /mat=nor "#"

******************************
CIVETWEB$ROOT:[conf]alert_images.conf;1
SQL /civetweb$root/local/sql.exe null


******************************
CIVETWEB$ROOT:[conf]civetweb.conf;2
listening_ports 8082
document_root /civetweb$root/htdocs
url_rewrite_patterns /api/**=/civetweb$root/htdocs/api/api.lua



******************************
CIVETWEB$ROOT:[conf]perfdat.conf;2
host 127.0.0.1
port 5254
user david
pass *********
debug 1

******************************
CIVETWEB$ROOT:[conf]services.conf;2
/login /civetweb$root/local/login.exe LoginHandler
/api/token /civetweb$root/local/login.exe ApiLoginHandler
/perfdat /civetweb$root/local/perfdat.exe PerfdatHandler


******************************
CIVETWEB$ROOT:[conf]threads.conf;1
/civetweb$root/local/main.exe /civetweb$root/conf/alert_images.conf


******************************
CIVETWEB$ROOT:[conf]webui.conf;2
secret_key secret123
disableJWT NO
max_ws_clients 5

These Identifiers are granted to users david and system.

Identifier Value Attributes
WEBUI_WRITE %X80010003
WEBUI_READ %X80010002

My sys$manager:systartup_vms.com section of interest

$ set verify
$ define/sys webui$report_files civetweb$root:[htdocs.reports.files]
$ define/sys webui$report_scripts civetweb$root:[htdocs.reports.scripts]
$ @sys$startup:perfdat$startup.com
$ @sys$startup:perfdat_eva$startup.com
$ @sys$startup:perfdat_snmp$startup.com
$!
$ @sys$startup:LUA$STARTUP.COM
$ @sys$startup:CIVETWEB$STARTUP.COM
$ @sys$startup:webui$restart.com
$!
$ set noverify

I can provide a log of that startup.

Any suggestions on how to debug this "no data displayed" issue?

On my firefox console - I see these errors.

Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Appreciated!
Last edited by connersegh on Fri Mar 04, 2022 4:33 pm, edited 1 time in total.


Topic author
connersegh
Newbie
Posts: 3
Joined: Thu Jul 22, 2021 1:28 pm
Reputation: 0
Status: Offline

Re: Webui on OpenVMS V9.1-A (X86) No data displayed.

Post by connersegh » Sun Mar 06, 2022 10:56 am

Some additional experiments.
I noticed that I was missing a logical in the VM from comment #1 as compared to the youtube demo

"LUA$ODS5_AVAIL" = "1"

Maybe the LUA V5.3-5C install was flawed?

I created a new clean VM.

Installed LUA V5.3-5B
Logical is present.
Installed LUA V5.3-5C
Logical is present.

$ PRODUCT SHOW HISTORY */OPERATION=INSTALL
------------------------------------ ----------- ----------- --- -----------
PRODUCT KIT TYPE OPERATION VAL DATE
------------------------------------ ----------- ----------- --- -----------
VSI X86VMS LUA V5.3-5C Full LP Install Val 06-MAR-2022
VSI X86VMS WEBUI V4.0-2 Full LP Install Val 06-MAR-2022
VSI X86VMS CIVETWEB V1.14-0C Full LP Install Val 06-MAR-2022
VSI X86VMS LUA V5.3-5B Full LP Install Val 06-MAR-2022
VSI X86VMS OPENSSH V8.7-1B Full LP Install Val 06-MAR-2022
VSI X86VMS DECNET_PHASE_IV V9.1-A Full LP Install (U) 05-MAR-2022
VSI X86VMS DWMOTIF V1.7-X4 Full LP Install (D) 05-MAR-2022
VSI X86VMS DWMOTIF_SUPPORT V9.1-A Full LP Install (U) 05-MAR-2022
VSI X86VMS KERBEROS V3.3-1 Full LP Install (D) 05-MAR-2022
VSI X86VMS OPENVMS V9.1-A Platform Install Sys 05-MAR-2022
VSI X86VMS SSL111 V1.1-1K Full LP Install (D) 05-MAR-2022
VSI X86VMS TCPIP X6.0-12 Full LP Install (D) 05-MAR-2022
VSI X86VMS VMS V9.1-A Oper System Install Sys 05-MAR-2022
------------------------------------ ----------- ----------- --- -----------
13 items found



Working from https://github.com/vmssoftware/pywebui to see what worked from the python interface.

I gleaned the URL from VSI-X86VMS-WEBUI-V0400-2-1-RELEASE-NOTES.PDF

I only have my X86 VMs to work on, Idon't know if the below would have "worked" on an IA64 OS.

>>> import pywebui
>>> c = pywebui.Connector('http://192.168.1.46:8082')
>>> c.login('system', 'password')
>>> c.get_users()
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib64/python3.6/http/client.py", line 1361, in getresponse
response.begin()
File "/usr/lib64/python3.6/http/client.py", line 311, in begin
version, status, reason = self._read_status()
File "/usr/lib64/python3.6/http/client.py", line 293, in _read_status
raise BadStatusLine(line)
http.client.BadStatusLine: error loading module 'vms.rtl.lib' from file '/lua$root/lib/vms/rtl/lib.exe':

Installed VSI X86VMS V91A_UPD V1.0

Rebooted

Same results, in the WEBUI GUI (No data except this wrong date "29 October 2021 08:24" and the username of the logged in user. And same python error.


Topic author
connersegh
Newbie
Posts: 3
Joined: Thu Jul 22, 2021 1:28 pm
Reputation: 0
Status: Offline

Re: Webui on OpenVMS V9.1-A (X86) No data displayed.

Post by connersegh » Wed Apr 20, 2022 4:45 pm

Progress!

Built a x86e92oe kvm vm.
Installed kits VSI-X86VMS-LUA-V0503-5CA-1.ZIP VSI-X86VMS-CIVETWEB-V0114-0CA-1.ZIP VSI-X86VMS-WEBUI-V0400-2-1.ZIP

Follow the instructions in the PDF's Some data is loading (and the date is correct)

Screenshot attached. Work in progress. Next up install and set up PERFDAT.
Attachments
WEBUI_on_x86e92oe.jpeg
Last edited by connersegh on Wed Apr 20, 2022 4:57 pm, edited 2 times in total.

Post Reply