Webui on OpenVMS V9.1-A (X86) No data displayed.
Posted: 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!
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!