'popen' not supported - dzVents on FreeBSD  [Solved]

Easy to use, 100% Lua-based event scripting framework.
Post Reply
Whiskey
Posts: 4
Joined: Monday 07 May 2018 20:35
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

'popen' not supported - dzVents on FreeBSD

Post by Whiskey » Tuesday 05 June 2018 22:26

I have installed Domoticz in a jail on my FreeNAS that runs FreeBSD 11.1 Most seems to work fine, however when I try the simple dzVents test script from the wiki I am getting this in the log:

Code: Select all

Status: dzVents: Error (2.4.6): .../home/domoticz/domoticz/dzVents/runtime/EventHelpers.lua:304: 'popen' not supported
Status: dzVents: Error (2.4.6): .../home/domoticz/domoticz/dzVents/runtime/EventHelpers.lua:304: 'popen' not supported
Status: dzVents: Error (2.4.6): .../home/domoticz/domoticz/dzVents/runtime/EventHelpers.lua:304: 'popen' not supported 
Googling for this error brought up this page that suggests that lua must be compiled with LUA_USE_LINUX or DLUA_USE_POSIX. But I'm not sure how to achieve that and it may not even be the solution (seems like an option that is already set).

This may belong in a different part of the forums as it seems particular to how Lua is compiled on FreeBSD, but Lua does work and dzVents does not so I'm trying first here.

Any suggestions on how to tackle this? Thanks!
Last edited by Whiskey on Saturday 09 June 2018 9:49, edited 1 time in total.

Whiskey
Posts: 4
Joined: Monday 07 May 2018 20:35
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: 'popen' not supported - dzVents on FreeBSD  [Solved]

Post by Whiskey » Saturday 09 June 2018 1:02

Yep, turned out that was indeed the solution. I added FreeBSD as a build target for LUA and now it works. Created a pull request for it: https://github.com/domoticz/domoticz/pull/2475

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests