RulesEngine
-
@akbooer not sure if it's related to openLuup or ALTUI...
But since a couple of update (both openLuup and ALTUI), some basic function in RulesEngine are not working, like "saving" a rule after an edit and also "deleting" a rule...
It's probably "javascript" related
-
I don’t use the rule engine myself, but I’ll try and give it a go.
There haven’t been any changes to the core of openLuup for a while. Any idea when it stopped working?
No useful error messages in the log, I take it?
JavaScript errors should appear in the browser’s own console log.
-
Ah, so definitely a JavaScript issue.
-
I've installed RulesEngine, but I'm not sure I know enough even to test it.
Any pointers?
-
-
Are there any errors logging in the JavaScript console?
-
not when saving...
-
I'm seeing this error in the log:
2023-07-18 15:43:11.522 luup_log:391: (RulesEngine::loadStartupFiles) WARNING: File 'C_RulesEngine_Startup.lua' does not exist 2023-07-18 15:43:11.524 openLuup.context_switch:: ERROR: [dev #391] ./openLuup/loader.lua:102: module 'lxp.lom' not found:
I installed manually, since the Alt App Store fails (I think it's the GitHub folder naming of this repository – include a space) so this may be my fault...
-
Aha! The lxp (XML parser) module is not installed on my development system (LuaJIT) where I'm testing this.
-
what's the module to install under debian/ubuntu ?
-
If it was working for you, then you must have the module, and you won’t get this error message.
-
I was trying to check using openLuup console and I got an error 500 when accessing /openLuup
-
I’m really struggling with the graphic interface… can’t seem to make any logic bits stick together, so nothing to try to save. Save button is always red.
What were you doing to get a 500 error?
-
Ah , I forgot the missing module. I would need to configure a system which does have lxp and then try again.
-
@akbooer said in RulesEngine:
What were you doing to get a 500 error?
Just going to http://IP:3480/openLuup
-
Are you sure? Looking at the server code, the only reason I can see for a 500 error is an invalid request, in which case the error should include reference to which request ID it saw.
I’ve seen this happen sometimes when testing and I’ve refreshed a browser page from a previously incorrect request.
Re type the URL in the browser and try again?
Anything in the log??
-
2023-07-30 08:15:52.777 openLuup.server:: GET /openLuup HTTP/1.1 tcp{client}: 0x42d21578 2023-07-30 08:15:52.777 openLuup.wsapi:: using openLuup/console.lua for openLuup 2023-07-30 08:15:52.777 openLuup.wsapi:: using REQUIRE to load CGI openLuup/console.lua 2023-07-30 08:15:52.778 openLuup.wsapi:: can't find WSAPI application entry point
-
Helpful, thanks. That’s something for me to get my teeth into…